Roblox Scripting Assistance - Resources

Join our Discord!

Task Library

< Back to overview
< View all authors
< View all categories

Along with the update of the Task Library (see also task library documentation), we got a new set of functions for task scheduling, along with a new and improved wait() function, namely task.wait().

This function is the new equivalent of doing RunService.Heartbeat:Wait() which was always considered a better option.

Along with the new Find and Replace window Roblox recently introduced it’s now very easy to convert to this new function by use of a regex operation:

What this does it looks for all occurences of wait( with a couple of additional checks

Note: This same method works for all task library functions, for example if you wanted to change the occurences of spawn you would do: (?<![\S\.])spawn\( and task.spawn(.


Links


Author: Thodor12
Category: Studio
Date: 15 August 2021

< Back to overview
< View all authors
< View all categories