Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local CoreGui = game:GetService("CoreGui")
- local player = Players.LocalPlayer
- if CoreGui:FindFirstChild("GleavinHubMain") then
- CoreGui.GleavinHubMain:Destroy()
- end
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "GleavinHubMain"
- screenGui.ResetOnSpawn = false
- screenGui.Parent = CoreGui
- -- Main Frame (Navy Blue Theme)
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 520, 0, 340)
- mainFrame.Position = UDim2.new(0.5, -260, 0.5, -170)
- mainFrame.BackgroundColor3 = Color3.fromRGB(12, 18, 35)
- mainFrame.BorderSizePixel = 0
- mainFrame.Parent = screenGui
- Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 10)
- -- Header Bar
- local header = Instance.new("Frame")
- header.Size = UDim2.new(1, 0, 0, 40)
- header.BackgroundColor3 = Color3.fromRGB(20, 30, 55)
- header.BorderSizePixel = 0
- header.Parent = mainFrame
- Instance.new("UICorner", header).CornerRadius = UDim.new(0, 10)
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(0, 300, 1, 0)
- title.Position = UDim2.new(0, 15, 0, 0)
- title.BackgroundTransparency = 1
- title.Font = Enum.Font.GothamBold
- title.Text = "GLEAVIN HUB | Blox Fruits (Keyless)"
- title.TextColor3 = Color3.fromRGB(100, 180, 255)
- title.TextSize = 14
- title.TextXAlignment = Enum.TextXAlignment.Left
- title.Parent = header
- -- Minimize Button (-)
- local minimizeBtn = Instance.new("TextButton")
- minimizeBtn.Size = UDim2.new(0, 30, 0, 30)
- minimizeBtn.Position = UDim2.new(1, -75, 0, 5)
- minimizeBtn.BackgroundColor3 = Color3.fromRGB(35, 50, 85)
- minimizeBtn.Font = Enum.Font.GothamBold
- minimizeBtn.Text = "-"
- minimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- minimizeBtn.TextSize = 14
- minimizeBtn.Parent = header
- Instance.new("UICorner", minimizeBtn).CornerRadius = UDim.new(0, 6)
- -- Close Button (X)
- local closeBtn = Instance.new("TextButton")
- closeBtn.Size = UDim2.new(0, 30, 0, 30)
- closeBtn.Position = UDim2.new(1, -38, 0, 5)
- closeBtn.BackgroundColor3 = Color3.fromRGB(180, 40, 40)
- closeBtn.Font = Enum.Font.GothamBold
- closeBtn.Text = "X"
- closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- closeBtn.TextSize = 12
- closeBtn.Parent = header
- Instance.new("UICorner", closeBtn).CornerRadius = UDim.new(0, 6)
- -- Sidebar Navigation
- local sidebar = Instance.new("Frame")
- sidebar.Size = UDim2.new(0, 130, 1, -40)
- sidebar.Position = UDim2.new(0, 0, 0, 40)
- sidebar.BackgroundColor3 = Color3.fromRGB(15, 22, 42)
- sidebar.BorderSizePixel = 0
- sidebar.Parent = mainFrame
- -- Container Panel
- local container = Instance.new("Frame")
- container.Size = UDim2.new(1, -140, 1, -50)
- container.Position = UDim2.new(0, 135, 0, 45)
- container.BackgroundTransparency = 1
- container.Parent = mainFrame
- -- Tab Generator Helper
- local function createTabButton(name, yPos)
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, -10, 0, 30)
- btn.Position = UDim2.new(0, 5, 0, yPos)
- btn.BackgroundColor3 = Color3.fromRGB(25, 38, 70)
- btn.Font = Enum.Font.GothamSemibold
- btn.Text = name
- btn.TextColor3 = Color3.fromRGB(220, 220, 220)
- btn.TextSize = 11
- btn.Parent = sidebar
- Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
- return btn
- end
- local tabMain = createTabButton("Auto Farm", 10)
- local tabCombat = createTabButton("Combat & Raids", 45)
- local tabVisuals = createTabButton("Visuals / ESP", 80)
- local tabSettings = createTabButton("Settings & Theme", 115)
- -- Content Sections Creation
- local sections = {}
- local function createSection(name)
- local scrolling = Instance.new("ScrollingFrame")
- scrolling.Size = UDim2.new(1, 0, 1, 0)
- scrolling.BackgroundTransparency = 1
- scrolling.Visible = false
- scrolling.CanvasSize = UDim2.new(0, 0, 0, 400)
- scrolling.ScrollBarThickness = 4
- scrolling.Parent = container
- sections[name] = scrolling
- return scrolling
- end
- local secMain = createSection("Auto Farm")
- local secCombat = createSection("Combat & Raids")
- local secVisuals = createSection("Visuals / ESP")
- local secSettings = createSection("Settings & Theme")
- secMain.Visible = true
- tabMain.MouseButton1Click:Connect(function() for _, s in pairs(sections) do s.Visible = false end secMain.Visible = true end)
- tabCombat.MouseButton1Click:Connect(function() for _, s in pairs(sections) do s.Visible = false end secCombat.Visible = true end)
- tabVisuals.MouseButton1Click:Connect(function() for _, s in pairs(sections) do s.Visible = false end secVisuals.Visible = true end)
- tabSettings.MouseButton1Click:Connect(function() for _, s in pairs(sections) do s.Visible = false end secSettings.Visible = true end)
- -- Toggle Switch Component Creator
- local function addToggle(parent, text, yPos, callback)
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, -10, 0, 30)
- btn.Position = UDim2.new(0, 5, 0, yPos)
- btn.BackgroundColor3 = Color3.fromRGB(22, 32, 60)
- btn.Font = Enum.Font.Gotham
- btn.Text = text .. ": OFF"
- btn.TextColor3 = Color3.fromRGB(200, 200, 200)
- btn.TextSize = 11
- btn.TextXAlignment = Enum.TextXAlignment.Left
- btn.Parent = parent
- Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
- local active = false
- btn.MouseButton1Click:Connect(function()
- active = not active
- if active then
- btn.BackgroundColor3 = Color3.fromRGB(30, 90, 160)
- btn.Text = text .. ": ON"
- btn.TextColor3 = Color3.fromRGB(255, 255, 255)
- else
- btn.BackgroundColor3 = Color3.fromRGB(22, 32, 60)
- btn.Text = text .. ": OFF"
- btn.TextColor3 = Color3.fromRGB(200, 200, 200)
- end
- callback(active)
- end)
- end
- -- Populate Tabs
- addToggle(secMain, "Auto Level Farm (Quest + Mob)", 10, function(v) print("Auto Farm:", v) end)
- addToggle(secMain, "Auto Chest Farm", 45, function(v) print("Chest Farm:", v) end)
- addToggle(secMain, "Auto Nearest Boss", 80, function(v) print("Boss Farm:", v) end)
- addToggle(secMain, "Fruit Sniper / Auto Collect", 115, function(v) print("Fruit Sniper:", v) end)
- addToggle(secCombat, "Fast Attack / Melee Aura", 10, function(v) print("Fast Attack:", v) end)
- addToggle(secCombat, "Auto Sea Events (Terrorshark)", 45, function(v) print("Sea Events:", v) end)
- addToggle(secCombat, "Auto Raid Handler", 80, function(v) print("Raids:", v) end)
- addToggle(secCombat, "Godmode / Safe Health", 115, function(v) print("Godmode:", v) end)
- addToggle(secVisuals, "Player ESP", 10, function(v) print("Player ESP:", v) end)
- addToggle(secVisuals, "Fruit ESP (Multi-Color)", 45, function(v) print("Fruit ESP:", v) end)
- addToggle(secVisuals, "Island & Boss ESP", 80, function(v) print("Location ESP:", v) end)
- -- Settings & Theme Tab
- local themeLabel = Instance.new("TextLabel")
- themeLabel.Size = UDim2.new(1, -10, 0, 20)
- themeLabel.Position = UDim2.new(0, 5, 0, 10)
- themeLabel.BackgroundTransparency = 1
- themeLabel.Font = Enum.Font.GothamBold
- themeLabel.Text = "Theme Color Options:"
- themeLabel.TextColor3 = Color3.fromRGB(150, 200, 255)
- themeLabel.TextSize = 11
- themeLabel.TextXAlignment = Enum.TextXAlignment.Left
- themeLabel.Parent = secSettings
- local function addThemeButton(text, color, xPos, yPos)
- local tBtn = Instance.new("TextButton")
- tBtn.Size = UDim2.new(0, 105, 0, 28)
- tBtn.Position = UDim2.new(0, xPos, 0, yPos)
- tBtn.BackgroundColor3 = color
- tBtn.Font = Enum.Font.GothamBold
- tBtn.Text = text
- tBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- tBtn.TextSize = 10
- tBtn.Parent = secSettings
- Instance.new("UICorner", tBtn).CornerRadius = UDim.new(0, 6)
- tBtn.MouseButton1Click:Connect(function()
- mainFrame.BackgroundColor3 = color
- header.BackgroundColor3 = color:Lerp(Color3.new(0,0,0), 0.2)
- sidebar.BackgroundColor3 = color:Lerp(Color3.new(0,0,0), 0.3)
- end)
- end
- addThemeButton("Navy Blue", Color3.fromRGB(12, 18, 35), 5, 35)
- addThemeButton("Midnight Dark", Color3.fromRGB(15, 15, 15), 115, 35)
- addThemeButton("Ocean Cyan", Color3.fromRGB(10, 40, 60), 5, 70)
- addThemeButton("Royal Purple", Color3.fromRGB(35, 15, 50), 115, 70)
- local recChannel = Instance.new("TextLabel")
- recChannel.Size = UDim2.new(1, -10, 0, 40)
- recChannel.Position = UDim2.new(0, 5, 0, 115)
- recChannel.BackgroundColor3 = Color3.fromRGB(18, 26, 48)
- recChannel.Font = Enum.Font.Gotham
- recChannel.Text = "Recommended Channel:\nGleavin Hub Official (Updates & Scripts)"
- recChannel.TextColor3 = Color3.fromRGB(120, 210, 255)
- recChannel.TextSize = 10
- recChannel.Parent = secSettings
- Instance.new("UICorner", recChannel).CornerRadius = UDim.new(0, 6)
- -- Minimize & Close Logic
- local minimized = false
- minimizeBtn.MouseButton1Click:Connect(function()
- minimized = not minimized
- sidebar.Visible = not minimized
- container.Visible = not minimized
- mainFrame.Size = minimized and UDim2.new(0, 520, 0, 40) or UDim2.new(0, 520, 0, 340)
- minimizeBtn.Text = minimized and "+" or "-"
- end)
- closeBtn.MouseButton1Click:Connect(function()
- screenGui:Destroy()
- end)
- -- Draggable UI
- local dragging, dragInput, dragStart, startPos
- header.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = mainFrame.Position
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) and dragging then
- local delta = input.Position - dragStart
- mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- end)
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = false
- end
- end)
- print("Gleavin Hub Loaded Successfully!")
Advertisement
Add Comment
Please, Sign In to add comment