Chat.
#2
(04-05-2011, 10:00 PM)Bramwell Wrote: I was wondering how I would go about making a script where if a player says a certain phrase the game would respond. Some help would be appreciated.

I never tried to make it, but I would guess something like this...

[lua]
link(game.Players.PlayerAdded, function(player)
link(player.Chatted, function(speaker, msg)
if msg == "reset" then
speaker.Character.Health = 0
end
end)
end)
[/lua]

Or something similiar to that. With some testing I could probably get it to work (should the above script not).
[Image: rogershanksluffy_display.gif]
Reply


Messages In This Thread
Chat. - by Bramwell - 04-05-2011, 10:00 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)