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)

2 comments

0

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

0

Ok thanks!