Kore hub
Key Required

Kore hub

Steal a Brainrotessa2014qaessa2014qa 1.8K views 153 executesUpdated Oct 7, 2025
Unrated
00
Lua Script•506 lines (17882 chars)
-- Updated Sleek3DGUI LocalScript (StarterGui)
-- Safe: NO malicious behaviour. Anti-Lag is LOCAL ONLY (affects only this client).
-- Adds: "Anti-Lag (Local)" toggle and "Compact Mode" toggle.

local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local Lighting = game:GetService("Lighting")

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local function new(className, props)
    local obj = Instance.new(className)
    if props then
        for k, v in pairs(props) do
            if k == "Parent" then
                obj.Parent = v
            else
                obj[k] = v
            end
        end
    end
    return obj
end

-- Root ScreenGui (unique name)
local screenGui = new("ScreenGui", {
    Name = "Sleek3DGUI",
    ResetOnSpawn = false,
    Parent = playerGui
})

-- Background "shadow" frame for depth effect
local shadow = new("Frame", {
    Parent = screenGui,
    Size = UDim2.new(0, 420, 0, 320),
    Position = UDim2.new(0.5, -210, 0.35, -160),
    BackgroundColor3 = Color3.fromRGB(10, 10, 10),
    BackgroundTransparency = 0.6,
    BorderSizePixel = 0,
    ZIndex = 1,
})
new("UICorner", {Parent = shadow, CornerRadius = UDim.new(0, 18)})
new("UIStroke", {Parent = shadow, Thickness = 1, Transparency = 0.6})

-- Main glass panel
local main = new("Frame", {
    Parent = screenGui,
    Size = UDim2.new(0, 400, 0, 300),
    Position = UDim2.new(0.5, -200, 0.35, -150),
    BackgroundColor3 = Color3.fromRGB(20, 25, 30),
    BackgroundTransparency = 0,
    BorderSizePixel = 0,
    ZIndex = 2,
})
new("UICorner", {Parent = main, CornerRadius = UDim.new(0, 16)})
local innerGlow = new("Frame", {
    Parent = main,
    Size = UDim2.new(1, -8, 1, -8),
    Position = UDim2.new(0, 4, 0, 4),
    BackgroundTransparency = 1,
    ZIndex = 3,
})
local grad = new("UIGradient", {Parent = innerGlow, Rotation = 90})
grad.Color = ColorSequence.new{
    ColorSequenceKeypoint.new(0, Color3.fromRGB(40, 45, 50)),
    ColorSequenceKeypoint.new(1, Color3.fromRGB(18, 22, 26))
}

-- Title area
local titleBar = new("Frame", {
    Parent = main,
    Size = UDim2.new(1, -24, 0, 70),
    Position = UDim2.new(0, 12, 0, 12),
    BackgroundTransparency = 1,
    ZIndex = 4,
})
local titleLabel = new("TextLabel", {
    Parent = titleBar,
    Size = UDim2.new(0.75, 0, 1, 0),
    Position = UDim2.new(0, 0, 0, 0),
    BackgroundTransparency = 1,
    Text = "Sleek 3D GUI",
    TextScaled = false,
    TextSize = 32,
    Font = Enum.Font.GothamBold,
    TextColor3 = Color3.fromRGB(235, 235, 245),
    TextXAlignment = Enum.TextXAlignment.Left,
    ZIndex = 5,
})
local subtitle = new("TextLabel", {
    Parent = titleBar,
    Size = UDim2.new(0.75, 0, 0, 20),
    Position = UDim2.new(0, 0, 1, -22),
    BackgroundTransparency = 1,
    Text = "Clean • Scalable • Animated",
    TextScaled = false,
    TextSize = 14,
    Font = Enum.Font.Gotham,
    TextColor3 = Color3.fromRGB(170, 170, 180),
    TextXAlignment = Enum.TextXAlignment.Left,
    ZIndex = 5,
})

