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 function rebuilt in lua

function wait(seconds)
  local start = os.time()
  repeat until os.time() > start + seconds
end

-- This is the wait function (mostly known from roblox)
-- It works exactly like the roblox version
-- It's used like this: wait(how many seconds)
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 :: remote function unable to cast value to object 
Lua :: roblox how to find something in table 
Lua :: how to exit current scope roblox 
Lua :: input in lua 
Lua :: lua click button 
Lua :: lua add table to value 
Lua :: lua what is _ENV 
Lua :: repeat until lua 
Lua :: how to delete parts with a script in roblox studio 
Lua :: lua how to make a loop 
Lua :: roblox lua wait for player to load 
Lua :: to the power of in lua 
Lua :: roblox hotkey script 
Lua :: finding humanoid roblox. part 
Lua :: check if string is in string[] c# 
Lua :: what is lua programming language 
Lua :: the function returning the address of a local variable results in: 
Lua :: how to enable https service roblox 
Matlab :: matlab string to int 
Matlab :: matlab make symbolic matrix 
Matlab :: matlab import data 
Basic :: random numbers visual basic 
Basic :: como colocar aspas duplas em vbnet 
Elixir :: elixir write base64 to file 
Elixir :: elixir string show inner binary 
Scala :: scala 
Actionscript :: hello world in actionscript 
Excel :: excel number of column 
Perl :: print a variable perl 
Pascal :: pascal sleep 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =