Hai! I have a touched event that hosts a while loop on touched but when I finish the touch, the while loop stays. I understand there is a Touch Ended event but thinking how to do this ponders my mind. Sorry if I don't make much sense, I am not asking for a free script but merely a method. Thanks!
local part = -- Define your part local enable = false function onTouched() enable = true while true do if enable == false then return end -- Your code goes here end end function onTouchEnded() delay(0.5,function() enable = false end) end part.Touched:Connect(onTouched) part.TouchEnded:Connect(onTouchEnded)