clickDetector.MouseClick:Connect(function() print("Started") wait(10) print("Stopped") end)
(That code is sample code, what I am really using it for is so a player gets healed once every second, 10 seconds after an event happens.)
How can I restart this function? In this code, how can I make it so that if the part is clicked again, the wait restarts without firing?