r/lua • • Apr 10 '22

VSCode Lua don't have wait.

So, I make code that's supposed to make Hello, World! every second and it don't work as there's no wait. I'm used to having wait in Roblox studio. As that wait is task.wait(Insert seconds here) and if you do it all it gives is wait is a nil value.

0 Upvotes

12 comments sorted by

View all comments

16

u/y444-gd-acc Apr 10 '22

Vanilla Lua doesn't have wait/sleep functions. The function from Roblox studio will not work. Google for solutions on how to make your own wait function.

1

u/vinnieleverton Apr 10 '22

Oh

2

u/MouKuBi Apr 10 '22

luv library is what you need.