Created
July 24, 2020 22:10
-
-
Save Core-commits/38ab7ff9ead67b4a82216e08386c7fa2 to your computer and use it in GitHub Desktop.
Support for Wait() function in vanilla lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wait(a) | |
if a == nil then a = 0.1 end | |
local sec = tonumber(os.clock() + a); | |
while (os.clock() < sec) do | |
end | |
end | |
print("hello!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment