So i have two problems:
My character is supposed to heal 10 health per second, but instead he heals like 50 health per milisecond.
the healing lasts forever, no matter if i am touching the healing brick or not. the only way to stop it is to die.
heres the script:
function OnTouched (person)
local i = person.Parent:FindFirstChild("Humanoid")
if i ~= nil then
while i ~= nil do
wait(1)
i.Health = i.Health + 10
end
end
end
script.Parent.Touched:Connect(OnTouched)

2 comments
add a debounce
how exactly?