While true or renderstepped?

I’ve recently had a couple of people tell me that using while true do is not a good idea, but i also feel like renderstepped is not always the most favorable option of the two.

I’ll just copy and paste my response from a similar topic:

2 Likes

while true do wait() basically loops every 0.03 seconds, whereas RenderStepped runs every frame.

please never use wait(), especially in loops.

why though, how else am i going to add a delay between stuff?

I would suggest using a heatbeat or renderstepped wait function. wait() is slow and inconsistent and is a major source of lag.

just realized they said runservice loops

they are not loops :joy:

oh ok, I just realised you meant wait() with no parameters.