Skip to content

Instantly share code, notes, and snippets.

@Core-commits
Created July 24, 2020 22:10
Show Gist options
  • Save Core-commits/38ab7ff9ead67b4a82216e08386c7fa2 to your computer and use it in GitHub Desktop.
Save Core-commits/38ab7ff9ead67b4a82216e08386c7fa2 to your computer and use it in GitHub Desktop.
Support for Wait() function in vanilla lua
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