Many scripts want to run little bits of code at frequent intervals. For example, a script might update the behavior of a zombie. It needs to update conditions repeatedly, like checking the location of the nearest player.
Today, ROBLOX’s Chief Scientist, Erik Cassel, discusses proper use of the wait function.
Continue reading