I am trying to break a Renderstepped loop the same way you break any normal loop.

Connection:Disconnect() does not properly do the job because when I run Renderstepped again, the Connection will resume at the point were it was disconnected. This behavior breaks my code.

Is there any way I can break a Renderstepped and run it again from the very beginning?

5 comments

0

try using a debounce

0

Debounce is used to prevent a script from running several times. I'm trying to make the loop stop running.

0

you talk too vaguely to get an accurate response... "break a renderstepped"

0

I mean stopping the Renderstepped loop: game:GetService("RunService").RenderStepped:connect(function() end)

0

If you want to disconnect the function then use Disconnect, if you want a function to stop use return.