Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Better way to end Renderstepped?

Asked by
XxSWxX 18
6 years ago

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?

0
try using a debounce Leamir 3138 — 6y
0
Debounce is used to prevent a script from running several times. I'm trying to make the loop stop running. XxSWxX 18 — 6y
0
you talk too vaguely to get an accurate response... "break a renderstepped" cabbler 1942 — 6y
0
I mean stopping the Renderstepped loop: game:GetService("RunService").RenderStepped:connect(function() end) XxSWxX 18 — 6y
0
If you want to disconnect the function then use Disconnect, if you want a function to stop use return. gullet 471 — 5y

Answer this question