Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Kill the player when something typed on chat?

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

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.