{"id":"4GPByh6X72","url":"https://pastebin.ca/4GPByh6X72","raw_url":"https://raw.anybin.ca/4GPByh6X72","visibility":"public","access":"public","created_at":1794773942796,"expires_at":1795378742796,"fetch_limit":null,"fetches_used":0,"reads_remaining":null,"size_bytes":40013,"syntax_hint":null,"title":null,"filename":null,"change_note":null,"cipher":null,"cipher_meta":null,"parent_id":null,"root_id":"4GPByh6X72","version":1,"owner_id":null,"recipient_id":null,"body":"--[[ IMPRA v1.2 | Key: jointodiscord | Discord: https://discord.gg/MrXgJC4GK ]]\n\nif not game:IsLoaded() then game.Loaded:Wait() end\nlocal Players      = game:GetService(\"Players\")\nlocal UIS          = game:GetService(\"UserInputService\")\nlocal RunService   = game:GetService(\"RunService\")\nlocal TweenService = game:GetService(\"TweenService\")\nlocal Lighting     = game:GetService(\"Lighting\")\nlocal LP = Players.LocalPlayer\nlocal PG = LP:WaitForChild(\"PlayerGui\")\nif PG:FindFirstChild(\"IMPRA\") then PG.IMPRA:Destroy() end\n\nprint(\"[IMPRA] v1.2 loading...\")\n\nlocal CONFIG = {KEY=\"jointodiscord\", DISCORD=\"https://discord.gg/MrXgJC4GK\", VERSION=\"1.2\", DEF_THEME=\"Dark\"}\n\n-- THEMES\nlocal Themes = {\n    Dark     = {BG=Color3.fromRGB(15,15,18),BG2=Color3.fromRGB(22,22,27),BG3=Color3.fromRGB(30,30,36),\n                ACCENT=Color3.fromRGB(255,255,255),TEXT=Color3.fromRGB(240,240,240),SUB=Color3.fromRGB(150,150,155),\n                BORDER=Color3.fromRGB(45,45,52),DANGER=Color3.fromRGB(255,80,80),SUCCESS=Color3.fromRGB(80,220,120)},\n    Light    = {BG=Color3.fromRGB(248,248,250),BG2=Color3.fromRGB(235,235,240),BG3=Color3.fromRGB(220,220,225),\n                ACCENT=Color3.fromRGB(30,30,30),TEXT=Color3.fromRGB(20,20,22),SUB=Color3.fromRGB(100,100,105),\n                BORDER=Color3.fromRGB(200,200,205),DANGER=Color3.fromRGB(200,50,50),SUCCESS=Color3.fromRGB(30,160,80)},\n    Midnight = {BG=Color3.fromRGB(8,10,22),BG2=Color3.fromRGB(16,20,38),BG3=Color3.fromRGB(24,30,52),\n                ACCENT=Color3.fromRGB(120,160,255),TEXT=Color3.fromRGB(220,228,255),SUB=Color3.fromRGB(140,155,195),\n                BORDER=Color3.fromRGB(38,46,72),DANGER=Color3.fromRGB(255,100,100),SUCCESS=Color3.fromRGB(100,220,160)},\n    Contrast = {BG=Color3.fromRGB(0,0,0),BG2=Color3.fromRGB(20,20,20),BG3=Color3.fromRGB(35,35,35),\n                ACCENT=Color3.fromRGB(255,210,0),TEXT=Color3.fromRGB(255,255,255),SUB=Color3.fromRGB(180,180,180),\n                BORDER=Color3.fromRGB(255,255,255),DANGER=Color3.fromRGB(255,80,80),SUCCESS=Color3.fromRGB(80,255,130)},\n}\nlocal CurrentTheme = CONFIG.DEF_THEME\nlocal function T() return Themes[CurrentTheme] end\nlocal themeFns = {}\nlocal function onTheme(fn) pcall(fn, Themes[CurrentTheme]); table.insert(themeFns, fn) end\nlocal function applyTheme(n)\n    if not Themes[n] then return end\n    CurrentTheme = n\n    for _, fn in ipairs(themeFns) do pcall(fn, Themes[n]) end\nend\n\n-- HELPERS\nlocal function new(class, props)\n    local o = Instance.new(class)\n    for k, v in pairs(props) do if k ~= \"Parent\" then pcall(function() o[k]=v end) end end\n    if props.Parent then o.Parent = props.Parent end\n    return o\nend\nlocal function corner(p, r) return new(\"UICorner\", {CornerRadius=UDim.new(0, r or 8), Parent=p}) end\nlocal function stroke(p, c, t) return new(\"UIStroke\", {Color=c or T().BORDER, Thickness=t or 1, Parent=p}) end\nlocal connections = {}\nlocal function track(c) table.insert(connections, c); return c end\n\nlocal function getScale(f)\n    local s = f:FindFirstChild(\"IMPRA_Scale\")\n    if not s then s = Instance.new(\"UIScale\"); s.Name=\"IMPRA_Scale\"; s.Scale=1; s.Parent=f end\n    return s\nend\nlocal function popIn(f, d)\n    local s = getScale(f); s.Scale = 0.7\n    TweenService:Create(s, TweenInfo.new(d or 0.4, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Scale=1}):Play()\nend\nlocal function popOut(f, d, cb)\n    local t = TweenService:Create(getScale(f), TweenInfo.new(d or 0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {Scale=0.7})\n    t:Play(); if cb then t.Completed:Connect(cb) end\nend\nlocal function addHover(b, gN, gH)\n    local s = getScale(b); local h = false\n    b.MouseEnter:Connect(function()\n        h=true\n        TweenService:Create(s, TweenInfo.new(0.15), {Scale=1.03}):Play()\n        TweenService:Create(b, TweenInfo.new(0.15), {BackgroundColor3=gH()}):Play()\n    end)\n    b.MouseLeave:Connect(function()\n        h=false\n        TweenService:Create(s, TweenInfo.new(0.15), {Scale=1}):Play()\n        TweenService:Create(b, TweenInfo.new(0.15), {BackgroundColor3=gN()}):Play()\n    end)\n    onTheme(function() b.BackgroundColor3 = h and gH() or gN() end)\nend\nlocal function addRipple(b)\n    b.ClipsDescendants = true\n    b.MouseButton1Click:Connect(function()\n        pcall(function()\n            local r = Instance.new(\"Frame\")\n            r.AnchorPoint = Vector2.new(0.5,0.5)\n            r.Position = UDim2.fromScale(0.5,0.5)\n            r.Size = UDim2.fromOffset(0,0)\n            r.BackgroundColor3 = Color3.new(1,1,1)\n            r.BackgroundTransparency = 0.65\n            r.BorderSizePixel = 0\n            r.ZIndex = b.ZIndex + 1\n            r.Parent = b\n            local c = Instance.new(\"UICorner\"); c.CornerRadius = UDim.new(1,0); c.Parent = r\n            local tgt = math.max(b.AbsoluteSize.X, b.AbsoluteSize.Y) * 2\n            TweenService:Create(r, TweenInfo.new(0.5), {Size=UDim2.fromOffset(tgt,tgt), BackgroundTransparency=1}):Play()\n            task.delay(0.55, function() pcall(function() r:Destroy() end) end)\n        end)\n    end)\nend\nlocal function polishBtn(b, gN, gH)\n    if gN and gH then addHover(b, gN, gH) end\n    addRipple(b)\nend\nlocal function makeDraggable(frame, handle, excludes)\n    local dragging, ds, sp = false, nil, nil\n    local s = getScale(frame)\n    excludes = excludes or {}\n    local function isExcluded(t)\n        for _, ex in ipairs(excludes) do\n            if t == ex then return true end\n            local ok, r = pcall(function() return t:IsDescendantOf(ex) end)\n            if ok and r then return true end\n        end\n        return false\n    end\n    handle.InputBegan:Connect(function(i)\n        if i.UserInputType ~= Enum.UserInputType.MouseButton1 then return end\n        if isExcluded(i.Target) then return end\n        dragging = true; ds = i.Position; sp = frame.Position\n        TweenService:Create(s, TweenInfo.new(0.15), {Scale=1.02}):Play()\n    end)\n    UIS.InputChanged:Connect(function(i)\n        if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then\n            local d = i.Position - ds\n            frame.Position = UDim2.new(sp.X.Scale, sp.X.Offset+d.X, sp.Y.Scale, sp.Y.Offset+d.Y)\n        end\n    end)\n    UIS.InputEnded:Connect(function(i)\n        if i.UserInputType == Enum.UserInputType.MouseButton1 and dragging then\n            dragging = false\n            TweenService:Create(s, TweenInfo.new(0.15, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Scale=1}):Play()\n        end\n    end)\nend\n\n-- STATE\nlocal state = {fly=false, flySpeed=50, noclip=false, esp=false, clickTp=false, fullbright=false}\nlocal flyBV, noclipConn = nil, nil\nlocal espObjects = {}\nlocal origLight = {B=Lighting.Brightness, A=Lighting.Ambient, OA=Lighting.OutdoorAmbient, CT=Lighting.ClockTime, FE=Lighting.FogEnd}\nlocal buildMainUI, setFly, setNoclip, setESP, setFullbright, unloadScript\n\n-- GUI ROOT\nlocal gui = new(\"ScreenGui\", {Name=\"IMPRA\", ResetOnSpawn=false, IgnoreGuiInset=true,\n    ZIndexBehavior=Enum.ZIndexBehavior.Sibling, DisplayOrder=999, Parent=PG})\n\n-- ═══ KEY SYSTEM ═══\nlocal keyFrame = new(\"Frame\", {Name=\"KeySystem\", Size=UDim2.fromOffset(420,300),\n    Position=UDim2.new(0.5,0,0.5,0), AnchorPoint=Vector2.new(0.5,0.5),\n    BackgroundColor3=T().BG, BorderSizePixel=0, Parent=gui})\ncorner(keyFrame, 12)\nlocal kStroke = stroke(keyFrame, T().BORDER, 1)\nonTheme(function(t) keyFrame.BackgroundColor3=t.BG; kStroke.Color=t.BORDER end)\n\nlocal kTitle = new(\"TextLabel\", {Size=UDim2.new(1,0,0,44), BackgroundTransparency=1,\n    Text=\"IMPRA v\"..CONFIG.VERSION, TextColor3=T().TEXT, Font=Enum.Font.GothamBold, TextSize=24, Parent=keyFrame})\nonTheme(function(t) kTitle.TextColor3=t.TEXT end)\nnew(\"TextLabel\", {Size=UDim2.new(1,0,0,20), Position=UDim2.new(0,0,0,46), BackgroundTransparency=1,\n    Text=\"Key System • Enter your access key\", TextColor3=T().SUB, Font=Enum.Font.Gotham, TextSize=13, Parent=keyFrame})\nonTheme(function(t) for _,c in ipairs(keyFrame:GetChildren()) do\n    if c:IsA(\"TextLabel\") and c.Text:find(\"Key System\") then c.TextColor3=t.SUB end end end)\n\nlocal kBox = new(\"Frame\", {Size=UDim2.new(1,-60,0,44), Position=UDim2.new(0,30,0,90),\n    BackgroundColor3=T().BG2, BorderSizePixel=0, Parent=keyFrame})\ncorner(kBox, 8)\nlocal kBoxStroke = stroke(kBox, T().BORDER, 1)\nonTheme(function(t) kBox.BackgroundColor3=t.BG2; kBoxStroke.Color=t.BORDER end)\nlocal kInput = new(\"TextBox\", {Size=UDim2.new(1,-20,1,0), Position=UDim2.new(0,12,0,0), BackgroundTransparency=1,\n    Text=\"\", PlaceholderText=\"Enter key...\", PlaceholderColor3=T().SUB, TextColor3=T().TEXT,\n    Font=Enum.Font.Gotham, TextSize=15, TextXAlignment=Enum.TextXAlignment.Left, ClearTextOnFocus=false, Parent=kBox})\nonTheme(function(t) kInput.TextColor3=t.TEXT; kInput.PlaceholderColor3=t.SUB end)\n\nlocal kStatus = new(\"TextLabel\", {Size=UDim2.new(1,-60,0,18), Position=UDim2.new(0,30,0,140),\n    BackgroundTransparency=1, Text=\"\", TextColor3=T().DANGER, Font=Enum.Font.GothamMedium, TextSize=12,\n    TextXAlignment=Enum.TextXAlignment.Left, Parent=keyFrame})\nonTheme(function(t) kStatus.TextColor3=t.DANGER end)\n\nlocal unlockBtn = new(\"TextButton\", {Size=UDim2.new(1,-60,0,44), Position=UDim2.new(0,30,0,168),\n    BackgroundColor3=T().ACCENT, Text=\"UNLOCK\", TextColor3=T().BG, Font=Enum.Font.GothamBold, TextSize=15,\n    BorderSizePixel=0, AutoButtonColor=false, Parent=keyFrame})\ncorner(unlockBtn, 8)\nonTheme(function(t) unlockBtn.BackgroundColor3=t.ACCENT; unlockBtn.TextColor3=t.BG end)\npolishBtn(unlockBtn,\n    function() return T().ACCENT end,\n    function() return Color3.new(math.min(1,T().ACCENT.R+0.15), math.min(1,T().ACCENT.G+0.15), math.min(1,T().ACCENT.B+0.15)) end)\n\nlocal discBtn = new(\"TextButton\", {Size=UDim2.new(1,-60,0,32), Position=UDim2.new(0,30,0,226),\n    BackgroundColor3=T().BG2, Text=\"Join our Discord • \"..CONFIG.DISCORD, TextColor3=T().SUB,\n    Font=Enum.Font.Gotham, TextSize=12, BorderSizePixel=0, AutoButtonColor=false, Parent=keyFrame})\ncorner(discBtn, 6)\nonTheme(function(t) discBtn.BackgroundColor3=t.BG2; discBtn.TextColor3=t.SUB end)\npolishBtn(discBtn, function() return T().BG2 end, function() return T().BG3 end)\n\ndiscBtn.MouseButton1Click:Connect(function()\n    pcall(function() setclipboard(CONFIG.DISCORD) end)\n    kStatus.Text = \"Discord link copied!\"; kStatus.TextColor3 = T().SUCCESS\n    task.delay(2, function()\n        if kStatus.Text == \"Discord link copied!\" then kStatus.Text=\"\"; kStatus.TextColor3=T().DANGER end\n    end)\nend)\n\ntask.defer(function() popIn(keyFrame, 0.45) end)\nmakeDraggable(keyFrame, keyFrame, {unlockBtn, discBtn, kInput, kBox})\n\nlocal function flashStroke(c, th)\n    kStroke.Color = c; kStroke.Thickness = th\n    TweenService:Create(kStroke, TweenInfo.new(0.4), {Thickness=1, Color=T().BORDER}):Play()\nend\nlocal function showKeyErr(msg)\n    kStatus.Text = msg; kStatus.TextColor3 = T().DANGER\n    flashStroke(T().DANGER, 3)\n    local o = kBox.Position\n    for i=1,6 do kBox.Position = o + UDim2.fromOffset((i%2==0) and 6 or -6, 0); task.wait(0.03) end\n    kBox.Position = o\nend\nlocal function tryUnlock()\n    local k = (kInput.Text or \"\"):gsub(\"%s+\", \"\")\n    if k == \"\" then showKeyErr(\"Please enter a key.\") return end\n    if k == CONFIG.KEY then\n        kStatus.Text = \"Key accepted! Loading...\"; kStatus.TextColor3 = T().SUCCESS\n        flashStroke(T().SUCCESS, 3)\n        task.wait(0.6)\n        popOut(keyFrame, 0.35, function()\n            keyFrame:Destroy()\n            print(\"[IMPRA] Building main GUI...\")\n            if buildMainUI then\n                local ok, err = pcall(buildMainUI)\n                if not ok then warn(\"[IMPRA] buildMainUI error:\", err) end\n            else warn(\"[IMPRA] buildMainUI nil!\") end\n        end)\n    else showKeyErr(\"Invalid key. Try again.\") end\nend\nunlockBtn.MouseButton1Click:Connect(tryUnlock)\nkInput.FocusLost:Connect(function(e) if e then tryUnlock() end end)\nprint(\"[IMPRA] Key system ready\")\n\n-- ═══ MAIN UI ═══\nbuildMainUI = function()\n    print(\"[IMPRA] buildMainUI...\")\n    local pages, tabs, activePage, allItems = {}, {}, \"Main\", {}\n\n    local mainFrame = new(\"Frame\", {Name=\"Main\", Size=UDim2.fromOffset(720,480),\n        Position=UDim2.new(0.5,0,0.5,0), AnchorPoint=Vector2.new(0.5,0.5),\n        BackgroundColor3=T().BG, BorderSizePixel=0, Parent=gui})\n    corner(mainFrame, 12)\n    local mStroke = stroke(mainFrame, T().BORDER, 1)\n    onTheme(function(t) mainFrame.BackgroundColor3=t.BG; mStroke.Color=t.BORDER end)\n\n    -- TOP BAR\n    local topBar = new(\"Frame\", {Size=UDim2.new(1,0,0,44), BackgroundColor3=T().BG2, BorderSizePixel=0, Parent=mainFrame})\n    corner(topBar, 12)\n    local topCover = new(\"Frame\", {Size=UDim2.new(1,0,0,22), Position=UDim2.new(0,0,1,-22),\n        BackgroundColor3=T().BG2, BorderSizePixel=0, Parent=topBar})\n    onTheme(function(t) topBar.BackgroundColor3=t.BG2; topCover.BackgroundColor3=t.BG2 end)\n\n    local title = new(\"TextLabel\", {Size=UDim2.fromOffset(220,44), Position=UDim2.fromOffset(20,0), BackgroundTransparency=1,\n        Text=\"IMPRA v\"..CONFIG.VERSION, TextColor3=T().TEXT, Font=Enum.Font.GothamBold, TextSize=16,\n        TextXAlignment=Enum.TextXAlignment.Left, Parent=topBar})\n    onTheme(function(t) title.TextColor3=t.TEXT end)\n\n    -- SEARCH\n    local searchFrame = new(\"Frame\", {Size=UDim2.fromOffset(280,30), Position=UDim2.new(0.5,-140,0.5,-15),\n        BackgroundColor3=T().BG3, BorderSizePixel=0, Parent=topBar})\n    corner(searchFrame, 6)\n    local sS = stroke(searchFrame, T().BORDER, 1)\n    onTheme(function(t) searchFrame.BackgroundColor3=t.BG3; sS.Color=t.BORDER end)\n    new(\"TextLabel\", {Size=UDim2.fromOffset(24,30), Position=UDim2.fromOffset(4,0), BackgroundTransparency=1,\n        Text=\"🔍\", TextColor3=T().SUB, Font=Enum.Font.Gotham, TextSize=13, Parent=searchFrame})\n    local searchBox = new(\"TextBox\", {Size=UDim2.new(1,-24,1,0), Position=UDim2.fromOffset(24,0), BackgroundTransparency=1,\n        PlaceholderText=\"Search features...\", PlaceholderColor3=T().SUB, Text=\"\", TextColor3=T().TEXT,\n        Font=Enum.Font.Gotham, TextSize=13, TextXAlignment=Enum.TextXAlignment.Left, ClearTextOnFocus=false, Parent=searchFrame})\n    onTheme(function(t) searchBox.TextColor3=t.TEXT; searchBox.PlaceholderColor3=t.SUB end)\n\n    -- MIN/CLOSE\n    local minBtn = new(\"TextButton\", {Size=UDim2.fromOffset(28,28), Position=UDim2.new(1,-72,0.5,-14),\n        BackgroundColor3=T().BG3, Text=\"—\", TextColor3=T().TEXT, Font=Enum.Font.GothamBold, TextSize=14,\n        BorderSizePixel=0, AutoButtonColor=false, Parent=topBar})\n    corner(minBtn, 6)\n    onTheme(function(t) minBtn.BackgroundColor3=t.BG3; minBtn.TextColor3=t.TEXT end)\n    polishBtn(minBtn, function() return T().BG3 end, function() return T().BORDER end)\n\n    local closeBtn = new(\"TextButton\", {Size=UDim2.fromOffset(28,28), Position=UDim2.new(1,-38,0.5,-14),\n        BackgroundColor3=T().BG3, Text=\"✕\", TextColor3=T().DANGER, Font=Enum.Font.GothamBold, TextSize=14,\n        BorderSizePixel=0, AutoButtonColor=false, Parent=topBar})\n    corner(closeBtn, 6)\n    onTheme(function(t) closeBtn.BackgroundColor3=t.BG3; closeBtn.TextColor3=t.DANGER end)\n    polishBtn(closeBtn, function() return T().BG3 end,\n        function() return Color3.new(math.min(1,T().BG3.R+0.15), T().BG3.G, T().BG3.B) end)\n\n    makeDraggable(mainFrame, topBar, {searchBox, searchFrame, minBtn, closeBtn})\n\n    -- SIDEBAR\n    local sidebar = new(\"Frame\", {Size=UDim2.new(0,130,1,-68), Position=UDim2.new(0,0,0,44),\n        BackgroundColor3=T().BG2, BorderSizePixel=0, Parent=mainFrame})\n    local sbS = stroke(sidebar, T().BORDER, 1)\n    onTheme(function(t) sidebar.BackgroundColor3=t.BG2; sbS.Color=t.BORDER end)\n\n    -- STATUS BAR\n    local statusBar = new(\"Frame\", {Size=UDim2.new(1,0,0,24), Position=UDim2.new(0,0,1,-24),\n        BackgroundColor3=T().BG2, BorderSizePixel=0, Parent=mainFrame})\n    onTheme(function(t) statusBar.BackgroundColor3=t.BG2 end)\n    local statusLabel = new(\"TextLabel\", {Size=UDim2.new(1,-20,1,0), Position=UDim2.fromOffset(12,0),\n        BackgroundTransparency=1, Text=\"Ready • IMPRA v\"..CONFIG.VERSION, TextColor3=T().SUB,\n        Font=Enum.Font.Gotham, TextSize=11, TextXAlignment=Enum.TextXAlignment.Left, Parent=statusBar})\n    onTheme(function(t) statusLabel.TextColor3=t.SUB end)\n\n    -- CONTENT\n    local content = new(\"Frame\", {Size=UDim2.new(1,-140,1,-68), Position=UDim2.new(0,135,0,44),\n        BackgroundTransparency=1, ClipsDescendants=true, Parent=mainFrame})\n\n    local function makePage(name)\n        local p = new(\"ScrollingFrame\", {Name=name..\"Page\", Size=UDim2.new(1,0,1,0),\n            BackgroundTransparency=1, BorderSizePixel=0, ScrollBarThickness=4, ScrollBarImageColor3=T().SUB,\n            CanvasSize=UDim2.new(0,0,0,0), AutomaticCanvasSize=Enum.AutomaticSize.Y, Visible=false, Parent=content})\n        new(\"UIPadding\", {PaddingLeft=UDim.new(0,10), PaddingRight=UDim.new(0,10),\n            PaddingTop=UDim.new(0,10), PaddingBottom=UDim.new(0,10), Parent=p})\n        new(\"UIListLayout\", {Padding=UDim.new(0,8), SortOrder=Enum.SortOrder.LayoutOrder, Parent=p})\n        pages[name] = p\n        return p\n    end\n\n    local function section(parent, text, order)\n        local f = new(\"Frame\", {Size=UDim2.new(1,0,0,24), BackgroundTransparency=1, LayoutOrder=order or 0, Parent=parent})\n        new(\"TextLabel\", {Size=UDim2.new(1,0,1,0), BackgroundTransparency=1, Text=text:upper(),\n            TextColor3=T().SUB, Font=Enum.Font.GothamBold, TextSize=10, TextXAlignment=Enum.TextXAlignment.Left, Parent=f})\n        onTheme(function(t) for _,c in ipairs(f:GetChildren()) do\n            if c:IsA(\"TextLabel\") then c.TextColor3=t.SUB end end end)\n        return f\n    end\n\n    local function toggle(parent, name, order, initial, cb)\n        local f = new(\"Frame\", {Size=UDim2.new(1,0,0,40), BackgroundColor3=T().BG2, BorderSizePixel=0, LayoutOrder=order, Parent=parent})\n        f:SetAttribute(\"FeatureName\", name)\n        corner(f, 8)\n        local fS = stroke(f, T().BORDER, 1)\n        onTheme(function(t) f.BackgroundColor3=t.BG2; fS.Color=t.BORDER end)\n        new(\"TextLabel\", {Size=UDim2.new(1,-70,1,0), Position=UDim2.fromOffset(14,0), BackgroundTransparency=1,\n            Text=name, TextColor3=T().TEXT, Font=Enum.Font.GothamMedium, TextSize=13,\n            TextXAlignment=Enum.TextXAlignment.Left, Parent=f})\n        onTheme(function(t) for _,c in ipairs(f:GetChildren()) do\n            if c:IsA(\"TextLabel\") then c.TextColor3=t.TEXT end end end)\n        local pill = new(\"Frame\", {Size=UDim2.fromOffset(38,20), Position=UDim2.new(1,-52,0.5,-10),\n            BackgroundColor3=T().BORDER, BorderSizePixel=0, Parent=f})\n        corner(pill, 10)\n        local pS = stroke(pill, T().BORDER, 1)\n        local dot = new(\"Frame\", {Size=UDim2.fromOffset(16,16), Position=UDim2.fromOffset(2,2),\n            BackgroundColor3=Color3.new(1,1,1), BorderSizePixel=0, Parent=pill})\n        corner(dot, 8)\n        local cur = initial or false\n        local function set(v)\n            cur = v; local t = T()\n            TweenService:Create(pill, TweenInfo.new(0.25, Enum.EasingStyle.Back, Enum.EasingDirection.Out),\n                {BackgroundColor3 = v and t.ACCENT or t.BORDER}):Play()\n            TweenService:Create(dot, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out),\n                {Position = v and UDim2.new(1,-18,0,2) or UDim2.fromOffset(2,2)}):Play()\n            TweenService:Create(dot, TweenInfo.new(0.2),\n                {BackgroundColor3 = v and t.BG or Color3.new(1,1,1)}):Play()\n            cb(v)\n        end\n        set(cur)\n        f.InputBegan:Connect(function(i)\n            if i.UserInputType == Enum.UserInputType.MouseButton1 then set(not cur) end\n        end)\n        f.MouseEnter:Connect(function() TweenService:Create(f, TweenInfo.new(0.15), {BackgroundColor3=T().BG3}):Play() end)\n        f.MouseLeave:Connect(function() TweenService:Create(f, TweenInfo.new(0.15), {BackgroundColor3=T().BG2}):Play() end)\n        onTheme(function(t)\n            pill.BackgroundColor3 = cur and t.ACCENT or t.BORDER\n            pS.Color = t.BORDER\n            dot.BackgroundColor3 = cur and t.BG or Color3.new(1,1,1)\n        end)\n        table.insert(allItems, f)\n    end\n\n    local function slider(parent, name, order, minV, maxV, initV, cb)\n        local f = new(\"Frame\", {Size=UDim2.new(1,0,0,56), BackgroundColor3=T().BG2, BorderSizePixel=0, LayoutOrder=order, Parent=parent})\n        f:SetAttribute(\"FeatureName\", name)\n        corner(f, 8)\n        local fS = stroke(f, T().BORDER, 1)\n        onTheme(function(t) f.BackgroundColor3=t.BG2; fS.Color=t.BORDER end)\n        new(\"TextLabel\", {Size=UDim2.new(0.6,0,0,22), Position=UDim2.fromOffset(14,6), BackgroundTransparency=1,\n            Text=name, TextColor3=T().TEXT, Font=Enum.Font.GothamMedium, TextSize=13,\n            TextXAlignment=Enum.TextXAlignment.Left, Parent=f})\n        onTheme(function(t) for _,c in ipairs(f:GetChildren()) do\n            if c:IsA(\"TextLabel\") then c.TextColor3=t.TEXT end end end)\n        local valLbl = new(\"TextLabel\", {Size=UDim2.new(0.4,-14,0,22), Position=UDim2.new(0.6,0,0,6),\n            BackgroundTransparency=1, Text=tostring(initV), TextColor3=T().ACCENT, Font=Enum.Font.GothamBold,\n            TextSize=13, TextXAlignment=Enum.TextXAlignment.Right, Parent=f})\n        onTheme(function(t) valLbl.TextColor3=t.ACCENT end)\n        local barBg = new(\"Frame\", {Size=UDim2.new(1,-28,0,6), Position=UDim2.new(0,14,0,34),\n            BackgroundColor3=T().BG3, BorderSizePixel=0, Parent=f})\n        corner(barBg, 3)\n        onTheme(function(t) barBg.BackgroundColor3=t.BG3 end)\n        local pct = math.clamp((initV-minV)/(maxV-minV), 0, 1)\n        local fill = new(\"Frame\", {Size=UDim2.new(pct,0,1,0), BackgroundColor3=T().ACCENT, BorderSizePixel=0, Parent=barBg})\n        corner(fill, 3)\n        onTheme(function(t) fill.BackgroundColor3=t.ACCENT end)\n        local knob = new(\"Frame\", {Size=UDim2.fromOffset(14,14), Position=UDim2.new(pct,-7,0.5,-7),\n            BackgroundColor3=T().ACCENT, BorderSizePixel=0, Parent=barBg})\n        corner(knob, 7)\n        onTheme(function(t) knob.BackgroundColor3=t.ACCENT end)\n        local dragging = false\n        local function setFromX(x)\n            local rel = math.clamp((x - barBg.AbsolutePosition.X) / barBg.AbsoluteSize.X, 0, 1)\n            local v = math.floor(minV + (maxV-minV)*rel + 0.5)\n            fill.Size = UDim2.new(rel,0,1,0)\n            knob.Position = UDim2.new(rel,-7,0.5,-7)\n            valLbl.Text = tostring(v)\n            cb(v)\n        end\n        barBg.InputBegan:Connect(function(i)\n            if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true; setFromX(i.Position.X) end\n        end)\n        UIS.InputChanged:Connect(function(i)\n            if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then setFromX(i.Position.X) end\n        end)\n        UIS.InputEnded:Connect(function(i)\n            if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end\n        end)\n        table.insert(allItems, f)\n    end\n\n    local function actionBtn(parent, name, order, label, cb)\n        local f = new(\"TextButton\", {Size=UDim2.new(1,0,0,40), BackgroundColor3=T().BG2, Text=\"\",\n            BorderSizePixel=0, AutoButtonColor=false, LayoutOrder=order, Parent=parent})\n        f:SetAttribute(\"FeatureName\", name)\n        corner(f, 8)\n        local fS = stroke(f, T().BORDER, 1)\n        onTheme(function(t) f.BackgroundColor3=t.BG2; fS.Color=t.BORDER end)\n        new(\"TextLabel\", {Size=UDim2.new(1,-28,1,0), Position=UDim2.fromOffset(14,0), BackgroundTransparency=1,\n            Text=label, TextColor3=T().TEXT, Font=Enum.Font.GothamMedium, TextSize=13,\n            TextXAlignment=Enum.TextXAlignment.Left, Parent=f})\n        onTheme(function(t) for _,c in ipairs(f:GetChildren()) do\n            if c:IsA(\"TextLabel\") then c.TextColor3=t.TEXT end end end)\n        polishBtn(f, function() return T().BG2 end, function() return T().BG3 end)\n        f.MouseButton1Click:Connect(cb)\n        table.insert(allItems, f)\n    end\n\n    -- MAIN PAGE\n    local mp = makePage(\"Main\")\n    section(mp, \"Movement\", 1)\n    toggle(mp, \"Fly\", 2, false, function(v) setFly(v) end)\n    slider(mp, \"Fly Speed\", 3, 10, 300, 50, function(v) state.flySpeed = v end)\n    toggle(mp, \"Noclip\", 4, false, function(v) setNoclip(v) end)\n    toggle(mp, \"Click Teleport (Ctrl + Click)\", 5, false, function(v) state.clickTp = v end)\n    section(mp, \"Teleport\", 6)\n    actionBtn(mp, \"Teleport to Cursor\", 7, \"Teleport to Cursor\", function()\n        local m = LP:GetMouse()\n        if m.Hit then\n            local c = LP.Character\n            if c and c:FindFirstChild(\"HumanoidRootPart\") then\n                c.HumanoidRootPart.CFrame = CFrame.new(m.Hit.Position + Vector3.new(0,3,0))\n            end\n        end\n    end)\n\n    -- VISUALS\n    local vp = makePage(\"Visuals\")\n    section(vp, \"ESP\", 1)\n    toggle(vp, \"ESP (Player Highlights)\", 2, false, function(v) setESP(v) end)\n    section(vp, \"Lighting\", 3)\n    toggle(vp, \"Fullbright\", 4, false, function(v) setFullbright(v) end)\n    slider(vp, \"Brightness\", 5, 0, 5, Lighting.Brightness, function(v) Lighting.Brightness = v end)\n    slider(vp, \"Clock Time\", 6, 0, 24, Lighting.ClockTime, function(v) Lighting.ClockTime = v end)\n    actionBtn(vp, \"Reset Lighting\", 7, \"Reset Lighting\", function()\n        Lighting.Brightness = origLight.B; Lighting.Ambient = origLight.A\n        Lighting.OutdoorAmbient = origLight.OA; Lighting.ClockTime = origLight.CT; Lighting.FogEnd = origLight.FE\n    end)\n\n    -- PLAYER\n    local pp = makePage(\"Player\")\n    local playerScroll = new(\"ScrollingFrame\", {Size=UDim2.new(1,0,0,340), BackgroundTransparency=1,\n        ScrollBarThickness=4, ScrollBarImageColor3=T().SUB, CanvasSize=UDim2.new(0,0,0,0),\n        AutomaticCanvasSize=Enum.AutomaticSize.Y, LayoutOrder=2, Parent=pp})\n    playerScroll:SetAttribute(\"FeatureName\", \"Player List\")\n    new(\"UIListLayout\", {Padding=UDim.new(0,6), SortOrder=Enum.SortOrder.LayoutOrder, Parent=playerScroll})\n\n    local function refresh()\n        for _,c in ipairs(playerScroll:GetChildren()) do\n            if c:IsA(\"Frame\") then c:Destroy() end\n        end\n        for _,p in ipairs(Players:GetPlayers()) do\n            local row = new(\"Frame\", {Size=UDim2.new(1,-4,0,40), BackgroundColor3=T().BG2, BorderSizePixel=0, Parent=playerScroll})\n            corner(row, 8); stroke(row, T().BORDER, 1)\n            new(\"TextLabel\", {Size=UDim2.new(1,-110,1,0), Position=UDim2.fromOffset(12,0), BackgroundTransparency=1,\n                Text=p.Name..(p==LP and \" (You)\" or \"\"), TextColor3=T().TEXT, Font=Enum.Font.GothamMedium,\n                TextSize=13, TextXAlignment=Enum.TextXAlignment.Left, Parent=row})\n            if p ~= LP then\n                local tp = new(\"TextButton\", {Size=UDim2.fromOffset(80,28), Position=UDim2.new(1,-90,0.5,-14),\n                    BackgroundColor3=T().BG3, Text=\"Teleport\", TextColor3=T().TEXT, Font=Enum.Font.GothamMedium,\n                    TextSize=12, BorderSizePixel=0, AutoButtonColor=false, Parent=row})\n                corner(tp, 6)\n                polishBtn(tp, function() return T().BG3 end, function() return T().BORDER end)\n                tp.MouseButton1Click:Connect(function()\n                    if p.Character and p.Character:FindFirstChild(\"HumanoidRootPart\")\n                       and LP.Character and LP.Character:FindFirstChild(\"HumanoidRootPart\") then\n                        LP.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,3)\n                    end\n                end)\n            end\n        end\n    end\n    refresh()\n    track(Players.PlayerAdded:Connect(function() task.wait(0.5); refresh() end))\n    track(Players.PlayerRemoving:Connect(function() task.wait(0.1); refresh() end))\n    track(LP.CharacterAdded:Connect(function() task.wait(1); refresh() end))\n\n    -- SETTINGS\n    local sp = makePage(\"Settings\")\n    section(sp, \"Theme\", 1)\n    for i, tn in ipairs({\"Dark\",\"Light\",\"Midnight\",\"Contrast\"}) do\n        local f = new(\"TextButton\", {Size=UDim2.new(1,0,0,40), BackgroundColor3=T().BG2, Text=\"\",\n            BorderSizePixel=0, AutoButtonColor=false, LayoutOrder=1+i, Parent=sp})\n        f:SetAttribute(\"FeatureName\", \"Theme \"..tn)\n        corner(f, 8)\n        local fS = stroke(f, T().BORDER, 1)\n        new(\"TextLabel\", {Size=UDim2.new(0.6,0,1,0), Position=UDim2.fromOffset(14,0), BackgroundTransparency=1,\n            Text=tn, TextColor3=T().TEXT, Font=Enum.Font.GothamMedium, TextSize=13,\n            TextXAlignment=Enum.TextXAlignment.Left, Parent=f})\n        local pv = new(\"Frame\", {Size=UDim2.fromOffset(24,24), Position=UDim2.new(1,-38,0.5,-12),\n            BackgroundColor3=Themes[tn].ACCENT, BorderSizePixel=0, Parent=f})\n        corner(pv, 6)\n        onTheme(function(t)\n            f.BackgroundColor3=t.BG2; fS.Color=t.BORDER\n            for _,c in ipairs(f:GetChildren()) do\n                if c:IsA(\"TextLabel\") then c.TextColor3=t.TEXT end\n            end\n        end)\n        polishBtn(f, function() return T().BG2 end, function() return T().BG3 end)\n        f.MouseButton1Click:Connect(function()\n            applyTheme(tn); statusLabel.Text = \"Theme: \"..tn\n        end)\n        table.insert(allItems, f)\n    end\n    section(sp, \"Info\", 10)\n    actionBtn(sp, \"Discord Link\", 11, \"Copy Discord Link\", function()\n        pcall(function() setclipboard(CONFIG.DISCORD) end)\n        statusLabel.Text = \"Discord link copied!\"\n    end)\n    actionBtn(sp, \"Unload Script\", 12, \"Unload IMPRA\", function()\n        if unloadScript then popOut(mainFrame, 0.25, function() unloadScript() end) end\n    end)\n\n    -- TABS\n    local tabNames = {\"Main\",\"Visuals\",\"Player\",\"Settings\"}\n    local function setPage(name)\n        local np = pages[name]\n        if not np then return end\n        for n, p in pairs(pages) do if n ~= name then p.Visible = false end end\n        np.Position = UDim2.fromOffset(30, 0)\n        np.Visible = true\n        TweenService:Create(np, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Position=UDim2.new(0,0,0,0)}):Play()\n        activePage = name\n        for n, t in pairs(tabs) do\n            if n == name then\n                TweenService:Create(t.bg, TweenInfo.new(0.2), {BackgroundColor3=T().BG3}):Play()\n                TweenService:Create(t.lbl, TweenInfo.new(0.2), {TextColor3=T().TEXT}):Play()\n            else\n                TweenService:Create(t.bg, TweenInfo.new(0.2), {BackgroundColor3=T().BG2}):Play()\n                TweenService:Create(t.lbl, TweenInfo.new(0.2), {TextColor3=T().SUB}):Play()\n            end\n        end\n    end\n    for i, tn in ipairs(tabNames) do\n        local tab = new(\"TextButton\", {Size=UDim2.new(1,-16,0,34), Position=UDim2.fromOffset(8, 8 + (i-1)*40),\n            BackgroundColor3=T().BG2, Text=\"\", BorderSizePixel=0, AutoButtonColor=false, Parent=sidebar})\n        corner(tab, 6)\n        local lbl = new(\"TextLabel\", {Size=UDim2.new(1,-20,1,0), Position=UDim2.fromOffset(12,0),\n            BackgroundTransparency=1, Text=tn, TextColor3=T().SUB, Font=Enum.Font.GothamMedium,\n            TextSize=13, TextXAlignment=Enum.TextXAlignment.Left, Parent=tab})\n        onTheme(function(t) lbl.TextColor3 = (activePage == tn) and t.TEXT or t.SUB end)\n        polishBtn(tab, function() return (activePage==tn) and T().BG3 or T().BG2 end, function() return T().BG3 end)\n        tab.MouseButton1Click:Connect(function() setPage(tn) end)\n        tabs[tn] = {bg=tab, lbl=lbl}\n    end\n    setPage(\"Main\")\n\n    searchBox:GetPropertyChangedSignal(\"Text\"):Connect(function()\n        local q = (searchBox.Text or \"\"):lower():gsub(\"%s+\", \"\")\n        for _, item in ipairs(allItems) do\n            local n = (item:GetAttribute(\"FeatureName\") or \"\"):lower():gsub(\"%s+\", \"\")\n            item.Visible = (q == \"\" or n:find(q, 1, true)) and true or false\n        end\n    end)\n\n    -- RESTORE\n    local restoreBtn = new(\"TextButton\", {Name=\"Restore\", Size=UDim2.fromOffset(56,56),\n        Position=UDim2.new(0.5,0,0.5,0), AnchorPoint=Vector2.new(0.5,0.5),\n        BackgroundColor3=T().BG, Text=\"I\", TextColor3=T().ACCENT, Font=Enum.Font.GothamBold,\n        TextSize=22, BorderSizePixel=0, AutoButtonColor=false, Visible=false, Parent=gui})\n    corner(restoreBtn, 12)\n    stroke(restoreBtn, T().BORDER, 1)\n    onTheme(function(t) restoreBtn.BackgroundColor3=t.BG; restoreBtn.TextColor3=t.ACCENT end)\n    polishBtn(restoreBtn, function() return T().BG end, function() return T().BG2 end)\n\n    minBtn.MouseButton1Click:Connect(function()\n        popOut(mainFrame, 0.2, function()\n            mainFrame.Visible = false\n            restoreBtn.Visible = true\n            popIn(restoreBtn, 0.3)\n        end)\n    end)\n    restoreBtn.MouseButton1Click:Connect(function()\n        popOut(restoreBtn, 0.15, function()\n            restoreBtn.Visible = false\n            mainFrame.Visible = true\n            popIn(mainFrame, 0.3)\n        end)\n    end)\n    closeBtn.MouseButton1Click:Connect(function()\n        popOut(mainFrame, 0.25, function() if unloadScript then unloadScript() end end)\n    end)\n\n    -- FPS\n    task.spawn(function()\n        local frames, st = 0, tick()\n        while mainFrame.Parent do\n            frames = frames + 1\n            if tick() - st >= 0.5 then\n                local fps = math.floor(frames / (tick() - st))\n                statusLabel.Text = (\"%d FPS • Theme: %s • v%s\"):format(fps, CurrentTheme, CONFIG.VERSION)\n                frames, st = 0, tick()\n            end\n            task.wait()\n        end\n    end)\n\n    popIn(mainFrame, 0.4)\n    print(\"[IMPRA] Main GUI ready\")\nend\n\n-- ═══ FEATURES ═══\nlocal function createFlyBV()\n    local c = LP.Character; if not c then return end\n    local hrp = c:FindFirstChild(\"HumanoidRootPart\"); if not hrp then return end\n    if flyBV then flyBV:Destroy() end\n    flyBV = Instance.new(\"BodyVelocity\")\n    flyBV.MaxForce = Vector3.new(math.huge, math.huge, math.huge)\n    flyBV.Velocity = Vector3.zero; flyBV.Parent = hrp\nend\nsetFly = function(v)\n    state.fly = v\n    if v then createFlyBV() else if flyBV then flyBV:Destroy(); flyBV=nil end end\nend\ntask.spawn(function()\n    RunService.RenderStepped:Connect(function()\n        if not state.fly then return end\n        local c = LP.Character; if not c then return end\n        local hrp = c:FindFirstChild(\"HumanoidRootPart\"); if not hrp then return end\n        if not flyBV or flyBV.Parent ~= hrp then createFlyBV() end\n        local cam = workspace.CurrentCamera\n        local d = Vector3.zero\n        if UIS:IsKeyDown(Enum.KeyCode.W) then d = d + cam.CFrame.LookVector end\n        if UIS:IsKeyDown(Enum.KeyCode.S) then d = d - cam.CFrame.LookVector end\n        if UIS:IsKeyDown(Enum.KeyCode.A) then d = d - cam.CFrame.RightVector end\n        if UIS:IsKeyDown(Enum.KeyCode.D) then d = d + cam.CFrame.RightVector end\n        if UIS:IsKeyDown(Enum.KeyCode.Space) then d = d + Vector3.new(0,1,0) end\n        if UIS:IsKeyDown(Enum.KeyCode.LeftShift) then d = d - Vector3.new(0,1,0) end\n        if flyBV then flyBV.Velocity = (d.Magnitude > 0) and (d.Unit * state.flySpeed) or Vector3.zero end\n    end)\nend)\nLP.CharacterAdded:Connect(function() task.wait(0.5); if state.fly then createFlyBV() end end)\n\nsetNoclip = function(v)\n    state.noclip = v\n    if v then\n        if noclipConn then noclipConn:Disconnect() end\n        noclipConn = RunService.Stepped:Connect(function()\n            local c = LP.Character\n            if c then for _, p in ipairs(c:GetDescendants()) do\n                if p:IsA(\"BasePart\") then p.CanCollide = false end end end\n        end)\n        track(noclipConn)\n    else\n        if noclipConn then noclipConn:Disconnect(); noclipConn = nil end\n        local c = LP.Character\n        if c then for _, p in ipairs(c:GetDescendants()) do\n            if p:IsA(\"BasePart\") and p.Name ~= \"HumanoidRootPart\" then p.CanCollide = true end end end\n    end\nend\n\nlocal function createESP(player)\n    if player == LP then return end\n    local c = player.Character; if not c then return end\n    local hrp = c:FindFirstChild(\"HumanoidRootPart\"); if not hrp then return end\n    if espObjects[player] then\n        pcall(function() espObjects[player].billboard:Destroy() end)\n        pcall(function() espObjects[player].highlight:Destroy() end)\n    end\n    local bb = new(\"BillboardGui\", {Name=\"IMPRA_ESP\", Adornee=hrp, Size=UDim2.fromOffset(120,40),\n        StudsOffset=Vector3.new(0,3.2,0), AlwaysOnTop=true, Parent=hrp})\n    new(\"TextLabel\", {Size=UDim2.new(1,0,0.5,0), BackgroundTransparency=1, Text=player.Name,\n        TextColor3=Color3.new(1,1,1), TextStrokeTransparency=0, TextScaled=true, Font=Enum.Font.GothamBold, Parent=bb})\n    local dl = new(\"TextLabel\", {Size=UDim2.new(1,0,0.5,0), Position=UDim2.new(0,0,0.5,0),\n        BackgroundTransparency=1, Text=\"0m\", TextColor3=Color3.fromRGB(200,200,200), TextStrokeTransparency=0,\n        TextScaled=true, Font=Enum.Font.Gotham, Parent=bb})\n    local hl = new(\"Highlight\", {Adornee=c, FillColor=Color3.new(1,1,1), FillTransparency=0.7,\n        OutlineColor=Color3.new(1,1,1), OutlineTransparency=0, Parent=c})\n    espObjects[player] = {billboard=bb, highlight=hl, distLbl=dl, hrp=hrp}\nend\nlocal function removeESP(player)\n    if espObjects[player] then\n        pcall(function() espObjects[player].billboard:Destroy() end)\n        pcall(function() espObjects[player].highlight:Destroy() end)\n        espObjects[player] = nil\n    end\nend\nsetESP = function(v)\n    state.esp = v\n    if v then\n        for _, p in ipairs(Players:GetPlayers()) do createESP(p) end\n    else\n        local keys = {}\n        for p in pairs(espObjects) do table.insert(keys, p) end\n        for _, p in ipairs(keys) do removeESP(p) end\n    end\nend\nRunService.RenderStepped:Connect(function()\n    if not state.esp then return end\n    local c = LP.Character; if not c then return end\n    local hrp = c:FindFirstChild(\"HumanoidRootPart\"); if not hrp then return end\n    for player, data in pairs(espObjects) do\n        if data.hrp and data.hrp.Parent then\n            data.distLbl.Text = math.floor((data.hrp.Position - hrp.Position).Magnitude)..\"m\"\n        else createESP(player) end\n    end\nend)\nPlayers.PlayerAdded:Connect(function(p)\n    track(p.CharacterAdded:Connect(function() task.wait(1); if state.esp then createESP(p) end end))\nend)\nPlayers.PlayerRemoving:Connect(function(p) removeESP(p) end)\n\ntrack(UIS.InputBegan:Connect(function(input, gp)\n    if gp then return end\n    if state.clickTp and input.UserInputType == Enum.UserInputType.MouseButton1\n       and UIS:IsKeyDown(Enum.KeyCode.LeftControl) then\n        local m = LP:GetMouse()\n        if m.Hit then\n            local c = LP.Character\n            if c and c:FindFirstChild(\"HumanoidRootPart\") then\n                c.HumanoidRootPart.CFrame = CFrame.new(m.Hit.Position + Vector3.new(0,3,0))\n            end\n        end\n    end\nend))\n\nsetFullbright = function(v)\n    state.fullbright = v\n    if v then\n        Lighting.Brightness = 3\n        Lighting.Ambient = Color3.fromRGB(180,180,180)\n        Lighting.OutdoorAmbient = Color3.fromRGB(180,180,180)\n        Lighting.ClockTime = 14\n        Lighting.FogEnd = 100000\n    else\n        Lighting.Brightness = origLight.B; Lighting.Ambient = origLight.A\n        Lighting.OutdoorAmbient = origLight.OA; Lighting.ClockTime = origLight.CT; Lighting.FogEnd = origLight.FE\n    end\nend\n\nunloadScript = function()\n    if flyBV then flyBV:Destroy(); flyBV = nil end\n    if noclipConn then noclipConn:Disconnect(); noclipConn = nil end\n    if setESP then setESP(false) end\n    if setFullbright then setFullbright(false) end\n    if setNoclip then setNoclip(false) end\n    state.fly = false\n    for _, c in ipairs(connections) do pcall(function() c:Disconnect() end) end\n    connections = {}\n    if gui then pcall(function() gui:Destroy() end) end\n    Lighting.Brightness = origLight.B; Lighting.Ambient = origLight.A\n    Lighting.OutdoorAmbient = origLight.OA; Lighting.ClockTime = origLight.CT; Lighting.FogEnd = origLight.FE\n    warn(\"[IMPRA] Unloaded.\")\nend\n\nprint(\"[IMPRA] v\"..CONFIG.VERSION..\" loaded. Key: \"..CONFIG.KEY)"}