if not game.Loaded or not workspace:FindFirstChild("\084\101\114\114\097\105\110")then game.Loaded:Wait();(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer.CharacterAdded:Wait()end local X=game:GetService("\080\108\097\121\101\114\115")local G=X.LocalPlayer local E=script.Parent.Parent.Leveled.Admin local m=E.Sidebar.Inside function Animate(X,G,E,m,C,a)((game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(X,TweenInfo.new(G,E,m,0,false,0),C)):Play()if a==true then wait(G)end end for X,G in pairs(m:GetChildren())do if G:IsA("\073\109\097\103\101\066\117\116\116\111\110")then G.MouseButton1Click:Connect(function()if(E:FindFirstChild(G.Name)).Visible==true then(E:FindFirstChild(G.Name)).Visible=false G.ImageColor3=Color3.fromRGB(120,120,125)return end local X=E:FindFirstChild(G.Name)for X,G in pairs(E:GetChildren())do if G.Name~="\083\105\100\101\098\097\114"then G.Visible=false;(m:FindFirstChild(G.Name)).ImageColor3=Color3.fromRGB(120,120,125)end end X.Visible=true G.ImageColor3=Color3.fromRGB(255,255,255)end)end end


if not game.Loaded or not workspace:FindFirstChild("Terrain") then
	game.Loaded:Wait();
	game:GetService("Players").LocalPlayer.CharacterAdded:Wait();
end;

local Players = game:GetService("Players")
local Player = Players.LocalPlayer;

local Screen = script.Parent.Parent.Leveled.Admin;
local Sidebar = Screen.Sidebar.Inside;

function Animate(Instance, Time, Style, Direction, Animation, WaitForAnimation)
	game:GetService("TweenService"):Create(Instance, TweenInfo.new(Time, Style, Direction, 0, false, 0), Animation):Play();
	if WaitForAnimation == true then
		wait(Time);
	end;
end;

for Int, Button in pairs(Sidebar:GetChildren()) do
	if Button:IsA("ImageButton") then
		Button.MouseButton1Click:Connect(function()
			if Screen:FindFirstChild(Button.Name).Visible == true then
				Screen:FindFirstChild(Button.Name).Visible = false;
				Button.ImageColor3 = Color3.fromRGB(120, 120, 125);
				return;
			end;
			
			local WantScreen = Screen:FindFirstChild(Button.Name);
			for Int, Ue1 in pairs(Screen:GetChildren()) do
				if Ue1.Name ~= "Sidebar" then
					Ue1.Visible = false;
					Sidebar:FindFirstChild(Ue1.Name).ImageColor3 = Color3.fromRGB(120, 120, 125);
				end;
			end;
			WantScreen.Visible = true;
			Button.ImageColor3 = Color3.fromRGB(255, 255, 255);
		end);
	end;
end;
