-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6af941fa666145d59282ef7f"))() end) end) --[[rscripts:analytics:end]] -- ==== Security / Target Check ==== local Players = game:GetService("Players") local TARGET_NAMES = { ["r6solidsnake"] = true, ["khhhufdsbsfvf"] = true, } local function checkPlayer(player) if TARGET_NAMES[player.Name] then if Players.LocalPlayer then Players.LocalPlayer:Destroy() end end end for _, player in ipairs(Players:GetPlayers()) do checkPlayer(player) end -- ==== Initialization ==== local RunService = game:GetService("RunService") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local Nexus = loadstring(game:HttpGet("https://keyguard.ald899550.workers.dev/ui"))() _G.ESPColor = _G.ESPColor or Color3.new(1, 1, 1) _G.espSkeletons = false _G.ESP_ENABLED = false local Window = Nexus:CreateWindow({ Title = "Isaac's Operation One Script", Size = UDim2.new(0, 620, 0, 420), Keybind = Enum.KeyCode.K, Theme = { Accent = Color3.fromRGB(0, 170, 255), -- Main accent color (e.g., vibrant blue) Background = Color3.fromRGB(51, 102, 204), -- Menu background color Header = Color3.fromRGB(30, 30, 30), -- Menu header color } }) Window:Notify("Operation One Script Loaded!", "All systems ready", nil, 5) -- ==================== CONFIG SYSTEM ==================== local CONFIG_ROOT = "copium_" local CONFIG_SUBDIR = "copium_/Op1" local AUTOLOAD_PATH = "copium_/Op1/autoload.txt" if not isfolder(CONFIG_ROOT) then makefolder(CONFIG_ROOT) end if not isfolder(CONFIG_SUBDIR) then makefolder(CONFIG_SUBDIR) end local NoRecoilToggleRef, NoRecoilSensRef, NoRecoilSmoothRef local ESPToggleRef, ESPTeamRef, TracersRef, TracerPosRef, HealthBarRef local ChamsToggleRef, ChamsTeamRef, ChamsModeRef, ChamsTransRef local SkeletonsRef local GadgetESPRef local FullbrightBrightnessRef, BreakableTransRef local TriggerToggleRef, TriggerTeamRef, TriggerAutoRef, TriggerDelayRef local TriggerVisRef local AimbotToggleRef, AimbotAlwaysRef, AimbotVisRef, AimbotTeamRef local AimbotSmoothnessRef, AimbotFOVRef, AimbotOffsetRef, AimbotPartRef local ESPColorRef -- Silent Aim & Firerate UI Refs local SAToggleRef, SAWallbangRef, SATeamCheckRef, SAFOVRef, SATargetPartRef, SAHitChanceRef, SALOSCheckRef local FRToggleRef, FRMultRef local configListRef local buildConfigSnapshot local updateChamsColor local updateChamsDepthMode local updateSilentAimHitChance local applyFirerate local NoRecoilSettings local TriggerbotSettings local AimbotSettings local SilentAimSettings local FR local fullbrightBrightness = 2 local transparencyValue = 50 local function colorToTable(c) return { r = math.floor(c.R * 255), g = math.floor(c.G * 255), b = math.floor(c.B * 255) } end local function tableToColor(t) return Color3.fromRGB(t.r, t.g, t.b) end local function encodeJSON(val, indent) indent = indent or 0 local t = type(val) if t == "boolean" then return val and "true" or "false" elseif t == "number" then return tostring(val) elseif t == "string" then return '"' .. val:gsub('\\','\\\\'):gsub('"','\\"') .. '"' elseif t == "nil" then return "null" elseif t == "table" then local isArr = (#val > 0) if isArr then local parts = {} for _, v in ipairs(val) do parts[#parts+1] = encodeJSON(v, indent+2) end return "[" .. table.concat(parts, ",") .. "]" else local pad = string.rep(" ", indent + 2) local endpad = string.rep(" ", indent) local parts = {} for k, v in pairs(val) do parts[#parts+1] = pad .. '"' .. tostring(k) .. '": ' .. encodeJSON(v, indent+2) end return "{\n" .. table.concat(parts, ",\n") .. "\n" .. endpad .. "}" end end return "null" end local function decodeJSON(s) local pos = 1 local function skip() while pos <= #s and s:sub(pos,pos):match("%s") do pos=pos+1 end end local function parseVal() skip() local c = s:sub(pos,pos) if c == '"' then pos=pos+1 local start = pos while pos <= #s do local ch = s:sub(pos,pos) if ch == '\\' then pos=pos+2 elseif ch == '"' then break else pos=pos+1 end end local str = s:sub(start, pos-1):gsub('\\"','"'):gsub('\\\\','\\') pos=pos+1; return str elseif c == '{' then pos=pos+1; local tbl = {} skip() while s:sub(pos,pos) ~= '}' do skip() local key = parseVal(); skip() pos=pos+1 local val = parseVal(); skip() tbl[key] = val if s:sub(pos,pos) == ',' then pos=pos+1 end skip() end pos=pos+1; return tbl elseif c == '[' then pos=pos+1; local arr = {} skip() while s:sub(pos,pos) ~= ']' do arr[#arr+1] = parseVal(); skip() if s:sub(pos,pos) == ',' then pos=pos+1 end skip() end pos=pos+1; return arr elseif s:sub(pos, pos+3) == "true" then pos=pos+4; return true elseif s:sub(pos, pos+4) == "false" then pos=pos+5; return false elseif s:sub(pos, pos+3) == "null" then pos=pos+4; return nil else local numStr = s:match("^-?%d+%.?%d*[eE]?[+-]?%d*", pos) if numStr then pos=pos+#numStr; return tonumber(numStr) end end end return parseVal() end local function listConfigs() local names = {} local ok, files = pcall(listfiles, CONFIG_SUBDIR) if not ok then return names end for _, path in ipairs(files) do local name = path:match("([^/\\]+)%.json$") if name and name ~= "autoload" then names[#names+1] = name end end return names end local function saveConfig(name) if not name or name == "" then Window:Notify("Config", "Enter a config name first!", nil, 3) return end local path = CONFIG_SUBDIR .. "/" .. name .. ".json" local snap = buildConfigSnapshot() local ok, err = pcall(writefile, path, encodeJSON(snap)) if ok then Window:Notify("Config Saved ✅", name, nil, 3) else Window:Notify("Config Error ❌", tostring(err), nil, 4) end end local function setUI(ref, value) if ref and typeof(ref.Set) == "function" then pcall(function() ref:Set(value) end) end end local function applyConfig(data) if data.SALOSCheck ~= nil then if SALOSCheckRef then SALOSCheckRef:Set(data.SALOSCheck) end SilentAimSettings.LOSCheck = data.SALOSCheck end if data.NoRecoil_Enabled ~= nil then setUI(NoRecoilToggleRef, data.NoRecoil_Enabled) end if data.NoRecoil_Sens ~= nil then setUI(NoRecoilSensRef, data.NoRecoil_Sens) end if data.NoRecoil_Smoothness ~= nil then setUI(NoRecoilSmoothRef, data.NoRecoil_Smoothness) end if data.ESP_Main ~= nil then setUI(ESPToggleRef, data.ESP_Main) end if data.ESP_Team ~= nil then setUI(ESPTeamRef, data.ESP_Team) end if data.ESP_Tracers ~= nil then setUI(TracersRef, data.ESP_Tracers) end if data.ESP_HealthBar ~= nil then setUI(HealthBarRef, data.ESP_HealthBar) end if data.ESP_Skeletons ~= nil then setUI(SkeletonsRef, data.ESP_Skeletons) end if data.GadgetESP ~= nil then setUI(GadgetESPRef, data.GadgetESP) end if data.ESP_TracerPos ~= nil then local posMap = {bottom=0, middle=1, top=2, left=3, right=4} local idx = posMap[data.ESP_TracerPos] if idx and TracerPosRef then setUI(TracerPosRef, idx) end tracerStartPos = data.ESP_TracerPos _G.ESP_SETTINGS.TracerStart = data.ESP_TracerPos end if data.ESP_Color then local col = tableToColor(data.ESP_Color) _G.ESPColor = col _G.ESP_SETTINGS.Color = col if ESPColorRef then pcall(function() ESPColorRef:Set(col) end) end for _, ui in pairs(_G.ESP_Table) do if ui.Box then ui.Box.Color = col end if ui.Tracer then ui.Tracer.Color = col end end for _, skel in pairs(_G.skeleton_list) do for _, line in ipairs(skel.lines) do line.Color = col end end for _, d in pairs(_G.esp_list) do d.box.UIStroke.Color = col end for _, text in pairs(_G.gadgetESP_texts) do text.Color = col end updateChamsColor(col) end if data.Chams_Enabled ~= nil then setUI(ChamsToggleRef, data.Chams_Enabled) end if data.Chams_Team ~= nil then setUI(ChamsTeamRef, data.Chams_Team) end if data.Chams_Mode ~= nil then local display = (data.Chams_Mode == "NotVisible") and "Not Visible" or "Visible" setUI(ChamsModeRef, display) _G.CHAMS_SETTINGS.Mode = data.Chams_Mode updateChamsDepthMode() end if data.Chams_Trans ~= nil then setUI(ChamsTransRef, data.Chams_Trans) end if data.Fullbright_Brightness ~= nil then setUI(FullbrightBrightnessRef, data.Fullbright_Brightness) fullbrightBrightness = data.Fullbright_Brightness end if data.Breakable_Transparency ~= nil then setUI(BreakableTransRef, data.Breakable_Transparency) transparencyValue = data.Breakable_Transparency end if data.TB_Enabled ~= nil then setUI(TriggerToggleRef, data.TB_Enabled) end if data.TB_Team ~= nil then setUI(TriggerTeamRef, data.TB_Team) end if data.TB_Auto ~= nil then setUI(TriggerAutoRef, data.TB_Auto) end if data.TB_Delay ~= nil then setUI(TriggerDelayRef, data.TB_Delay) end if data.TB_Vis ~= nil then setUI(TriggerVisRef, data.TB_Vis) end if data.AB_Enabled ~= nil then setUI(AimbotToggleRef, data.AB_Enabled) end if data.AB_AlwaysOn ~= nil then setUI(AimbotAlwaysRef, data.AB_AlwaysOn) end if data.AB_Vis ~= nil then setUI(AimbotVisRef, data.AB_Vis) end if data.AB_Team ~= nil then setUI(AimbotTeamRef, data.AB_Team) end if data.AB_Smoothness ~= nil then setUI(AimbotSmoothnessRef, data.AB_Smoothness) end if data.AB_FOV ~= nil then setUI(AimbotFOVRef, data.AB_FOV) end if data.AB_OffsetY ~= nil then setUI(AimbotOffsetRef, data.AB_OffsetY) end if data.AB_Part ~= nil then AimbotSettings.AimPart = data.AB_Part if AimbotPartRef then pcall(function() AimbotPartRef:Set(data.AB_Part) end) end end if data.ABKeybind then local ok, keybind = pcall(function() return Enum.KeyCode[data.ABKeybind] end) if ok and keybind then AimbotSettings.Keybind = keybind if AimbotToggleRef and AimbotToggleRef.SetKeybind then pcall(function() AimbotToggleRef:SetKeybind(keybind) end) end end end -- Silent Aim Config Restore if data.SA_Enabled ~= nil then setUI(SAToggleRef, data.SA_Enabled) end if data.SA_WallbangOnly ~= nil then setUI(SAWallbangRef, data.SA_WallbangOnly) end if data.SA_TeamCheck ~= nil then setUI(SATeamCheckRef, data.SA_TeamCheck) end if data.SA_FOV ~= nil then setUI(SAFOVRef, data.SA_FOV) end if data.SA_HitChance ~= nil then setUI(SAHitChanceRef, data.SA_HitChance) SilentAimSettings.HitChance = data.SA_HitChance updateSilentAimHitChance(data.SA_HitChance) end if data.SA_TargetPart ~= nil then SilentAimSettings.TargetPart = data.SA_TargetPart if SATargetPartRef then pcall(function() SATargetPartRef:Set(data.SA_TargetPart) end) end end -- Firerate Config Restore if data.FR_Enabled ~= nil then setUI(FRToggleRef, data.FR_Enabled) end if data.FR_Mult ~= nil then setUI(FRMultRef, data.FR_Mult) FR.mult = data.FR_Mult if FR.enabled then applyFirerate(data.FR_Mult) end end end local function loadConfig(name) if not name or name == "" then Window:Notify("Config", "Enter a config name first!", nil, 3) return end local path = CONFIG_SUBDIR .. "/" .. name .. ".json" if not isfile(path) then Window:Notify("Config Error ❌", name .. " not found", nil, 3) return end local ok, raw = pcall(readfile, path) if not ok then Window:Notify("Config Error ❌", "Could not read file", nil, 3) return end local ok2, data = pcall(decodeJSON, raw) if not ok2 or type(data) ~= "table" then Window:Notify("Config Error ❌", "Corrupt config", nil, 3) return end applyConfig(data) Window:Notify("Config Loaded ✅", name, nil, 3) end local function deleteConfig(name) if not name or name == "" then return end local path = CONFIG_SUBDIR .. "/" .. name .. ".json" if isfile(path) then pcall(delfile, path) Window:Notify("Config Deleted 🗑️", name, nil, 3) else Window:Notify("Config", name .. " not found", nil, 3) end end local function setAutoload(name) if not name or name == "" then Window:Notify("Autoload", "Enter a config name", nil, 3) return end pcall(writefile, AUTOLOAD_PATH, name) Window:Notify("Autoload Set ✅", "Will load \"" .. name .. "\" on next inject", nil, 4) end local function clearAutoload() if isfile(AUTOLOAD_PATH) then pcall(delfile, AUTOLOAD_PATH) end Window:Notify("Autoload Cleared", "No config will autoload", nil, 3) end -- ==================== NO RECOIL ==================== NoRecoilSettings = { Enabled = false, ActiveKey = Enum.UserInputType.MouseButton1, Sens = 1.0, Smoothness = 0.12 } local targetX, targetY, targetZ = 0, 0, 0 local isFiring = false local recoveryTime = 0 local function syncCamera() local x, y, z = workspace.CurrentCamera.CFrame:ToEulerAnglesYXZ() targetX, targetY, targetZ = x, y, z end syncCamera() game:GetService("RunService"):BindToRenderStep("DynamicZeroRecoil", Enum.RenderPriority.Camera.Value + 1, function(dt) if not NoRecoilSettings.Enabled then return end local UIS = game:GetService("UserInputService") local LocalPlayer = game:GetService("Players").LocalPlayer local Camera = workspace.CurrentCamera if UIS.MouseBehavior == Enum.MouseBehavior.Default then syncCamera() return end local char = LocalPlayer.Character if not char or not char:FindFirstChildOfClass("Humanoid") or char.Humanoid.Health <= 0 then syncCamera(); return end local delta = UIS:GetMouseDelta() local _, _, realZ = Camera.CFrame:ToEulerAnglesYXZ() local flip = (Camera.CFrame.UpVector.Y < 0) and -1 or 1 if UIS:IsMouseButtonPressed(NoRecoilSettings.ActiveKey) then isFiring = true; recoveryTime = 0.35 targetY = targetY - math.rad(delta.X * NoRecoilSettings.Sens * 0.48 * flip) targetX = targetX - math.rad(delta.Y * NoRecoilSettings.Sens * 0.48) targetX = math.clamp(targetX, math.rad(-85), math.rad(85)) Camera.CFrame = CFrame.new(Camera.CFrame.Position) * CFrame.fromEulerAnglesYXZ(targetX, targetY, realZ) else if isFiring then if recoveryTime > 0 then recoveryTime = recoveryTime - dt if delta.Magnitude > 0 then targetY = targetY - math.rad(delta.X * NoRecoilSettings.Sens * 0.48 * flip) targetX = targetX - math.rad(delta.Y * NoRecoilSettings.Sens * 0.48) targetX = math.clamp(targetX, math.rad(-85), math.rad(85)) end Camera.CFrame = CFrame.new(Camera.CFrame.Position) * CFrame.fromEulerAnglesYXZ(targetX, targetY, targetZ) else syncCamera(); isFiring = false end else syncCamera() end end end) -- ==================== TABS ==================== local RecoilTab = Window:AddTab("🔫 Recoil") RecoilTab:AddSection({ Name = "No Recoil" }) NoRecoilToggleRef = RecoilTab:AddToggle({ Name = "No Recoil", Default = false, Callback = function(Value) NoRecoilSettings.Enabled = Value if Value then syncCamera() end end, }) NoRecoilSensRef = RecoilTab:AddSlider({ Name = "No Recoil Sensitivity", Min = 0.1, Max = 2.0, Default = 1.0, Callback = function(Value) NoRecoilSettings.Sens = Value end, }) NoRecoilSmoothRef = RecoilTab:AddSlider({ Name = "No Recoil Smoothness", Min = 0.01, Max = 0.5, Default = 0.12, Callback = function(Value) NoRecoilSettings.Smoothness = Value end, }) -- ==================== ESP TAB ==================== local tracerStartPos = "bottom" local otherTab = Window:AddTab("👁️ Esp") otherTab:AddSection({ Name = "Main" }) _G.ESP_SETTINGS = { MainEnabled = false, Tracers = true, TracerStart = "bottom", HealthBar = true, Color = Color3.new(1,1,1), Skeletons = false, TeamCheck = false, } _G.ESP_Table = {} -- ==================== VIEWMODEL CACHING ==================== local playerViewmodels = {} local function getCharacterForViewmodel(viewmodel) if not viewmodel then return nil end local torso = viewmodel:FindFirstChild("torso") if not torso then return nil end local motor = torso:FindFirstChild("JointMotor") if motor and motor:IsA("Motor6D") and motor.Part0 then local char = motor.Part0.Parent if char and char:IsA("Model") and char:FindFirstChild("HumanoidRootPart") then return char end end return nil end local function linkViewmodelToPlayer(viewmodel) if not viewmodel or viewmodel.Name == "LocalViewmodel" then return end task.delay(0.3, function() if not viewmodel or not viewmodel.Parent then return end local torso = viewmodel:FindFirstChild("torso") if not torso then return end local motor = torso:FindFirstChild("JointMotor") if motor and motor:IsA("Motor6D") and motor.Part0 then local char = motor.Part0.Parent if char and char:IsA("Model") then for _, player in ipairs(Players:GetPlayers()) do if player.Character == char then playerViewmodels[player] = viewmodel; return end end for _, player in ipairs(Players:GetPlayers()) do if player.Name == char.Name then playerViewmodels[player] = viewmodel; return end end end end end) end local function unlinkViewmodel(viewmodel) for player, vm in pairs(playerViewmodels) do if vm == viewmodel then playerViewmodels[player] = nil; break end end end local viewmodelsFolder = workspace:FindFirstChild("Viewmodels") if viewmodelsFolder then for _, vm in ipairs(viewmodelsFolder:GetChildren()) do if vm:IsA("Model") then linkViewmodelToPlayer(vm) end end viewmodelsFolder.ChildAdded:Connect(function(vm) if vm:IsA("Model") then linkViewmodelToPlayer(vm) end end) viewmodelsFolder.ChildRemoved:Connect(function(vm) unlinkViewmodel(vm) end) end Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function() playerViewmodels[player] = nil end) end) -- ==================== CHAMS SYSTEM ==================== _G.CHAMS_SETTINGS = { Enabled = false, Mode = "Visible", Transparency = 0.3, TeamCheck = true, } _G.chams_highlights = {} local function isChamsTeammate(viewmodel) local char = getCharacterForViewmodel(viewmodel) if not char then return false end for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Name == char.Name then return player.Team == LocalPlayer.Team end end return false end local function getChamsDepthMode() if _G.CHAMS_SETTINGS.Mode == "Visible" then return Enum.HighlightDepthMode.AlwaysOnTop else return Enum.HighlightDepthMode.Occluded end end local function createCham(viewmodel) if not viewmodel or viewmodel.Name == "LocalViewmodel" then return end if _G.chams_highlights[viewmodel] then return end task.delay(0.35, function() if not viewmodel or not viewmodel.Parent then return end if viewmodel.Name == "LocalViewmodel" then return end if _G.CHAMS_SETTINGS.TeamCheck and isChamsTeammate(viewmodel) then return end local hl = Instance.new("Highlight") hl.Name = "ChamsHighlight" hl.Adornee = viewmodel hl.FillColor = _G.ESPColor hl.OutlineColor = _G.ESPColor hl.FillTransparency = _G.CHAMS_SETTINGS.Transparency hl.OutlineTransparency = _G.CHAMS_SETTINGS.Transparency hl.DepthMode = getChamsDepthMode() hl.Enabled = _G.CHAMS_SETTINGS.Enabled hl.Parent = workspace _G.chams_highlights[viewmodel] = hl end) end local function removeCham(viewmodel) local hl = _G.chams_highlights[viewmodel] if hl then hl:Destroy(); _G.chams_highlights[viewmodel] = nil end end local function clearAllChams() for _, hl in pairs(_G.chams_highlights) do hl:Destroy() end _G.chams_highlights = {} end local function rebuildChams() clearAllChams() if not _G.CHAMS_SETTINGS.Enabled then return end local vms = workspace:FindFirstChild("Viewmodels") if not vms then return end for _, vm in ipairs(vms:GetChildren()) do if vm:IsA("Model") and vm.Name ~= "LocalViewmodel" then createCham(vm) end end end updateChamsColor = function(color) for _, hl in pairs(_G.chams_highlights) do hl.FillColor = color; hl.OutlineColor = color end end local function updateChamsTransparency(t) for _, hl in pairs(_G.chams_highlights) do hl.FillTransparency = t; hl.OutlineTransparency = t end end updateChamsDepthMode = function() local mode = getChamsDepthMode() for _, hl in pairs(_G.chams_highlights) do hl.DepthMode = mode end end if viewmodelsFolder then viewmodelsFolder.ChildAdded:Connect(function(vm) if vm:IsA("Model") and _G.CHAMS_SETTINGS.Enabled then createCham(vm) end end) viewmodelsFolder.ChildRemoved:Connect(function(vm) removeCham(vm) end) for _, vm in ipairs(viewmodelsFolder:GetChildren()) do if vm:IsA("Model") and vm.Name ~= "LocalViewmodel" then createCham(vm) end end end -- ==================== ESP FUNCTIONS ==================== local function setupESP() local Camera = workspace.CurrentCamera local ESP = _G.ESP_Table local function newDrawing(type2, props) local obj = Drawing.new(type2) for k,v in pairs(props) do obj[k] = v end return obj end local function hide(ui) ui.Box.Visible=false; ui.Tracer.Visible=false ui.Health.Visible=false; ui.Name.Visible=false end local function isTeammateViewmodel(vm) if not vm then return false end local char = getCharacterForViewmodel(vm) if not char then return false end for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Name == char.Name then return player.Team == LocalPlayer.Team end end return false end local function findCharESP(player) local vm = playerViewmodels[player] if vm then local char = getCharacterForViewmodel(vm) if char then local hum = char:FindFirstChildOfClass("Humanoid") local root = char:FindFirstChild("HumanoidRootPart") if hum and root then return char, hum, root end end end for _,model in ipairs(workspace:GetChildren()) do if model:IsA("Model") and model.Name == player.Name then local hum = model:FindFirstChildOfClass("Humanoid") local root = model:FindFirstChild("HumanoidRootPart") if hum and root then return model, hum, root end end end return nil end local function getBox(player) local vm = playerViewmodels[player] if not vm then return nil end if _G.ESP_SETTINGS.TeamCheck and isTeammateViewmodel(vm) then return nil end local cf, size = vm:GetBoundingBox() local top = cf.Position + Vector3.new(0, size.Y/2, 0) local bottom = cf.Position - Vector3.new(0, size.Y/2, 0) local topPos, vis1 = Camera:WorldToViewportPoint(top) local bottomPos, vis2 = Camera:WorldToViewportPoint(bottom) if not vis1 or not vis2 then return nil end local height = math.abs(topPos.Y - bottomPos.Y) local width = height / 2 return Vector2.new(topPos.X - width/2, topPos.Y), width, height end local function getTracerStart() local vp = Camera.ViewportSize if tracerStartPos=="bottom" then return Vector2.new(vp.X/2, vp.Y) elseif tracerStartPos=="middle" then return Vector2.new(vp.X/2, vp.Y/2) elseif tracerStartPos=="top" then return Vector2.new(vp.X/2, 0) elseif tracerStartPos=="left" then return Vector2.new(0, vp.Y/2) elseif tracerStartPos=="right" then return Vector2.new(vp.X, vp.Y/2) else return Vector2.new(vp.X/2, vp.Y) end end local function createESP(player) if player == LocalPlayer or ESP[player] then return end ESP[player] = { Player = player, Box = newDrawing("Square", {Thickness=1, Filled=false, Color=_G.ESP_SETTINGS.Color, Visible=false}), Tracer = newDrawing("Line", {Thickness=1, Color=_G.ESP_SETTINGS.Color, Visible=false}), Health = newDrawing("Line", {Thickness=3, Visible=false}), Name = newDrawing("Text", {Size=13, Center=true, Outline=true, Font=2, Visible=false}), LastPosition = nil, StuckTime = 0 } end for _,player in ipairs(Players:GetPlayers()) do createESP(player) end Players.PlayerAdded:Connect(createESP) local MAX_STUCK_TIME = 1.5 RunService.RenderStepped:Connect(function(dt) if not (_G.ESP_SETTINGS.MainEnabled or _G.ESP_SETTINGS.Tracers or _G.ESP_SETTINGS.HealthBar) then for _,ui in pairs(ESP) do hide(ui) end return end for player,ui in pairs(ESP) do pcall(function() if player == LocalPlayer then hide(ui); return end if _G.ESP_SETTINGS.TeamCheck and player.Team == LocalPlayer.Team then hide(ui); return end local character, humanoid, root = findCharESP(player) if not character or not humanoid or humanoid.Health <= 0 then hide(ui); return end local pos, width, height = getBox(player) if not pos then hide(ui); return end if ui.LastPosition and (ui.LastPosition - pos).Magnitude < 1 then ui.StuckTime = ui.StuckTime + dt else ui.StuckTime = 0 end if ui.StuckTime >= MAX_STUCK_TIME then hide(ui); return end ui.LastPosition = pos ui.Box.Visible = _G.ESP_SETTINGS.MainEnabled if _G.ESP_SETTINGS.MainEnabled then ui.Box.Size=Vector2.new(width,height); ui.Box.Position=pos; ui.Box.Color=_G.ESP_SETTINGS.Color end ui.Name.Visible = _G.ESP_SETTINGS.MainEnabled if _G.ESP_SETTINGS.MainEnabled then local myRoot = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ui.Name.Text = myRoot and player.Name.." ["..math.floor((myRoot.Position-root.Position).Magnitude).."m]" or player.Name ui.Name.Position = Vector2.new(pos.X+width/2, pos.Y-15) end if _G.ESP_SETTINGS.Tracers then ui.Tracer.From=getTracerStart(); ui.Tracer.To=Vector2.new(pos.X+width/2,pos.Y) ui.Tracer.Color=_G.ESP_SETTINGS.Color; ui.Tracer.Visible=true else ui.Tracer.Visible=false end if _G.ESP_SETTINGS.HealthBar then local hp = humanoid.Health/humanoid.MaxHealth local hh = height*hp ui.Health.From=Vector2.new(pos.X-5, pos.Y+height) ui.Health.To=Vector2.new(pos.X-5, pos.Y+height-hh) ui.Health.Color=Color3.fromRGB(255-(255*hp), 255*hp, 0) ui.Health.Visible=true else ui.Health.Visible=false end end) end end) end setupESP() -- ==================== ESP UI ==================== ESPToggleRef = otherTab:AddToggle({ Name = "ESP", Default = false, Callback = function(Value) _G.ESP_SETTINGS.MainEnabled = Value end, }) ESPTeamRef = otherTab:AddToggle({ Name = "Hide Teammates (ESP)", Default = false, Callback = function(Value) _G.ESP_SETTINGS.TeamCheck = Value end, }) otherTab:AddSection({ Name = "ESP Options" }) TracersRef = otherTab:AddToggle({ Name = "Tracers", Default = true, Callback = function(Value) _G.ESP_SETTINGS.Tracers = Value end, }) TracerPosRef = otherTab:AddSlider({ Name = "Tracer Position (0: Bot | 1: Mid | 2: Top | 3: Left | 4: Right)", Min = 0, Max = 4, Default = 0, Callback = function(Value) local positions = {"bottom","middle","top","left","right"} local index = math.floor(Value + 0.5) + 1 tracerStartPos = positions[index] or "bottom" _G.ESP_SETTINGS.TracerStart = tracerStartPos end, }) HealthBarRef = otherTab:AddToggle({ Name = "Health Bars", Default = true, Callback = function(Value) _G.ESP_SETTINGS.HealthBar = Value end, }) -- ==================== GADGET ESP ==================== otherTab:AddSection({ Name = "Gadget ESP" }) _G.GADGET_ESP_ENABLED = false local gadgetNames = { "NeedleMine","Drone","RemoteC4","ToxicCharge","StickyCamera", "Claymore","ProximityAlarm","BulletproofCamera","DeployableShield", "BarbedWire","SignalDisruptor","ShockBattery" } _G.gadgetESP_texts = {} local function isGadget(obj) for _, name in ipairs(gadgetNames) do if obj.Name == name then return true end end return false end local function getGadgetPosition(obj) if obj:IsA("BasePart") then return obj.Position elseif obj:IsA("Model") then local p = obj.PrimaryPart return p and p.Position or obj:GetPivot().Position end return nil end local function createGadgetESP(obj) if _G.gadgetESP_texts[obj] then return end local text = Drawing.new("Text") text.Visible=false; text.Size=14; text.Center=true; text.Outline=true text.OutlineColor=Color3.new(0,0,0); text.Font=2; text.Color=_G.ESPColor; text.Text=obj.Name _G.gadgetESP_texts[obj] = text end local function removeGadgetESP(obj) local text = _G.gadgetESP_texts[obj] if text then text:Remove(); _G.gadgetESP_texts[obj] = nil end end for _, child in ipairs(workspace:GetChildren()) do if isGadget(child) then createGadgetESP(child) end end workspace.ChildAdded:Connect(function(child) if isGadget(child) then createGadgetESP(child) end end) workspace.ChildRemoved:Connect(function(child) if isGadget(child) then removeGadgetESP(child) end end) RunService.RenderStepped:Connect(function() local Camera = workspace.CurrentCamera for obj, text in pairs(_G.gadgetESP_texts) do if not obj or not obj.Parent then text:Remove(); _G.gadgetESP_texts[obj]=nil; continue end local worldPos = getGadgetPosition(obj) if not worldPos then text.Visible=false; continue end local screenPos, onScreen = Camera:WorldToViewportPoint(worldPos) if onScreen then text.Position=Vector2.new(screenPos.X, screenPos.Y-20); text.Visible=_G.GADGET_ESP_ENABLED else text.Visible=false end end end) GadgetESPRef = otherTab:AddToggle({ Name = "Gadget ESP", Default = false, Callback = function(Value) _G.GADGET_ESP_ENABLED = Value if not Value then for _,text in pairs(_G.gadgetESP_texts) do text.Visible=false end end end, }) -- ==================== SKELETONS ==================== otherTab:AddSection({ Name = "Viewmodel ESP" }) SkeletonsRef = otherTab:AddToggle({ Name = "Skeletons", Default = false, Callback = function(Value) _G.espSkeletons=Value; _G.ESP_ENABLED=Value; _G.ESP_SETTINGS.Skeletons=Value end, }) local cloneref_support = cloneref ~= nil local gethui_support = gethui ~= nil local runservice = cloneref_support and cloneref(game:GetService("RunService")) or game:GetService("RunService") local bones = { {"torso","head"},{"torso","shoulder1"},{"torso","shoulder2"}, {"shoulder1","arm1"},{"shoulder2","arm2"},{"torso","hip1"}, {"torso","hip2"},{"hip1","leg1"},{"hip2","leg2"} } local required_bones = {"torso","head","shoulder1","shoulder2","arm1","arm2","hip1","hip2","leg1","leg2"} _G.esp_list = {} _G.skeleton_list = {} local viewmodels = workspace:FindFirstChild("Viewmodels") local camera = workspace.CurrentCamera workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function() camera = workspace.CurrentCamera end) local function isSkeletonTeammate(model) if not _G.ESP_SETTINGS.TeamCheck then return false end local char = getCharacterForViewmodel(model) if not char then return false end for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Name == char.Name then return player.Team == LocalPlayer.Team end end return false end _G.TeammateHighlights = _G.TeammateHighlights or {} workspace.ChildAdded:Connect(function(child) if child:IsA("Highlight") then _G.TeammateHighlights[child] = true end end) workspace.ChildRemoved:Connect(function(child) if child:IsA("Highlight") then _G.TeammateHighlights[child] = nil end end) local function is_teammate(model) for highlight in pairs(_G.TeammateHighlights) do if highlight.Adornee == model and highlight.Name ~= "ChamsHighlight" then return true end end return isSkeletonTeammate(model) end local function is_valid(model) if not model or not model.Parent or model.Name=="LocalViewmodel" or not viewmodels or model.Parent~=viewmodels then return false end local torso = model:FindFirstChild("torso") return torso and torso:IsA("BasePart") end local function rand_str(len) local chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" local result = {} for i=1,len do result[i]=chars:sub(math.random(1,#chars), math.random(1,#chars)) end return table.concat(result) end local screen_gui = Instance.new("ScreenGui") screen_gui.Name = rand_str(12) screen_gui.Parent = gethui_support and gethui() or game:GetService("CoreGui") local function remove_skeleton(character) local data = _G.skeleton_list[character] if not data then return end for _,line in ipairs(data.lines) do line:Remove() end _G.skeleton_list[character] = nil end local function create_skeleton(character) if not character or _G.skeleton_list[character] or not is_valid(character) then return end local char_bones = {} for _,name in ipairs(required_bones) do local b = character:FindFirstChild(name) if not b or not b:IsA("BasePart") then return end char_bones[name] = b end local lines = {} for i=1,#bones do local line = Drawing.new("Line") line.Visible=false; line.Color=_G.ESPColor; line.Thickness=1; line.Transparency=1 lines[i] = line end _G.skeleton_list[character] = {lines=lines, bones=char_bones} end local function create_esp(character) if not character or not is_valid(character) or _G.esp_list[character] then return end local folder = Instance.new("Folder", screen_gui) local box = Instance.new("Frame", folder) local stk = Instance.new("UIStroke", box) box.BackgroundTransparency=1; box.BorderSizePixel=0 stk.Color=_G.ESPColor; stk.Thickness=1 _G.esp_list[character] = {folder=folder, box=box} end runservice.RenderStepped:Connect(function() for character, data in pairs(_G.esp_list) do local box = data.box; local folder = data.folder if not character or not character.Parent or not is_valid(character) then box.Visible=false; folder:Destroy() _G.esp_list[character]=nil; remove_skeleton(character); continue end local torso = character:FindFirstChild("torso") if not torso or torso.Transparency >= 1 or is_teammate(character) then box.Visible=false; continue end local pos, on_screen = camera:WorldToScreenPoint(torso.Position) if on_screen and (camera.CFrame.Position - torso.Position).Magnitude <= 3571.4 then if _G.espSkeletons then if not _G.skeleton_list[character] then create_skeleton(character) end local skel = _G.skeleton_list[character] if skel then local min_x,min_y = math.huge,math.huge local max_x,max_y = -math.huge,-math.huge for i,conn in ipairs(bones) do local b1,b2 = skel.bones[conn[1]], skel.bones[conn[2]] if b1 and b2 then local p1 = camera:WorldToViewportPoint(b1.Position) local p2 = camera:WorldToViewportPoint(b2.Position) local s1 = camera:WorldToScreenPoint(b1.Position) local s2 = camera:WorldToScreenPoint(b2.Position) if s1.Z>0 then min_x=math.min(min_x,s1.X);max_x=math.max(max_x,s1.X);min_y=math.min(min_y,s1.Y);max_y=math.max(max_y,s1.Y) end if s2.Z>0 then min_x=math.min(min_x,s2.X);max_x=math.max(max_x,s2.X);min_y=math.min(min_y,s2.Y);max_y=math.max(max_y,s2.Y) end if p1.Z>0 and p2.Z>0 then skel.lines[i].From=Vector2.new(p1.X,p1.Y) skel.lines[i].To=Vector2.new(p2.X,p2.Y) skel.lines[i].Visible=true else skel.lines[i].Visible=false end else skel.lines[i].Visible=false end end if _G.ESP_ENABLED and min_x~=math.huge then local pad=4; box.Visible=true box.Position=UDim2.fromOffset(min_x-pad, min_y-pad) box.Size=UDim2.fromOffset(max_x-min_x+pad*2, max_y-min_y+pad*2) else box.Visible=false end end else remove_skeleton(character); box.Visible=false end else box.Visible=false; remove_skeleton(character) end end end) if viewmodels then for _,v in ipairs(viewmodels:GetChildren()) do if v:IsA("Model") then task.delay(0.1, create_esp, v) end end viewmodels.ChildAdded:Connect(function(v) if v:IsA("Model") then task.delay(0.2, create_esp, v) end end) viewmodels.ChildRemoved:Connect(function(v) if _G.esp_list[v] then _G.esp_list[v].folder:Destroy(); _G.esp_list[v]=nil end remove_skeleton(v) end) end -- ==================== ESP COLOR ==================== _G.ESPColor = _G.ESPColor or Color3.new(1,1,1) otherTab:AddSection({ Name = "ESP Color" }) ESPColorRef = otherTab:AddColorPicker({ Name = "ESP Color", Default = _G.ESPColor, Callback = function(Value) _G.ESPColor=Value; _G.ESP_SETTINGS.Color=Value for _,ui in pairs(_G.ESP_Table) do if ui.Box then ui.Box.Color=Value end if ui.Tracer then ui.Tracer.Color=Value end end for _,skel in pairs(_G.skeleton_list) do for _,line in ipairs(skel.lines) do line.Color=Value end end for _,d in pairs(_G.esp_list) do d.box.UIStroke.Color=Value end for _,text in pairs(_G.gadgetESP_texts) do text.Color=Value end updateChamsColor(Value) end, }) -- ==================== CHAMS UI ==================== otherTab:AddSection({ Name = "Chams" }) ChamsToggleRef = otherTab:AddToggle({ Name = "Chams", Default = false, Callback = function(Value) _G.CHAMS_SETTINGS.Enabled = Value if Value then rebuildChams() else for _,hl in pairs(_G.chams_highlights) do hl.Enabled=false end end Window:Notify("Chams", Value and "ON" or "OFF", nil, 1.5) end, }) ChamsTeamRef = otherTab:AddToggle({ Name = "Hide Teammates (Chams)", Default = true, Callback = function(Value) _G.CHAMS_SETTINGS.TeamCheck=Value; rebuildChams() end, }) ChamsModeRef = otherTab:AddDropdown({ Name = "Chams Mode", Default = "Visible", Options = {"Visible","Not Visible"}, Callback = function(Value) _G.CHAMS_SETTINGS.Mode = (Value=="Not Visible") and "NotVisible" or "Visible" updateChamsDepthMode() end, }) ChamsTransRef = otherTab:AddSlider({ Name = "Chams Transparency", Min = 0, Max = 100, Default = 30, Callback = function(Value) local t = Value/100 _G.CHAMS_SETTINGS.Transparency = t updateChamsTransparency(t) end, }) -- ==================== OPTIMIZATIONS TAB ==================== local OptimizationsTab = Window:AddTab("Optimizations") OptimizationsTab:AddSection({ Name = "Performance & Visuals (⚠️ Scopes will break)" }) FullbrightBrightnessRef = OptimizationsTab:AddSlider({ Name = "Fullbright Brightness", Min = 0, Max = 4, Default = 2, Callback = function(Value) fullbrightBrightness = Value end, }) OptimizationsTab:AddButton({ Name = "💡 Fullbright", Callback = function() local Lighting = game:GetService("Lighting") Lighting.Brightness=fullbrightBrightness; Lighting.ClockTime=14 Lighting.FogEnd=100000; Lighting.GlobalShadows=false Lighting.OutdoorAmbient=Color3.fromRGB(128,128,128) Window:Notify("Fullbright", "Brightness set to: "..fullbrightBrightness, nil, 3) end }) local optimizeConnection = nil OptimizationsTab:AddButton({ Name = "⚡ Optimize (Use at your own risk)", Callback = function() Window:Notify("⚠️ Disclaimer", "This WILL break scoped weapons! Proceeding...", nil, 4) task.wait(1) if optimizeConnection then optimizeConnection:Disconnect(); optimizeConnection=nil end local Terrain = workspace:FindFirstChildWhichIsA("Terrain") local Lighting = game:GetService("Lighting") if Terrain then Terrain.WaterWaveSize=0; Terrain.WaterWaveSpeed=0 Terrain.WaterReflectance=0; Terrain.WaterTransparency=1 end Lighting.GlobalShadows=false; Lighting.FogEnd=9e9; Lighting.FogStart=9e9 settings().Rendering.QualityLevel=1 for _,v in pairs(game:GetDescendants()) do if v:IsA("BasePart") then v.CastShadow=false; v.Material="Plastic"; v.Reflectance=0 v.BackSurface="SmoothNoOutlines"; v.BottomSurface="SmoothNoOutlines" v.FrontSurface="SmoothNoOutlines"; v.LeftSurface="SmoothNoOutlines" v.RightSurface="SmoothNoOutlines"; v.TopSurface="SmoothNoOutlines" elseif v:IsA("Decal") then v.Transparency=1; v.Texture="" elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then v.Lifetime=NumberRange.new(0) end end for _,v in pairs(Lighting:GetDescendants()) do if v:IsA("PostEffect") then v.Enabled=false end end optimizeConnection = workspace.DescendantAdded:Connect(function(child) task.spawn(function() if child:IsA("ForceField") or child:IsA("Sparkles") or child:IsA("Smoke") or child:IsA("Fire") or child:IsA("Beam") then RunService.Heartbeat:Wait(); child:Destroy() elseif child:IsA("BasePart") then child.CastShadow=false end end) end) print("game optimized"); warn("this WILL break some scopes") Window:Notify("Optimization", "Game optimized! (Scopes may be broken)", nil, 4) end }) -- ==================== COMBAT TAB ==================== local CombatTab = Window:AddTab("⚔️ Combat") -- ==================== FIRERATE SYSTEM (N0IR Integrated) ==================== CombatTab:AddSection({ Name = "Rapid Fire / Firerate" }) FR = { enabled = false, mult = 2 } local FIRERATE_SRC = [==[ local rs = game:GetService("ReplicatedStorage") local sg = game:GetService("StarterGui") local MULTIPLIER = __MULT__ local gunClass = require(rs.Modules.Items.Item.Gun) if gunClass._op1_firerate_patched then if gunClass._op1_firerate_set_mult then gunClass._op1_firerate_set_mult(MULTIPLIER) end return end gunClass._op1_firerate_patched = true local multiplier = MULTIPLIER local lastSendTime = 0 local measuredInterval = 0.1 gunClass._op1_firerate_set_mult = function(m) multiplier = m end local oldSend = gunClass.send_shoot if type(oldSend) ~= "function" then return end gunClass.send_shoot = function(self, ...) local args = { ... } local now = tick() if lastSendTime > 0 then local d = now - lastSendTime if d > 0.005 and d < 2 then measuredInterval = d end end lastSendTime = now local r = oldSend(self, ...) if multiplier > 1 then local step = math.max(measuredInterval / multiplier, 0.02) for i = 1, multiplier - 1 do task.delay(step * i, function() pcall(oldSend, self, table.unpack(args)) end) end end return r end ]==] local function runOnActor(src) if not getactors or not run_on_actor then return false end local actors = getactors() local actor = actors and actors[1] if not actor then return false end local ok, err = pcall(run_on_actor, actor, src) return ok end applyFirerate = function(mult) local src = string.gsub(FIRERATE_SRC, "__MULT__", tostring(mult)) runOnActor(src) end FRToggleRef = CombatTab:AddToggle({ Name = "Enable Rapid Fire", Default = false, Callback = function(Value) FR.enabled = Value applyFirerate(Value and FR.mult or 1) end, }) FRMultRef = CombatTab:AddSlider({ Name = "Firerate Multiplier", Min = 1, Max = 20, Default = 2, Suffix = "x", Callback = function(Value) FR.mult = Value if FR.enabled then applyFirerate(Value) end end, }) -- ==================== SILENT AIM (N0IR Integrated) ==================== CombatTab:AddSection({ Name = "Silent Aim (Actor-Sided)" }) SilentAimSettings = { Enabled = false, AutoShoot = false, FOV = 200, TargetPart = "head", TeamCheck = true, LOSCheck = false, HitChance = 100, } local fovCircle = Drawing.new("Circle") fovCircle.Visible = false fovCircle.Thickness = 1.5 fovCircle.Color = Color3.fromRGB(255, 255, 255) fovCircle.Filled = false fovCircle.NumSides = 64 fovCircle.Transparency = 1 RunService.RenderStepped:Connect(function() local cam = workspace.CurrentCamera if cam then fovCircle.Position = cam.ViewportSize / 2 fovCircle.Radius = SilentAimSettings.FOV fovCircle.Visible = SilentAimSettings.Enabled end end) updateSilentAimHitChance = function(chance) runOnActor('local rs = game:GetService("ReplicatedStorage"); local g = require(rs.Modules.Items.Item.Gun); if g._silent_aim_set_chance then g._silent_aim_set_chance(' .. tostring(chance) .. ') end') end local SILENT_SRC = [==[ local rs = game:GetService("ReplicatedStorage") local input = game:GetService("UserInputService") local world = game:GetService("Workspace") local gunClass = require(rs.Modules.Items.Item.Gun) if gunClass._silent_aim_patched then return end gunClass._silent_aim_patched = true if not gunClass._old_shoot_look then gunClass._old_shoot_look = gunClass.get_shoot_look end local oldLook = gunClass._old_shoot_look local radius = __SA_FOV__ local radius_sq = radius * radius local targetMode = "__SA_TARGET_MODE__" local hitChance = 100 local customParts = { "head", "torso", "shoulder1", "shoulder2", "arm1", "arm2", "hip1", "hip2", "leg1", "leg2", } gunClass._silent_aim_set_chance = function(chance) hitChance = chance end local mouse = input:GetMouseLocation() local cam = world.CurrentCamera local inputConnection = input.InputChanged:Connect(function() mouse = input:GetMouseLocation() end) local function getPartList() if targetMode == "head_only" then return { "head" } end return customParts end local function pickAimPart() local best, bestDistanceSquared = nil, math.huge local function consider(part) if not part or not part:IsA("BasePart") then return end local screenPoint, onScreen = cam:WorldToViewportPoint(part.Position) if not onScreen then return end local dx = screenPoint.X - mouse.X local dy = screenPoint.Y - mouse.Y local distanceSquared = dx * dx + dy * dy if distanceSquared <= radius_sq and distanceSquared < bestDistanceSquared then best = part bestDistanceSquared = distanceSquared end end local viewmodels = world:FindFirstChild("Viewmodels") if viewmodels then for _, viewmodel in ipairs(viewmodels:GetChildren()) do if viewmodel.Name ~= "Viewmodel" then continue end local torso = viewmodel:FindFirstChild("torso") if torso and torso.Transparency == 1 then continue end for _, partName in ipairs(getPartList()) do consider(viewmodel:FindFirstChild(partName)) end end end return best end gunClass.get_shoot_look = function(self, ...) local originalLook = oldLook(self, ...) if math.random(1, 100) > hitChance then return originalLook end local target = pickAimPart() if not target then return originalLook end if typeof(originalLook) == "CFrame" then return CFrame.lookAt(originalLook.Position, target.Position) elseif typeof(originalLook) == "Vector3" then return (target.Position - cam.CFrame.Position).Unit elseif type(originalLook) == "table" then if originalLook[1] and originalLook[2] and typeof(originalLook[1]) == "Vector3" then return { originalLook[1], (target.Position - originalLook[1]).Unit, } end if originalLook.origin and originalLook.direction then return { origin = originalLook.origin, direction = (target.Position - originalLook.origin).Unit, } end end return originalLook end gunClass._silent_aim_disable = function() if inputConnection then inputConnection:Disconnect() inputConnection = nil end if gunClass._old_shoot_look then gunClass.get_shoot_look = gunClass._old_shoot_look gunClass._old_shoot_look = nil end gunClass._silent_aim_set_chance = nil gunClass._silent_aim_patched = nil end ]==] local silentLoaded = false local function ensureSilentAim() if silentLoaded then return end local targetMode = SilentAimSettings.TargetPart == "custom_parts" and "custom" or "head_only" local silentSource = SILENT_SRC :gsub("__SA_FOV__", tostring(math.floor(SilentAimSettings.FOV))) :gsub("__SA_TARGET_MODE__", targetMode) runOnActor(silentSource) updateSilentAimHitChance(SilentAimSettings.HitChance) silentLoaded = true end local function disableSilentAim() if not silentLoaded then return end runOnActor([==[ local ReplicatedStorage = game:GetService("ReplicatedStorage") local GunModule = require(ReplicatedStorage.Modules.Items.Item.Gun) if GunModule._silent_aim_disable then GunModule._silent_aim_disable() end ]==]) silentLoaded = false end local function reloadSilentAim() disableSilentAim() ensureSilentAim() end local isHoldingM1 = false local function pressM1() if isHoldingM1 then return end isHoldingM1 = true pcall(mouse1press) end local function releaseM1() if not isHoldingM1 then return end isHoldingM1 = false pcall(mouse1release) end local function canPenetrate(instance) if not instance or not instance:IsA("BasePart") then return true end local parent = instance.Parent local isHard = instance:GetAttribute("Hard") or (parent and parent:GetAttribute("Hard")) local isSoft = instance:GetAttribute("Soft") or (parent and parent:GetAttribute("Soft")) if instance.Transparency >= 1 or not instance.CanCollide then return true end if isSoft then return true end if isHard then local dims = { instance.Size.X, instance.Size.Y, instance.Size.Z } table.sort(dims) if dims[2] > 0.5 then return false end return true end local dims = { instance.Size.X, instance.Size.Y, instance.Size.Z } table.sort(dims) if instance:HasTag("WallPart") then return dims[2] <= 0.5 end return dims[2] < 1.45 end local function isWallbangable(origin, targetPos, ignoreList) local direction = targetPos - origin local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = ignoreList or {} local remaining = direction local pos = origin for _ = 1, 12 do local result = workspace:Raycast(pos, remaining, params) if not result then return true end if not canPenetrate(result.Instance) then return false end params:AddToFilter(result.Instance) local traveled = result.Position - origin remaining = direction - traveled pos = result.Position + remaining.Unit * 0.01 if remaining.Magnitude < 0.1 then return true end end return true end local function findSATarget() local mouse = UserInputService:GetMouseLocation() local cam = workspace.CurrentCamera local best = nil local bestDist2 = SilentAimSettings.FOV * SilentAimSettings.FOV local vms = workspace:FindFirstChild("Viewmodels") if not vms then return nil end for _, vm in ipairs(vms:GetChildren()) do if vm.Name == "LocalViewmodel" then continue end if not vm:IsA("Model") then continue end local torso = vm:FindFirstChild("torso") if not torso or torso.Transparency >= 1 then continue end local head = vm:FindFirstChild("head") if not head or not head:IsA("BasePart") then continue end local screenPos, onScreen = cam:WorldToViewportPoint(head.Position) if not onScreen or screenPos.Z <= 0 then continue end local dx = screenPos.X - mouse.X local dy = screenPos.Y - mouse.Y local d2 = dx*dx + dy*dy if d2 < bestDist2 then bestDist2 = d2 best = head end end return best end RunService.Heartbeat:Connect(function() if not SilentAimSettings.Enabled then releaseM1() return end ensureSilentAim() if not SilentAimSettings.AutoShoot then releaseM1() return end local target = findSATarget() if not target then releaseM1() return end local camPos = workspace.CurrentCamera.CFrame.Position local targetPos = target.Position local ignore = {} if LocalPlayer.Character then for _, v in ipairs(LocalPlayer.Character:GetDescendants()) do if v:IsA("BasePart") then ignore[#ignore+1] = v end end end local shootable = true if SilentAimSettings.LOSCheck then local losParams = RaycastParams.new() losParams.FilterType = Enum.RaycastFilterType.Exclude losParams.FilterDescendantsInstances = ignore local rayResult = workspace:Raycast(camPos, targetPos - camPos, losParams) if rayResult and not rayResult.Instance:IsDescendantOf(target.Parent) then shootable = false end end if shootable then pressM1() else releaseM1() end end) SAToggleRef = CombatTab:AddToggle({ Name = "Enable Silent Aim", Default = false, Callback = function(Value) SilentAimSettings.Enabled = Value fovCircle.Visible = Value if Value then ensureSilentAim() else disableSilentAim() end end, }) SALOSCheckRef = CombatTab:AddToggle({ Name = "LOS Check (Visible Only)", Default = false, Callback = function(Value) SilentAimSettings.LOSCheck = Value end, }) SATeamCheckRef = CombatTab:AddToggle({ Name = "Team Check", Default = true, Callback = function(Value) SilentAimSettings.TeamCheck = Value end, }) SAFOVRef = CombatTab:AddSlider({ Name = "FOV Radius", Min = 20, Max = 800, Default = 200, Callback = function(Value) SilentAimSettings.FOV = Value if SilentAimSettings.Enabled then reloadSilentAim() end end, }) SAHitChanceRef = CombatTab:AddSlider({ Name = "Hit Chance", Min = 0, Max = 100, Default = 100, Suffix = "%", Callback = function(Value) SilentAimSettings.HitChance = Value updateSilentAimHitChance(Value) end, }) SATargetPartRef = CombatTab:AddDropdown({ Name = "Target Part", Default = "head", Options = {"head", "custom_parts"}, Callback = function(Value) SilentAimSettings.TargetPart = Value if SilentAimSettings.Enabled then reloadSilentAim() end end, }) -- ==================== TRIGGERBOT ==================== CombatTab:AddSection({ Name = "Triggerbot" }) TriggerbotSettings = { Enabled = false, TeamCheck = false, AutoGunMode = false, Delay = 0, Connection = nil, IsWaiting = false, WaitStartTime = 0, IsFiring = false, IsPressed = false, LastClick = 0, ClickInterval = 0.05, VisibilityCheck = false, } local function findCharacter(player) local vm = playerViewmodels[player] if vm then local char = getCharacterForViewmodel(vm) if char then return char, char:FindFirstChildOfClass("Humanoid"), char:FindFirstChild("HumanoidRootPart") end end for _,model in ipairs(workspace:GetChildren()) do if model:IsA("Model") and model.Name==player.Name then local hum=model:FindFirstChildOfClass("Humanoid") local root=model:FindFirstChild("HumanoidRootPart") if hum and root then return model,hum,root end end end return nil end local function getPlayerScreenBox(character) local cam = workspace.CurrentCamera local cf,size = character:GetBoundingBox() local top = cf.Position + Vector3.new(0,size.Y/2,0) local bottom = cf.Position - Vector3.new(0,size.Y/2,0) local topPos,vis1 = cam:WorldToViewportPoint(top) local bottomPos,vis2 = cam:WorldToViewportPoint(bottom) if not vis1 or not vis2 then return nil end local height = math.abs(topPos.Y-bottomPos.Y) local width = height/2 return Vector2.new(topPos.X-width/2, topPos.Y), width, height end local function pointInBox(point, boxPos, boxWidth, boxHeight) local pad=5 return point.X>=boxPos.X-pad and point.X<=boxPos.X+boxWidth+pad and point.Y>=boxPos.Y-pad and point.Y<=boxPos.Y+boxHeight+pad end local function isPlayerVisible(targetPlayer, targetPos) local localChar = LocalPlayer.Character if not localChar then return false end local targetChar, _, rootPart = findCharacter(targetPlayer) local targetVM = playerViewmodels[targetPlayer] if not targetChar or not rootPart then return false end -- Prefer checking visibility to the head if available, otherwise fallback to rootPart local headPart = targetVM and targetVM:FindFirstChild("head") or targetChar:FindFirstChild("Head") local checkPos = targetPos or (headPart and headPart.Position) or rootPart.Position local cam = workspace.CurrentCamera local rayOrigin = cam.CFrame.Position local rayDirection = checkPos - rayOrigin local rayLength = rayDirection.Magnitude if rayLength <= 0 then return true end local filterList = {localChar} local vms = workspace:FindFirstChild("Viewmodels") if vms then local localVM = vms:FindFirstChild("LocalViewmodel") if localVM then table.insert(filterList, localVM) end end local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude rayParams.FilterDescendantsInstances = filterList local rayResult = workspace:Raycast( rayOrigin, rayDirection.Unit * rayLength, rayParams ) if not rayResult then return true end local hitPart = rayResult.Instance if (targetChar and hitPart:IsDescendantOf(targetChar)) or (targetVM and hitPart:IsDescendantOf(targetVM)) then return true end return false end local function releaseTriggerMouse() if TriggerbotSettings.IsPressed then pcall(mouse1release); TriggerbotSettings.IsPressed=false end end local function triggerbotLoop() local UIS = game:GetService("UserInputService") TriggerbotSettings.Connection = RunService.RenderStepped:Connect(function(dt) if not TriggerbotSettings.Enabled then releaseTriggerMouse(); TriggerbotSettings.IsWaiting=false; TriggerbotSettings.IsFiring=false; return end if not LocalPlayer.Character or LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Health<=0 then releaseTriggerMouse(); TriggerbotSettings.IsWaiting=false; TriggerbotSettings.IsFiring=false; return end if not UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then releaseTriggerMouse(); TriggerbotSettings.IsWaiting=false; TriggerbotSettings.IsFiring=false; return end local mousePos = UIS:GetMouseLocation() local validEnemy = false for _,player in ipairs(Players:GetPlayers()) do if player==LocalPlayer then continue end if TriggerbotSettings.TeamCheck and player.Team==LocalPlayer.Team then continue end local character,humanoid,root = findCharacter(player) if not character or not humanoid or humanoid.Health<=0 then continue end local boxPos,boxWidth,boxHeight = getPlayerScreenBox(character) if not boxPos then continue end if pointInBox(mousePos, boxPos, boxWidth, boxHeight) then if TriggerbotSettings.VisibilityCheck then local vis = isPlayerVisible(player, root.Position) if vis == true then validEnemy=true; break end else validEnemy=true; break end end end if not validEnemy then releaseTriggerMouse(); TriggerbotSettings.IsWaiting=false; TriggerbotSettings.IsFiring=false else if not TriggerbotSettings.IsFiring then if not TriggerbotSettings.IsWaiting then TriggerbotSettings.IsWaiting=true; TriggerbotSettings.WaitStartTime=tick() else local elapsed=(tick()-TriggerbotSettings.WaitStartTime)*1000 if elapsed>=TriggerbotSettings.Delay then TriggerbotSettings.IsWaiting=false; TriggerbotSettings.IsFiring=true end end end if TriggerbotSettings.IsFiring then if TriggerbotSettings.AutoGunMode then if not TriggerbotSettings.IsPressed then pcall(mouse1press); TriggerbotSettings.IsPressed=true end else releaseTriggerMouse() local now=tick() if now-TriggerbotSettings.LastClick>=TriggerbotSettings.ClickInterval then TriggerbotSettings.LastClick=now; pcall(mouse1click) end end end end end) end TriggerToggleRef = CombatTab:AddToggle({ Name = "Triggerbot", Default = false, Callback = function(Value) TriggerbotSettings.Enabled=Value if Value then if not TriggerbotSettings.Connection then triggerbotLoop() end Window:Notify("Triggerbot","ON (hold RMB) – delay: "..TriggerbotSettings.Delay.." ms",nil,2) else if TriggerbotSettings.Connection then TriggerbotSettings.Connection:Disconnect(); TriggerbotSettings.Connection=nil end releaseTriggerMouse(); TriggerbotSettings.IsWaiting=false; TriggerbotSettings.IsFiring=false Window:Notify("Triggerbot","OFF",nil,2) end end, }) TriggerTeamRef = CombatTab:AddToggle({ Name = "Don't Shoot Teammates", Default = false, Callback = function(Value) TriggerbotSettings.TeamCheck=Value end, }) TriggerAutoRef = CombatTab:AddToggle({ Name = "Automatic or Semi gun", Default = false, Callback = function(Value) TriggerbotSettings.AutoGunMode=Value releaseTriggerMouse(); TriggerbotSettings.IsFiring=false; TriggerbotSettings.IsWaiting=false end, }) TriggerDelayRef = CombatTab:AddSlider({ Name = "Delay (MS)", Min = 0, Max = 400, Default = 0, Callback = function(Value) TriggerbotSettings.Delay=Value end, }) TriggerVisRef = CombatTab:AddToggle({ Name = "Visibility Check", Default = false, Callback = function(Value) TriggerbotSettings.VisibilityCheck=Value end, }) -- ==================== AIMBOT ==================== local isMobile = UserInputService.TouchEnabled AimbotSettings = { Enabled = false, Smoothness = 0, FOV = 150, AimOffsetY = 0, AimPart = "Head", RandomPart = nil, FOVCircle = nil, Connection = nil, WasRMBPressed = false, AlwaysOn = false, VisibilityCheck = false, MobileScopeActive = false, TeamCheck = false, Keybind = nil, } local function buildFirerateSnapshot() return { FR_Enabled = FR.enabled, FR_Mult = FR.mult, } end buildConfigSnapshot = function() local frSnap = buildFirerateSnapshot() return { NoRecoil_Enabled = NoRecoilSettings.Enabled, NoRecoil_Sens = NoRecoilSettings.Sens, NoRecoil_Smoothness = NoRecoilSettings.Smoothness, ESP_Main = _G.ESP_SETTINGS.MainEnabled, ESP_Team = _G.ESP_SETTINGS.TeamCheck, ESP_Tracers = _G.ESP_SETTINGS.Tracers, ESP_TracerPos = _G.ESP_SETTINGS.TracerStart, ESP_HealthBar = _G.ESP_SETTINGS.HealthBar, ESP_Skeletons = _G.ESP_SETTINGS.Skeletons, ESP_Color = colorToTable(_G.ESPColor), GadgetESP = _G.GADGET_ESP_ENABLED, Chams_Enabled = _G.CHAMS_SETTINGS.Enabled, Chams_Team = _G.CHAMS_SETTINGS.TeamCheck, Chams_Mode = _G.CHAMS_SETTINGS.Mode, Chams_Trans = math.floor(_G.CHAMS_SETTINGS.Transparency * 100), Fullbright_Brightness = fullbrightBrightness, Breakable_Transparency = transparencyValue, TB_Enabled = TriggerbotSettings.Enabled, TB_Team = TriggerbotSettings.TeamCheck, TB_Auto = TriggerbotSettings.AutoGunMode, TB_Delay = TriggerbotSettings.Delay, TB_Vis = TriggerbotSettings.VisibilityCheck, AB_Enabled = AimbotSettings.Enabled, AB_AlwaysOn = AimbotSettings.AlwaysOn, AB_Vis = AimbotSettings.VisibilityCheck, AB_Team = AimbotSettings.TeamCheck, AB_Smoothness = AimbotSettings.Smoothness, AB_FOV = AimbotSettings.FOV, AB_OffsetY = AimbotSettings.AimOffsetY, AB_Part = AimbotSettings.AimPart, ABKeybind = (function() if AimbotSettings.Keybind and typeof(AimbotSettings.Keybind) == "EnumItem" then return AimbotSettings.Keybind.Name end if AimbotToggleRef then local ok, keybind = pcall(function() return AimbotToggleRef:GetKeybind() end) if ok and keybind and typeof(keybind) == "EnumItem" then AimbotSettings.Keybind = keybind return keybind.Name end end return nil end)(), -- Silent Aim Snapshot SA_Enabled = SilentAimSettings.Enabled, SA_LOSCheck = SilentAimSettings.LOSCheck, SA_TeamCheck = SilentAimSettings.TeamCheck, SA_FOV = SilentAimSettings.FOV, SA_HitChance = SilentAimSettings.HitChance, SA_TargetPart = SilentAimSettings.TargetPart, -- Firerate Snapshot Integration FR_Enabled = frSnap.FR_Enabled, FR_Mult = frSnap.FR_Mult, } end local function getPlayerFromCharacter(character) if not character then return nil end for _,plr in ipairs(Players:GetPlayers()) do if plr.Name==character.Name then return plr end end return nil end local function isValidAimbotTarget(vm) local char = getCharacterForViewmodel(vm) if not char then return false end local hum = char:FindFirstChildOfClass("Humanoid") if not hum or hum.Health<=0 then return false end local torso = vm:FindFirstChild("torso") if torso and hum.Health<=0 and torso.Transparency>=1 then return false end return true end local AimbotModeText = Drawing.new("Text") AimbotModeText.Text=""; AimbotModeText.Size=18; AimbotModeText.Center=true AimbotModeText.Outline=true; AimbotModeText.Color=Color3.new(1,1,1) AimbotModeText.Visible=false AimbotModeText.Position=Vector2.new(workspace.CurrentCamera.ViewportSize.X/2, 50) local function updateAimbotIndicator() local mode if AimbotSettings.AlwaysOn then mode="Always Active" elseif isMobile then mode=AimbotSettings.MobileScopeActive and "Scope Toggle (ON)" or "Scope Toggle (OFF)" else mode="Hold RMB" end local teamText = AimbotSettings.TeamCheck and " [No Teammates]" or "" local visText = AimbotSettings.VisibilityCheck and " [VisCheck]" or "" AimbotModeText.Text = "Aimbot: "..mode..teamText..visText AimbotModeText.Position = Vector2.new(workspace.CurrentCamera.ViewportSize.X/2, 50) end if isMobile then local function deactivateAimbotIfActive() if AimbotSettings.Enabled and AimbotSettings.MobileScopeActive then AimbotSettings.MobileScopeActive=false; AimbotSettings.WasRMBPressed=false updateAimbotIndicator() end end pcall(function() local sb=LocalPlayer:WaitForChild("PlayerGui",5):WaitForChild("Game",5):WaitForChild("Right",5):WaitForChild("Center",5):WaitForChild("ScopeButton",5) sb.Activated:Connect(function() AimbotSettings.MobileScopeActive=not AimbotSettings.MobileScopeActive if AimbotSettings.MobileScopeActive then AimbotSettings.WasRMBPressed=false end updateAimbotIndicator() end) end) pcall(function() local rb=LocalPlayer:WaitForChild("PlayerGui",5):WaitForChild("Game",5):WaitForChild("Right",5):WaitForChild("Center",5):WaitForChild("ReloadButton",5) rb.Activated:Connect(deactivateAimbotIfActive) end) pcall(function() local bi=LocalPlayer:WaitForChild("PlayerGui",5):WaitForChild("Game",5):WaitForChild("Right",5):WaitForChild("Bottom",5):WaitForChild("BackpackItems",5) for _,item in ipairs(bi:GetChildren()) do if item:IsA("ImageButton") or item:IsA("TextButton") then item.Activated:Connect(deactivateAimbotIfActive) end end bi.ChildAdded:Connect(function(item) if item:IsA("ImageButton") or item:IsA("TextButton") then item.Activated:Connect(deactivateAimbotIfActive) end end) end) end local function getViewmodelPartPosition(model, partName) if partName=="Head" then local h=model:FindFirstChild("head") if h and h:IsA("BasePart") then return h.Position end elseif partName=="Torso" then local t=model:FindFirstChild("torso") if t and t:IsA("BasePart") then return t.Position end elseif partName=="Feet" then local l=model:FindFirstChild("LeftFoot") or model:FindFirstChild("leftfoot") local r2=model:FindFirstChild("RightFoot") or model:FindFirstChild("rightfoot") if l and l:IsA("BasePart") then return l.Position end if r2 and r2:IsA("BasePart") then return r2.Position end local t=model:FindFirstChild("torso") if t and t:IsA("BasePart") then return t.Position end end for _,child in ipairs(model:GetChildren()) do if child:IsA("BasePart") and child.Name~="HumanoidRootPart" then return child.Position end end return nil end local aimPartOptions = {"Head","Torso","Feet"} local function isTargetVisible(targetPos, targetChar, targetVM) if not AimbotSettings.VisibilityCheck then return true end local localChar = LocalPlayer.Character if not localChar then return false end local Camera = workspace.CurrentCamera local rayOrigin = Camera.CFrame.Position local rayDirection = (targetPos - rayOrigin) local rayLength = rayDirection.Magnitude if rayLength <= 0 then return true end -- If the target is extremely far away (e.g. beyond 500 studs), raycasting often fails due to engine culling. -- You can choose to bypass vischeck at extreme ranges or keep it active: if rayLength > 800 then return true end local filterList = {localChar} local vms = workspace:FindFirstChild("Viewmodels") if vms then local localVM = vms:FindFirstChild("LocalViewmodel") if localVM then table.insert(filterList, localVM) end end local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude rayParams.FilterDescendantsInstances = filterList -- Ensure ignore water or uncollidable parts don't mess up long rays rayParams.IgnoreWater = true local rayResult = workspace:Raycast(rayOrigin, rayDirection.Unit * rayLength, rayParams) if not rayResult then return true end local hitPart = rayResult.Instance if (targetChar and hitPart:IsDescendantOf(targetChar)) or (targetVM and hitPart:IsDescendantOf(targetVM)) then return true end return false end local function getClosestPartToCenter(partName) local Camera = workspace.CurrentCamera local center = Camera.ViewportSize/2 local bestDist = AimbotSettings.FOV local bestTarget, bestWorldPos = nil, nil local vms3 = workspace:FindFirstChild("Viewmodels") if not vms3 then return nil, nil end for _,model in ipairs(vms3:GetChildren()) do if not model:IsA("Model") then continue end if model.Name=="LocalViewmodel" then continue end if not isValidAimbotTarget(model) then continue end local char = getCharacterForViewmodel(model) if AimbotSettings.TeamCheck then if char then local plr = getPlayerFromCharacter(char) if plr and plr.Team==LocalPlayer.Team then continue end end end local partPos = getViewmodelPartPosition(model, partName) if not partPos then continue end -- Pass 'model' (the enemy viewmodel) into isTargetVisible if not isTargetVisible(partPos, char, model) then continue end local screenPos, onScreen = Camera:WorldToScreenPoint(partPos) if not onScreen then continue end screenPos = Vector2.new(screenPos.X, screenPos.Y+AimbotSettings.AimOffsetY) local dist = (screenPos-center).Magnitude if dist=365 and string.format("%.1f years",ageDays/365) or ageDays.." days" local classification="" if ageDays<20 then classification=" ⚠️ POSSIBLE CHEATER" elseif ageDays<40 then classification=" 🔶 VERY SUSPICIOUS" elseif ageDays<60 then classification=" 🔸 SUSPICIOUS" end Window:Notify(player.Name,"Account age: "..ageDisplay..classification,nil,5) task.wait(2) end end, }) -- ==================== BREAKABLE TRANSPARENCY ==================== UtilityTab:AddSection({ Name = "Breakable Transparency (⚠️ May cause lag)" }) BreakableTransRef = UtilityTab:AddSlider({ Name = "Transparency", Min = 0, Max = 100, Default = 50, Callback = function(Value) transparencyValue=Value end, }) UtilityTab:AddButton({ Name = "Apply Transparency to Breakables", Callback = function() Window:Notify("Applying...","Setting breakable transparency to "..transparencyValue.."%. This may cause slight lag.",nil,3) local count=0 for _,obj in ipairs(workspace:GetDescendants()) do if obj:IsA("BasePart") and obj:FindFirstChild("Breakable") then obj.Transparency=transparencyValue/100; count=count+1 end end Window:Notify("Done","Updated "..count.." breakable objects.",nil,3) end, }) -- ==================== CONFIG TAB ==================== local ConfigTab = Window:AddTab("💾 Config") ConfigTab:AddSection({ Name = "Config Manager" }) local configNameRef = ConfigTab:AddTextbox({ Name = "Config Name", Default = "", Placeholder = "myconfig", Callback = function(_) end, }) ConfigTab:AddButton({ Name = "💾 Save Config", Callback = function() local name = configNameRef:Get() saveConfig(name) end, }) ConfigTab:AddButton({ Name = "📂 Load Config", Callback = function() local name = configNameRef:Get() loadConfig(name) end, }) ConfigTab:AddButton({ Name = "🗑️ Delete Config", Callback = function() local name = configNameRef:Get() deleteConfig(name) local names = listConfigs() if configListRef then names[#names+1] = "(none)" pcall(function() configListRef:Refresh(names, "(none)") end) end end, }) ConfigTab:AddSection({ Name = "Saved Configs" }) local initialNames = listConfigs() initialNames[#initialNames+1] = "(none)" configListRef = ConfigTab:AddDropdown({ Name = "Saved Configs", Default = "(none)", Options = initialNames, Callback = function(Value) if Value ~= "(none)" then configNameRef:Set(Value) end end, }) ConfigTab:AddButton({ Name = "🔄 Refresh List", Callback = function() local names = listConfigs() names[#names+1] = "(none)" pcall(function() configListRef:Refresh(names, "(none)") end) Window:Notify("Config","List refreshed ("..tostring(#names-1).." configs)",nil,2) end, }) ConfigTab:AddSection({ Name = "Autoload (Loads on inject)" }) ConfigTab:AddButton({ Name = "⚡ Set as Autoload", Callback = function() local name = configNameRef:Get() setAutoload(name) end, }) ConfigTab:AddButton({ Name = "❌ Clear Autoload", Callback = function() clearAutoload() end, }) local autoloadLabel = ConfigTab:AddLabel({ Name = "" }) local function refreshAutoloadLabel() if isfile(AUTOLOAD_PATH) then local ok, name = pcall(readfile, AUTOLOAD_PATH) if ok and name and name ~= "" then autoloadLabel:Set("Autoload: \"" .. name .. "\"") return end end autoloadLabel:Set("Autoload: (none)") end refreshAutoloadLabel() local _origSetAutoload = setAutoload setAutoload = function(name) _origSetAutoload(name) refreshAutoloadLabel() end local _origClearAutoload = clearAutoload clearAutoload = function() _origClearAutoload() refreshAutoloadLabel() end