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

Whats wrong with my Admin Command script?

Asked by
IcyEvil 260 Moderation Voter
9 years ago

I'm attempting to make a kill command and it is Sort of Failing, Any help would be Great.

local owners = {"EmperorVolvax"}

game.Players.PlayerAdded:connect(function(p)
for _,v in pairs(owners) do
if p.Name == v then
p.Chatted:connect(function(msg)
if msg == "#kill " then
local vic = msg:sub(1, 6)
if vic then
vic:BreakJoints()
end
end
end)        
end
end
end)
0
Dont use BreakJoints() at least use vic.Character.Humanoid:TakeDamage(100) MessorAdmin 598 — 9y
0
Still Doesn't Work ^ IcyEvil 260 — 9y

Answer this question