04-05-2011, 10:00 PM
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.
Chat.
|
04-05-2011, 10:00 PM
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.
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).
04-05-2011, 10:52 PM
Thank you very much, as I was also looking for one of those scripts, however, what I had in mind was the game replying with a chat message.
04-05-2011, 10:59 PM
If you're thinking about making a talking AI, I would give up. Otherwise, try using the message function.
04-06-2011, 02:15 AM
game:chat(color, message)
|
« Next Oldest | Next Newest »
|