how can I make a script that whenever a player types "die" in the chat, the player dies?
✓ ANSWER ACCEPTED
Kill the player when something typed on chat?
1 answer
✓ Accepted answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
