#Difference between wait() and task.wait()?

15 messages · Page 1 of 1 (latest)

celest sparrow
#

it doesnt throttle

#

(i have no idea what that means)

fickle urchin
#

TY

nova lotus
#

the same thing

#

task.wait() just waits better

#

wait() is deprexcated

fickle urchin
#

oh ok

muted bramble
#

The key difference between the two are:

Precision

  • task.wait() is more precise and accurate than wait(). It uses a newer timing system that ensures delays closer to the requested time, whereas wait() can be less consistent, especially under high server load or low framerates.

Performance

  • task.wait() is optimized for performance, making it more efficent in situations where you need reliable time delays, particularly in complex or resource heavy scripts.

  • wait(), being older and also deprecated method, can cause minor performance issues when used frequently or in a large number of scripts.

Time Delay

  • Both functions pause the script for a minimum of 1/60th of a second but task.wait() handles smaller, more accurate intervals better.

  • wait() is often slightly less reliable for very short or precise delays.

After this long ass yapping session, the summary is that it's recommended to use task.wait() as it's part of the improved (new) task library and offers better performance and precision.

muted bramble
spare scrollBOT
#

studio** You are now Level 2! **studio

amber grove
#

one is better one is worse