Which would be more efficient to use? RenderStepped or While Wait() Do? Since they both look like they do the same thing.
COMMUNITY QUESTION
Which is more efficient? RenderStepped or While Wait() Do?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
RenderStepped fires every time each frame of the clients FPS has ran, so in this case it would be good, but what if the client was lagging? On the other hand,
waitruns when the server's "FPS"(?) has ran/gets an opening.RenderStepped should only be used when the code should do something with visuals, such as Guis or Camera movement. For part movement, you can use Stepped or Heartbeat instead.