My sleep() function freezes whole game, ideas? (SOLVED)

local timer = require ("main.timer")

function reload()
	print("Reloaded!")
end

function init(self)
	timer.seconds(2, reload)
end


function update(self, dt)
	timer.update(dt)
end
5 Likes