local WhitelistedPlayer = game.Players.WhitelistedPlayerGoesHere
WhitelistedPlayer.Chatted:connect(function(cht)
if cht:match(“>kill all”) then
if game.Players.LocalPlayer == WhitelistedPlayer then
game.Players.Character.Humanoid:Destroy()
end
end
end)
COMMUNITY QUESTION
I was making some admin commands and I was wondering if this was good?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Just a tip: Set the Humanoid.Health to 0, not destroy it, if you destroy the humanoid they have to rejoin since they can't respawn
Ok thanks!