Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Kill the player when something typed on chat?

Asked by 2 years ago

how can I make a script that whenever a player types "die" in the chat, the player dies?

1 answer

Log in to vote
1
Answered by 2 years ago

sorry for bad grammar i want to die rn

make a script in serverscript

in the script

game.Players.PlayerAdded:Connect(function(Player)
    Player.Chatted:Connect(function(Message)
        if Message == "die" then
            Player.Character:BreakJoints()
        end
    end)
end)
Ad

Answer this question