Search
 
SCRIPT & CODE EXAMPLE
 

LUA

wait function lua

function wait(seconds)
    local start = os.time()
    repeat until os.time() > start + seconds
end
--Exactly the same as the roblox one!
Comment

wait() in lua

wait(5)  -- Waits 5 seconds then prints "Hello world!"
print("Hello world!")
Comment

lua wait function

function wait(n)
	os.execute("sleep "..tostring(tonumber(n)))
end


-- the reason we're doing this is because lua
-- doesn't have a built in wait function
-- unless it's roblox lua or other types,
-- but this is for vanilla lua
Comment

Wait function lua

local function Wait(s)
  local c = os.time()
  
  repeat until c >= c + s
 end
Comment

lua wait function

wait(5)
Comment

PREVIOUS NEXT
Code Example
Lua :: lua add 1 to a variable 
Lua :: lua event 
Lua :: localplayer lua 
Lua :: roblox destroy game script 
Lua :: roblox luau random number 
Lua :: lua functions 
Lua :: what is lua used for 
Lua :: lua commenting 
Lua :: fivem commands example lua 
Lua :: Tool script example for lua 
Lua :: how to make everyone on team see name roblox 
Lua :: copy table lua 
Lua :: lua random numbers printing 
Lua :: lua pairs 
Lua :: how do i use the errors module luaassist 
Lua :: roblox studio buying robux 
Matlab :: create empty dataframe r with column names 
Matlab :: how to read dat file in matlab 
Matlab :: matlab function without output 
Matlab :: matlab new line in string 
Basic :: JWT EM VBNET 
Elixir :: elixir after 
Elixir :: phoenix query get first record 
Elixir :: elixir with else 
Scala :: scala jrtpath 
Actionscript :: truncate restart identity - syntax error at or near "identity" 
Excel :: convert number to date in excel 
Perl :: Perl list files and folders in a directory 
Pascal :: pascal while 
Powershell :: To look at a profile to see information about a wifi network 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =