How exactly would I do this instead of using StoppedTouching:Connect()? cos am not making another function, cos I wanna do stuff until the person stops Touching...
✓ ANSWER ACCEPTED
Repeat until StoppedTouching?
1 answer
✓ Accepted answer
part.Touched:connect(function(hit)
touch = true
repeat --whatever
until not touch
end)
part.TouchEnded:connect(function() touch = false end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
lol the last line confuses me a lil
Well the loop will continue to run until the part.TouchEnded makes touch = false