My code doesn't work but I think it's because I'm new to scripting
function onTouched(hit)
if script.Parent.LeftLowerLeg.Fire.Enabled = true
then while true do ()
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil) then
human.Health = human.Health - 10 -- Change the amount to change the damage.
wait(5)
end
end
script.Parent.Touched:connect(onTouched)
end
plz help

1 comment
Where did you put the script?