Difference between task.wait and wait?

Hello! Im fairly new to coding and found out task.wait a week ago. I still don’t get why It is used, I know its some kind of better version then just wait(), But how come?

Thanks!

8 Likes

Task.wait is the new and improved version of wait. The difference between them is how it pauses the program, and task.wait wont throttle your code.

7 Likes

Wait is a older way to wait while task.wait is a new and more accurate timer. But both fail to give 100 nanosecond precision wait times like I wish.

4 Likes

This explains the new task system and it’s improvements over previous methods.

13 Likes