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)

2 comments

0

Dont use BreakJoints() at least use vic.Character.Humanoid:TakeDamage(100)

0

Still Doesn't Work ^