Hub GUI Script 4
Key RequiredUniversal

Hub GUI Script 4

Universal Scriptmscript32mscript32 2.2K views 7 executesUpdated Jan 22, 2025
0.0/ 5(1 votes)
010% Positive
Lua Script•106 lines (3474 chars)
-- Create the GUI Hub
local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AdvancedHub"
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(45, 45, 45)
mainFrame.BorderSizePixel = 3
mainFrame.BorderColor3 = Color3.fromRGB(255, 255, 255)
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 Advanced Hub"
openButton.Parent = screenGui

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

-- Advanced Scripts
local scripts = {
    {"Rainbow Fire", function()
        local fire = Instance.new("Fire")
        fire.Size = 20
        fire.Heat = 5
        fire.Parent = player.Character:WaitForChild("HumanoidRootPart")

        -- Rainbow effect for fire
        while true do
            fire.Color = Color3.fromHSV(tick() % 5 / 5, 1, 1)
            wait(0.1)
        end
    end},
    {"Disco Sky", function()
        game.Lighting:SetMinutesAfterMidnight(0)
        game.Lighting.Sky.SkyboxTint = Color3.fromRGB(255, 255, 255)

        while true do
            game.Lighting.Sky.SkyboxTint = Color3.fromHSV(tick() % 5 / 5, 1, 1)
            wait(1)
        end
    end},
    {"Freeze Player", function()
        local targetPlayer = game.Players:GetPlayers()[1] -- Choose the first player in the game
        if targetPlayer then
            targetPlayer.Character.HumanoidRootPart.Anchored = true
        end
    end},
    {"Speed Boost", function()
        player.Character.Humanoid.WalkSpeed = 100
        wait(10) -- Speed boost lasts for 10 seconds
        player.Character.Humanoid.WalkSpeed = 16 -- Reset speed
    end},
    {"Red Large Fire", function()
        local fire = Instance.new("Fire")
        fire.Size = 50
        fire.Heat = 10
        fire.Color = Color3.fromRGB(255, 0, 0)
        fire.Parent = player.Character:WaitForChild("HumanoidRootPart")
    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 (0)

No comments yet for this script.

More Scripts for Universal Scripts