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 » Scripting Helpers
Home Search
 

Re: On Chatted

Previous Thread :: Next Thread 
BlizardAlpha is not online. BlizardAlpha
Joined: 23 Aug 2012
Total Posts: 753
01 Jan 2013 11:32 AM
How can i do an onchatted() script?


As in

I say "Open sesame" and the door gets removed.

-Crazy old man.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
01 Jan 2013 11:36 AM
game.Players.BlizardAlpha.Chatted:connect(function(msg)
if msg:lower() == "open sesam" then
door:Destroy()
end
end)
Report Abuse
LGR100 is not online. LGR100
Joined: 02 Jan 2011
Total Posts: 922
01 Jan 2013 11:37 AM
Game.Workspace.Player
()OnChatted Game.Workspace.Model --(Change variable goes here :P) IDK If this is right, but close.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
01 Jan 2013 11:39 AM
@LGR, we appreciate help, but if u actually dont know how to script this dont post, not tryin to be rude, its the truth in SH.
Report Abuse
12packkid is not online. 12packkid
Joined: 24 Jun 2011
Total Posts: 1418
01 Jan 2013 12:57 PM
Fedorakid did use the shortest method available, but if you want a more reliable
onChatted then do this.

adminlist = {"Names"}

for _,v in pairs(game.Players:GetChildren()) do
for a,c in pairs(adminlist) do
if v.Name == c then

function chat(msg)
if msg == "open sesame" then
door:Destroy()
end
end
adminlist.Chatted:connect(chat)
end
end
end
Report Abuse
jelly134 is not online. jelly134
Joined: 25 Aug 2008
Total Posts: 1137
01 Jan 2013 01:13 PM
That's using a list of "admins". I think he just wanted a Chatted() event function.
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
01 Jan 2013 01:27 PM
If he wanted an admin, he would have asked for that now wouldnt he.
Report Abuse
BlizardAlpha is not online. BlizardAlpha
Joined: 23 Aug 2012
Total Posts: 753
01 Jan 2013 04:06 PM
Thanks! Both methods were helpful!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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