Function roblox::function::wait [−][src]
pub fn wait(seconds: Option<f64>) -> (f64, f64)
Expand description
Equivalent to number, number wait(number seconds = 0.03)
in Luau.
Yields the current thread until the specified amount of seconds have elapsed.
The delay will have a minimum duration of 29 milliseconds, but this minimum
may be higher depending on the target framerate and various throttling
conditions. If the seconds
parameter is not specified, the minimum
duration will be used.
Returns
Actual time yielded (in seconds)
Total time since the software was initialized (in seconds)