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 :: lua comments 
Lua :: What is CanCollide in roblox? 
Lua :: how do i do a wait lin lua replit 
Lua :: delete part on touch roblox 
Lua :: finding humanoid roblox. part 
Lua :: roblox script to create brick 
Lua :: while loop lua 
Lua :: gun that shoot automaticly roblox 
Lua :: what is lua programming language 
Lua :: insert item array pico8 
Lua :: how to make a math text in lua 
Lua :: lua catch error 
Lua :: Lua how to comment 
Matlab :: matlab plot vertical line 
Matlab :: log matlab 
Matlab :: pass variable by reference to function in matlab 
Basic :: vb string to int32 
Basic :: JWT EM VBNET 
Basic :: sequnce function vb.net 
Elixir :: elixir fibonacci 
Elixir :: elixir function arity 
Scala :: hashset scala 
Scala :: scala default parameter skip one 
Excel :: google sheets stack columns 
Excel :: set row as header excel 
Perl :: perl mechanize infinite scroll 
Pascal :: array pascal 
Gdscript :: godot check if timer is running 
Abap :: sap checkbox abap 
Assembly :: windows detect system dark mode 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =