Hub GUI Script 3
Key RequiredUniversal

Hub GUI Script 3

Universal Scriptmscript32mscript32 2.2K views 4 executesUpdated Jan 22, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•90 lines (3043 chars)
-- Create the GUI Hub
local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "MaverickHub"
screenGui.Parent = player.PlayerGui

-- Main Frame
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 300, 0, 400)
mainFrame.Position = UDim2.new(0.5, -150, 0.5, -200)
mainFrame.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
mainFrame.BorderSizePixel = 3
mainFrame.BorderColor3 = Color3.fromRGB(255, 0, 0)
mainFrame.Visible = false
mainFrame.Parent = screenGui

-- Draggable Frame
local dragging, dragStart, startPos

mainFrame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        dragStart = input.Position
        startPos = mainFrame.Position

        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)

mainFrame.InputChanged:Connect(function(input)
    if dragging and input.UserInputType == Enum.UserInputType.MouseMovement 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)

-- Open/Close Button
local openButton = Instance.new("TextButton")
openButton.Size = UDim2.new(0, 200, 0, 50)
openButton.Position = UDim2.new(0.5, -100, 0.9, 0)
openButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
openButton.Text = "Open Maverick Hub"
openButton.Parent = screenGui

openButton.MouseButton1Click:Connect(function()
    mainFrame.Visible = not mainFrame.Visible
end)

-- Random Scripts
local scripts = {
    {"Speed Boost", function()
        player.Character.Humanoid.WalkSpeed = 150
    end},
    {"Super Jump", function()
        player.Character.Humanoid.JumpPower = 250
    end},
    {"Invincibility", function()
        player.Character.Humanoid.Health = math.huge
        player.Character.Humanoid.MaxHealth = math.huge
    end},
    {"Disco Mode", function()
        local part = Instance.new("Part")
        part.Shape = Enum.PartType.Ball
        part.Size = Vector3.new(10, 10, 10)
        part.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
        part.Anchored = true
        part.BrickColor = BrickColor.new("Bright blue")
        part.Parent = workspace
    end},
    {"Teleport to Random Location", function()
        local randomPosition = Vector3.new(math.random(-100, 100), 50, math.random(-100, 100))
        player.Character:SetPrimaryPartCFrame(CFrame.new(randomPosition))
    end}
}

-- Add Buttons for Scripts
for i, scriptData in ipairs(scripts) do
    local button = Instance.new("TextButton")
    button.Size = UDim2.new(0, 250, 0, 40)
    button.Position = UDim2.new(0.5, -125, 0, (i - 1) * 50 + 10)
    button.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
    button.Text = scriptData[1]
    button.Parent = mainFrame

    button.MouseButton1Click:Connect(scriptData[2])
end

Features & Information

Idk

Community Comments (1)

jackbuzzzzzjackbuzzzzzJan 22, 2025(edited)

chatgpt and it client

More Scripts for Universal Scripts