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

I was making some admin commands and I was wondering if this was good?

Asked by 2 years ago
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)
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 Xapelize 2658 — 2y
0
Ok thanks! DrTryarus685 -5 — 2y

Answer this question