Search
 
SCRIPT & CODE EXAMPLE
 

LUA

luau debounce

local debounce = 2 -- in seconds
local previousTime = os.clock()

while true do
	task.wait(0.41)
    if os.clock() - previousTime >= debounce then
		previousTime = os.clock()
	end
end

--[[
use os.clock() for the client and workspace:GetServerTimeNow() for the server
]]
Comment

PREVIOUS NEXT
Code Example
Lua :: roblox get player by name 
Lua :: roblox loop players 
Lua :: roblox how to loop through all players 
Lua :: how to detect if part had children roblox 
Lua :: lua table is empty 
Lua :: luau how to find value in table 
Lua :: roblox studio random part color 
Lua :: lua in pairs 
Lua :: lua hello world function 
Lua :: make string all capital roblox 
Lua :: roblox number between 1 and 10 
Lua :: lua game code 
Lua :: lua tables 
Lua :: roblox studio rain 
Lua :: cmder not taking lua file 
Lua :: roblox add attribute 
Lua :: lua to integer 
Lua :: lua coding lines to test with 
Lua :: lua class example 
Matlab :: matlab get row from matrix 
Matlab :: matlab make symbolic matrix 
Matlab :: sin in scilab 
Basic :: google sheets split column 
Basic :: how to simulate tail in dos/cmd without tail 
Elixir :: elixir enum each 
Elixir :: elixir enum map_every 
Scala :: is there scala lint 
Actionscript :: octahedron 
Excel :: excel and function 
Perl :: perl mechanize infinite scroll 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =