I have made a script that will take away 5 health when touched
function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil) then
human.Health = human.Health - 5
end
end
script.Parent.Touched:connect(onTouched)
how do i make it so when touching it will only take away 5 per every 2 seconds?
