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.
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)