-- Decompiled with the Synapse X Luau decompiler.


local l__Heartbeat__1 = game:GetService("RunService").Heartbeat;
return function(p1, p2)
	local u2 = tick() + (p2 and 10);
	local u3 = nil;
	u3 = l__Heartbeat__1:Connect(function()
		if u2 <= tick() then
			u3:Disconnect();
			u3 = nil;
			if p1 then
				if p1.Destroy then
					pcall(p1.Destroy, p1);
					return;
				end;
				if p1.destroy then
					pcall(p1.destroy, p1);
					return;
				end;
				if p1.Disconnect then
					pcall(p1.Disconnect, p1);
					return;
				end;
				if p1.disconnect then
					pcall(p1.disconnect, p1);
				end;
			end;
		end;
	end);
	return nil;
end;
