HYPER HUB PAID
Key RequiredUniversal

HYPER HUB PAID

Universal Scriptzacharywashington94zacharywashington94 356 views 57 executesUpdated Feb 2, 2026
Unrated
00
Lua Script•868 lines (31987 chars)
-- Freeze Lag Script with Key System, Custom Keybind, and Mode Selection (ENHANCED FREEZE)
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")

-- Correct Key
local CORRECT_KEY = "vlonezz"
local keyEntered = false

-- Custom Keybind Settings
local currentKeybind = Enum.KeyCode.L -- Default: L key
local currentControllerBind = Enum.KeyCode.ButtonL1 -- Default: L1
local isSettingKeybind = false
local isSettingControllerBind = false

-- Mode Settings
local currentMode = "Public Safe" -- Default mode: "Public Safe" or "Private Safe"

-- Disconnect any old connections
pcall(function()
    if _G.LagControl then
        _G.LagControl:Disconnect()
    end
    if _G.LagConnection then
        _G.LagConnection:Disconnect()
    end
end)

-- Track freeze count
_G.LagFreezeCount = (_G.LagFreezeCount or 0) + 1
local freezeTime = 2 -- Default 2 second freeze time
local minFreeze = 0.5 -- Minimum 0.5 seconds
local maxFreeze = 5 -- Maximum 5 seconds
local busy = false

-- Create Main ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "FreezeGui_" .. math.random(100000, 999999)
ScreenGui.ResetOnSpawn = false
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
pcall(function()
    if gethui then
        ScreenGui.Parent = gethui()
    else
        ScreenGui.Parent = game:GetService("CoreGui")
    end
end)
if not ScreenGui.Parent then
    ScreenGui.Parent = PlayerGui
end

-- Key System Frame
local KeyFrame = Instance.new("Frame")
KeyFrame.Name = "KeyFrame"
KeyFrame.Parent = ScreenGui
KeyFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
KeyFrame.BorderSizePixel = 2
KeyFrame.BorderColor3 = Color3.fromRGB(200, 0, 0)
KeyFrame.Position = UDim2.new(0.5, -175, 0.5, -140)
KeyFrame.Size = UDim2.new(0, 350, 0, 280)
KeyFrame.Active = true
KeyFrame.Draggable = true
local KeyFrameCorner = Instance.new("UICorner")
KeyFrameCorner.CornerRadius = UDim.new(0, 12)
KeyFrameCorner.Parent = KeyFrame

-- Animated gradient background for Key Frame
local KeyBg = Instance.new("Frame")
KeyBg.Name = "Background"
KeyBg.Parent = KeyFrame
KeyBg.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
KeyBg.BorderSizePixel = 0
KeyBg.Size = UDim2.new(1, 0, 1, 0)
KeyBg.ZIndex = 0
local KeyBgCorner = Instance.new("UICorner")
KeyBgCorner.CornerRadius = UDim.new(0, 12)
KeyBgCorner.Parent = KeyBg
local KeyGradient = Instance.new("UIGradient")
KeyGradient.Parent = KeyBg
KeyGradient.Color = ColorSequence.new{
    ColorSequenceKeypoint.new(0, Color3.fromRGB(20, 0, 0)),
    ColorSequenceKeypoint.new(0.5, Color3.fromRGB(10, 10, 10)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(40, 0, 0))
}
KeyGradient.Rotation = 45

-- Animate gradient rotation
task.spawn(function()
    while task.wait(0.05) do
        if KeyGradient then
            KeyGradient.Rotation = (KeyGradient.Rotation + 1) % 360
        end
    end
end)

-- Key Frame Title
local KeyTitle = Instance.new("TextLabel")
KeyTitle.Parent = KeyFrame
KeyTitle.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
KeyTitle.BorderSizePixel = 0
KeyTitle.Size = UDim2.new(1, 0, 0, 50)
KeyTitle.Font = Enum.Font.GothamBold
KeyTitle.Text = "HYPER HUB - KEY SYSTEM"
KeyTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
KeyTitle.TextSize = 20
KeyTitle.ZIndex = 2
local KeyTitleCorner = Instance.new("UICorner")
KeyTitleCorner.CornerRadius = UDim.new(0, 12)
KeyTitleCorner.Parent = KeyTitle
local KeyTitleStroke = Instance.new("UIStroke")
KeyTitleStroke.Parent = KeyTitle
KeyTitleStroke.Color = Color3.fromRGB(255, 0, 0)
KeyTitleStroke.Thickness = 1

