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 u=game:GetService("\080\108\097\121\101\114\115")local q=u.LocalPlayer local h=script.Parent.Parent.Leveled.Admin local S=h.Sidebar.Inside function Animate(u,q,h,S,Y,p)((game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")):Create(u,TweenInfo.new(q,h,S,0,false,0),Y)):Play()if p==true then wait(q)end end for u,q in pairs(S:GetChildren())do if q:IsA("\073\109\097\103\101\066\117\116\116\111\110")then q.MouseButton1Click:Connect(function()if(h:FindFirstChild(q.Name)).Visible==true then(h:FindFirstChild(q.Name)).Visible=false q.ImageColor3=Color3.fromRGB(120,120,125)return end local u=h:FindFirstChild(q.Name)for u,q in pairs(h:GetChildren())do if q.Name~="\083\105\100\101\098\097\114"then q.Visible=false;(S:FindFirstChild(q.Name)).ImageColor3=Color3.fromRGB(120,120,125)end end u.Visible=true q.ImageColor3=Color3.fromRGB(255,255,255)end)end end
--[[

		SCRIPT VERSION:
			1.3, 10/19/21
		
		CURRENT ISSUE:
			Nothing
		
--]]

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
