-- Decompiled with the Synapse X Luau decompiler.


client = nil;
cPcall = nil;
Pcall = nil;
Routine = nil;
service = nil;
gTable = nil;
return function(p1)
	local l__PlayerGui__1 = service.PlayerGui;
	client.Variables.PlayerListEnabled = false;
	service.StarterGui:SetCoreGuiEnabled("PlayerList", false);
	local l__Parent__2 = script.Parent.Parent;
	local l__Drag__3 = l__Parent__2.Drag;
	local l__Frame__4 = l__Parent__2.Drag.Frame;
	gTable:Ready();
	local l__mouse__5 = service.Players.LocalPlayer:GetMouse();
	local l__X__6 = l__Drag__3.AbsoluteSize.X;
	local l__Y__7 = l__Frame__4.AbsoluteSize.Y;
	local l__LocalPlayer__1 = service.Players.LocalPlayer;
	local u2 = false;
	local u3 = l__X__6;
	local u4 = l__X__6;
	local l__List__5 = l__Parent__2.Drag.Frame.List;
	local l__FakeDragger__6 = l__Parent__2.Drag.Frame.FakeDragger;
	local function v8()
		l__Frame__4.BackgroundTransparency = 0.7;
		l__List__5.BackgroundTransparency = 1;
		l__FakeDragger__6.Visible = false;
	end;
	local function u7()
		local l__leaderstats__9 = l__LocalPlayer__1:FindFirstChild("leaderstats");
		if l__leaderstats__9 and not u2 then
			u3 = (#l__leaderstats__9:GetChildren() - 1) * 70 + 210;
			u4 = u3;
			l__Drag__3.Size = UDim2.new(0, u3, 0, 30);
			l__Drag__3.Position = UDim2.new(1, -u3, 0, 0);
		end;
		if l__leaderstats__9 then
			return true;
		end;
		return false;
	end;
	local u8 = nil;
	local l__Entry__9 = l__Parent__2.Entry;
	local u10 = {
		["1237666"] = 355277187, 
		["39958537"] = 116524268, 
		["66136675"] = 355858707, 
		["102761590"] = 355858707, 
		["6087802"] = 355858707, 
		["33869774"] = 355858707, 
		["60557514"] = 355858707, 
		["28606349"] = 99727663, 
		["64362264"] = 48094325, 
		["39259729"] = 356709818, 
		["68591528"] = 397876352
	};
	local u11 = l__Y__7;
	local u12 = l__Y__7;
	local function v10()
		l__List__5:ClearAllChildren();
		u7();
		local v11 = {
			Neutral = {
				Color = BrickColor.White(), 
				Players = {}, 
				Stats = {}, 
				StatNames = {}
			}
		};
		local v12 = 0;
		local v13 = 0;
		local v14 = {};
		local v15 = {};
		for v16, v17 in pairs(service.Teams:GetChildren()) do
			v11[v17.Name] = {
				Color = v17.TeamColor, 
				Players = {}, 
				Stats = {}, 
				StatNames = {}
			};
		end;
		local v18, v19, v20 = pairs(service.Players:GetPlayers());
		while true do
			local v21, v22 = v18(v19, v20);
			if not v21 then
				break;
			end;
			local v23 = false;
			local v24 = nil;
			if not v22.Neutral then
				for v25, v26 in pairs(v11) do
					if v26.Color == v22.TeamColor then
						v23 = true;
						v24 = v26;
						table.insert(v26.Players, v22);
					end;
				end;
			end;
			if not v23 then
				v24 = v11.Neutral;
				table.insert(v11.Neutral.Players, v22);
			end;
			local l__leaderstats__27 = v22:FindFirstChild("leaderstats");
			if l__leaderstats__27 then
				local v28, v29, v30 = pairs(l__leaderstats__27:GetChildren());
				while true do
					local v31, v32 = v28(v29, v30);
					if not v31 then
						break;
					end;
					if v24.Stats[v32.Name] and tonumber(v24.Stats[v32.Name]) and v32:IsA("IntValue") and tonumber(v32.Value) then
						v24.Stats[v32.Name] = v24.Stats[v32.Name] + tonumber(v32.Value);
					elseif not v24.Stats[v32.Name] and v32:IsA("IntValue") then
						table.insert(v24.Stats, v32.Value);
						v24.Stats[v32.Name] = v32.Value;
					else
						v24.Stats[v32.Name] = "";
					end;
					table.insert(v24.StatNames, v32.Name);
					if not v15[v32.Name] then
						table.insert(v14, v32.Name);
						v15[v32.Name] = true;
					end;				
				end;
			end;
			v12 = v12 + 1;		
		end;
		if u8 then
			u8:Destroy();
		end;
		u8 = l__Entry__9:Clone();
		u8.Visible = true;
		u8.Position = UDim2.new(0, 0, 0, 0);
		local l__Nameb__33 = u8:FindFirstChild("Nameb");
		if l__Nameb__33 then
			l__Nameb__33.Text = l__LocalPlayer__1.Name;
		end;
		local l__ImageLabel__34 = u8:FindFirstChild("ImageLabel");
		if l__ImageLabel__34 then
			l__ImageLabel__34.Visible = false;
		end;
		local l__Stats__35 = u8:FindFirstChild("Stats");
		if l__Stats__35 then
			l__Stats__35.Visible = true;
			local l__Stat__36 = u8.Stat;
			for v37, v38 in pairs(v14) do
				local v39 = l__Stat__36:Clone();
				v39.Visible = true;
				v39.Parent = l__Stats__35;
				v39.Text = v38;
				v39.Position = UDim2.new(0, (v37 - 1) * 70, 0, 0);
			end;
		end;
		u8.Parent = l__Drag__3;
		if #v11.Neutral.Players == 0 then
			v11.Neutral = nil;
		end;
		local v40, v41, v42 = pairs(v11);
		while true do
			local v43, v44 = v40(v41, v42);
			if not v43 then
				break;
			end;
			if #v11 > 1 then
				local v45 = l__Entry__9:Clone();
				v45.Visible = true;
				v45.Position = UDim2.new(0, 0, 0, v13 * 25);
				v45.Nameb.Text = v43;
				v45.BackgroundTransparency = 0.5;
				v45.BackgroundColor3 = v44.Color.Color;
				v45.ImageLabel.Visible = false;
				v45.Parent = l__List__5;
				if string.len(v43) > 15 then
					v45.Nameb.TextScaled = true;
				end;
				if #v44.StatNames > 0 then
					v45.Stats.Visible = true;
					v45.Stats.Size = UDim2.new(0, 70 * (#v44.Stats - 1), 1, 0);
					local l__Stat__46 = v45.Stat;
					for v47, v48 in pairs(v44.StatNames) do
						local v49 = l__Stat__46:Clone();
						v49.Parent = v45.Stats;
						v49.Visible = true;
						local v50 = v44.Stats[v48];
						if v50 and type(v50) == "number" then
							v49.Text = v50;
						else
							v49.Text = "";
						end;
						v49.Position = UDim2.new(0, (#v45.Stats:GetChildren() - 1) * 70, 0, 0);
					end;
				else
					v45.Stats.Visible = false;
				end;
				v13 = v13 + 1;
			end;
			local v51, v52, v53 = pairs(v44.Players);
			while true do
				local v54, v55 = v51(v52, v53);
				if not v54 then
					break;
				end;
				local v56 = l__Entry__9:Clone();
				v56.Visible = true;
				v56.Position = UDim2.new(0, 0, 0, v13 * 25);
				local l__ImageLabel__57 = v56:FindFirstChild("ImageLabel");
				local l__Stats__58 = v56:FindFirstChild("Stats");
				local l__Nameb__59 = v56:FindFirstChild("Nameb");
				local l__Stat__60 = v56:FindFirstChild("Stat");
				if l__Nameb__59 then
					l__Nameb__59.Text = v55.Name;
				end;
				v56.Parent = l__List__5;
				if string.len(v55.Name) > 15 then
					l__Nameb__59.TextScaled = true;
				end;
				local v61 = u10[tostring(v55.UserId)];
				if l__ImageLabel__57 then
					if v61 then
						l__ImageLabel__57.Image = "http://www.roblox.com/asset/?id=" .. v61;
						l__ImageLabel__57.Visible = true;
					elseif v55.UserId == game.CreatorId then
						l__ImageLabel__57.Image = "rbxasset://textures/ui/icon_placeowner.png";
						l__ImageLabel__57.Visible = true;
					elseif v55:IsInGroup(1200769) then
						l__ImageLabel__57.Image = "http://www.roblox.com/asset/?id=99727663";
						l__ImageLabel__57.Visible = true;
					elseif l__LocalPlayer__1:IsFriendsWith(v55.UserId) and v55 ~= l__LocalPlayer__1 then
						l__ImageLabel__57.Image = "http://www.roblox.com/asset/?id=99749771";
						l__ImageLabel__57.Visible = true;
					elseif v55.MembershipType == Enum.MembershipType.BuildersClub then
						l__ImageLabel__57.Image = "rbxasset://textures/ui/TinyBcIcon.png";
						l__ImageLabel__57.Visible = true;
					elseif v55.MembershipType == Enum.MembershipType.TurboBuildersClub then
						l__ImageLabel__57.Image = "rbxasset://textures/ui/TinyTbcIcon.png";
						l__ImageLabel__57.Visible = true;
					elseif v55.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
						l__ImageLabel__57.Image = "rbxasset://textures/ui/TinyObcIcon.png";
						l__ImageLabel__57.Visible = true;
					else
						l__ImageLabel__57.Visible = false;
					end;
				end;
				local l__leaderstats__62 = v55:FindFirstChild("leaderstats");
				if l__leaderstats__62 and l__Stats__58 and l__Stat__60 then
					l__Stats__58.Visible = true;
					for v63, v64 in pairs((l__leaderstats__62:GetChildren())) do
						local v65 = l__Stat__60:Clone();
						v65.Visible = true;
						v65.Parent = l__Stats__58;
						v65.Text = v64.Value;
						v65.Position = UDim2.new(0, (#l__Stats__58:GetChildren() - 1) * 70, 0, 0);
					end;
				elseif l__Stats__58 then
					l__Stats__58.Visible = false;
				end;
				v13 = v13 + 1;			
			end;		
		end;
		if not u2 then
			local v66 = v13;
			if v66 > 10 then
				v66 = 10;
			end;
			local v67 = v66 * 25 + 30;
			u11 = v67;
			u12 = v67;
			l__Frame__4.Size = UDim2.new(0, u3, 0, v67);
		end;
		l__List__5.CanvasSize = UDim2.new(0, 0, 0, v13 * 20);
	end;
	l__Drag__3.Position = UDim2.new(1, -u3, 0, 0);
	v8();
	local function u13()
		l__Frame__4.BackgroundTransparency = 0;
		l__List__5.BackgroundTransparency = 0;
		l__FakeDragger__6.Visible = true;
	end;
	l__Frame__4.MouseEnter:Connect(function()
		u13();
	end);
	l__Frame__4.MouseLeave:Connect(function()
		v8();
	end);
	service.UserInputService.InputBegan:Connect(function(p2)
		if not service.UserInputService:GetFocusedTextBox() and p2.UserInputType == Enum.UserInputType.Keyboard and p2.KeyCode == Enum.KeyCode.Tab then
			if l__Drag__3.Visible then
				l__Drag__3.Visible = false;
				return;
			end;
			l__Drag__3.Visible = true;
		end;
	end);
	local u14 = false;
	local u15 = nil;
	local u16 = l__Drag__3.Position.X.Offset;
	local l__Dragger__17 = l__Parent__2.Drag.Frame.Dragger;
	l__mouse__5.Move:Connect(function(p3, p4)
		if u14 then
			u15 = u16 + l__Dragger__17.Position.X.Offset;
			u3 = u4 - l__Dragger__17.Position.X.Offset;
			u11 = u12 + (l__Dragger__17.Position.Y.Offset + 20);
			if u3 < 100 then
				u3 = 100;
			end;
			if u11 < 50 then
				u11 = 50;
			end;
			l__Frame__4.Size = UDim2.new(1, 0, 0, u11);
			l__Drag__3.Size = UDim2.new(0, u3, 0, 30);
			if u3 > 100 then
				l__Drag__3.Position = UDim2.new(l__Drag__3.Position.X.Scale, u15, l__Drag__3.Position.Y.Scale, l__Drag__3.Position.Y.Offset);
			end;
		end;
	end);
	l__Dragger__17.DragBegin:Connect(function(p5)
		u16 = l__Drag__3.Position.X.Offset;
		u14 = true;
		u2 = true;
	end);
	l__Dragger__17.DragStopped:Connect(function(p6, p7)
		u14 = false;
		u3 = l__Drag__3.AbsoluteSize.X;
		u11 = l__Frame__4.AbsoluteSize.Y;
		u15 = nil;
		u4 = u3;
		u12 = u11;
		u16 = l__Drag__3.Position.X.Offset;
		l__Dragger__17.Position = UDim2.new(0, 0, 1, -20);
	end);
	while wait(0.5) do
		v10();	
	end;
end;