-- Key Instructions
local KeyInstructions = Instance.new("TextLabel")
KeyInstructions.Parent = KeyFrame
KeyInstructions.BackgroundTransparency = 1
KeyInstructions.Position = UDim2.new(0, 20, 0, 60)
KeyInstructions.Size = UDim2.new(0, 310, 0, 25)
KeyInstructions.Font = Enum.Font.GothamBold
KeyInstructions.Text = "Join Discord to get the key!"
KeyInstructions.TextColor3 = Color3.fromRGB(255, 255, 255)
KeyInstructions.TextSize = 14
KeyInstructions.TextWrapped = true
KeyInstructions.ZIndex = 2

-- Discord Link Box
local DiscordLinkBox = Instance.new("TextBox")
DiscordLinkBox.Parent = KeyFrame
DiscordLinkBox.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
DiscordLinkBox.BorderSizePixel = 1
DiscordLinkBox.BorderColor3 = Color3.fromRGB(150, 0, 0)
DiscordLinkBox.Position = UDim2.new(0, 25, 0, 90)
DiscordLinkBox.Size = UDim2.new(0, 210, 0, 35)
DiscordLinkBox.Font = Enum.Font.Gotham
DiscordLinkBox.Text = "https://discord.gg/7pVN666a"
DiscordLinkBox.TextColor3 = Color3.fromRGB(255, 255, 255)
DiscordLinkBox.TextSize = 12
DiscordLinkBox.TextEditable = false
DiscordLinkBox.ClearTextOnFocus = false
DiscordLinkBox.ZIndex = 2
local DiscordLinkCorner = Instance.new("UICorner")
DiscordLinkCorner.CornerRadius = UDim.new(0, 8)
DiscordLinkCorner.Parent = DiscordLinkBox

-- Copy Button
local CopyButton = Instance.new("TextButton")
CopyButton.Parent = KeyFrame
CopyButton.BackgroundColor3 = Color3.fromRGB(50, 100, 200)
CopyButton.BorderSizePixel = 0
CopyButton.Position = UDim2.new(0, 245, 0, 90)
CopyButton.Size = UDim2.new(0, 80, 0, 35)
CopyButton.Font = Enum.Font.GothamBold
CopyButton.Text = "COPY"
CopyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
CopyButton.TextSize = 14
CopyButton.ZIndex = 2
local CopyCorner = Instance.new("UICorner")
CopyCorner.CornerRadius = UDim.new(0, 8)
CopyCorner.Parent = CopyButton
local CopyStroke = Instance.new("UIStroke")
CopyStroke.Parent = CopyButton
CopyStroke.Color = Color3.fromRGB(100, 150, 255)
CopyStroke.Thickness = 1

-- Key Input Box
local KeyInput = Instance.new("TextBox")
KeyInput.Parent = KeyFrame
KeyInput.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
KeyInput.BorderSizePixel = 1
KeyInput.BorderColor3 = Color3.fromRGB(150, 0, 0)
KeyInput.Position = UDim2.new(0, 25, 0, 135)
KeyInput.Size = UDim2.new(0, 300, 0, 40)
KeyInput.Font = Enum.Font.Gotham
KeyInput.PlaceholderText = "Enter Key Here..."
KeyInput.Text = ""
KeyInput.TextColor3 = Color3.fromRGB(255, 255, 255)
KeyInput.TextSize = 15
KeyInput.ClearTextOnFocus = false
KeyInput.ZIndex = 2
local KeyInputCorner = Instance.new("UICorner")
KeyInputCorner.CornerRadius = UDim.new(0, 8)
KeyInputCorner.Parent = KeyInput

-- Submit Button
local SubmitButton = Instance.new("TextButton")
SubmitButton.Parent = KeyFrame
SubmitButton.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
SubmitButton.BorderSizePixel = 0
SubmitButton.Position = UDim2.new(0, 25, 0, 185)
SubmitButton.Size = UDim2.new(0, 300, 0, 45)
SubmitButton.Font = Enum.Font.GothamBold
SubmitButton.Text = "SUBMIT KEY"
SubmitButton.TextColor3 = Color3.fromRGB(255, 255, 255)
SubmitButton.TextSize = 16
SubmitButton.ZIndex = 2
local SubmitCorner = Instance.new("UICorner")
SubmitCorner.CornerRadius = UDim.new(0, 8)
SubmitCorner.Parent = SubmitButton
local SubmitStroke = Instance.new("UIStroke")
SubmitStroke.Parent = SubmitButton
SubmitStroke.Color = Color3.fromRGB(255, 0, 0)
SubmitStroke.Thickness = 1

-- Status Label
local StatusLabel = Instance.new("TextLabel")
StatusLabel.Parent = KeyFrame
StatusLabel.BackgroundTransparency = 1
StatusLabel.Position = UDim2.new(0, 25, 0, 235)
StatusLabel.Size = UDim2.new(0, 300, 0, 20)
StatusLabel.Font = Enum.Font.Gotham
StatusLabel.Text = ""
StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
StatusLabel.TextSize = 13
StatusLabel.ZIndex = 2

