(lua newb)
function touch(damage)
local rekt = damage.Parent:FindFirstChild("Humanoid").Health
rekt = damage.Parent:FindFirstChild("Humanoid").Health -10
wait(1)
end
script.Parent.Touched:connect(touch)
why do I have to repeat the same line of code? I know that it won't work otherwise but why?
damage.Parent:FindFirstChild("Humanoid").Health = damage.Parent:FindFirstChild("Humanoid").Health -10

1 comment
thank you!!!