local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local lp = Players.LocalPlayer local gui = Instance.new("ScreenGui", lp:WaitForChild("PlayerGui")) gui.IgnoreGuiInset = true gui.ResetOnSpawn = false gui.Name = "AdvancedTabUI" -- Main Frame local frame = Instance.new("Frame", gui) frame.Size = UDim2.new(0.6, 0, 0.6, 0) frame.Position = UDim2.new(0.2, 0, 1, 0) frame.BackgroundColor3 = Color3.fromRGB(60, 60, 60) frame.Active = true frame.Draggable = true Instance.new("UICorner", frame) local frameGrad = Instance.new("UIGradient", frame) frameGrad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(60, 60, 60)) } -- Title local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1, -50, 0, 40) title.Position = UDim2.new(0, 0, 0, 0) title.Text = "Player Stats" title.Font = Enum.Font.Nunito title.TextScaled = true title.TextColor3 = Color3.new(1, 1, 1) title.BackgroundTransparency = 1 title.ZIndex = 2 -- Close Button local closeBtn = Instance.new("TextButton", frame) closeBtn.Size = UDim2.new(0, 40, 0, 40) closeBtn.Position = UDim2.new(1, -40, 0, 0) closeBtn.Text = "X" closeBtn.Font = Enum.Font.Nunito closeBtn.TextScaled = true closeBtn.TextColor3 = Color3.new(1, 1, 1) closeBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0) Instance.new("UICorner", closeBtn) local closeGrad = Instance.new("UIGradient", closeBtn) closeGrad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(100, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(200, 0, 0)) } -- Tab Bar local tabBar = Instance.new("Frame", frame) tabBar.Size = UDim2.new(1, 0, 0, 40) tabBar.Position = UDim2.new(0, 0, 0, 40) tabBar.BackgroundTransparency = 1 local tabLayout = Instance.new("UIListLayout", tabBar) tabLayout.FillDirection = Enum.FillDirection.Horizontal tabLayout.Padding = UDim.new(0, 5) tabLayout.HorizontalAlignment = Enum.HorizontalAlignment.Left -- Page Container local pages = Instance.new("Frame", frame) pages.Size = UDim2.new(1, 0, 1, -80) pages.Position = UDim2.new(0, 0, 0, 80) pages.BackgroundTransparency = 1 pages.ClipsDescendants = true -- Tabs Table local tabs, pagesContent = {}, {} local currentTab = nil -- Switch Tab Function local function switchTo(tabName) if currentTab == tabName then return end local incoming = pagesContent[tabName] local outgoing = currentTab and pagesContent[currentTab] for name, btn in pairs(tabs) do local goal = name == tabName and Color3.fromRGB(80, 80, 80) or Color3.fromRGB(30, 30, 30) TweenService:Create(btn, TweenInfo.new(0.3), {BackgroundColor3 = goal}):Play() end if outgoing then TweenService:Create(outgoing, TweenInfo.new(0.25), {Position = UDim2.new(-1, 0, 0, 0)}):Play() outgoing.Visible = false end incoming.Position = UDim2.new(1, 0, 0, 0) incoming.Visible = true TweenService:Create(incoming, TweenInfo.new(0.25), {Position = UDim2.new(0, 0, 0, 0)}):Play() currentTab = tabName end -- Create Tab Button local function createTab(name) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 120, 1, 0) btn.Text = name btn.Font = Enum.Font.Nunito btn.TextScaled = true btn.TextColor3 = Color3.new(1, 1, 1) btn.BackgroundColor3 = Color3.fromRGB(30, 30, 30) Instance.new("UICorner", btn) local grad = Instance.new("UIGradient", btn) grad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(50, 50, 50)) } btn.MouseButton1Click:Connect(function() switchTo(name) end) btn.Parent = tabBar return btn end -- Stats Page local statsPage = Instance.new("ScrollingFrame") statsPage.Size = UDim2.new(1, 0, 1, 0) statsPage.Position = UDim2.new(1, 0, 0, 0) statsPage.BackgroundTransparency = 1 statsPage.ScrollBarThickness = 6 statsPage.Visible = false local statsLayout = Instance.new("UIListLayout", statsPage) statsLayout.Padding = UDim.new(0, 6) statsLayout.SortOrder = Enum.SortOrder.LayoutOrder local function updateStats() for _, child in ipairs(statsPage:GetChildren()) do if child:IsA("TextLabel") then child:Destroy() end end for _, plr in ipairs(Players:GetPlayers()) do local nameLbl = Instance.new("TextLabel", statsPage) nameLbl.Size = UDim2.new(1, -12, 0, 30) nameLbl.BackgroundTransparency = 1 nameLbl.Font = Enum.Font.Nunito nameLbl.TextScaled = true nameLbl.TextColor3 = Color3.new(1, 1, 1) nameLbl.Text = plr.Name local stats = plr:FindFirstChild("leaderstats") if stats then for _, s in ipairs(stats:GetChildren()) do local statLbl = Instance.new("TextLabel", statsPage) statLbl.Size = UDim2.new(1, -24, 0, 24) statLbl.BackgroundTransparency = 1 statLbl.Font = Enum.Font.Nunito statLbl.TextScaled = true statLbl.TextColor3 = Color3.new(1, 1, 1) statLbl.Text = "• " .. s.Name .. ": " .. tostring(s.Value) statLbl.Parent = statsPage end end end statsPage.CanvasSize = UDim2.new(0, 0, 0, statsLayout.AbsoluteContentSize.Y + 10) end -- Scripts Page local scriptPage = Instance.new("ScrollingFrame") scriptPage.Size = UDim2.new(1, 0, 1, 0) scriptPage.Position = UDim2.new(1, 0, 0, 0) scriptPage.BackgroundTransparency = 1 scriptPage.ScrollBarThickness = 6 scriptPage.Visible = false local scriptLayout = Instance.new("UIListLayout", scriptPage) scriptLayout.Padding = UDim.new(0, 6) local function createScriptBtn(name, code) local btn = Instance.new("TextButton", scriptPage) btn.Size = UDim2.new(1, -20, 0, 40) btn.Position = UDim2.new(0, 10, 0, 0) btn.BackgroundColor3 = Color3.fromRGB(0, 160, 0) btn.Font = Enum.Font.Nunito btn.TextColor3 = Color3.new(1, 1, 1) btn.TextScaled = true btn.Text = name Instance.new("UICorner", btn) local grad = Instance.new("UIGradient", btn) grad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 100, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 160, 0)) } btn.MouseButton1Click:Connect(function() pcall(function() loadstring(code)() end) end) end createScriptBtn("Infinite Yield", "loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()") createScriptBtn("Dex", "loadstring(game:HttpGet('https://raw.githubusercontent.com/infyiff/backup/main/dex.lua'))()") -- Tab Setup tabs["Stats"] = createTab("Stats") tabs["Scripts"] = createTab("Scripts") pagesContent["Stats"] = statsPage pagesContent["Scripts"] = scriptPage statsPage.Parent = pages scriptPage.Parent = pages -- Open Button local openBtn = Instance.new("TextButton", gui) openBtn.Size = UDim2.new(0, 100, 0, 40) openBtn.Position = UDim2.new(1, -110, 1, -50) openBtn.Text = "Open" openBtn.Font = Enum.Font.Nunito openBtn.TextScaled = true openBtn.TextColor3 = Color3.new(1, 1, 1) openBtn.BackgroundColor3 = Color3.fromRGB(0, 160, 0) openBtn.Visible = false Instance.new("UICorner", openBtn) local openGrad = Instance.new("UIGradient", openBtn) openGrad.Color = ColorSequence.new{ ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 80, 0)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 160, 0)) } -- Animations local showTween = TweenService:Create(frame, TweenInfo.new(0.4), {Position = UDim2.new(0.2, 0, 0.2, 0)}) local hideTween = TweenService:Create(frame, TweenInfo.new(0.4), {Position = UDim2.new(0.2, 0, 1, 0)}) closeBtn.MouseButton1Click:Connect(function() hideTween:Play() hideTween.Completed:Wait() openBtn.Visible = true end) openBtn.MouseButton1Click:Connect(function() openBtn.Visible = false showTween:Play() end) -- Init switchTo("Stats") showTween:Play() updateStats() task.spawn(function() while true do updateStats() task.wait(10) end end)