Task.wait(n) vs wait(n)

.Stepped doesn’t actually yield while your code is running, so you’ll need to add a debounce or use deltaTime to wait. You should also consider using task.wait() if you aren’t already.

1 Like

I did replace wait with task.wait in every script and made the game lag in major frame drops resulting in me restoring a backup. Currently working on adding tags which reduced lag since I was using a lot of for loops.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.