guys i want to script a zombie to kill people and I have an error that make it doesnt damage players please help me there is the script:
local rarm = script.Parent:FindFirstChild("Right Arm")
local larm = script.Parent:FindFirstChild("Left Arm")
function dmg(hit)
if hit.Parent ~= nil then
local hum = hit.Parent:findFirstChild("Humanoid")
if hum ~= nil then
hum.Health = hum.Health -10
end
end
end
rarm.Touched:connect(dmg)
larm.Touched:connect(dmg)

2 comments
You use R6 character version?
Just add brackets when you call dmg, and pass through the hit object.