How would i make a script when I say a certain word something happens? EX: I say "Kill" Then it would kill all the players alive or just me.
COMMUNITY QUESTION
Comands script?
1 answer
local commands = {
["kill"] = function()
for _, p in pairs(game.Players:GetPlayers()) do
if p.Character then
p.Character:BreakJoints()
end
end
end;
}
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if commands[msg:lower()] then
commands[msg:lower()]()
end
end)
end)
1 comment
0
If you wanted to look at a more "advanced" commands script (template) then take a look at this code that I wrote over a year ago: http://pastebin.com/rARwmL5t
This discussion is preserved as it was. New answers, comments, and votes are closed.

8 comments
Its impossible.
@Connor What do you mean?
He must give up on life. His dreams will never be acomplished
Oh thanks you so nice, also a guy did it on a script builder with me so yeah it is possible...
@Connor Impossible? http://goo.gl/BRdmZw
Possable end of descusion.
/whoosh/
.....