-- Title controls (rename and scale)
local controls = new("Frame", {
    Parent = titleBar,
    Size = UDim2.new(0.25, 0, 1, 0),
    Position = UDim2.new(0.75, 8, 0, 0),
    BackgroundTransparency = 1,
    ZIndex = 5,
})
local nameBox = new("TextBox", {
    Parent = controls,
    Size = UDim2.new(1, 0, 0, 36),
    Position = UDim2.new(0, 0, 0, 0),
    BackgroundColor3 = Color3.fromRGB(28, 32, 36),
    Text = "",
    PlaceholderText = "Rename title...",
    TextColor3 = Color3.fromRGB(240,240,240),
    TextSize = 16,
    Font = Enum.Font.Gotham,
    ClearTextOnFocus = false,
    ZIndex = 6,
})
new("UICorner", {Parent = nameBox, CornerRadius = UDim.new(0, 8)})
new("UIStroke", {Parent = nameBox, Transparency = 0.75, Thickness = 1})

local applyBtn = new("TextButton", {
    Parent = controls,
    Size = UDim2.new(1, 0, 0, 28),
    Position = UDim2.new(0, 0, 0, 44),
    BackgroundColor3 = Color3.fromRGB(60, 120, 240),
    Text = "Apply",
    TextSize = 16,
    Font = Enum.Font.GothamSemibold,
    TextColor3 = Color3.fromRGB(255,255,255),
    ZIndex = 6,
})
new("UICorner", {Parent = applyBtn, CornerRadius = UDim.new(0, 8)})
new("UIStroke", {Parent = applyBtn, Transparency = 0.7, Thickness = 1})

local sizeBox = new("TextBox", {
    Parent = titleBar,
    Size = UDim2.new(0, 70, 0, 28),
    Position = UDim2.new(0.75, 8, 1, -34),
    BackgroundColor3 = Color3.fromRGB(28, 32, 36),
    Text = "32",
    PlaceholderText = "Size",
    TextColor3 = Color3.fromRGB(240,240,240),
    TextSize = 16,
    Font = Enum.Font.Gotham,
    ClearTextOnFocus = false,
    ZIndex = 6,
})
new("UICorner", {Parent = sizeBox, CornerRadius = UDim.new(0, 8)})
new("UIStroke", {Parent = sizeBox, Transparency = 0.7, Thickness = 1})