-- Main GUI Frame (Hidden initially)
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Parent = ScreenGui
MainFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
MainFrame.BorderSizePixel = 2
MainFrame.BorderColor3 = Color3.fromRGB(200, 0, 0)
MainFrame.Position = UDim2.new(0.05, 0, 0.6, 0)
MainFrame.Size = UDim2.new(0, 300, 0, 340)
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Visible = false
local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 12)
MainCorner.Parent = MainFrame

-- Animated gradient background for Main Frame
local MainBg = Instance.new("Frame")
MainBg.Name = "Background"
MainBg.Parent = MainFrame
MainBg.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
MainBg.BorderSizePixel = 0
MainBg.Size = UDim2.new(1, 0, 1, 0)
MainBg.ZIndex = 0
local MainBgCorner = Instance.new("UICorner")
MainBgCorner.CornerRadius = UDim.new(0, 12)
MainBgCorner.Parent = MainBg
local MainGradient = Instance.new("UIGradient")
MainGradient.Parent = MainBg
MainGradient.Color = ColorSequence.new{
    ColorSequenceKeypoint.new(0, Color3.fromRGB(30, 0, 0)),
    ColorSequenceKeypoint.new(0.5, Color3.fromRGB(10, 10, 10)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(50, 0, 0))
}
MainGradient.Rotation = 135

-- Animate main gradient rotation
task.spawn(function()
    while task.wait(0.05) do
        if MainGradient then
            MainGradient.Rotation = (MainGradient.Rotation + 1) % 360
        end
    end
end)

-- Main Title
local MainTitle = Instance.new("TextLabel")
MainTitle.Parent = MainFrame
MainTitle.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
MainTitle.BorderSizePixel = 0
MainTitle.Size = UDim2.new(1, 0, 0, 45)
MainTitle.Font = Enum.Font.GothamBold
MainTitle.Text = "HYPER HUB - FREEZE MACRO"
MainTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
MainTitle.TextSize = 18
MainTitle.ZIndex = 2
local MainTitleCorner = Instance.new("UICorner")
MainTitleCorner.CornerRadius = UDim.new(0, 12)
MainTitleCorner.Parent = MainTitle
local MainTitleStroke = Instance.new("UIStroke")
MainTitleStroke.Parent = MainTitle
MainTitleStroke.Color = Color3.fromRGB(255, 0, 0)
MainTitleStroke.Thickness = 1

-- Mode Selection Label
local ModeLabel = Instance.new("TextLabel")
ModeLabel.Parent = MainFrame
ModeLabel.BackgroundTransparency = 1
ModeLabel.Position = UDim2.new(0, 15, 0, 55)
ModeLabel.Size = UDim2.new(0, 270, 0, 20)
ModeLabel.Font = Enum.Font.GothamBold
ModeLabel.Text = "MODE SELECTION"
ModeLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
ModeLabel.TextSize = 13
ModeLabel.TextXAlignment = Enum.TextXAlignment.Left
ModeLabel.ZIndex = 2

-- Public Safe Button
local PublicSafeBtn = Instance.new("TextButton")
PublicSafeBtn.Parent = MainFrame
PublicSafeBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
PublicSafeBtn.BorderSizePixel = 0
PublicSafeBtn.Position = UDim2.new(0, 15, 0, 80)
PublicSafeBtn.Size = UDim2.new(0, 130, 0, 35)
PublicSafeBtn.Font = Enum.Font.GothamBold
PublicSafeBtn.Text = "Public Safe"
PublicSafeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
PublicSafeBtn.TextSize = 13
PublicSafeBtn.ZIndex = 2
local PublicSafeCorner = Instance.new("UICorner")
PublicSafeCorner.CornerRadius = UDim.new(0, 6)
PublicSafeCorner.Parent = PublicSafeBtn
local PublicSafeStroke = Instance.new("UIStroke")
PublicSafeStroke.Parent = PublicSafeBtn
PublicSafeStroke.Color = Color3.fromRGB(100, 255, 100)
PublicSafeStroke.Thickness = 2

-- Private Safe Button
local PrivateSafeBtn = Instance.new("TextButton")
PrivateSafeBtn.Parent = MainFrame
PrivateSafeBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
PrivateSafeBtn.BorderSizePixel = 1
PrivateSafeBtn.BorderColor3 = Color3.fromRGB(150, 0, 0)
PrivateSafeBtn.Position = UDim2.new(0, 155, 0, 80)
PrivateSafeBtn.Size = UDim2.new(0, 130, 0, 35)
PrivateSafeBtn.Font = Enum.Font.GothamBold
PrivateSafeBtn.Text = "Private Safe"
PrivateSafeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
PrivateSafeBtn.TextSize = 13
PrivateSafeBtn.ZIndex = 2
local PrivateSafeCorner = Instance.new("UICorner")
PrivateSafeCorner.CornerRadius = UDim.new(0, 6)
PrivateSafeCorner.Parent = PrivateSafeBtn

-- Freeze Info Label
local FreezeInfo = Instance.new("TextLabel")
FreezeInfo.Parent = MainFrame
FreezeInfo.BackgroundTransparency = 1
FreezeInfo.Position = UDim2.new(0, 15, 0, 125)
FreezeInfo.Size = UDim2.new(0, 270, 0, 25)
FreezeInfo.Font = Enum.Font.Gotham
FreezeInfo.Text = "Freeze Duration: " .. freezeTime .. " seconds"
FreezeInfo.TextColor3 = Color3.fromRGB(255, 255, 255)
FreezeInfo.TextSize = 11
FreezeInfo.TextXAlignment = Enum.TextXAlignment.Left
FreezeInfo.ZIndex = 2

-- Duration Slider Background
local SliderBg = Instance.new("Frame")
SliderBg.Parent = MainFrame
SliderBg.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
SliderBg.BorderSizePixel = 1
SliderBg.BorderColor3 = Color3.fromRGB(150, 0, 0)
SliderBg.Position = UDim2.new(0, 15, 0, 150)
SliderBg.Size = UDim2.new(0, 270, 0, 8)
SliderBg.ZIndex = 2
local SliderBgCorner = Instance.new("UICorner")
SliderBgCorner.CornerRadius = UDim.new(0, 4)
SliderBgCorner.Parent = SliderBg

-- Duration Slider Fill
local SliderFill = Instance.new("Frame")
SliderFill.Parent = SliderBg
SliderFill.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
SliderFill.BorderSizePixel = 0
SliderFill.Size = UDim2.new((freezeTime - minFreeze) / (maxFreeze - minFreeze), 0, 1, 0)
SliderFill.ZIndex = 3
local SliderFillCorner = Instance.new("UICorner")
SliderFillCorner.CornerRadius = UDim.new(0, 4)
SliderFillCorner.Parent = SliderFill

-- Duration Slider Button
local SliderBtn = Instance.new("TextButton")
SliderBtn.Parent = MainFrame
SliderBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
SliderBtn.BorderSizePixel = 2
SliderBtn.BorderColor3 = Color3.fromRGB(255, 255, 255)
SliderBtn.Position = UDim2.new(0, 15 + (270 * (freezeTime - minFreeze) / (maxFreeze - minFreeze)) - 10, 0, 146)
SliderBtn.Size = UDim2.new(0, 20, 0, 16)
SliderBtn.Text = ""
SliderBtn.ZIndex = 4
local SliderBtnCorner = Instance.new("UICorner")
SliderBtnCorner.CornerRadius = UDim.new(1, 0)
SliderBtnCorner.Parent = SliderBtn

-- Slider functionality
local dragging = false
SliderBtn.MouseButton1Down:Connect(function()
    dragging = true
end)
UIS.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = false
    end
end)
RunService.RenderStepped:Connect(function()
    if dragging then
        local mousePos = UIS:GetMouseLocation().X
        local sliderPos = SliderBg.AbsolutePosition.X
        local sliderSize = SliderBg.AbsoluteSize.X
        local relativePos = math.clamp(mousePos - sliderPos, 0, sliderSize)
        local percentage = relativePos / sliderSize
        freezeTime = minFreeze + (percentage * (maxFreeze - minFreeze))
        freezeTime = math.floor(freezeTime * 10) / 10 -- Round to 1 decimal
        -- Update UI
        SliderFill.Size = UDim2.new(percentage, 0, 1, 0)
        SliderBtn.Position = UDim2.new(0, 15 + (270 * percentage) - 10, 0, 146)
        FreezeInfo.Text = "Freeze Duration: " .. freezeTime .. " seconds"
    end
end)

-- Keybind Section Label
local KeybindLabel = Instance.new("TextLabel")
KeybindLabel.Parent = MainFrame
KeybindLabel.BackgroundTransparency = 1
KeybindLabel.Position = UDim2.new(0, 15, 0, 170)
KeybindLabel.Size = UDim2.new(0, 270, 0, 20)
KeybindLabel.Font = Enum.Font.GothamBold
KeybindLabel.Text = "KEYBIND SETTINGS"
KeybindLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
KeybindLabel.TextSize = 13
KeybindLabel.TextXAlignment = Enum.TextXAlignment.Left
KeybindLabel.ZIndex = 2

-- Current Keybind Display
local KeybindDisplay = Instance.new("TextLabel")
KeybindDisplay.Parent = MainFrame
KeybindDisplay.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
KeybindDisplay.BorderSizePixel = 1
KeybindDisplay.BorderColor3 = Color3.fromRGB(150, 0, 0)
KeybindDisplay.Position = UDim2.new(0, 15, 0, 195)
KeybindDisplay.Size = UDim2.new(0, 270, 0, 30)
KeybindDisplay.Font = Enum.Font.Gotham
KeybindDisplay.Text = "Keyboard: L"
KeybindDisplay.TextColor3 = Color3.fromRGB(255, 255, 255)
KeybindDisplay.TextSize = 12
KeybindDisplay.ZIndex = 2
local KeybindDisplayCorner = Instance.new("UICorner")
KeybindDisplayCorner.CornerRadius = UDim.new(0, 6)
KeybindDisplayCorner.Parent = KeybindDisplay

-- Set Keybind Button
local SetKeybindBtn = Instance.new("TextButton")
SetKeybindBtn.Parent = MainFrame
SetKeybindBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
SetKeybindBtn.BorderSizePixel = 1
SetKeybindBtn.BorderColor3 = Color3.fromRGB(150, 0, 0)
SetKeybindBtn.Position = UDim2.new(0, 15, 0, 230)
SetKeybindBtn.Size = UDim2.new(0, 130, 0, 35)
SetKeybindBtn.Font = Enum.Font.GothamBold
SetKeybindBtn.Text = "Set Keyboard"
SetKeybindBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
SetKeybindBtn.TextSize = 13
SetKeybindBtn.ZIndex = 2
local SetKeybindCorner = Instance.new("UICorner")
SetKeybindCorner.CornerRadius = UDim.new(0, 6)
SetKeybindCorner.Parent = SetKeybindBtn

-- Set Controller Bind Button
local SetControllerBtn = Instance.new("TextButton")
SetControllerBtn.Parent = MainFrame
SetControllerBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
SetControllerBtn.BorderSizePixel = 1
SetControllerBtn.BorderColor3 = Color3.fromRGB(150, 0, 0)
SetControllerBtn.Position = UDim2.new(0, 155, 0, 230)
SetControllerBtn.Size = UDim2.new(0, 130, 0, 35)
SetControllerBtn.Font = Enum.Font.GothamBold
SetControllerBtn.Text = "Set Controller"
SetControllerBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
SetControllerBtn.TextSize = 13
SetControllerBtn.ZIndex = 2
local SetControllerCorner = Instance.new("UICorner")
SetControllerCorner.CornerRadius = UDim.new(0, 6)
SetControllerCorner.Parent = SetControllerBtn

-- Freeze Button
local FreezeButton = Instance.new("TextButton")
FreezeButton.Parent = MainFrame
FreezeButton.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
FreezeButton.BorderSizePixel = 0
FreezeButton.Position = UDim2.new(0, 15, 0, 280)
FreezeButton.Size = UDim2.new(0, 270, 0, 50)
FreezeButton.Font = Enum.Font.GothamBold
FreezeButton.Text = "FREEZE"
FreezeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
FreezeButton.TextSize = 18
FreezeButton.ZIndex = 2
local FreezeCorner = Instance.new("UICorner")
FreezeCorner.CornerRadius = UDim.new(0, 10)
FreezeCorner.Parent = FreezeButton
local FreezeStroke = Instance.new("UIStroke")
FreezeStroke.Parent = FreezeButton
FreezeStroke.Color = Color3.fromRGB(255, 0, 0)
FreezeStroke.Thickness = 2

-- Close Button
local CloseBtn = Instance.new("TextButton")
CloseBtn.Parent = MainFrame
CloseBtn.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
CloseBtn.BorderSizePixel = 0
CloseBtn.Position = UDim2.new(1, -38, 0, 7)
CloseBtn.Size = UDim2.new(0, 30, 0, 30)
CloseBtn.Font = Enum.Font.GothamBold
CloseBtn.Text = "X"
CloseBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
CloseBtn.TextSize = 16
CloseBtn.ZIndex = 2
local CloseBtnCorner = Instance.new("UICorner")
CloseBtnCorner.CornerRadius = UDim.new(0, 6)
CloseBtnCorner.Parent = CloseBtn

-- Open Button
local OpenBtn = Instance.new("TextButton")
OpenBtn.Parent = ScreenGui
OpenBtn.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
OpenBtn.BorderSizePixel = 2
OpenBtn.BorderColor3 = Color3.fromRGB(255, 0, 0)
OpenBtn.Position = UDim2.new(0.05, 0, 0.8, 0)
OpenBtn.Size = UDim2.new(0, 70, 0, 70)
OpenBtn.Font = Enum.Font.GothamBold
OpenBtn.Text = "HYPER"
OpenBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
OpenBtn.TextSize = 14
OpenBtn.Visible = false
local OpenBtnCorner = Instance.new("UICorner")
OpenBtnCorner.CornerRadius = UDim.new(0, 12)
OpenBtnCorner.Parent = OpenBtn

-- Helper function to get key name
local function getKeyName(keyCode)
    local name = tostring(keyCode):gsub("Enum.KeyCode.", "")
    return name
end

-- Copy Discord Link Function
CopyButton.MouseButton1Click:Connect(function()
    -- Copy to clipboard
    if setclipboard then
        setclipboard("https://discord.gg/7pVN666a")
        CopyButton.Text = "COPIED!"
        CopyButton.BackgroundColor3 = Color3.fromRGB(50, 200, 50)
        task.wait(2)
        CopyButton.Text = "COPY"
        CopyButton.BackgroundColor3 = Color3.fromRGB(50, 100, 200)
    else
        CopyButton.Text = "NOT SUPPORTED"
        task.wait(2)
        CopyButton.Text = "COPY"
    end
end)

-- ENHANCED: PUBLIC SAFE MODE - 13x stronger freeze with anti-detection
local function doLagPublicSafe()
    if busy then return end
    busy = true
    -- Visual feedback
    FreezeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
    FreezeButton.Text = "FREEZING..."
    local start = tick()
    -- Use task.spawn to avoid blocking detection
    task.spawn(function()
        while tick() - start < freezeTime do
            -- EXTREMELY intensive computation chunks - 13x stronger
            for i = 1, 650000 do
                local _ = math.sqrt(i) * math.sin(i) * math.cos(i) * math.tan(i / 100) * math.log(i + 1) * math.abs(i)
            end
            -- Triple nested loops for extreme freeze
            for j = 1, 220 do
                for k = 1, 2200 do
                    local _ = math.pow(j, k % 10) * math.log(k + 1) * math.exp(j / 150) * math.sqrt(k)
                end
            end
            -- Heavy string operations for extra load
            for m = 1, 12000 do
                local _ = string.rep("lag", m % 180)
            end
            -- Additional table operations with heavy computation
            for n = 1, 6000 do
                local tbl = {}
                for o = 1, n % 60 do
                    table.insert(tbl, o * math.random() * math.sin(o))
                end
            end
            task.wait() -- Yield to prevent detection
        end
        -- Reset button
        task.wait(0.5)
        FreezeButton.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
        FreezeButton.Text = "FREEZE"
        busy = false
    end)
end

-- ENHANCED: PRIVATE SAFE MODE - 17x stronger for private servers ONLY
local function doLagPrivateSafe()
    if busy then return end
    
    -- CHECK IF IN PUBLIC SERVER - KICK IF TRUE
    local maxPlayers = game:GetService("Players").MaxPlayers
    local currentPlayers = #game:GetService("Players"):GetPlayers()
    
    -- If max players is high (public server indicators)
    if maxPlayers >= 10 or currentPlayers >= 6 then
        -- Create kick notification
        local kickNotif = Instance.new("ScreenGui")
        kickNotif.Parent = Player:WaitForChild("PlayerGui")
        
        local kickFrame = Instance.new("Frame")
        kickFrame.Parent = kickNotif
        kickFrame.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
        kickFrame.BorderSizePixel = 3
        kickFrame.BorderColor3 = Color3.fromRGB(255, 0, 0)
        kickFrame.Position = UDim2.new(0.5, -250, 0.5, -100)
        kickFrame.Size = UDim2.new(0, 500, 0, 200)
        
        local kickCorner = Instance.new("UICorner")
        kickCorner.CornerRadius = UDim.new(0, 15)
        kickCorner.Parent = kickFrame
        
        local kickTitle = Instance.new("TextLabel")
        kickTitle.Parent = kickFrame
        kickTitle.BackgroundTransparency = 1
        kickTitle.Size = UDim2.new(1, 0, 0, 60)
        kickTitle.Font = Enum.Font.GothamBold
        kickTitle.Text = "⚠️ PRIVATE SAFE MODE ERROR ⚠️"
        kickTitle.TextColor3 = Color3.fromRGB(255, 255, 0)
        kickTitle.TextSize = 22
        
        local kickMessage = Instance.new("TextLabel")
        kickMessage.Parent = kickFrame
        kickMessage.BackgroundTransparency = 1
        kickMessage.Position = UDim2.new(0, 20, 0, 70)
        kickMessage.Size = UDim2.new(1, -40, 1, -90)
        kickMessage.Font = Enum.Font.Gotham
        kickMessage.Text = "You attempted to use PRIVATE SAFE mode in a PUBLIC SERVER!\n\nThis mode is ONLY for private servers to prevent detection and bans.\n\nPlease use PUBLIC SAFE mode instead.\n\nKicking you for your safety..."
        kickMessage.TextColor3 = Color3.fromRGB(255, 255, 255)
        kickMessage.TextSize = 16
        kickMessage.TextWrapped = true
        kickMessage.TextYAlignment = Enum.TextYAlignment.Top
        
        task.wait(5)
        
        -- Kick the player
        Player:Kick("\n⚠️ HYPER HUB - SAFETY KICK ⚠️\n\nYou used PRIVATE SAFE mode in a PUBLIC SERVER!\n\nPrivate Safe mode is EXTREMELY powerful and will get you\ndetected/banned in public servers.\n\nPlease use PUBLIC SAFE mode for public servers.\n\nRejoin and use the correct mode for your safety!")
        return
    end
    
    busy = true
    -- Visual feedback
    FreezeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
    FreezeButton.Text = "FREEZING..."
    local start = tick()
    -- Use task.spawn to avoid detection
    task.spawn(function()
        while tick() - start < freezeTime do
            -- MAXIMUM intensive computation for private servers - 17x stronger
            for i = 1, 850000 do
                local _ = math.sqrt(i) * math.sin(i) * math.cos(i) * math.tan(i / 50) * math.log(i + 1) * math.exp(i / 100000) * math.abs(i)
            end
            -- Quintuple nested loops for absolute maximum freeze
            for j = 1, 280 do
                for k = 1, 2800 do
                    local _ = math.pow(j, k % 15) * math.log(k + 1) * math.exp(j / 80) * math.sin(k) * math.cos(j)
                end
            end
            -- Extreme string and table operations
            for m = 1, 18000 do
                local _ = string.rep("freeze", m % 250)
                local tbl = {}
                for n = 1, m % 180 do
                    table.insert(tbl, n * math.random() * math.sqrt(n) * math.log(n + 1))
                end
            end
            -- Additional heavy computation layers
            for p = 1, 12000 do
                local result = 0
                for q = 1, p % 120 do
                    result = result + math.pow(q, 2) * math.log(q + 1) * math.sqrt(q)
                end
            end
            -- Extra string manipulation layer
            for r = 1, 8000 do
                local _ = string.upper(string.rep("max", r % 100))
            end
            task.wait()
        end
        task.wait(1)
        -- Reset button
        FreezeButton.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
        FreezeButton.Text = "FREEZE"
        busy = false
    end)
end

-- Main Lag Function that switches based on mode
local function doLag()
    if currentMode == "Public Safe" then
        doLagPublicSafe()
    else
        doLagPrivateSafe()
    end
end

-- Mode Selection Logic
PublicSafeBtn.MouseButton1Click:Connect(function()
    currentMode = "Public Safe"
    -- Update button visuals
    PublicSafeBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
    PublicSafeBtn.BorderSizePixel = 0
    PublicSafeStroke.Thickness = 2
    PrivateSafeBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
    PrivateSafeBtn.BorderSizePixel = 1
    if PrivateSafeStroke then PrivateSafeStroke:Destroy() end
    -- Notification
    FreezeInfo.Text = "Mode: Public Safe (Enhanced) | " .. freezeTime .. "s"
    task.wait(2)
    FreezeInfo.Text = "Freeze Duration: " .. freezeTime .. " seconds"
end)

PrivateSafeBtn.MouseButton1Click:Connect(function()
    currentMode = "Private Safe"
    -- Update button visuals
    PrivateSafeBtn.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
    PrivateSafeBtn.BorderSizePixel = 0
    local PrivateSafeStroke = Instance.new("UIStroke")
    PrivateSafeStroke.Parent = PrivateSafeBtn
    PrivateSafeStroke.Color = Color3.fromRGB(100, 255, 100)
    PrivateSafeStroke.Thickness = 2
    PublicSafeBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
    PublicSafeBtn.BorderSizePixel = 1
    PublicSafeStroke.Thickness = 0
    -- Notification
    FreezeInfo.Text = "Mode: Private Safe (Max) | " .. freezeTime .. "s"
    task.wait(2)
    FreezeInfo.Text = "Freeze Duration: " .. freezeTime .. " seconds"
end)

-- Key System Logic
SubmitButton.MouseButton1Click:Connect(function()
    local enteredKey = KeyInput.Text
    if enteredKey == CORRECT_KEY then
        StatusLabel.Text = "Correct Key!"
        StatusLabel.TextColor3 = Color3.fromRGB(100, 255, 100)
        task.wait(1)
        -- Hide key frame, show main GUI
        KeyFrame:TweenPosition(UDim2.new(0.5, -175, -0.5, 0), "In", "Quad", 0.5, true)
        task.wait(0.5)
        KeyFrame.Visible = false
        MainFrame.Visible = true
        MainFrame:TweenPosition(UDim2.new(0.05, 0, 0.6, 0), "Out", "Back", 0.5, true)
        keyEntered = true
    else
        StatusLabel.Text = "Incorrect Key!"
        StatusLabel.TextColor3 = Color3.fromRGB(255, 100, 100)
        -- Shake effect
        local originalPos = KeyFrame.Position
        for i = 1, 3 do
            KeyFrame.Position = originalPos + UDim2.new(0, 10, 0, 0)
            task.wait(0.05)
            KeyFrame.Position = originalPos - UDim2.new(0, 10, 0, 0)
            task.wait(0.05)
        end
        KeyFrame.Position = originalPos
    end
end)

-- Set Keyboard Keybind
SetKeybindBtn.MouseButton1Click:Connect(function()
    if isSettingKeybind then return end
    isSettingKeybind = true
    SetKeybindBtn.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
    SetKeybindBtn.Text = "Press any key..."
    KeybindDisplay.Text = "Waiting for input..."
    local connection
    connection = UIS.InputBegan:Connect(function(input, processed)
        if processed then return end
        if input.UserInputType == Enum.UserInputType.Keyboard then
            currentKeybind = input.KeyCode
            KeybindDisplay.Text = "Keyboard: " .. getKeyName(currentKeybind)
            SetKeybindBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
            SetKeybindBtn.Text = "Set Keyboard"
            isSettingKeybind = false
            connection:Disconnect()
        end
    end)
end)

-- Set Controller Bind
SetControllerBtn.MouseButton1Click:Connect(function()
    if isSettingControllerBind then return end
    isSettingControllerBind = true
    SetControllerBtn.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
    SetControllerBtn.Text = "Press button..."
    KeybindDisplay.Text = "Waiting for controller..."
    local connection
    connection = UIS.InputBegan:Connect(function(input, processed)
        if processed then return end
        if input.UserInputType == Enum.UserInputType.Gamepad1 then
            currentControllerBind = input.KeyCode
            KeybindDisplay.Text = "Controller: " .. getKeyName(currentControllerBind)
            SetControllerBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
            SetControllerBtn.Text = "Set Controller"
            isSettingControllerBind = false
            connection:Disconnect()
        end
    end)
end)

-- Freeze Button Click
FreezeButton.MouseButton1Click:Connect(function()
    if keyEntered then
        doLag()
    end
end)

-- Input Detection for Custom Keybinds
_G.LagControl = UIS.InputBegan:Connect(function(Input, Processed)
    if Processed then return end
    if not keyEntered then return end
    -- Check keyboard bind
    if Input.KeyCode == currentKeybind and Input.UserInputType == Enum.UserInputType.Keyboard then
        doLag()
    end
    -- Check controller bind
    if Input.KeyCode == currentControllerBind and Input.UserInputType == Enum.UserInputType.Gamepad1 then
        doLag()
    end
end)

-- Close/Open Buttons
CloseBtn.MouseButton1Click:Connect(function()
    MainFrame.Visible = false
    OpenBtn.Visible = true
end)

OpenBtn.MouseButton1Click:Connect(function()
    MainFrame.Visible = true
    OpenBtn.Visible = false
end)

-- Initial notification
task.spawn(function()
    local notif = Instance.new("TextLabel")
    notif.Parent = ScreenGui
    notif.BackgroundColor3 = Color3.fromRGB(180, 0, 0)
    notif.BorderSizePixel = 2
    notif.BorderColor3 = Color3.fromRGB(255, 0, 0)
    notif.Position = UDim2.new(0.5, -150, 0, -60)
    notif.Size = UDim2.new(0, 300, 0, 50)
    notif.Font = Enum.Font.GothamBold
    notif.Text = "Hyper Hub Loaded - Enhanced Freeze"
    notif.TextColor3 = Color3.fromRGB(255, 255, 255)
    notif.TextSize = 16
    local notifCorner = Instance.new("UICorner")
    notifCorner.CornerRadius = UDim.new(0, 10)
    notifCorner.Parent = notif
    local notifStroke = Instance.new("UIStroke")
    notifStroke.Parent = notif
    notifStroke.Color = Color3.fromRGB(255, 0, 0)
    notifStroke.Thickness = 1
    notif:TweenPosition(UDim2.new(0.5, -150, 0, 20), "Out", "Quad", 0.5, true)
    task.wait(3)
    notif:TweenPosition(UDim2.new(0.5, -150, 0, -60), "In", "Quad", 0.5, true)
    task.wait(0.5)
    notif:Destroy()
end)

print("Hyper Hub - ENHANCED Freeze Macro Loaded! (Public: 13x | Private: 17x Stronger + Safety Check)")

Features & Information

freeze macro and qba

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts