04-05-2011, 10:44 PM
(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).