Skip to content

Instantly share code, notes, and snippets.

View Zachwak840's full-sized avatar

Zach Zachwak840

  • USA, North Carolina
View GitHub Profile
@IndigoFenix
IndigoFenix / timestream.lua
Last active September 4, 2020 15:27
Multiplies the speed of calendar time by the specified value.
-- Multiplies the speed of calendar time by the specified value. The parameter can be any positive number, though going over 10 is likely to cause bugs. 1 is normal speed.
args={...}
local rate=tonumber(args[1])
local prev_tick = 0
if rate == nil then
rate = 1
elseif rate < 0 then
rate = 0
end