human = script.Parent:findFirstChild("Humanoid")
function DoT()
for i = 1, 7 do
human:TakeDamage(4)
wait(0.2)
script:Remove()
end
end
DoT() <-- a function has to be called.
or:
human = script.Parent:findFirstChild("Humanoid")
for i = 1, 7 do
human:TakeDamage(4)
wait(0.2)
script:Remove()
end |