Hub GUI Script 5
Key RequiredUniversal

Hub GUI Script 5

Universal Scriptmscript32mscript32 2.2K views 5 executesUpdated Jan 22, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•144 lines (4586 chars)
-- Create the GUI Hub
local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "RandomHub"
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(50, 50, 50)
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(0, 255, 0)
openButton.Text = "Open Random Hub"
openButton.Parent = screenGui

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

-- Random Scripts
local scripts = {
    {"Fire Trail", function()
        local fire = Instance.new("Fire")
        fire.Size = 10
        fire.Heat = 10
        fire.Parent = player.Character:WaitForChild("HumanoidRootPart")

        -- Create fire trail effect
        while true do
            local trail = fire:Clone()
            trail.Parent = player.Character:WaitForChild("HumanoidRootPart")
            trail.Enabled = true
            wait(0.1)
        end
    end},
    
    {"Jump Boost", function()
        local humanoid = player.Character:WaitForChild("Humanoid")
        humanoid.JumpHeight = 50
        wait(5)
        humanoid.JumpHeight = 7
    end},

    {"Invisible", function()
        for _, part in pairs(player.Character:GetChildren()) do
            if part:IsA("BasePart") then
                part.Transparency = 1
            end
        end
    end},

    {"Teleport to Random Location", function()
        local randomLocation = workspace:FindFirstChild("SpawnLocation")
        if randomLocation then
            player.Character:SetPrimaryPartCFrame(randomLocation.CFrame)
        end
    end},

    {"Super Speed", function()
        local humanoid = player.Character:WaitForChild("Humanoid")
        humanoid.WalkSpeed = 100
        wait(10) -- Reset speed after 10 seconds
        humanoid.WalkSpeed = 16
    end},

    {"Spawn a Zombie", function()
        -- Zombie Model
        local zombie = Instance.new("Model")
        zombie.Name = "Zombie"

        -- Create the body parts for the zombie
        local torso = Instance.new("Part")
        torso.Size = Vector3.new(2, 3, 1)
        torso.Position = player.Character.HumanoidRootPart.Position + Vector3.new(10, 0, 0)
        torso.Anchored = false
        torso.CanCollide = true
        torso.BrickColor = BrickColor.new("Bright green")
        torso.Parent = zombie

        local head = Instance.new("Part")
        head.Size = Vector3.new(1, 1, 1)
        head.Position = torso.Position + Vector3.new(0, 2, 0)
        head.Anchored = false
        head.CanCollide = true
        head.BrickColor = BrickColor.new("Bright yellow")
        head.Parent = zombie

        local humanoid = Instance.new("Humanoid")
        humanoid.Parent = zombie

        zombie.Parent = workspace

        -- Set zombie movement (optional)
        while true do
            wait(1)
            zombie:MoveTo(player.Character.HumanoidRootPart.Position + Vector3.new(math.random(-10,10), 0, math.random(-10,10)))
        end
    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, 128, 255)
    button.Text = scriptData[1]
    button.Parent = mainFrame

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

Features & Information

Idk

Community Comments (1)

OpenConfigurationOpenConfigurationJan 25, 2026

bro u script sucks

More Scripts for Universal Scripts