--[[

	LOWGames Studios
	Date: 27 October 2022
	by Elder
	
]]
--

local u1 = nil;
coroutine.wrap(function()
	u1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"));
end)();
local u2 = {};
function Step()
	for v1, v2 in pairs(u2) do
		local v3 = v2[1];
		if v2[3] <= os.clock() - v2[2] then
			if type(v3) == "table" then
				local v4, v5, v6 = ipairs(v3);
				for v7, v8 in ipairs(v3) do 
					v8:Destroy();	
				end
			else
				v3:Destroy();
			end;
			table.remove(u2, v1);
		end;
	end;
end;
coroutine.wrap(function()
	while true do
		u1.Heartbeat();
		Step();	
	end;
end)();
return function(p1, p2)
	if not p2 then
		p2 = 10;
	end;
	table.insert(u2, { p1, os.clock(), p2 });
end;
