|
| 04 Jul 2014 01:14 PM |
| If a player says a certain answer ex; "x" they die or get a message on their screen |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2014 03:17 PM |
function onPlayerAdded(nP) nP.Chatted:connect(function(msg) if (msg:lower()=='insert lower case message here') then m=Instance.new('Message',game.Workspace) m.Text='Correct Answer!' else nP.Character.Humanoid.Health=0 end end) end game.Players.PlayerAdded:connect(onPlayerAdded) |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Jul 2014 03:22 PM |
Oops, I made a little error...
function onPlayerAdded(nP) nP.Chatted:connect(function(msg) if (msg:lower()=='insert lower case message here') then m=Instance.new('Message',game.Workspace) m.Text='Correct Answer!' wait(5) m:remove() else nP.Character.Humanoid.Health=0 end end) end game.Players.PlayerAdded:connect(onPlayerAdded) |
|
|
| Report Abuse |
|
|