-- Tabs
local tabsFrame = new("Frame", {
    Parent = main,
    Size = UDim2.new(1, -24, 0, 44),
    Position = UDim2.new(0, 12, 0, 100),
    BackgroundTransparency = 1,
    ZIndex = 4,
})
local tabs = {}
local tabNames = {"Home", "Utilities", "About"}
for i, name in ipairs(tabNames) do
    local btn = new("TextButton", {
        Parent = tabsFrame,
        Size = UDim2.new(1/#tabNames, -8, 1, 0),
        Position = UDim2.new((i-1)/#tabNames, 8*(i-1), 0, 0),
        BackgroundColor3 = Color3.fromRGB(24, 28, 34),
        Text = name,
        TextSize = 16,
        Font = Enum.Font.GothamMedium,
        TextColor3 = Color3.fromRGB(200,200,210),
        ZIndex = 5,
    })
    new("UICorner", {Parent = btn, CornerRadius = UDim.new(0, 8)})
    new("UIStroke", {Parent = btn, Transparency = 0.75, Thickness = 1})
    tabs[name] = btn
end

-- Content panels
local contentArea = new("Frame", {
    Parent = main,
    Size = UDim2.new(1, -24, 1, -160),
    Position = UDim2.new(0, 12, 0, 148),
    BackgroundTransparency = 1,
    ZIndex = 4,
})
local panels = {}
for _, name in ipairs(tabNames) do
    local p = new("Frame", {
        Parent = contentArea,
        Size = UDim2.new(1, 0, 1, 0),
        Position = UDim2.new(0, 0, 0, 0),
        BackgroundTransparency = 1,
        Visible = (name == "Home"),
        ZIndex = 5,
    })
    panels[name] = p
end

-- Create action buttons
local function createActionButton(parent, text, pos)
    local b = new("TextButton", {
        Parent = parent,
        Size = UDim2.new(0, 160, 0, 44),
        Position = pos,
        BackgroundColor3 = Color3.fromRGB(42, 46, 54),
        Text = text,
        TextSize = 18,
        Font = Enum.Font.Gotham,
        TextColor3 = Color3.fromRGB(235,235,240),
        ZIndex = 6,
    })
    new("UICorner", {Parent = b, CornerRadius = UDim.new(0, 10)})
    new("UIStroke", {Parent = b, Transparency = 0.7, Thickness = 1})
    return b
end

local home = panels["Home"]
local btnTeleportUp = createActionButton(home, "Teleport Up", UDim2.new(0, 12, 0, 12))
local btnTeleportDown = createActionButton(home, "Teleport Down", UDim2.new(0, 12, 0, 68))
local btnJumpBoost = createActionButton(home, "Jump Boost", UDim2.new(0, 196, 0, 12))

-- Utilities: add Anti-Lag (Local) and Compact Mode buttons
local utilities = panels["Utilities"]
local btnAntiLag = createActionButton(utilities, "Anti-Lag (Local)", UDim2.new(0, 12, 0, 12))
local btnCompact = createActionButton(utilities, "Compact Mode", UDim2.new(0, 12, 0, 68))

-- About content
local aboutText = new("TextLabel", {
    Parent = panels["About"],
    Size = UDim2.new(1, -8, 1, -8),
    Position = UDim2.new(0, 4, 0, 4),
    BackgroundTransparency = 1,
    Text = "Sleek 3D GUI demo.\nSafe client-side features only.\nNo exploits, no godmode.",
    TextWrapped = true,
    TextSize = 16,
    Font = Enum.Font.Gotham,
    TextColor3 = Color3.fromRGB(180,180,190),
    ZIndex = 6,
})

-- Utilities placeholder text (also show status lines)
local utilStatus = new("TextLabel", {
    Parent = utilities,
    Size = UDim2.new(1, -8, 0, 40),
    Position = UDim2.new(0, 184, 0, 12),
    BackgroundTransparency = 1,
    Text = "Anti-Lag: OFF\nCompact Mode: OFF",
    TextWrapped = true,
    TextSize = 14,
    Font = Enum.Font.Gotham,
    TextColor3 = Color3.fromRGB(180,180,190),
    ZIndex = 6,
})

-- Tab switching
for name, btn in pairs(tabs) do
    btn.MouseButton1Click:Connect(function()
        for n, p in pairs(panels) do
            p.Visible = (n == name)
        end
        TweenService:Create(btn, TweenInfo.new(0.12, Enum.EasingStyle.Quad), {BackgroundColor3 = Color3.fromRGB(60, 70, 90)}):Play()
        delay(0.12, function()
            TweenService:Create(btn, TweenInfo.new(0.12, Enum.EasingStyle.Quad), {BackgroundColor3 = Color3.fromRGB(24, 28, 34)}):Play()
        end)
    end)
end

-- Title rename and size
applyBtn.MouseButton1Click:Connect(function()
    local txt = nameBox.Text
    if txt and txt ~= "" then
        titleLabel.Text = txt
        titleLabel.TextColor3 = Color3.fromRGB(255,255,255)
        TweenService:Create(titleLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {TextSize = math.clamp(tonumber(sizeBox.Text) or 32, 14, 72)}):Play()
        delay(0.18, function() titleLabel.TextColor3 = Color3.fromRGB(235,235,245) end)
    end
end)

local function applyTitleSize()
    local n = tonumber(sizeBox.Text)
    if n then
        n = math.clamp(n, 14, 72)
        titleLabel.TextSize = n
    end
end
sizeBox.FocusLost:Connect(function() applyTitleSize() end)

-- Character helpers and debounces
local function getCharacter()
    local char = player.Character or player.CharacterAdded:Wait()
    local h = char:FindFirstChild("Humanoid")
    local root = char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
    return char, h, root
end

local canTeleport = true
local teleportCooldown = 1.0
local canJumpBoost = true
local jumpBoostCooldown = 5.0

local function tweenToCFrame(part, targetCFrame, duration)
    if not part or not part:IsA("BasePart") then return end
    local ti = TweenInfo.new(duration or 0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
    local tween = TweenService:Create(part, ti, {CFrame = targetCFrame})
    tween:Play()
end

-- Teleport Up/Down and Jump Boost (same safe behavior)
btnTeleportUp.MouseButton1Click:Connect(function()
    if not canTeleport then
        btnTeleportUp.Text = "Cooldown..."
        wait(0.3)
        btnTeleportUp.Text = "Teleport Up"
        return
    end
    canTeleport = false
    local char, humanoid, root = getCharacter()
    if root then
        local currentCF = root.CFrame
        local offset = Vector3.new(0, 50, 0)
        local target = currentCF + offset
        tweenToCFrame(root, target, 0.5)
    end
    delay(teleportCooldown, function() canTeleport = true end)
end)

btnTeleportDown.MouseButton1Click:Connect(function()
    if not canTeleport then
        btnTeleportDown.Text = "Cooldown..."
        wait(0.3)
        btnTeleportDown.Text = "Teleport Down"
        return
    end
    canTeleport = false
    local char, humanoid, root = getCharacter()
    if root then
        local currentCF = root.CFrame
        local newY = math.max(4, currentCF.Y - 50)
        local target = CFrame.new(currentCF.X, newY, currentCF.Z)
        tweenToCFrame(root, target, 0.5)
    end
    delay(teleportCooldown, function() canTeleport = true end)
end)

btnJumpBoost.MouseButton1Click:Connect(function()
    if not canJumpBoost then
        btnJumpBoost.Text = "On Cooldown..."
        wait(0.6)
        btnJumpBoost.Text = "Jump Boost"
        return
    end
    canJumpBoost = false
    local char, humanoid = getCharacter()
    if humanoid then
        local original = humanoid.JumpPower
        local boosted = math.clamp(original * 1.8, original + 20, 300)
        humanoid.JumpPower = boosted
        btnJumpBoost.Text = "Boosted!"
        wait(5)
        if humanoid then humanoid.JumpPower = original end
        btnJumpBoost.Text = "Jump Boost"
    end
    delay(jumpBoostCooldown, function() canJumpBoost = true end)
end)

-- === ANTI-LAG (LOCAL) ===
-- This toggles local-only optimizations: attempts to disable 3D rendering, disable particle/trail/smoke/fire Visuals locally,
-- and reduce some lighting settings locally. It does NOT affect other players or server state.
local antiLagEnabled = false
local savedParticleStates = {} -- to restore Enabled property where possible
local savedLighting = {}
local function tryDisableClientParticles()
    -- iterate descendants and disable particle-like emitters locally; pcall in case of readonly properties
    for _, obj in ipairs(workspace:GetDescendants()) do
        local class = obj.ClassName
        if class == "ParticleEmitter" or class == "Trail" or class == "Smoke" or class == "Fire" then
            local ok, prev = pcall(function() return obj.Enabled end)
            if ok and prev ~= nil then
                savedParticleStates[obj] = prev
                pcall(function() obj.Enabled = false end)
            end
        end
    end
end
local function tryRestoreClientParticles()
    for obj, prev in pairs(savedParticleStates) do
        if obj and obj.Parent then
            pcall(function() obj.Enabled = prev end)
        end
    end
    savedParticleStates = {}
end

local function enableAntiLag()
    if antiLagEnabled then return end
    antiLagEnabled = true
    -- Attempt to disable 3D rendering (dramatically reduces CPU/GPU load for this client)
    pcall(function() RunService:Set3dRenderingEnabled(false) end)
    -- Try to turn off particle emitters locally
    tryDisableClientParticles()
    -- Save and reduce some lighting settings (client-side where allowed)
    pcall(function()
        savedLighting.GlobalShadows = Lighting.GlobalShadows
        savedLighting.OutdoorAmbient = Lighting.OutdoorAmbient
        savedLighting.Brightness = Lighting.Brightness
        Lighting.GlobalShadows = false
        Lighting.OutdoorAmbient = Color3.fromRGB(128,128,128)
        Lighting.Brightness = math.max(0, Lighting.Brightness * 0.5)
    end)
    utilStatus.Text = "Anti-Lag: ON\nCompact Mode: " .. (main:GetAttribute("compact") and "ON" or "OFF")
    btnAntiLag.Text = "Anti-Lag: ON"
end

local function disableAntiLag()
    if not antiLagEnabled then return end
    antiLagEnabled = false
    pcall(function() RunService:Set3dRenderingEnabled(true) end)
    tryRestoreClientParticles()
    pcall(function()
        if savedLighting.GlobalShadows ~= nil then Lighting.GlobalShadows = savedLighting.GlobalShadows end
        if savedLighting.OutdoorAmbient ~= nil then Lighting.OutdoorAmbient = savedLighting.OutdoorAmbient end
        if savedLighting.Brightness ~= nil then Lighting.Brightness = savedLighting.Brightness end
    end)
    savedLighting = {}
    utilStatus.Text = "Anti-Lag: OFF\nCompact Mode: " .. (main:GetAttribute("compact") and "ON" or "OFF")
    btnAntiLag.Text = "Anti-Lag (Local)"
end

btnAntiLag.MouseButton1Click:Connect(function()
    if not antiLagEnabled then
        enableAntiLag()
    else
        disableAntiLag()
    end
end)

-- === COMPACT MODE (shrinks GUI locally) ===
local compact = false
local normalSize = main.Size
local normalPos = main.Position
local normalShadowSize = shadow.Size
local normalShadowPos = shadow.Position
local compactSize = UDim2.new(0, 260, 0, 180)
local compactPos = UDim2.new(0.5, -130, 0.35, -90)

btnCompact.MouseButton1Click:Connect(function()
    compact = not compact
    main:SetAttribute("compact", compact)
    if compact then
        -- shrink and tween to compact
        TweenService:Create(main, TweenInfo.new(0.25, Enum.EasingStyle.Quad), {Size = compactSize, Position = compactPos}):Play()
        TweenService:Create(shadow, TweenInfo.new(0.25, Enum.EasingStyle.Quad), {Size = compactSize + UDim2.new(0, 20, 0, 20), Position = compactPos + UDim2.new(0, 10, 0, 10)}):Play()
        -- reduce title size slightly
        TweenService:Create(titleLabel, TweenInfo.new(0.2), {TextSize = math.clamp(titleLabel.TextSize * 0.7, 12, 72)}):Play()
        btnCompact.Text = "Compact: ON"
    else
        -- restore
        TweenService:Create(main, TweenInfo.new(0.25, Enum.EasingStyle.Quad), {Size = normalSize, Position = normalPos}):Play()
        TweenService:Create(shadow, TweenInfo.new(0.25, Enum.EasingStyle.Quad), {Size = normalShadowSize, Position = normalShadowPos}):Play()
        TweenService:Create(titleLabel, TweenInfo.new(0.2), {TextSize = tonumber(sizeBox.Text) or 32}):Play()
        btnCompact.Text = "Compact Mode"
    end
    utilStatus.Text = "Anti-Lag: " .. (antiLagEnabled and "ON" or "OFF") .. "\nCompact Mode: " .. (compact and "ON" or "OFF")
end)

-- Entrance animation and draggable behavior (unchanged)
screenGui.Parent = playerGui
main.Position = main.Position + UDim2.new(0, 0, 0.05, 0)
main.Size = main.Size * 0.95
TweenService:Create(main, TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out), {
    Position = UDim2.new(0.5, -200, 0.35, -150),
    Size = UDim2.new(0, 400, 0, 300),
}):Play()
TweenService:Create(shadow, TweenInfo.new(0.5), {Position = shadow.Position}):Play()

local dragging = false
local dragStart = Vector2.new(0,0)
local startPos = UDim2.new()
titleBar.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 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 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)
        shadow.Position = main.Position + UDim2.new(0, 10, 0, 10)
    end
end)

Features & Information

Anyhting will add anti hti soon we are working

Community Comments (1)

ScriptFinderWScriptFinderWNov 19, 2025

chatgpt lmao

More Scripts for Steal a Brainrot