generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How would I make a NPC Repeat some Lines ?

Previous Thread :: Next Thread 
deadpool382 is not online. deadpool382
Joined: 29 Mar 2014
Total Posts: 77
16 Jun 2016 05:08 PM
Well, I have a npc, Like in all those other games, They talk without the player clicking them, Like I want it to say

"Here i come!!"
"Leaf Hot Wind!"

Or some of those lines, If you have the script for that, Please help me out.


Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
16 Jun 2016 05:11 PM
http://wiki.roblox.com/index.php?title=API:Class/Chat/Chat
Report Abuse
deadpool382 is not online. deadpool382
Joined: 29 Mar 2014
Total Posts: 77
16 Jun 2016 05:20 PM
I said repeat.


Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
16 Jun 2016 05:23 PM
And I said: http://wiki.roblox.com/index.php?title=API:Class/Chat/Chat

did you even read it
please learn the basics of scripting before attempting this thx
Report Abuse
TheCoderOfLua is not online. TheCoderOfLua
Joined: 12 Apr 2016
Total Posts: 1599
16 Jun 2016 05:27 PM
local Chats = {"Hot Leafy Wind", "Whatever}
local AI = script.Parent.Head

while wait(math.random(5,10)) do
game:GetService("Chat"):Chat(AI, (Chats[math.random(1, #Chats)]);
end

PUt that in the character.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image