Heres what I have so far. Can someone help me?
function onT(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h ~= nil then
repeat
wait(3)
h.Health = h.Health - 5
end
end
end
script.Parent.Touched:connect(onT)
function onTouched(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h ~= nil then
repeat
wait(3)
h.Health = h.Health - 5
end
end
end
script.Parent.Touched:connect(onT)
function onT(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h.Health ~= 0 then
h.Health = h.Health - 5
wait(0.5)
repeat()
end
end
script.Parent.Touched:connect(onT)
this will
function onT(hit)
h = hit.Parent:findFirstChild("Humanoid")
if h.Health ~= 0 then
h.Health = h.Health - 5
wait(0.5)
repeat()
end
end
script.Parent.Touched:connect(onT)
keep going and going nonstop...