Sc

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local MarketplaceService = game:GetService("MarketplaceService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Lighting = game:GetService("Lighting")

local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

local GameName = "Unknown"
local success, result = pcall(function()
    return MarketplaceService:GetProductInfo(game.PlaceId).Name
end)
if success and result then
    GameName = result
end

local Settings = {
    ESP = false,
    AimAssist = false,
    AimPart = "Head",
    AimStrength = 0.08,
    AimFOV = 150,
    InfiniteAmmo = false,
    Noclip = false,
    WalkSpeed = 16,
    AutoKill = false,
    AutoKillRange = 50,
    TriggerBot = false,
    Wallbang = false,
    AutoCreateRoom = false,
    RoomName = LocalPlayer.Name,
    SelectedMap = "BURNING HALL",
    KebakUnlimited = false,
    NoSpread = false,
    InstantReload = false,
    RapidFire = false,
    DamageMultiplier = 1,
    CurrentTeam = "blue"
}

local gui = Instance.new("ScreenGui", game.CoreGui)
gui.Name = "PeexHubsV3"
gui.ResetOnSpawn = false
gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

local guiScale = 0.75
local baseSize = Vector2.new(520, 380)
local scaledSize = baseSize * guiScale

local main = Instance.new("Frame", gui)
main.Size = UDim2.new(0, scaledSize.X, 0, scaledSize.Y)
main.Position = UDim2.new(0.5, -scaledSize.X/2, 0.5, -scaledSize.Y/2)
main.BackgroundColor3 = Color3.fromRGB(5, 5, 8)
main.BorderSizePixel = 0
main.ClipsDescendants = true
main.Active = true

local mainCorner = Instance.new("UICorner", main)
mainCorner.CornerRadius = UDim.new(0, 16)

local glassBlur = Instance.new("BlurEffect", Lighting)
glassBlur.Size = 0

local blurFrame = Instance.new("Frame", main)
blurFrame.Size = UDim2.new(1, 20, 1, 20)
blurFrame.Position = UDim2.new(0, -10, 0, -10)
blurFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 15)
blurFrame.BackgroundTransparency = 0.15
blurFrame.BorderSizePixel = 0

local blurCorner = Instance.new("UICorner", blurFrame)
blurCorner.CornerRadius = UDim.new(0, 20)

local borderFrame = Instance.new("Frame", main)
borderFrame.Size = UDim2.new(1, 4, 1, 4)
borderFrame.Position = UDim2.new(0, -2, 0, -2)
borderFrame.BackgroundTransparency = 1
borderFrame.ZIndex = 0

local borderStroke = Instance.new("UIStroke", borderFrame)
borderStroke.Color = Color3.fromRGB(0, 150, 255)
borderStroke.Thickness = 2
borderStroke.Transparency = 0.5

spawn(function()
    while main.Parent do
        for i = 0, 1, 0.02 do
            borderStroke.Color = Color3.fromHSV(i, 0.8, 1)
            wait(0.05)
        end
    end
end)

local particleFolder = Instance.new("Folder", main)

spawn(function()
    while main.Parent do
        local particle = Instance.new("Frame", particleFolder)
        particle.Size = UDim2.new(0, math.random(2, 4), 0, math.random(2, 4))
        particle.Position = UDim2.new(math.random(), 0, 1.1, 0)
        particle.BackgroundColor3 = Color3.fromRGB(0, 200, 255)
        particle.BackgroundTransparency = 0.6
        particle.BorderSizePixel = 0
        
        local particleCorner = Instance.new("UICorner", particle)
        particleCorner.CornerRadius = UDim.new(1, 0)
        
        local duration = math.random(3, 6)
        TweenService:Create(particle, TweenInfo.new(duration, Enum.EasingStyle.Linear), {
            Position = UDim2.new(particle.Position.X.Scale, 0, -0.1, 0),
            BackgroundTransparency = 1
        }):Play()
        
        game:GetService("Debris"):AddItem(particle, duration)
        wait(math.random(0.1, 0.3))
    end
end)

local lightningFolder = Instance.new("Folder", main)

spawn(function()
    while main.Parent do
        if math.random(1, 3) == 1 then
            local bolt = Instance.new("Frame", lightningFolder)
            bolt.Size = UDim2.new(0, 1, 0, math.random(30, 80))
            bolt.Position = UDim2.new(math.random(), 0, math.random(), 0)
            bolt.BackgroundColor3 = Color3.fromRGB(0, 255, 255)
            bolt.BorderSizePixel = 0
            bolt.ZIndex = 1
            
            local glow = Instance.new("ImageLabel", bolt)
            glow.Size = UDim2.new(5, 0, 1, 0)
            glow.Position = UDim2.new(-2, 0, 0, 0)
            glow.BackgroundTransparency = 1
            glow.Image = "rbxassetid://10849925846"
            glow.ImageColor3 = Color3.fromRGB(0, 255, 255)
            glow.ImageTransparency = 0.7
            
            TweenService:Create(bolt, TweenInfo.new(0.1), {BackgroundTransparency = 0}):Play()
            wait(0.05)
            TweenService:Create(bolt, TweenInfo.new(0.15), {BackgroundTransparency = 1}):Play()
            game:GetService("Debris"):AddItem(bolt, 0.2)
        end
        wait(math.random(0.2, 0.8))
    end
end)

local titleBar = Instance.new("Frame", main)
titleBar.Size = UDim2.new(1, 0, 0, 36 * guiScale)
titleBar.BackgroundColor3 = Color3.fromRGB(8, 8, 12)
titleBar.BorderSizePixel = 0
titleBar.ZIndex = 10

local titleCorner = Instance.new("UICorner", titleBar)
titleCorner.CornerRadius = UDim.new(0, 16)

local titleGlow = Instance.new("Frame", titleBar)
titleGlow.Size = UDim2.new(1, 0, 0, 1)
titleGlow.Position = UDim2.new(0, 0, 1, 0)
titleGlow.BackgroundColor3 = Color3.fromRGB(0, 200, 255)
titleGlow.BorderSizePixel = 0
titleGlow.ZIndex = 10

spawn(function()
    while titleBar.Parent do
        TweenService:Create(titleGlow, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
            BackgroundColor3 = Color3.fromRGB(100, 0, 255)
        }):Play()
        wait(1)
        TweenService:Create(titleGlow, TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut), {
            BackgroundColor3 = Color3.fromRGB(0, 200, 255)
        }):Play()
        wait(1)
    end
end)

local titleText = Instance.new("TextLabel", titleBar)
titleText.Size = UDim2.new(1, -100 * guiScale, 1, 0)
titleText.Position = UDim2.new(0, 12 * guiScale, 0, 0)
titleText.BackgroundTransparency = 1
titleText.Text = "PeexHubs | PointBlox | " .. GameName
titleText.TextColor3 = Color3.fromRGB(255, 255, 255)
titleText.TextSize = 13 * guiScale
titleText.Font = Enum.Font.GothamBold
titleText.TextXAlignment = Enum.TextXAlignment.Left
titleText.ZIndex = 10

local shimmer = Instance.new("Frame", titleText)
shimmer.Size = UDim2.new(0.3, 0, 1, 0)
shimmer.Position = UDim2.new(-0.3, 0, 0, 0)
shimmer.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
shimmer.BackgroundTransparency = 0.9
shimmer.BorderSizePixel = 0
shimmer.ZIndex = 11

spawn(function()
    while titleText.Parent do
        shimmer.Position = UDim2.new(-0.3, 0, 0, 0)
        TweenService:Create(shimmer, TweenInfo.new(1.5, Enum.EasingStyle.Quad), {
            Position = UDim2.new(1.3, 0, 0, 0)
        }):Play()
        wait(3)
    end
end)

local function createModernButton(parent, text, pos, color, size)
    local btn = Instance.new("TextButton", parent)
    btn.Size = size or UDim2.new(0, 28 * guiScale, 0, 28 * guiScale)
    btn.Position = pos
    btn.BackgroundColor3 = color
    btn.Text = text
    btn.TextColor3 = Color3.new(1, 1, 1)
    btn.Font = Enum.Font.GothamBold
    btn.TextSize = 14 * guiScale
    btn.AutoButtonColor = false
    btn.ZIndex = 10
    
    local btnCorner = Instance.new("UICorner", btn)
    btnCorner.CornerRadius = UDim.new(0, 8)
    
    local glow = Instance.new("ImageLabel", btn)
    glow.Size = UDim2.new(1.5, 0, 1.5, 0)
    glow.Position = UDim2.new(-0.25, 0, -0.25, 0)
    glow.BackgroundTransparency = 1
    glow.Image = "rbxassetid://10849925846"
    glow.ImageColor3 = color
    glow.ImageTransparency = 1
    glow.ZIndex = 9
    
    btn.MouseEnter:Connect(function()
        TweenService:Create(btn, TweenInfo.new(0.2), {BackgroundColor3 = color:Lerp(Color3.new(1, 1, 1), 0.2)}):Play()
        TweenService:Create(glow, TweenInfo.new(0.2), {ImageTransparency = 0.7}):Play()
        TweenService:Create(btn, TweenInfo.new(0.2), {Size = btn.Size + UDim2.new(0, 4, 0, 4)}):Play()
    end)
    
    btn.MouseLeave:Connect(function()
        TweenService:Create(btn, TweenInfo.new(0.2), {BackgroundColor3 = color}):Play()
        TweenService:Create(glow, TweenInfo.new(0.2), {ImageTransparency = 1}):Play()
        TweenService:Create(btn, TweenInfo.new(0.2), {Size = size or UDim2.new(0, 28 * guiScale, 0, 28 * guiScale)}):Play()
    end)
    
    return btn
end

local closeBtn = createModernButton(titleBar, "X", UDim2.new(1, -34 * guiScale, 0, 4 * guiScale), Color3.fromRGB(220, 50, 50))
local minBtn = createModernButton(titleBar, "-", UDim2.new(1, -68 * guiScale, 0, 4 * guiScale), Color3.fromRGB(60, 60, 70))
local scaleBtn = createModernButton(titleBar, "[]", UDim2.new(1, -102 * guiScale, 0, 4 * guiScale), Color3.fromRGB(0, 120, 200), UDim2.new(0, 26 * guiScale, 0, 26 * guiScale))
scaleBtn.TextSize = 11 * guiScale

local sidebar = Instance.new("Frame", main)
sidebar.Size = UDim2.new(0, 90 * guiScale, 1, -36 * guiScale)
sidebar.Position = UDim2.new(0, 0, 0, 36 * guiScale)
sidebar.BackgroundColor3 = Color3.fromRGB(6, 6, 10)
sidebar.BorderSizePixel = 0
sidebar.ZIndex = 5

local sidebarGrad = Instance.new("UIGradient", sidebar)
sidebarGrad.Color = ColorSequence.new({
    ColorSequenceKeypoint.new(0, Color3.fromRGB(6, 6, 10)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(10, 10, 18))
})
sidebarGrad.Rotation = 90

local contentArea = Instance.new("Frame", main)
contentArea.Size = UDim2.new(1, -90 * guiScale, 1, -36 * guiScale)
contentArea.Position = UDim2.new(0, 90 * guiScale, 0, 36 * guiScale)
contentArea.BackgroundTransparency = 1
contentArea.ZIndex = 5

local tabs = {}
local currentTab = "Home"

local function createTab(name, order)
    local btn = Instance.new("TextButton", sidebar)
    btn.Size = UDim2.new(1, -8 * guiScale, 0, 32 * guiScale)
    btn.Position = UDim2.new(0, 4 * guiScale, 0, (10 + (order * 36)) * guiScale)
    btn.BackgroundColor3 = name == "Home" and Color3.fromRGB(0, 100, 200) or Color3.fromRGB(20, 20, 30)
    btn.Text = name
    btn.TextColor3 = Color3.new(1, 1, 1)
    btn.Font = Enum.Font.GothamSemibold
    btn.TextSize = 11 * guiScale
    btn.Name = name
    btn.AutoButtonColor = false
    btn.ZIndex = 6
    
    local btnCorner = Instance.new("UICorner", btn)
    btnCorner.CornerRadius = UDim.new(0, 8)
    
    local indicator = Instance.new("Frame", btn)
    indicator.Size = UDim2.new(0, 3 * guiScale, 0.6, 0)
    indicator.Position = UDim2.new(0, 0, 0.2, 0)
    indicator.BackgroundColor3 = Color3.fromRGB(0, 255, 255)
    indicator.BorderSizePixel = 0
    indicator.Visible = name == "Home"
    
    btn.MouseEnter:Connect(function()
        if currentTab ~= name then
            TweenService:Create(btn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(30, 30, 45)}):Play()
        end
    end)
    
    btn.MouseLeave:Connect(function()
        if currentTab ~= name then
            TweenService:Create(btn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(20, 20, 30)}):Play()
        end
    end)
    
    local frame = Instance.new("ScrollingFrame", contentArea)
    frame.Size = UDim2.new(1, -8 * guiScale, 1, -8 * guiScale)
    frame.Position = UDim2.new(0, 4 * guiScale, 0, 4 * guiScale)
    frame.BackgroundTransparency = 1
    frame.ScrollBarThickness = 3
    frame.ScrollBarImageColor3 = Color3.fromRGB(0, 200, 255)
    frame.Visible = name == "Home"
    frame.AutomaticCanvasSize = Enum.AutomaticSize.Y
    frame.ZIndex = 5
    
    local layout = Instance.new("UIListLayout", frame)
    layout.Padding = UDim.new(0, 8 * guiScale)
    layout.SortOrder = Enum.SortOrder.LayoutOrder
    
    tabs[name] = {Button = btn, Frame = frame, Indicator = indicator}
    
    btn.MouseButton1Click:Connect(function()
        for n, t in pairs(tabs) do
            t.Frame.Visible = false
            t.Button.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
            t.Indicator.Visible = false
        end
        
        frame.Visible = true
        btn.BackgroundColor3 = Color3.fromRGB(0, 100, 200)
        indicator.Visible = true
        
        btn.Size = UDim2.new(1, -4 * guiScale, 0, 32 * guiScale)
        TweenService:Create(btn, TweenInfo.new(0.15, Enum.EasingStyle.Back), {
            Size = UDim2.new(1, -8 * guiScale, 0, 32 * guiScale)
        }):Play()
        
        currentTab = name
    end)
    
    return frame
end

local homeTab = createTab("Home", 0)
local farmTab = createTab("Farm", 1)
local roomTab = createTab("Room", 2)
local teamTab = createTab("Team", 3)
local miscTab = createTab("Misc", 4)
local settingsTab = createTab("Settings", 5)

local function createModernToggle(parent, name, layoutOrder, callback)
    local container = Instance.new("Frame", parent)
    container.Size = UDim2.new(1, 0, 0, 48 * guiScale)
    container.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
    container.LayoutOrder = layoutOrder
    container.BorderSizePixel = 0
    
    local containerCorner = Instance.new("UICorner", container)
    containerCorner.CornerRadius = UDim.new(0, 10)
    
    local glow = Instance.new("ImageLabel", container)
    glow.Size = UDim2.new(1, 6, 1, 6)
    glow.Position = UDim2.new(0, -3, 0, -3)
    glow.BackgroundTransparency = 1
    glow.Image = "rbxassetid://10849925846"
    glow.ImageColor3 = Color3.fromRGB(0, 150, 255)
    glow.ImageTransparency = 0.95
    
    local label = Instance.new("TextLabel", container)
    label.Size = UDim2.new(0.5, 0, 1, 0)
    label.Position = UDim2.new(0, 12 * guiScale, 0, 0)
    label.BackgroundTransparency = 1
    label.Text = name
    label.TextColor3 = Color3.new(1, 1, 1)
    label.Font = Enum.Font.GothamSemibold
    label.TextSize = 11 * guiScale
    label.TextXAlignment = Enum.TextXAlignment.Left
    
    local toggleBg = Instance.new("Frame", container)
    toggleBg.Size = UDim2.new(0, 48 * guiScale, 0, 24 * guiScale)
    toggleBg.Position = UDim2.new(1, -60 * guiScale, 0.5, -12 * guiScale)
    toggleBg.BackgroundColor3 = Color3.fromRGB(40, 40, 50)
    toggleBg.BorderSizePixel = 0
    
    local toggleCorner = Instance.new("UICorner", toggleBg)
    toggleCorner.CornerRadius = UDim.new(1, 0)
    
    local toggleGrad = Instance.new("UIGradient", toggleBg)
    toggleGrad.Color = ColorSequence.new({
        ColorSequenceKeypoint.new(0, Color3.fromRGB(40, 40, 50)),
        ColorSequenceKeypoint.new(1, Color3.fromRGB(30, 30, 40))
    })
    
    local circle = Instance.new("Frame", toggleBg)
    circle.Size = UDim2.new(0, 20 * guiScale, 0, 20 * guiScale)
    circle.Position = UDim2.new(0, 2 * guiScale, 0.5, -10 * guiScale)
    circle.BackgroundColor3 = Color3.new(1, 1, 1)
    circle.BorderSizePixel = 0
    
    local circleCorner = Instance.new("UICorner", circle)
    circleCorner.CornerRadius = UDim.new(1, 0)
    
    local circleGlow = Instance.new("ImageLabel", circle)
    circleGlow.Size = UDim2.new(2, 0, 2, 0)
    circleGlow.Position = UDim2.new(-0.5, 0, -0.5, 0)
    circleGlow.BackgroundTransparency = 1
    circleGlow.Image = "rbxassetid://10849925846"
    circleGlow.ImageColor3 = Color3.new(1, 1, 1)
    circleGlow.ImageTransparency = 0.8
    
    local clickArea = Instance.new("TextButton", container)
    clickArea.Size = UDim2.new(1, 0, 1, 0)
    clickArea.BackgroundTransparency = 1
    clickArea.Text = ""
    
    local state = false
    
    local function updateToggle()
        if state then
            TweenService:Create(toggleBg, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {
                BackgroundColor3 = Color3.fromRGB(0, 180, 100)
            }):Play()
            TweenService:Create(circle, TweenInfo.new(0.3, Enum.EasingStyle.Back), {
                Position = UDim2.new(0, 26 * guiScale, 0.5, -10 * guiScale)
            }):Play()
            TweenService:Create(glow, TweenInfo.new(0.3), {
                ImageColor3 = Color3.fromRGB(0, 255, 100),
                ImageTransparency = 0.8
            }):Play()
        else
            TweenService:Create(toggleBg, TweenInfo.new(0.3, Enum.EasingStyle.Quad), {
                BackgroundColor3 = Color3.fromRGB(40, 40, 50)
            }):Play()
            TweenService:Create(circle, TweenInfo.new(0.3, Enum.EasingStyle.Back), {
                Position = UDim2.new(0, 2 * guiScale, 0.5, -10 * guiScale)
            }):Play()
            TweenService:Create(glow, TweenInfo.new(0.3), {
                ImageColor3 = Color3.fromRGB(0, 150, 255),
                ImageTransparency = 0.95
            }):Play()
        end
        callback(state)
    end
    
    clickArea.MouseButton1Click:Connect(function()
        state = not state
        updateToggle()
    end)
    
    return container
end

local function createModernSlider(parent, name, min, max, default, layoutOrder, callback)
    local container = Instance.new("Frame", parent)
    container.Size = UDim2.new(1, 0, 0, 60 * guiScale)
    container.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
    container.LayoutOrder = layoutOrder
    container.BorderSizePixel = 0
    
    local containerCorner = Instance.new("UICorner", container)
    containerCorner.CornerRadius = UDim.new(0, 10)
    
    local glow = Instance.new("ImageLabel", container)
    glow.Size = UDim2.new(1, 6, 1, 6)
    glow.Position = UDim2.new(0, -3, 0, -3)
    glow.BackgroundTransparency = 1
    glow.Image = "rbxassetid://10849925846"
    glow.ImageColor3 = Color3.fromRGB(0, 150, 255)
    glow.ImageTransparency = 0.95
    
    local label = Instance.new("TextLabel", container)
    label.Size = UDim2.new(1, -20 * guiScale, 0, 22 * guiScale)
    label.Position = UDim2.new(0, 10 * guiScale, 0, 6 * guiScale)
    label.BackgroundTransparency = 1
    label.Text = name .. ": " .. default
    label.TextColor3 = Color3.new(1, 1, 1)
    label.Font = Enum.Font.GothamSemibold
    label.TextSize = 10 * guiScale
    label.TextXAlignment = Enum.TextXAlignment.Left
    
    local track = Instance.new("Frame", container)
    track.Size = UDim2.new(1, -24 * guiScale, 0, 6 * guiScale)
    track.Position = UDim2.new(0, 12 * guiScale, 0, 40 * guiScale)
    track.BackgroundColor3 = Color3.fromRGB(25, 25, 35)
    track.BorderSizePixel = 0
    
    local trackCorner = Instance.new("UICorner", track)
    trackCorner.CornerRadius = UDim.new(1, 0)
    
    local fillPercent = (default - min) / (max - min)
    local fill = Instance.new("Frame", track)
    fill.Size = UDim2.new(fillPercent, 0, 1, 0)
    fill.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
    fill.BorderSizePixel = 0
    
    local fillGrad = Instance.new("UIGradient", fill)
    fillGrad.Color = ColorSequence.new({
        ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 200, 255)),
        ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 100, 255))
    })
    
    local fillCorner = Instance.new("UICorner", fill)
    fillCorner.CornerRadius = UDim.new(1, 0)
    
    local knob = Instance.new("Frame", track)
    knob.Size = UDim2.new(0, 16 * guiScale, 0, 16 * guiScale)
    knob.Position = UDim2.new(fillPercent, -8 * guiScale, 0.5, -8 * guiScale)
    knob.BackgroundColor3 = Color3.new(1, 1, 1)
    knob.BorderSizePixel = 0
    knob.ZIndex = 5
    
    local knobCorner = Instance.new("UICorner", knob)
    knobCorner.CornerRadius = UDim.new(1, 0)
    
    local knobGlow = Instance.new("ImageLabel", knob)
    knobGlow.Size = UDim2.new(3, 0, 3, 0)
    knobGlow.Position = UDim2.new(-1, 0, -1, 0)
    knobGlow.BackgroundTransparency = 1
    knobGlow.Image = "rbxassetid://10849925846"
    knobGlow.ImageColor3 = Color3.fromRGB(0, 200, 255)
    knobGlow.ImageTransparency = 0.6
    
    local isDragging = false
    
    local function updateSlider(input)
        local trackPos = track.AbsolutePosition.X
        local trackWidth = track.AbsoluteSize.X
        local mouseX = input.Position.X
        
        local percent = math.clamp((mouseX - trackPos) / trackWidth, 0, 1)
        local value = min + (max - min) * percent
        
        fill.Size = UDim2.new(percent, 0, 1, 0)
        knob.Position = UDim2.new(percent, -8 * guiScale, 0.5, -8 * guiScale)
        
        if max - min > 10 then
            value = math.floor(value)
        else
            value = math.floor(value * 100) / 100
        end
        
        label.Text = name .. ": " .. value
        callback(value)
    end
    
    knob.InputBegan:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
            isDragging = true
            TweenService:Create(knob, TweenInfo.new(0.1), {Size = UDim2.new(0, 20 * guiScale, 0, 20 * guiScale)}):Play()
        end
    end)
    
    track.InputBegan:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
            isDragging = true
            updateSlider(input)
        end
    end)
    
    UIS.InputChanged:Connect(function(input)
        if isDragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
            updateSlider(input)
        end
    end)
    
    UIS.InputEnded:Connect(function(input)
        if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
            isDragging = false
            TweenService:Create(knob, TweenInfo.new(0.1), {Size = UDim2.new(0, 16 * guiScale, 0, 16 * guiScale)}):Play()
        end
    end)
    
    return container
end

local function createModernInput(parent, name, defaultText, layoutOrder, callback)
    local container = Instance.new("Frame", parent)
    container.Size = UDim2.new(1, 0, 0, 70 * guiScale)
    container.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
    container.LayoutOrder = layoutOrder
    container.BorderSizePixel = 0
    
    local containerCorner = Instance.new("UICorner", container)
    containerCorner.CornerRadius = UDim.new(0, 10)
    
    local glow = Instance.new("ImageLabel", container)
    glow.Size = UDim2.new(1, 6, 1, 6)
    glow.Position = UDim2.new(0, -3, 0, -3)
    glow.BackgroundTransparency = 1
    glow.Image = "rbxassetid://10849925846"
    glow.ImageColor3 = Color3.fromRGB(0, 150, 255)
    glow.ImageTransparency = 0.95
    
    local label = Instance.new("TextLabel", container)
    label.Size = UDim2.new(1, -16 * guiScale, 0, 22 * guiScale)
    label.Position = UDim2.new(0, 10 * guiScale, 0, 8 * guiScale)
    label.BackgroundTransparency = 1
    label.Text = name
    label.TextColor3 = Color3.new(1, 1, 1)
    label.Font = Enum.Font.GothamSemibold
    label.TextSize = 11 * guiScale
    label.TextXAlignment = Enum.TextXAlignment.Left
    
    local textBox = Instance.new("TextBox", container)
    textBox.Size = UDim2.new(1, -20 * guiScale, 0, 30 * guiScale)
    textBox.Position = UDim2.new(0, 10 * guiScale, 0, 34 * guiScale)
    textBox.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
    textBox.Text = defaultText
    textBox.TextColor3 = Color3.fromRGB(200, 200, 200)
    textBox.Font = Enum.Font.Gotham
    textBox.TextSize = 11 * guiScale
    textBox.ClearTextOnFocus = false
    
    local textBoxCorner = Instance.new("UICorner", textBox)
    textBoxCorner.CornerRadius = UDim.new(0, 6)
    
    textBox.Focused:Connect(function()
        TweenService:Create(textBox, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(25, 25, 40)}):Play()
        TweenService:Create(glow, TweenInfo.new(0.2), {ImageTransparency = 0.85}):Play()
    end)
    
    textBox.FocusLost:Connect(function()
        TweenService:Create(textBox, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(20, 20, 30)}):Play()
        TweenService:Create(glow, TweenInfo.new(0.2), {ImageTransparency = 0.95}):Play()
        callback(textBox.Text)
    end)
    
    return container
end

local function createModernMapSelector(parent, layoutOrder)
    local container = Instance.new("Frame", parent)
    container.Size = UDim2.new(1, 0, 0, 80 * guiScale)
    container.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
    container.LayoutOrder = layoutOrder
    container.BorderSizePixel = 0
    container.ClipsDescendants = true
    
    local containerCorner = Instance.new("UICorner", container)
    containerCorner.CornerRadius = UDim.new(0, 10)
    
    local glow = Instance.new("ImageLabel", container)
    glow.Size = UDim2.new(1, 6, 1, 6)
    glow.Position = UDim2.new(0, -3, 0, -3)
    glow.BackgroundTransparency = 1
    glow.Image = "rbxassetid://10849925846"
    glow.ImageColor3 = Color3.fromRGB(0, 150, 255)
    glow.ImageTransparency = 0.95
    
    local label = Instance.new("TextLabel", container)
    label.Size = UDim2.new(1, -16 * guiScale, 0, 22 * guiScale)
    label.Position = UDim2.new(0, 10 * guiScale, 0, 8 * guiScale)
    label.BackgroundTransparency = 1
    label.Text = "Select Map:"
    label.TextColor3 = Color3.new(1, 1, 1)
    label.Font = Enum.Font.GothamSemibold
    label.TextSize = 11 * guiScale
    label.TextXAlignment = Enum.TextXAlignment.Left
    
    local selectedFrame = Instance.new("TextButton", container)
    selectedFrame.Size = UDim2.new(1, -20 * guiScale, 0, 32 * guiScale)
    selectedFrame.Position = UDim2.new(0, 10 * guiScale, 0, 36 * guiScale)
    selectedFrame.BackgroundColor3 = Color3.fromRGB(0, 100, 180)
    selectedFrame.Text = Settings.SelectedMap
    selectedFrame.TextColor3 = Color3.new(1, 1, 1)
    selectedFrame.Font = Enum.Font.GothamBold
    selectedFrame.TextSize = 11 * guiScale
    selectedFrame.AutoButtonColor = false
    
    local selectedCorner = Instance.new("UICorner", selectedFrame)
    selectedCorner.CornerRadius = UDim.new(0, 8)
    
    local selectedGrad = Instance.new("UIGradient", selectedFrame)
    selectedGrad.Color = ColorSequence.new({
        ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 120, 200)),
        ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 80, 160))
    })
    
    local dropdown = Instance.new("Frame", container)
    dropdown.Size = UDim2.new(1, -20 * guiScale, 0, 70 * guiScale)
    dropdown.Position = UDim2.new(0, 10 * guiScale, 0, 72 * guiScale)
    dropdown.BackgroundColor3 = Color3.fromRGB(18, 18, 28)
    dropdown.BorderSizePixel = 0
    dropdown.Visible = false
    
    local dropdownCorner = Instance.new("UICorner", dropdown)
    dropdownCorner.CornerRadius = UDim.new(0, 8)
    
    local maps = {"BURNING HALL", "MINI INDONESIA"}
    local expanded = false
    
    for i, mapName in ipairs(maps) do
        local mapBtn = Instance.new("TextButton", dropdown)
        mapBtn.Size = UDim2.new(1, 0, 0, 32 * guiScale)
        mapBtn.Position = UDim2.new(0, 0, 0, (i - 1) * 34 * guiScale)
        mapBtn.BackgroundColor3 = Color3.fromRGB(22, 22, 35)
        mapBtn.Text = mapName
        mapBtn.TextColor3 = Color3.new(1, 1, 1)
        mapBtn.Font = Enum.Font.Gotham
        mapBtn.TextSize = 11 * guiScale
        mapBtn.AutoButtonColor = false
        
        local mapCorner = Instance.new("UICorner", mapBtn)
        mapCorner.CornerRadius = UDim.new(0, 6)
        
        mapBtn.MouseEnter:Connect(function()
            TweenService:Create(mapBtn, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(30, 30, 50)}):Play()
        end)
        
        mapBtn.MouseLeave:Connect(function()
            TweenService:Create(mapBtn, TweenInfo.new(0.15), {BackgroundColor3 = Color3.fromRGB(22, 22, 35)}):Play()
        end)
        
        mapBtn.MouseButton1Click:Connect(function()
            Settings.SelectedMap = mapName
            selectedFrame.Text = mapName
            expanded = false
            TweenService:Create(container, TweenInfo.new(0.3), {Size = UDim2.new(1, 0, 0, 80 * guiScale)}):Play()
            dropdown.Visible = false
        end)
    end
    
    selectedFrame.MouseButton1Click:Connect(function()
        expanded = not expanded
        if expanded then
            TweenService:Create(container, TweenInfo.new(0.3), {Size = UDim2.new(1, 0, 0, 150 * guiScale)}):Play()
            dropdown.Visible = true
        else
            TweenService:Create(container, TweenInfo.new(0.3), {Size = UDim2.new(1, 0, 0, 80 * guiScale)}):Play()
            dropdown.Visible = false
        end
    end)
    
    return container
end

local function createActionButton(parent, text, color, layoutOrder, callback)
    local container = Instance.new("Frame", parent)
    container.Size = UDim2.new(1, 0, 0, 50 * guiScale)
    container.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
    container.LayoutOrder = layoutOrder
    container.BorderSizePixel = 0
    
    local containerCorner = Instance.new("UICorner", container)
    containerCorner.CornerRadius = UDim.new(0, 10)
    
    local btn = Instance.new("TextButton", container)
    btn.Size = UDim2.new(1, -16 * guiScale, 0, 38 * guiScale)
    btn.Position = UDim2.new(0, 8 * guiScale, 0.5, -19 * guiScale)
    btn.BackgroundColor3 = color
    btn.Text = text
    btn.TextColor3 = Color3.new(1, 1, 1)
    btn.Font = Enum.Font.GothamBold
    btn.TextSize = 12 * guiScale
    btn.AutoButtonColor = false
    
    local btnCorner = Instance.new("UICorner", btn)
    btnCorner.CornerRadius = UDim.new(0, 10)
    
    local btnGrad = Instance.new("UIGradient", btn)
    btnGrad.Color = ColorSequence.new({
        ColorSequenceKeypoint.new(0, color:Lerp(Color3.new(1, 1, 1), 0.1)),
        ColorSequenceKeypoint.new(1, color)
    })
    
    local glow = Instance.new("ImageLabel", btn)
    glow.Size = UDim2.new(1.1, 0, 1.3, 0)
    glow.Position = UDim2.new(-0.05, 0, -0.15, 0)
    glow.BackgroundTransparency = 1
    glow.Image = "rbxassetid://10849925846"
    glow.ImageColor3 = color
    glow.ImageTransparency = 1
    
    btn.MouseEnter:Connect(function()
        TweenService:Create(btn, TweenInfo.new(0.2), {Size = UDim2.new(1, -12 * guiScale, 0, 40 * guiScale)}):Play()
        TweenService:Create(btn, TweenInfo.new(0.2), {Position = UDim2.new(0, 6 * guiScale, 0.5, -20 * guiScale)}):Play()
        TweenService:Create(glow, TweenInfo.new(0.2), {ImageTransparency = 0.7}):Play()
    end)
    
    btn.MouseLeave:Connect(function()
        TweenService:Create(btn, TweenInfo.new(0.2), {Size = UDim2.new(1, -16 * guiScale, 0, 38 * guiScale)}):Play()
        TweenService:Create(btn, TweenInfo.new(0.2), {Position = UDim2.new(0, 8 * guiScale, 0.5, -19 * guiScale)}):Play()
        TweenService:Create(glow, TweenInfo.new(0.2), {ImageTransparency = 1}):Play()
    end)
    
    btn.MouseButton1Click:Connect(function()
        local ripple = Instance.new("Frame", btn)
        ripple.Size = UDim2.new(0, 0, 0, 0)
        ripple.Position = UDim2.new(0.5, 0, 0.5, 0)
        ripple.BackgroundColor3 = Color3.new(1, 1, 1)
        ripple.BackgroundTransparency = 0.5
        ripple.BorderSizePixel = 0
        
        local rippleCorner = Instance.new("UICorner", ripple)
        rippleCorner.CornerRadius = UDim.new(1, 0)
        
        TweenService:Create(ripple, TweenInfo.new(0.5), {
            Size = UDim2.new(2, 0, 2, 0),
            Position = UDim2.new(-0.5, 0, -0.5, 0),
            BackgroundTransparency = 1
        }):Play()
        
        game:GetService("Debris"):AddItem(ripple, 0.5)
        callback()
    end)
    
    return container
end

local function createTeamSwitcher(parent, layoutOrder)
    local container = Instance.new("Frame", parent)
    container.Size = UDim2.new(1, 0, 0, 110 * guiScale)
    container.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
    container.LayoutOrder = layoutOrder
    container.BorderSizePixel = 0
    
    local containerCorner = Instance.new("UICorner", container)
    containerCorner.CornerRadius = UDim.new(0, 10)
    
    local glow = Instance.new("ImageLabel", container)
    glow.Size = UDim2.new(1, 6, 1, 6)
    glow.Position = UDim2.new(0, -3, 0, -3)
    glow.BackgroundTransparency = 1
    glow.Image = "rbxassetid://10849925846"
    glow.ImageColor3 = Color3.fromRGB(0, 150, 255)
    glow.ImageTransparency = 0.95
    
    local label = Instance.new("TextLabel", container)
    label.Size = UDim2.new(1, -16 * guiScale, 0, 24 * guiScale)
    label.Position = UDim2.new(0, 10 * guiScale, 0, 10 * guiScale)
    label.BackgroundTransparency = 1
    label.Text = "Select Team:"
    label.TextColor3 = Color3.new(1, 1, 1)
    label.Font = Enum.Font.GothamBold
    label.TextSize = 12 * guiScale
    label.TextXAlignment = Enum.TextXAlignment.Left
    
    local blueBtn = Instance.new("TextButton", container)
    blueBtn.Size = UDim2.new(0.45, 0, 0, 50 * guiScale)
    blueBtn.Position = UDim2.new(0, 10 * guiScale, 0, 50 * guiScale)
    blueBtn.BackgroundColor3 = Color3.fromRGB(0, 100, 255)
    blueBtn.Text = "BLUE"
    blueBtn.TextColor3 = Color3.new(1, 1, 1)
    blueBtn.Font = Enum.Font.GothamBold
    blueBtn.TextSize = 14 * guiScale
    blueBtn.AutoButtonColor = false
    
    local blueCorner = Instance.new("UICorner", blueBtn)
    blueCorner.CornerRadius = UDim.new(0, 10)
    
    local blueGrad = Instance.new("UIGradient", blueBtn)
    blueGrad.Color = ColorSequence.new({
        ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 150, 255)),
        ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 80, 200))
    })
    
    local redBtn = Instance.new("TextButton", container)
    redBtn.Size = UDim2.new(0.45, 0, 0, 50 * guiScale)
    redBtn.Position = UDim2.new(0.55, 0, 0, 50 * guiScale)
    redBtn.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
    redBtn.Text = "RED"
    redBtn.TextColor3 = Color3.new(1, 1, 1)
    redBtn.Font = Enum.Font.GothamBold
    redBtn.TextSize = 14 * guiScale
    redBtn.AutoButtonColor = false
    
    local redCorner = Instance.new("UICorner", redBtn)
    redCorner.CornerRadius = UDim.new(0, 10)
    
    local redGrad = Instance.new("UIGradient", redBtn)
    redGrad.Color = ColorSequence.new({
        ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 80, 80)),
        ColorSequenceKeypoint.new(1, Color3.fromRGB(200, 40, 40))
    })
    
    local blueSelected = Instance.new("Frame", blueBtn)
    blueSelected.Size = UDim2.new(1, 0, 0, 3)
    blueSelected.Position = UDim2.new(0, 0, 1, -3)
    blueSelected.BackgroundColor3 = Color3.new(1, 1, 1)
    blueSelected.BorderSizePixel = 0
    blueSelected.Visible = Settings.CurrentTeam == "blue"
    
    local redSelected = Instance.new("Frame", redBtn)
    redSelected.Size = UDim2.new(1, 0, 0, 3)
    redSelected.Position = UDim2.new(0, 0, 1, -3)
    redSelected.BackgroundColor3 = Color3.new(1, 1, 1)
    redSelected.BorderSizePixel = 0
    redSelected.Visible = Settings.CurrentTeam == "red"
    
    local function switchTeam(team)
        Settings.CurrentTeam = team
        blueSelected.Visible = team == "blue"
        redSelected.Visible = team == "red"
        
        local args = {team}
        ReplicatedStorage:WaitForChild("SetTeam"):FireServer(unpack(args))
        
        local notif = Instance.new("TextLabel", gui)
        notif.Size = UDim2.new(0, 180, 0, 36)
        notif.Position = UDim2.new(0.5, -90, 0, 60)
        notif.BackgroundColor3 = team == "blue" and Color3.fromRGB(0, 100, 255) or Color3.fromRGB(255, 50, 50)
        notif.Text = "Switched to " .. team:upper() .. " TEAM"
        notif.TextColor3 = Color3.new(1, 1, 1)
        notif.Font = Enum.Font.GothamBold
        notif.TextSize = 12
        
        local notifCorner = Instance.new("UICorner", notif)
        notifCorner.CornerRadius = UDim.new(0, 8)
        
        TweenService:Create(notif, TweenInfo.new(0.4, Enum.EasingStyle.Back), {Position = UDim2.new(0.5, -90, 0, 20)}):Play()
        wait(2)
        TweenService:Create(notif, TweenInfo.new(0.4), {Position = UDim2.new(0.5, -90, 0, -60)}):Play()
        wait(0.4)
        notif:Destroy()
    end
    
    blueBtn.MouseButton1Click:Connect(function() switchTeam("blue") end)
    redBtn.MouseButton1Click:Connect(function() switchTeam("red") end)
    
    blueBtn.MouseEnter:Connect(function()
        TweenService:Create(blueBtn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 120, 255)}):Play()
    end)
    blueBtn.MouseLeave:Connect(function()
        TweenService:Create(blueBtn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 100, 255)}):Play()
    end)
    
    redBtn.MouseEnter:Connect(function()
        TweenService:Create(redBtn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 70, 70)}):Play()
    end)
    redBtn.MouseLeave:Connect(function()
        TweenService:Create(redBtn, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 50, 50)}):Play()
    end)
    
    return container
end

local profileFrame = Instance.new("Frame", homeTab)
profileFrame.Size = UDim2.new(1, 0, 0, 110 * guiScale)
profileFrame.BackgroundColor3 = Color3.fromRGB(14, 14, 22)
profileFrame.LayoutOrder = 1
profileFrame.BorderSizePixel = 0

local profileCorner = Instance.new("UICorner", profileFrame)
profileCorner.CornerRadius = UDim.new(0, 12)

local avatar = Instance.new("ImageLabel", profileFrame)
avatar.Size = UDim2.new(0, 70 * guiScale, 0, 70 * guiScale)
avatar.Position = UDim2.new(0, 12 * guiScale, 0.5, -35 * guiScale)
avatar.BackgroundColor3 = Color3.fromRGB(20, 20, 30)
avatar.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=" .. LocalPlayer.UserId .. "&width=150&height=150&format=png"
avatar.BorderSizePixel = 0

local avatarCorner = Instance.new("UICorner", avatar)
avatarCorner.CornerRadius = UDim.new(0, 10)

local avatarStroke = Instance.new("UIStroke", avatar)
avatarStroke.Color = Color3.fromRGB(0, 120, 255)
avatarStroke.Thickness = 2

spawn(function()
    while avatar.Parent do
        TweenService:Create(avatarStroke, TweenInfo.new(1), {Color = Color3.fromRGB(0, 255, 200)}):Play()
        wait(1)
        TweenService:Create(avatarStroke, TweenInfo.new(1), {Color = Color3.fromRGB(0, 150, 255)}):Play()
        wait(1)
    end
end)

local infoContainer = Instance.new("Frame", profileFrame)
infoContainer.Size = UDim2.new(1, -90 * guiScale, 1, -16 * guiScale)
infoContainer.Position = UDim2.new(0, 88 * guiScale, 0, 8 * guiScale)
infoContainer.BackgroundTransparency = 1

local displayNameLabel = Instance.new("TextLabel", infoContainer)
displayNameLabel.Size = UDim2.new(1, 0, 0, 24 * guiScale)
displayNameLabel.BackgroundTransparency = 1
displayNameLabel.Text = LocalPlayer.DisplayName
displayNameLabel.TextColor3 = Color3.fromRGB(0, 200, 255)
displayNameLabel.Font = Enum.Font.GothamBold
displayNameLabel.TextSize = 15 * guiScale
displayNameLabel.TextXAlignment = Enum.TextXAlignment.Left

local usernameLabel = Instance.new("TextLabel", infoContainer)
usernameLabel.Size = UDim2.new(1, 0, 0, 18 * guiScale)
usernameLabel.Position = UDim2.new(0, 0, 0, 22 * guiScale)
usernameLabel.BackgroundTransparency = 1
usernameLabel.Text = "@" .. LocalPlayer.Name
usernameLabel.TextColor3 = Color3.fromRGB(140, 140, 140)
usernameLabel.Font = Enum.Font.Gotham
usernameLabel.TextSize = 12 * guiScale
usernameLabel.TextXAlignment = Enum.TextXAlignment.Left

local idLabel = Instance.new("TextLabel", infoContainer)
idLabel.Size = UDim2.new(1, 0, 0, 16 * guiScale)
idLabel.Position = UDim2.new(0, 0, 0, 42 * guiScale)
idLabel.BackgroundTransparency = 1
idLabel.Text = "ID: " .. LocalPlayer.UserId
idLabel.TextColor3 = Color3.fromRGB(100, 100, 100)
idLabel.Font = Enum.Font.Gotham
idLabel.TextSize = 10 * guiScale
idLabel.TextXAlignment = Enum.TextXAlignment.Left

local featuresFrame = Instance.new("Frame", homeTab)
featuresFrame.Size = UDim2.new(1, 0, 0, 175 * guiScale)
featuresFrame.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
featuresFrame.LayoutOrder = 2
featuresFrame.BorderSizePixel = 0

local featuresCorner = Instance.new("UICorner", featuresFrame)
featuresCorner.CornerRadius = UDim.new(0, 10)

local featuresTitle = Instance.new("TextLabel", featuresFrame)
featuresTitle.Size = UDim2.new(1, -12 * guiScale, 0, 24 * guiScale)
featuresTitle.Position = UDim2.new(0, 10 * guiScale, 0, 10 * guiScale)
featuresTitle.BackgroundTransparency = 1
featuresTitle.Text = "Available Features"
featuresTitle.TextColor3 = Color3.fromRGB(0, 200, 255)
featuresTitle.Font = Enum.Font.GothamBold
featuresTitle.TextSize = 12 * guiScale
featuresTitle.TextXAlignment = Enum.TextXAlignment.Left

local featuresList = Instance.new("TextLabel", featuresFrame)
featuresList.Size = UDim2.new(1, -16 * guiScale, 1, -40 * guiScale)
featuresList.Position = UDim2.new(0, 10 * guiScale, 0, 34 * guiScale)
featuresList.BackgroundTransparency = 1
featuresList.Text = [[- Auto Create Room: Create room auto
- Auto Kill: Instant kill all enemies
- ESP: See enemies through walls  
- Aim Assist: Smooth aim with FOV circle
- Trigger Bot: Auto shoot on target
- Wallbang: Shoot through walls
- Kebak Unlimited: Force ragdoll forever
- No Spread: Perfect accuracy
- Instant Reload: 0s reload time
- Rapid Fire: 20 shots/second
- Damage Multiplier: x10 damage
- Team Switcher: Blue/Red team
- Infinite Ammo: Unlimited bullets
- Noclip: Walk through walls
- Speed Hack: Custom walk speed]]
featuresList.TextColor3 = Color3.fromRGB(170, 170, 170)
featuresList.Font = Enum.Font.Gotham
featuresList.TextSize = 9 * guiScale
featuresList.TextXAlignment = Enum.TextXAlignment.Left
featuresList.TextYAlignment = Enum.TextYAlignment.Top

local gameInfo = Instance.new("TextLabel", homeTab)
gameInfo.Size = UDim2.new(1, 0, 0, 50 * guiScale)
gameInfo.BackgroundColor3 = Color3.fromRGB(10, 10, 14)
gameInfo.LayoutOrder = 3
gameInfo.Text = "Game: " .. GameName .. "\nPlace ID: " .. game.PlaceId
gameInfo.TextColor3 = Color3.fromRGB(120, 120, 120)
gameInfo.Font = Enum.Font.Gotham
gameInfo.TextSize = 9 * guiScale
gameInfo.TextWrapped = true

local gameInfoCorner = Instance.new("UICorner", gameInfo)
gameInfoCorner.CornerRadius = UDim.new(0, 8)

createModernToggle(farmTab, "Auto Kill", 1, function(v) Settings.AutoKill = v end)
createModernToggle(farmTab, "ESP", 2, function(v) Settings.ESP = v end)
createModernToggle(farmTab, "Trigger Bot", 3, function(v) Settings.TriggerBot = v end)
createModernToggle(farmTab, "Wallbang", 4, function(v) Settings.Wallbang = v end)
createModernToggle(farmTab, "Kebak Unlimited", 5, function(v) Settings.KebakUnlimited = v end)

createModernSlider(farmTab, "Kill Range", 10, 200, 50, 6, function(v)
    Settings.AutoKillRange = v
end)

createModernToggle(roomTab, "Auto Create Room", 1, function(v) Settings.AutoCreateRoom = v end)
createModernInput(roomTab, "Room Name", LocalPlayer.Name, 2, function(text)
    Settings.RoomName = text
end)
createModernMapSelector(roomTab, 3)

createActionButton(roomTab, "CREATE ROOM NOW", Color3.fromRGB(0, 160, 90), 4, function()
    local partyRE = ReplicatedStorage:WaitForChild("PartySystemRE")
    
    local createArgs = {"createParty", Settings.RoomName, 8}
    partyRE:FireServer(unpack(createArgs))
    
    wait(0.3)
    
    local syncArgs = {"syncMap", Settings.RoomName, Settings.SelectedMap}
    partyRE:FireServer(unpack(syncArgs))
    
    local notif = Instance.new("TextLabel", gui)
    notif.Size = UDim2.new(0, 220, 0, 50)
    notif.Position = UDim2.new(0.5, -110, 0, 50)
    notif.BackgroundColor3 = Color3.fromRGB(0, 160, 90)
    notif.Text = "Room Created!\n" .. Settings.RoomName .. " | " .. Settings.SelectedMap
    notif.TextColor3 = Color3.new(1, 1, 1)
    notif.Font = Enum.Font.GothamBold
    notif.TextSize = 11
    notif.TextWrapped = true
    
    local notifCorner = Instance.new("UICorner", notif)
    notifCorner.CornerRadius = UDim.new(0, 10)
    
    TweenService:Create(notif, TweenInfo.new(0.4, Enum.EasingStyle.Back), {Position = UDim2.new(0.5, -110, 0, 20)}):Play()
    wait(2.5)
    TweenService:Create(notif, TweenInfo.new(0.4), {Position = UDim2.new(0.5, -110, 0, -60)}):Play()
    wait(0.4)
    notif:Destroy()
end)

createTeamSwitcher(teamTab, 1)


createModernToggle(miscTab, "Aim Assist", 1, function(v) Settings.AimAssist = v end)
createModernToggle(miscTab, "Infinite Ammo", 2, function(v) Settings.InfiniteAmmo = v end)
createModernToggle(miscTab, "Noclip", 3, function(v) Settings.Noclip = v end)
createModernToggle(miscTab, "No Spread", 4, function(v) Settings.NoSpread = v end)
createModernToggle(miscTab, "Instant Reload", 5, function(v) Settings.InstantReload = v end)
createModernToggle(miscTab, "Rapid Fire", 6, function(v) Settings.RapidFire = v end)

createModernSlider(miscTab, "Aim FOV", 50, 300, 150, 7, function(v)
    Settings.AimFOV = v
end)

createModernSlider(miscTab, "Aim Smooth", 0.01, 0.5, 0.08, 8, function(v)
    Settings.AimStrength = v
end)

createModernSlider(miscTab, "Walk Speed", 16, 200, 16, 9, function(v)
    Settings.WalkSpeed = v
end)

createModernSlider(miscTab, "Damage Multiplier", 1, 10, 1, 10, function(v)
    Settings.DamageMultiplier = v
end)

local aimPartContainer = Instance.new("Frame", miscTab)
aimPartContainer.Size = UDim2.new(1, 0, 0, 42 * guiScale)
aimPartContainer.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
aimPartContainer.LayoutOrder = 11
aimPartContainer.BorderSizePixel = 0

local aimPartCorner = Instance.new("UICorner", aimPartContainer)
aimPartCorner.CornerRadius = UDim.new(0, 10)

local aimPartLabel = Instance.new("TextLabel", aimPartContainer)
aimPartLabel.Size = UDim2.new(0.5, 0, 1, 0)
aimPartLabel.Position = UDim2.new(0, 12 * guiScale, 0, 0)
aimPartLabel.BackgroundTransparency = 1
aimPartLabel.Text = "Aim Part:"
aimPartLabel.TextColor3 = Color3.new(1, 1, 1)
aimPartLabel.Font = Enum.Font.GothamSemibold
aimPartLabel.TextSize = 11 * guiScale
aimPartLabel.TextXAlignment = Enum.TextXAlignment.Left

local aimPartBtn = Instance.new("TextButton", aimPartContainer)
aimPartBtn.Size = UDim2.new(0, 70 * guiScale, 0, 28 * guiScale)
aimPartBtn.Position = UDim2.new(1, -82 * guiScale, 0.5, -14 * guiScale)
aimPartBtn.BackgroundColor3 = Color3.fromRGB(0, 100, 180)
aimPartBtn.Text = "HEAD"
aimPartBtn.TextColor3 = Color3.new(1, 1, 1)
aimPartBtn.Font = Enum.Font.GothamBold
aimPartBtn.TextSize = 11 * guiScale

local aimPartBtnCorner = Instance.new("UICorner", aimPartBtn)
aimPartBtnCorner.CornerRadius = UDim.new(0, 8)

aimPartBtn.MouseButton1Click:Connect(function()
    if Settings.AimPart == "Head" then
        Settings.AimPart = "HumanoidRootPart"
        aimPartBtn.Text = "BODY"
    else
        Settings.AimPart = "Head"
        aimPartBtn.Text = "HEAD"
    end
end)

local creditFrame = Instance.new("Frame", settingsTab)
creditFrame.Size = UDim2.new(1, 0, 0, 130 * guiScale)
creditFrame.BackgroundColor3 = Color3.fromRGB(14, 14, 22)
creditFrame.LayoutOrder = 1
creditFrame.BorderSizePixel = 0

local creditCorner = Instance.new("UICorner", creditFrame)
creditCorner.CornerRadius = UDim.new(0, 12)

local creditText = Instance.new("TextLabel", creditFrame)
creditText.Size = UDim2.new(1, -16 * guiScale, 1, -16 * guiScale)
creditText.Position = UDim2.new(0, 8 * guiScale, 0, 8 * guiScale)
creditText.BackgroundTransparency = 1
creditText.Text = "PeexHubs V3.2 - FULL EDITION\nPointBlox | Made by PeexTeam\n\nFeatures:\n- Auto Create Room with Map Select\n- Auto Kill with Kebak Unlimited\n- ESP, Aim Assist, Trigger Bot\n- Wallbang, No Spread, Rapid Fire\n- Instant Reload, Damage Multiplier\n- Team Switcher (Blue/Red)\n- Infinite Ammo, Noclip, Speed Hack"
creditText.TextColor3 = Color3.fromRGB(140, 140, 140)
creditText.Font = Enum.Font.Gotham
creditText.TextSize = 10 * guiScale
creditText.TextWrapped = true

local dragging = false
local dragInput = nil
local dragStart = nil
local startPos = nil

titleBar.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = true
        dragStart = input.Position
        startPos = main.Position
        
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)

titleBar.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
        dragInput = input
    end
end)

UIS.InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        local delta = input.Position - dragStart
        main.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
    end
end)

local scaleLevels = {0.6, 0.75, 0.9, 1.0, 1.2}
local currentScaleIndex = 2

scaleBtn.MouseButton1Click:Connect(function()
    currentScaleIndex = currentScaleIndex % #scaleLevels + 1
    guiScale = scaleLevels[currentScaleIndex]
    
    local newSize = baseSize * guiScale
    main.Size = UDim2.new(0, newSize.X, 0, newSize.Y)
    
    local notif = Instance.new("TextLabel", gui)
    notif.Size = UDim2.new(0, 140, 0, 28)
    notif.Position = UDim2.new(0.5, -70, 0, 8)
    notif.BackgroundColor3 = Color3.fromRGB(0, 100, 180)
    notif.Text = "Scale: " .. math.floor(guiScale * 100) .. "%"
    notif.TextColor3 = Color3.new(1, 1, 1)
    notif.Font = Enum.Font.GothamBold
    notif.TextSize = 12
    
    local notifCorner = Instance.new("UICorner", notif)
    notifCorner.CornerRadius = UDim.new(0, 8)
    
    TweenService:Create(notif, TweenInfo.new(0.5), {Position = UDim2.new(0.5, -70, 0, -40)}):Play()
    wait(1)
    notif:Destroy()
end)

local minimized = false
minBtn.MouseButton1Click:Connect(function()
    minimized = not minimized
    if minimized then
        TweenService:Create(main, TweenInfo.new(0.3, Enum.EasingStyle.Back), {Size = UDim2.new(0, main.Size.X.Offset, 0, 36 * guiScale)}):Play()
        contentArea.Visible = false
        sidebar.Visible = false
        minBtn.Text = "+"
    else
        TweenService:Create(main, TweenInfo.new(0.3, Enum.EasingStyle.Back), {Size = UDim2.new(0, baseSize.X * guiScale, 0, baseSize.Y * guiScale)}):Play()
        wait(0.15)
        contentArea.Visible = true
        sidebar.Visible = true
        minBtn.Text = "-"
    end
end)

closeBtn.MouseButton1Click:Connect(function()
    if glassBlur then
        glassBlur:Destroy()
    end
    gui:Destroy()
end)

spawn(function()
    while gui.Parent do
        if Settings.AutoCreateRoom then
            local partyRE = ReplicatedStorage:FindFirstChild("PartySystemRE")
            if partyRE then
                local createArgs = {"createParty", Settings.RoomName, 8}
                partyRE:FireServer(unpack(createArgs))
                
                wait(0.3)
                
                local syncArgs = {"syncMap", Settings.RoomName, Settings.SelectedMap}
                partyRE:FireServer(unpack(syncArgs))
                
                Settings.AutoCreateRoom = false
            end
        end
        wait(2)
    end
end)

local fovCircle = Instance.new("Frame", gui)
fovCircle.Size = UDim2.new(0, Settings.AimFOV * 2, 0, Settings.AimFOV * 2)
fovCircle.Position = UDim2.new(0.5, -Settings.AimFOV, 0.5, -Settings.AimFOV)
fovCircle.BackgroundTransparency = 1
fovCircle.Visible = false
fovCircle.ZIndex = 10

local circleStroke = Instance.new("UIStroke", fovCircle)
circleStroke.Color = Color3.fromRGB(0, 200, 255)
circleStroke.Thickness = 2
circleStroke.Transparency = 0.5

spawn(function()
    while fovCircle.Parent do
        TweenService:Create(circleStroke, TweenInfo.new(1), {Color = Color3.fromRGB(100, 0, 255)}):Play()
        wait(1)
        TweenService:Create(circleStroke, TweenInfo.new(1), {Color = Color3.fromRGB(0, 200, 255)}):Play()
        wait(1)
    end
end)

local circleCorner = Instance.new("UICorner", fovCircle)
circleCorner.CornerRadius = UDim.new(1, 0)

local centerDot = Instance.new("Frame", fovCircle)
centerDot.Size = UDim2.new(0, 4, 0, 4)
centerDot.Position = UDim2.new(0.5, -2, 0.5, -2)
centerDot.BackgroundColor3 = Color3.fromRGB(0, 255, 100)
centerDot.BorderSizePixel = 0

local dotCorner = Instance.new("UICorner", centerDot)
dotCorner.CornerRadius = UDim.new(1, 0)
local espFolder = Instance.new("Folder", game.CoreGui)
espFolder.Name = "PeexESP"

local function createESP(player)
   if player == LocalPlayer then return end
   
   local highlight = Instance.new("Highlight")
   highlight.Name = player.Name .. "_ESP"
   highlight.FillTransparency = 0.7
   highlight.OutlineTransparency = 0
   highlight.OutlineColor = Color3.new(1, 1, 1)
   highlight.Parent = espFolder
   
   RunService.RenderStepped:Connect(function()
       if not Settings.ESP or not highlight.Parent then
           highlight.Enabled = false
           return
       end
       
       local char = player.Character
       if char and char:FindFirstChild("HumanoidRootPart") then
           local humanoid = char:FindFirstChildOfClass("Humanoid")
           if humanoid and humanoid.Health > 0 then
               highlight.Adornee = char
               highlight.Enabled = true
               
               if player.Team == LocalPlayer.Team then
                   highlight.FillColor = Color3.fromRGB(0, 130, 255)
                   highlight.OutlineColor = Color3.fromRGB(0, 180, 255)
               else
                   highlight.FillColor = Color3.fromRGB(255, 40, 40)
                   highlight.OutlineColor = Color3.fromRGB(255, 90, 90)
               end
           else
               highlight.Enabled = false
           end
       else
           highlight.Enabled = false
       end
   end)
end

for _, p in pairs(Players:GetPlayers()) do createESP(p) end
Players.PlayerAdded:Connect(createESP)

local kebakConnection = nil

local function setupKebakUnlimited()
   if Settings.KebakUnlimited then
       kebakConnection = RunService.Heartbeat:Connect(function()
           local char = LocalPlayer.Character
           if char then
               for _, tool in pairs(char:GetChildren()) do
                   if tool:IsA("Tool") then
                       local config = tool:FindFirstChild("Configuration") or tool:FindFirstChild("Blaster")
                       if config then
                           config:SetAttribute("unanchoredImpulseForce", 9999)
                       end
                   end
               end
           end
       end)
   else
       if kebakConnection then
           kebakConnection:Disconnect()
           kebakConnection = nil
       end
   end
end

RunService.RenderStepped:Connect(function()
   if Settings.NoSpread then
       local char = LocalPlayer.Character
       if char then
           for _, tool in pairs(char:GetChildren()) do
               if tool:IsA("Tool") then
                   local config = tool:FindFirstChild("Configuration") or tool:FindFirstChild("Blaster")
                   if config then
                       config:SetAttribute("spread", 0)
                       config:SetAttribute("rayRadius", 0)
                   end
               end
           end
       end
   end
end)

local reloadConnection = nil

local function setupInstantReload()
   if Settings.InstantReload then
       reloadConnection = RunService.Heartbeat:Connect(function()
           local char = LocalPlayer.Character
           if char then
               for _, tool in pairs(char:GetChildren()) do
                   if tool:IsA("Tool") then
                       if tool:GetAttribute("_reloading") == true then
                           tool:SetAttribute("_reloading", false)
                       end
                       
                       local config = tool:FindFirstChild("Configuration") or tool:FindFirstChild("Blaster")
                       if config then
                           config:SetAttribute("reloadTime", 0.001)
                       end
                   end
               end
           end
       end)
   else
       if reloadConnection then
           reloadConnection:Disconnect()
           reloadConnection = nil
       end
   end
end

RunService.RenderStepped:Connect(function()
   if Settings.RapidFire then
       local char = LocalPlayer.Character
       if char then
           for _, tool in pairs(char:GetChildren()) do
               if tool:IsA("Tool") then
                   local config = tool:FindFirstChild("Configuration") or tool:FindFirstChild("Blaster")
                   if config then
                       config:SetAttribute("rateOfFire", 0.05)
                       config:SetAttribute("fireMode", "Auto")
                   end
               end
           end
       end
   end
end)

RunService.RenderStepped:Connect(function()
   if Settings.DamageMultiplier > 1 then
       local char = LocalPlayer.Character
       if char then
           for _, tool in pairs(char:GetChildren()) do
               if tool:IsA("Tool") then
                   local config = tool:FindFirstChild("Configuration") or tool:FindFirstChild("Blaster")
                   if config then
                       local baseDamage = config:GetAttribute("damage") or 25
                       config:SetAttribute("damage", baseDamage * Settings.DamageMultiplier)
                   end
               end
           end
       end
   end
end)

local wallbangConnection = nil

local function setupWallbang()
   if Settings.Wallbang then
       wallbangConnection = RunService.Heartbeat:Connect(function()
           local char = LocalPlayer.Character
           if char then
               for _, tool in pairs(char:GetChildren()) do
                   if tool:IsA("Tool") then
                       local config = tool:FindFirstChild("Configuration") or tool:FindFirstChild("Blaster")
                       if config then
                           config:SetAttribute("range", 9999)
                           config:SetAttribute("raysPerShot", 5)
                           config:SetAttribute("rayRadius", 10)
                       end
                   end
               end
           end
       end)
       
       local mt = getrawmetatable and getrawmetatable(workspace)
       if mt and setreadonly then
           setreadonly(mt, false)
           local oldIndex = mt.__index
           
           mt.__index = function(self, key)
               if key == "Raycast" and Settings.Wallbang then
                   return function(origin, direction, params)
                       local whitelist = {}
                       for _, plr in pairs(Players:GetPlayers()) do
                           if plr.Character then
                               table.insert(whitelist, plr.Character)
                           end
                       end
                       
                       local newParams = RaycastParams.new()
                       newParams.FilterType = Enum.RaycastFilterType.Whitelist
                       newParams.FilterDescendantsInstances = whitelist
                       newParams.IgnoreWater = true
                       
                       return oldIndex(self, "Raycast")(self, origin, direction.Unit * 9999, newParams)
                   end
               end
               return oldIndex(self, key)
           end
           
           setreadonly(mt, true)
       end
   else
       if wallbangConnection then
           wallbangConnection:Disconnect()
           wallbangConnection = nil
       end
   end
end

local function getTargetInFOV()
   local centerScreen = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
   local bestTarget = nil
   local closestDist = math.huge
   
   for _, player in pairs(Players:GetPlayers()) do
       if player ~= LocalPlayer and player.Team ~= LocalPlayer.Team then
           local char = player.Character
           if char then
               local targetPart = char:FindFirstChild(Settings.AimPart) or char:FindFirstChild("HumanoidRootPart")
               if targetPart then
                   local pos, onScreen = Camera:WorldToViewportPoint(targetPart.Position)
                   if onScreen then
                       local screenPos = Vector2.new(pos.X, pos.Y)
                       local distFromCenter = (screenPos - centerScreen).Magnitude
                       
                       if distFromCenter <= Settings.AimFOV then
                           if distFromCenter < closestDist then
                               closestDist = distFromCenter
                               bestTarget = targetPart
                           end
                       end
                   end
               end
           end
       end
   end
   
   return bestTarget, closestDist
end

RunService.RenderStepped:Connect(function()
   fovCircle.Size = UDim2.new(0, Settings.AimFOV * 2, 0, Settings.AimFOV * 2)
   fovCircle.Position = UDim2.new(0.5, -Settings.AimFOV, 0.5, -Settings.AimFOV)
   fovCircle.Visible = Settings.AimAssist
end)

RunService.RenderStepped:Connect(function()
   if Settings.AimAssist then
       local target = getTargetInFOV()
       if target then
           local targetCF = CFrame.new(Camera.CFrame.Position, target.Position)
           Camera.CFrame = Camera.CFrame:Lerp(targetCF, Settings.AimStrength)
       end
   end
end)

RunService.RenderStepped:Connect(function()
   if Settings.TriggerBot and Settings.AimAssist then
       local target = getTargetInFOV()
       if target then
           local char = LocalPlayer.Character
           if char then
               for _, tool in pairs(char:GetChildren()) do
                   if tool:IsA("Tool") then
                       pcall(function()
                           tool:Activate()
                       end)
                   end
               end
           end
       end
   end
end)

local function getEnemiesInRange()
   local enemies = {}
   local myChar = LocalPlayer.Character
   if not myChar or not myChar:FindFirstChild("HumanoidRootPart") then return enemies end
   
   local myPos = myChar.HumanoidRootPart.Position
   
   for _, player in pairs(Players:GetPlayers()) do
       if player ~= LocalPlayer and player.Team ~= LocalPlayer.Team then
           local char = player.Character
           if char then
               local hrp = char:FindFirstChild("HumanoidRootPart")
               local humanoid = char:FindFirstChildOfClass("Humanoid")
               
               if hrp and humanoid and humanoid.Health > 0 then
                   local dist = (hrp.Position - myPos).Magnitude
                   if dist <= Settings.AutoKillRange then
                       table.insert(enemies, {
                           Player = player,
                           Character = char,
                           Humanoid = humanoid,
                           HRP = hrp
                       })
                   end
               end
           end
       end
   end
   
   return enemies
end

RunService.RenderStepped:Connect(function()
   if Settings.AutoKill then
       local enemies = getEnemiesInRange()
       for _, enemy in pairs(enemies) do
           pcall(function()
               enemy.Humanoid.Health = 0
               enemy.Character:BreakJoints()
               
               if enemy.HRP then
                   enemy.HRP.Velocity = Vector3.new(
                       math.random(-100, 100),
                       math.random(50, 150),
                       math.random(-100, 100)
                   )
                   enemy.HRP.RotVelocity = Vector3.new(
                       math.random(-50, 50),
                       math.random(-50, 50),
                       math.random(-50, 50)
                   )
               end
               
               local hum = enemy.Character:FindFirstChildOfClass("Humanoid")
               if hum then
                   hum:Destroy()
               end
           end)
       end
   end
end)

RunService.RenderStepped:Connect(function()
   if Settings.InfiniteAmmo then
       local char = LocalPlayer.Character
       if char then
           for _, tool in pairs(char:GetChildren()) do
               if tool:IsA("Tool") then
                   pcall(function()
                       for _, attr in pairs({"Ammo", "TotalAmmo", "Magazine", "CurrentAmmo", "StoredAmmo", "Clip", "_ammo"}) do
                           if tool:GetAttribute(attr) then
                               tool:SetAttribute(attr, 9999)
                           end
                       end
                       
                       for _, obj in pairs(tool:GetDescendants()) do
                           if obj:IsA("IntValue") or obj:IsA("NumberValue") then
                               local name = obj.Name:lower()
                               if name:find("ammo") or name:find("bullet") or name:find("clip") or name:find("mag") then
                                   obj.Value = 9999
                               end
                           end
                       end
                   end)
               end
           end
       end
   end
end)

RunService.Stepped:Connect(function()
   local char = LocalPlayer.Character
   if not char then return end
   
   if Settings.Noclip then
       for _, part in pairs(char:GetDescendants()) do
           if part:IsA("BasePart") then
               part.CanCollide = false
           end
       end
   end
   
   local humanoid = char:FindFirstChildOfClass("Humanoid")
   if humanoid then
       humanoid.WalkSpeed = Settings.WalkSpeed
   end
end)

spawn(function()
   while gui.Parent do
       if Settings.KebakUnlimited then
           setupKebakUnlimited()
       end
       wait(1)
   end
end)

spawn(function()
   while gui.Parent do
       if Settings.InstantReload then
           setupInstantReload()
       end
       wait(1)
   end
end)

spawn(function()
   while gui.Parent do
       if Settings.Wallbang then
           setupWallbang()
       end
       wait(2)
   end
end)

spawn(function()
   while fovCircle.Parent do
       if Settings.AimAssist then
           TweenService:Create(circleStroke, TweenInfo.new(0.5), {Thickness = 3}):Play()
           wait(0.5)
           TweenService:Create(circleStroke, TweenInfo.new(0.5), {Thickness = 2}):Play()
           wait(0.5)
       else
           wait(1)
       end
   end
end)

UIS.InputBegan:Connect(function(input, gameProcessed)
   if not gameProcessed then
       if input.KeyCode == Enum.KeyCode.Insert then
           main.Visible = not main.Visible
           if main.Visible then
               TweenService:Create(main, TweenInfo.new(0.3, Enum.EasingStyle.Back), {
                   Size = UDim2.new(0, baseSize.X * guiScale, 0, baseSize.Y * guiScale)
               }):Play()
           end
       end
       
       if input.KeyCode == Enum.KeyCode.Delete then
           if glassBlur then
               glassBlur:Destroy()
           end
           gui:Destroy()
       end
   end
end)

gui.Destroying:Connect(function()
   if glassBlur then
       glassBlur:Destroy()
   end
   if espFolder then
       espFolder:Destroy()
   end
   if kebakConnection then
       kebakConnection:Disconnect()
   end
   if reloadConnection then
       reloadConnection:Disconnect()
   end
   if wallbangConnection then
       wallbangConnection:Disconnect()
   end
end)


wait(0.5)
local notif = Instance.new("Frame", gui)
notif.Size = UDim2.new(0, 250, 0, 50)
notif.Position = UDim2.new(1, 10, 1, -60)
notif.BackgroundColor3 = Color3.fromRGB(12, 12, 20)
notif.BorderSizePixel = 0
notif.ZIndex = 100

local notifCorner = Instance.new("UICorner", notif)
notifCorner.CornerRadius = UDim.new(0, 12)

local notifStroke = Instance.new("UIStroke", notif)
notifStroke.Color = Color3.fromRGB(0, 200, 100)
notifStroke.Thickness = 2

local notifText = Instance.new("TextLabel", notif)
notifText.Size = UDim2.new(1, -16, 1, 0)
notifText.Position = UDim2.new(0, 8, 0, 0)
notifText.BackgroundTransparency = 1
notifText.Text = "PeexHubs V3.2 Loaded!\nPress [INSERT] to toggle | [DELETE] to close"
notifText.TextColor3 = Color3.new(1, 1, 1)
notifText.Font = Enum.Font.GothamBold
notifText.TextSize = 11
notifText.TextWrapped = true
notifText.ZIndex = 101

TweenService:Create(notif, TweenInfo.new(0.5, Enum.EasingStyle.Back), {
   Position = UDim2.new(1, -260, 1, -60)
}):Play()

wait(4)

TweenService:Create(notif, TweenInfo.new(0.5), {
   Position = UDim2.new(1, 10, 1, -60)
}):Play()
wait(0.5)
notif:Destroy()


spawn(function()
   TweenService:Create(glassBlur, TweenInfo.new(0.5), {Size = 15}):Play()
   wait(0.5)
   TweenService:Create(glassBlur, TweenInfo.new(0.3), {Size = 0}):Play()
end)

Views: 31

Created At: 2026-03-22 23:29:41

View Raw Download Clone