-- Decompiled with the Synapse X Luau decompiler.
--NOTE: Currently in beta! Not representative of final product.

local u1 = nil;
coroutine.wrap(function() -- [line 1] anonymous function
	--[[
		Upvalues: 
			[1] = u1
	--]]
	u1 = require(game.ReplicatedStorage:WaitForChild("Resources"));
end)();
local v1 = u1.PlayerModule.Get("Mouse");
local u2 = u1.PlayerModule.Get("PlayerGui");
local u3 = v1;
return function(p1, p2) -- [line 6] anonymous function
	if not p1 then
		return
	end
	--[[
		Upvalues: 
			[1] = u1
			[2] = u2
			[3] = u3
	--]]
	if (u1.Variables.Mobile) then
		return false;
	end
	local v2 = {};
	local u4 = u2:FindFirstChild("TooltipsFolder");
	if (u4 == nil) then
		u4 = Instance.new("ScreenGui");
		u4.Name = "TooltipsFolder";
		u4.DisplayOrder = 999;
		u4.Parent = u2;
	end
	local u5 = nil;
	local u6 = false;
	local f_Remove;
	f_Remove = function() -- [line 20] Remove
		--[[
			Upvalues: 
				[1] = u5
		--]]
		if (u5) then
			u5:Destroy();
			u5 = nil;
		end
	end;
	local u7 = p2;
	local u8 = p1;
	local f_Create;
	f_Create = function() -- [line 26] Create
		--[[
			Upvalues: 
				[1] = u4
				[2] = u5
				[3] = u7
				[4] = u1
				[5] = u6
				[6] = u8
				[7] = u3
		--]]
		u4:ClearAllChildren();
		u5 = Instance.new("TextLabel");
		u5.BorderSizePixel = 0;
		u5.BackgroundColor3 = Color3.new(0.35, 0.35, 0.35);
		u5.TextColor3 = Color3.new(1, 1, 1);
		u5.FontSize = Enum.FontSize.Size18;
		u5.Font = Enum.Font.FredokaOne;
		u5.Text = u7;
		local v3 = Instance.new("UICorner");
		v3.CornerRadius = UDim.new(1, 0);
		v3.Parent = u5;
		local v4 = u1.TextService:GetTextSize(u5.Text, u5.TextSize, u5.Font, Vector2.new(1000, 1000));
		u5.Size = UDim2.new(0, v4.X + 14, 0, v4.Y + 8);
		u5.Parent = u4;
		u6 = false;
		while (((not u6) and u5) and ((u5.Parent and u8) and (not u1.Variables.Mobile))) do
			local v5 = false;
			local v6 = u3.X;
			local t_X_1 = v6;
			local t_Y_2 = u3.Y;
			local v7 = u8.AbsolutePosition.X;
			local t_X_3 = v7;
			local t_Y_4 = u8.AbsolutePosition.Y;
			local v8 = v7 - 10;
			if ((v8 < v6) and (t_X_1 < ((t_X_3 + u8.AbsoluteSize.X) + 10))) then
				local v9 = t_Y_4 - 10;
				if ((v9 < t_Y_2) and (t_Y_2 < ((t_Y_4 + u8.AbsoluteSize.Y) + 10))) then
					u5.Position = UDim2.new(0, u3.X + 17, 0, u3.Y);
				else
					v5 = true;
				end
			else
				v5 = true;
			end
			if (v5) then
				u6 = true;
			end
			u1.RenderStepped();
		end
		if (u5) then
			u5:Destroy();
			u5 = nil;
		end
	end;
	local v10 = (#v2) + 1;
	local v11 = p1.MouseEnter;
	local f_Create = f_Create;
	v2[v10] = v11:Connect(function() -- [line 62] anonymous function
		--[[
			Upvalues: 
				[1] = u5
				[2] = f_Create
		--]]
		if (u5) then
			u5:Destroy();
			u5 = nil;
		end
		f_Create();
	end);
	v2[(#v2) + 1] = p1.MouseLeave:Connect(function() -- [line 66] anonymous function
		--[[
			Upvalues: 
				[1] = u5
		--]]
		if (u5) then
			u5:Destroy();
			u5 = nil;
		end
	end);
	local u9 = v2;
	return function() -- [line 69] anonymous function
		--[[
			Upvalues: 
				[1] = u9
				[2] = u6
		--]]

			for v18, v19 in ipairs(u9) do
			local v20 = v18;
			local v21 = v19;
			v21:Disconnect();
		end
		u6 = true;
	end;
end;
