--[[ Operation One | ScriptWORKS + Reztored All-in-One ]] local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") --------------------------------------------------------------------- -- GLOBAL STATE --------------------------------------------------------------------- _G.ESPColor = _G.ESPColor or Color3.new(1, 1, 1) _G.espSkeletons = false _G.ESP_ENABLED = false _G.RainbowEnabled = true -- auto on _G.RainbowSpeed = 1.0 _G.ManualMobileMode = _G.ManualMobileMode or false local DISCORD_INVITE = "CYjZqhsdgz" local DISCORD_LINK = "https://discord.gg/" .. DISCORD_INVITE --------------------------------------------------------------------- -- EXECUTOR DETECTION --------------------------------------------------------------------- local function getExecutor() local exec = "Unknown" pcall(function() if getexecutorname then local name = getexecutorname() for _, n in ipairs({"Xeno","Solara","Wave","Potassium","Volt","Madium","Delta", "Script-Ware","Vega","Fluxus","Evon","Oxy","Hydrogen","Arceus", "Celestial","Krampus","Seliware","Krnl","Synapse"}) do if name:find(n) then exec = n == "Synapse" and "Synapse X" or n break end end if exec == "Unknown" then exec = name end elseif syn and syn.request then exec = "Synapse X" elseif syn and syn.crypt then exec = "Synapse Z" elseif queue_on_teleport then exec = "Krnl" elseif isfile and readfile and writefile then exec = "Script-Ware" elseif game:GetService("CoreGui"):FindFirstChild("RobloxGui") then exec = "Delta" elseif game:GetService("CoreGui"):FindFirstChild("Executor") then exec = "Executor" end end) return exec end --------------------------------------------------------------------- -- MOBILE DETECTION --------------------------------------------------------------------- local isMobileTouch = UserInputService.TouchEnabled local function isMobileDevice() local vp = workspace.CurrentCamera and workspace.CurrentCamera.ViewportSize or Vector2.new(0, 0) local ar = vp.X / math.max(vp.Y, 1) return ar < 1.2 and ar > 0.4 end local EXECUTOR = getExecutor() local IS_MOBILE = isMobileTouch or isMobileDevice() local IS_MOBILE_EXECUTOR = false do for _, n in ipairs({"Delta","Madium","Solara","Wave","Potassium","Volt","Hydrogen","Fluxus","Oxy","Xeno"}) do if EXECUTOR:find(n) then IS_MOBILE_EXECUTOR = true break end end end local function useMobileMode() return IS_MOBILE or IS_MOBILE_EXECUTOR or _G.ManualMobileMode end --------------------------------------------------------------------- -- MOUSE FREEDOM (- key toggles mouse lock / release for FPS games) --------------------------------------------------------------------- -- Works by switching MouseBehavior between LockCenter (FPS) and Default (free). -- We track what the game originally wanted so we restore it on re-lock. local mouseFree = false local origMouseBehavior = Enum.MouseBehavior.Default local function freeMouse(state) mouseFree = state if state then -- Capture what the game last set so we can restore it origMouseBehavior = UserInputService.MouseBehavior UserInputService.MouseBehavior = Enum.MouseBehavior.Default UserInputService.MouseIconEnabled = true else UserInputService.MouseBehavior = origMouseBehavior end end -- Keep mouse free even if the game tries to re-lock it while we have it freed RunService.RenderStepped:Connect(function() if mouseFree and UserInputService.MouseBehavior ~= Enum.MouseBehavior.Default then UserInputService.MouseBehavior = Enum.MouseBehavior.Default end end) UserInputService.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.Minus or input.KeyCode == Enum.KeyCode.KeypadMinus then freeMouse(not mouseFree) end end) --------------------------------------------------------------------- -- NO RECOIL --------------------------------------------------------------------- local NoRecoilSettings = { Enabled = false, Sens = useMobileMode() and 0.6 or 1.0, Smoothness = 0.12, } local nrTargetX, nrTargetY, nrTargetZ = 0, 0, 0 local nrFiring = false local nrRecovery = 0 local function syncCamera() local x, y, z = workspace.CurrentCamera.CFrame:ToEulerAnglesYXZ() nrTargetX, nrTargetY, nrTargetZ = 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 lp = game:GetService("Players").LocalPlayer local Camera = workspace.CurrentCamera if UIS.MouseBehavior == Enum.MouseBehavior.Default then syncCamera() return end local char = lp.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(Enum.UserInputType.MouseButton1) then nrFiring = true nrRecovery = 0.35 nrTargetY = nrTargetY - math.rad(delta.X * NoRecoilSettings.Sens * 0.48 * flip) nrTargetX = math.clamp(nrTargetX - math.rad(delta.Y * NoRecoilSettings.Sens * 0.48), math.rad(-85), math.rad(85)) Camera.CFrame = CFrame.new(Camera.CFrame.Position) * CFrame.fromEulerAnglesYXZ(nrTargetX, nrTargetY, realZ) else if nrFiring then if nrRecovery > 0 then nrRecovery = nrRecovery - dt if delta.Magnitude > 0 then nrTargetY = nrTargetY - math.rad(delta.X * NoRecoilSettings.Sens * 0.48 * flip) nrTargetX = math.clamp(nrTargetX - math.rad(delta.Y * NoRecoilSettings.Sens * 0.48), math.rad(-85), math.rad(85)) end Camera.CFrame = CFrame.new(Camera.CFrame.Position) * CFrame.fromEulerAnglesYXZ(nrTargetX, nrTargetY, nrTargetZ) else syncCamera(); nrFiring = false end else syncCamera() end end end ) --------------------------------------------------------------------- -- AIMBOT --------------------------------------------------------------------- local LocalPlayer = game:GetService("Players").LocalPlayer local AimbotSettings = { Enabled = false, Smoothness = useMobileMode() and 3 or 0, FOV = useMobileMode() and 200 or 150, AimOffsetY = 0, AimHeadOffset = 60, AimTorsoOffset = 0, AimPart = "Head", FOVCircle = nil, Connection = nil, WasRMBPressed = false, UseCameraAim = useMobileMode(), MobileScopeActive = false, WallCheck = false, FOVColor = Color3.new(1, 1, 1), } -- FIXED: wall check now blacklists the full local character and all its descendants, -- then checks whether the ray hit something inside the target's character model. local function isTargetVisible(targetPart) local camera = workspace.CurrentCamera local origin = camera.CFrame.Position local direction = (targetPart.Position - origin).Unit local distance = (targetPart.Position - origin).Magnitude local rp = RaycastParams.new() rp.FilterType = Enum.RaycastFilterType.Blacklist -- Blacklist the entire local character so self-parts never block the ray local localChar = LocalPlayer.Character rp.FilterDescendantsInstances = localChar and {localChar} or {} local result = workspace:Raycast(origin, direction * distance, rp) if not result then return true end -- nothing hit → target is visible -- Walk up the hit instance's ancestry to find its model local hitModel = result.Instance:FindFirstAncestorOfClass("Model") -- Visible if the ray hit the target's own model return hitModel ~= nil and hitModel == targetPart.Parent end local function getViewmodelPartPos(model, partName) local child = model:FindFirstChild(partName == "Head" and "head" or "torso") if child and child:IsA("BasePart") then return child.Position end end local function getClosestPartToCenter(partName) local Camera = workspace.CurrentCamera local center = Camera.ViewportSize / 2 local bestDist = AimbotSettings.FOV local bestScrn, bestWorld = nil, nil local viewmodels = workspace:FindFirstChild("Viewmodels") if not viewmodels then return nil, nil end for _, model in ipairs(viewmodels:GetChildren()) do if not model:IsA("Model") or model.Name == "LocalViewmodel" then continue end local partPos = getViewmodelPartPos(model, partName) if not partPos then continue end if AimbotSettings.WallCheck then local part = model:FindFirstChild(partName == "Head" and "head" or "torso") if part and part:IsA("BasePart") and not isTargetVisible(part) then continue end end local screenPos, onScreen = Camera:WorldToScreenPoint(partPos) if not onScreen then continue end local offsetY = AimbotSettings.AimOffsetY if partName == "Head" then offsetY = offsetY + AimbotSettings.AimHeadOffset end if partName == "Torso" then offsetY = offsetY + AimbotSettings.AimTorsoOffset end local adjusted = Vector2.new(screenPos.X, screenPos.Y + offsetY) local dist = (adjusted - center).Magnitude if dist < bestDist then bestDist = dist bestScrn = adjusted bestWorld = partPos end end return bestScrn, bestWorld end local function aimbotLoop() local UIS = game:GetService("UserInputService") local Camera = workspace.CurrentCamera AimbotSettings.Connection = RunService.RenderStepped:Connect(function() if not AimbotSettings.Enabled then return end local rmbPressed = isMobileTouch and AimbotSettings.MobileScopeActive or UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) if not rmbPressed then AimbotSettings.WasRMBPressed = false return end AimbotSettings.WasRMBPressed = true local screenTarget, worldTarget = getClosestPartToCenter(AimbotSettings.AimPart) if not screenTarget then return end local center = Camera.ViewportSize / 2 local smoothness = AimbotSettings.Smoothness local factor = math.clamp(0.50 - (smoothness / 10) * 0.45, 0.05, 0.55) if AimbotSettings.UseCameraAim and worldTarget then Camera.CFrame = Camera.CFrame:Lerp(CFrame.lookAt(Camera.CFrame.Position, worldTarget), factor) else local delta = screenTarget - center local maxMove = 1500 * factor + 0.5 mousemoverel( math.clamp(delta.X * factor, -maxMove, maxMove), math.clamp(delta.Y * factor, -maxMove, maxMove) ) end end) end RunService.RenderStepped:Connect(function() if AimbotSettings.FOVCircle and AimbotSettings.FOVCircle.Visible then AimbotSettings.FOVCircle.Position = workspace.CurrentCamera.ViewportSize / 2 end end) --------------------------------------------------------------------- -- ESP --------------------------------------------------------------------- _G.ESP_SETTINGS = { MainEnabled = false, Tracers = true, HealthBar = true, Color = Color3.new(1, 1, 1), Skeletons = false, } _G.ESP_Table = {} local function setupESP() local Players2 = game:GetService("Players") local Camera = workspace.CurrentCamera local LP2 = Players2.LocalPlayer local ESP = _G.ESP_Table local TEAM_CHECK = true local MAX_STUCK = 1.5 local function newDrawing(t, props) local o = Drawing.new(t) for k, v in pairs(props) do o[k] = v end return o end local function hideUI(ui) ui.Box.Visible = false ui.Tracer.Visible = false ui.Health.Visible = false ui.Name.Visible = false end local function createESP(player) if player == LP2 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=5, Visible=false}), Name = newDrawing("Text", {Size=13, Center=true, Outline=false, Color=Color3.fromRGB(255,255,255), Visible=false}), LastPosition = nil, StuckTime = 0, } end for _, p in ipairs(Players2:GetPlayers()) do createESP(p) end Players2.PlayerAdded:Connect(createESP) local function findCharacter(player) 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 end local function getBox(character) 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, v1 = Camera:WorldToViewportPoint(top) local btmPos, v2 = Camera:WorldToViewportPoint(bottom) if not v1 or not v2 then return nil end local height = math.abs(topPos.Y - btmPos.Y) local width = height / 2 return Vector2.new(topPos.X - width/2, topPos.Y), width, height end local function getTracerStart() local vp = Camera.ViewportSize return Vector2.new(vp.X/2, vp.Y) end 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 hideUI(ui) end return end for player, ui in pairs(ESP) do pcall(function() if TEAM_CHECK and player.Team == LP2.Team then hideUI(ui) return end local character, humanoid, root = findCharacter(player) if not character or not humanoid or humanoid.Health <= 0 then hideUI(ui) return end local pos, width, height = getBox(character) if not pos then hideUI(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 then hideUI(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 local myRoot = LP2.Character and LP2.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) ui.Name.Visible = true else ui.Name.Visible = false end ui.Tracer.Visible = _G.ESP_SETTINGS.Tracers 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 end ui.Health.Visible = _G.ESP_SETTINGS.HealthBar if _G.ESP_SETTINGS.HealthBar then local hp = humanoid.Health / humanoid.MaxHealth ui.Health.From = Vector2.new(pos.X - 5, pos.Y + height) ui.Health.To = Vector2.new(pos.X - 5, pos.Y + height - height * hp) ui.Health.Color = Color3.fromRGB(255 - (255 * hp), 255 * hp, 0) end end) end end) end setupESP() --------------------------------------------------------------------- -- SKELETON / VIEWMODEL ESP --------------------------------------------------------------------- local cloneref_support = cloneref ~= nil local gethui_support = gethui ~= nil local runservice2 = 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 espCamera = workspace.CurrentCamera workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function() espCamera = workspace.CurrentCamera end) _G.TeammateHighlights = _G.TeammateHighlights or {} workspace.ChildAdded:Connect(function(c) if c:IsA("Highlight") then _G.TeammateHighlights[c] = true end end) workspace.ChildRemoved:Connect(function(c) if c:IsA("Highlight") then _G.TeammateHighlights[c] = nil end end) local function is_teammate(model) for h in pairs(_G.TeammateHighlights) do if h.Adornee == model then return true end end return false 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 c = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" local r = {} for i = 1, len do local x = math.random(1, #c) r[i] = c:sub(x,x) end return table.concat(r) end local skelGui = Instance.new("ScreenGui") skelGui.Name = rand_str(12) skelGui.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 cb = {} for _, name in ipairs(required_bones) do local b = character:FindFirstChild(name) if not b or not b:IsA("BasePart") then return end cb[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 = cb } end local function create_esp_model(character) if not character or not is_valid(character) or _G.esp_list[character] then return end local folder = Instance.new("Folder", skelGui) local box = Instance.new("Frame", folder) local stroke2 = Instance.new("UIStroke", box) box.BackgroundTransparency = 1 box.BorderSizePixel = 0 stroke2.Color = _G.ESPColor stroke2.Thickness = 1 _G.esp_list[character] = { folder = folder, box = box } end runservice2.RenderStepped:Connect(function() for character, data in pairs(_G.esp_list) do local box, folder = data.box, 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 = espCamera:WorldToScreenPoint(torso.Position) if on_screen and (espCamera.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 minX, minY, maxX, maxY = math.huge, math.huge, -math.huge, -math.huge for i, conn in ipairs(bones) do local b1 = skel.bones[conn[1]] local b2 = skel.bones[conn[2]] if b1 and b2 then local p1 = espCamera:WorldToViewportPoint(b1.Position) local p2 = espCamera:WorldToViewportPoint(b2.Position) local s1 = espCamera:WorldToScreenPoint(b1.Position) local s2 = espCamera:WorldToScreenPoint(b2.Position) if s1.Z > 0 then minX=math.min(minX,s1.X) maxX=math.max(maxX,s1.X) minY=math.min(minY,s1.Y) maxY=math.max(maxY,s1.Y) end if s2.Z > 0 then minX=math.min(minX,s2.X) maxX=math.max(maxX,s2.X) minY=math.min(minY,s2.Y) maxY=math.max(maxY,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 minX ~= math.huge then local pad = 4 box.Visible = true box.Position = UDim2.fromOffset(minX-pad, minY-pad) box.Size = UDim2.fromOffset(maxX-minX+pad*2, maxY-minY+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_model, v) end end viewmodels.ChildAdded:Connect(function(v) if v:IsA("Model") then task.delay(0.2, create_esp_model, 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 --------------------------------------------------------------------- -- RAINBOW --------------------------------------------------------------------- local rainbowHue = 0 RunService.RenderStepped:Connect(function(dt) if not _G.RainbowEnabled then return end rainbowHue = (rainbowHue + dt * _G.RainbowSpeed * 0.5) % 1 local rc = Color3.fromHSV(rainbowHue, 1, 1) _G.ESP_SETTINGS.Color = rc _G.ESPColor = rc for _, ui in pairs(_G.ESP_Table) do if ui.Box then ui.Box.Color = rc end if ui.Tracer then ui.Tracer.Color = rc end end for _, skel in pairs(_G.skeleton_list) do for _, line in ipairs(skel.lines) do line.Color = rc end end for _, d in pairs(_G.esp_list) do local s = d.box and d.box:FindFirstChildOfClass("UIStroke") if s then s.Color = rc end end if AimbotSettings.FOVCircle then AimbotSettings.FOVCircle.Color = rc end end) --------------------------------------------------------------------- -- REZTORED: WRAP + RED HEADS + FULLBRIGHT + STRETCH --------------------------------------------------------------------- local W = workspace local VMS = W:WaitForChild("Viewmodels") local LP = Players.LocalPlayer local Lighting = game:GetService("Lighting") local ARM = "rbxassetid://80764697985938" local GUN = "rbxassetid://72578306929394" local RED = Color3.fromRGB(255, 0, 0) local FACES = {Enum.NormalId.Front, Enum.NormalId.Back, Enum.NormalId.Left, Enum.NormalId.Right, Enum.NormalId.Top, Enum.NormalId.Bottom} local SKIP = {glass=true, tintglass=true, reddot=true, dot=true, shot=true, root=true} local BODY = {head=true, torso=true, leg1=true, leg2=true, hip1=true, hip2=true, shoulder1=true, shoulder2=true} getgenv().WrapLoop = false getgenv().FBLoop = false getgenv().StretchActive = false local function unwrap(p) for _, c in ipairs(p:GetChildren()) do if c:IsA("Texture") and c:GetAttribute("IsCustomWrap") then c:Destroy() end end p:SetAttribute("AppliedDecal", nil) end local function wrap(p, id, s) if p:GetAttribute("AppliedDecal") == id then return end if p.Transparency >= 0.9 or p.Material == Enum.Material.Glass then return end if SKIP[p.Name:lower()] then return end p:SetAttribute("AppliedDecal", id) for _, c in ipairs(p:GetChildren()) do if c:IsA("Decal") or c:IsA("Texture") then c:Destroy() end end if p.Material == Enum.Material.ForceField then p.Material = Enum.Material.SmoothPlastic end for _, f in ipairs(FACES) do local t = Instance.new("Texture") t:SetAttribute("IsCustomWrap", true) t.Face = f t.Texture = id t.StudsPerTileU = s t.StudsPerTileV = s t.Parent = p end end local function getMine() local cam = W.CurrentCamera local best, bd = nil, 12 for _, vm in ipairs(VMS:GetChildren()) do local p = vm:FindFirstChild("arm1") or vm:FindFirstChildWhichIsA("BasePart", true) if p then local d = (p.Position - cam.CFrame.Position).Magnitude if d < bd then best, bd = vm, d end end end return best end local function ownerOf(vm) local ref = vm:FindFirstChild("torso") or vm:FindFirstChild("head") if not ref then return nil end local best, bd = nil, 25 for _, p in ipairs(Players:GetPlayers()) do local ch = p.Character if p ~= LP and ch and ch:IsDescendantOf(W) then local part = ch:FindFirstChild("HumanoidRootPart") or ch:FindFirstChildWhichIsA("BasePart") if part then local d = (part.Position - ref.Position).Magnitude if d < bd then best, bd = p, d end end end end return best end local function isEnemy(p) if LP.Team == nil or p.Team == nil then return true end return p.Team ~= LP.Team end local function setHead(h, enemy) if not h:GetAttribute("OrigSaved") then h:SetAttribute("OrigMat", h.Material.Name) h:SetAttribute("OrigColor", h.Color) h:SetAttribute("OrigSaved", true) end if enemy then h:SetAttribute("RedApplied", true) h.Material = Enum.Material.Neon h.Color = RED h.Transparency = 0 elseif h:GetAttribute("RedApplied") then h.Material = Enum.Material[h:GetAttribute("OrigMat")] h.Color = h:GetAttribute("OrigColor") h:SetAttribute("RedApplied", nil) end end local function startWrapHeads() getgenv().WrapLoop = true -- red enemy heads + hat hiding task.spawn(function() local last = 0 while getgenv().WrapLoop do local mine, r, n, u = getMine(), 0, 0, 0 for _, vm in ipairs(VMS:GetChildren()) do local h = vm:FindFirstChild("head") if h and h:IsA("BasePart") and vm ~= mine then local o = ownerOf(vm) if o then local e = isEnemy(o) setHead(h, e) if e then r = r + 1 h.Transparency = 0 -- hide hats on enemies for _, d in ipairs(vm:GetDescendants()) do if d:IsA("Model") and d.Name:lower() == "head" then for _, p in ipairs(d:GetDescendants()) do if p:IsA("BasePart") then if p:GetAttribute("HatT") == nil then p:SetAttribute("HatT", p.Transparency) end p.Transparency = 1 end end end end else n = n + 1 -- restore hats on teammates for _, d in ipairs(vm:GetDescendants()) do if d:IsA("Model") and d.Name:lower() == "head" then for _, p in ipairs(d:GetDescendants()) do if p:IsA("BasePart") and p:GetAttribute("HatT") ~= nil then p.Transparency = p:GetAttribute("HatT") p:SetAttribute("HatT", nil) end end end end end else u = u + 1 end end end if os.clock() - last > 3 then last = os.clock() print("[Heads] red="..r.." team="..n.." unmatched="..u.." myteam="..tostring(LP.Team)) end RunService.RenderStepped:Wait() end end) -- gun skin wrap task.spawn(function() while getgenv().WrapLoop do local mine = getMine() for _, vm in ipairs(VMS:GetChildren()) do for _, d in ipairs(vm:GetDescendants()) do if d:IsA("BasePart") then if vm == mine then local nm = d.Name:lower() local pn = d.Parent and d.Parent.Name:lower() or "" if nm == "arm1" or nm == "arm2" or nm == "sleeve" or pn == "arm1" or pn == "arm2" then wrap(d, ARM, 1.2) elseif not BODY[nm] then wrap(d, GUN, 1.0) end elseif d:GetAttribute("AppliedDecal") then unwrap(d) end end end end task.wait(0.5) end end) end local function stopWrapHeads() getgenv().WrapLoop = false end local function startFullbright() getgenv().FBLoop = true task.spawn(function() while getgenv().FBLoop do pcall(function() Lighting.Brightness = 2 Lighting.ClockTime = 14 Lighting.GlobalShadows = false Lighting.OutdoorAmbient = Color3.new(1,1,1) Lighting.Ambient = Color3.new(1,1,1) for _, v in ipairs(Lighting:GetChildren()) do if v:IsA("Atmosphere") or v:IsA("PostEffect") then v:Destroy() end end end) task.wait(1) end end) end local function stopFullbright() getgenv().FBLoop = false end local stretch = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.67, 0, 0, 0, 1) local spinning, spinElapsed, startCF = false, 0, nil local function startStretch() getgenv().StretchActive = true if getgenv().StretchConn then getgenv().StretchConn:Disconnect() end if getgenv().SpinConn then getgenv().SpinConn:Disconnect() end getgenv().SpinConn = UserInputService.InputBegan:Connect(function(i, gp) if gp or i.KeyCode ~= Enum.KeyCode.T then return end local cam = W.CurrentCamera if not spinning and cam.CameraType == Enum.CameraType.Custom then spinning, spinElapsed = true, 0 startCF = cam.CFrame.Rotation + cam.CFrame.Position cam.CameraType = Enum.CameraType.Scriptable end end) getgenv().StretchConn = RunService.RenderStepped:Connect(function(dt) if not getgenv().StretchActive then return end pcall(function() local cam = W.CurrentCamera if spinning then spinElapsed = spinElapsed + dt local pr = math.clamp(spinElapsed / 0.3, 0, 1) cam.CFrame = (startCF * CFrame.Angles(0, math.pi * 2 * pr, 0)) * stretch if pr >= 1 then spinning = false cam.CameraType = Enum.CameraType.Custom end elseif cam.CameraType == Enum.CameraType.Custom then cam.CFrame = (cam.CFrame.Rotation + cam.CFrame.Position) * stretch end end) end) end local function stopStretch() getgenv().StretchActive = false if getgenv().StretchConn then getgenv().StretchConn:Disconnect() getgenv().StretchConn = nil end if getgenv().SpinConn then getgenv().SpinConn:Disconnect() getgenv().SpinConn = nil end end --------------------------------------------------------------------- -- SILENT AIM -- Hooks gunClass.get_shoot_look on an actor so every bullet server-side -- is redirected toward the nearest enemy head in FOV. -- Auto-shoot presses M1 when a target is in FOV (optional). --------------------------------------------------------------------- local SA = { Enabled = false, AutoShoot = false, FOV = 200, TargetPart = "head", TeamCheck = true, } -- FOV indicator circle (Drawing) local saFovCircle = Drawing.new("Circle") saFovCircle.Visible = false saFovCircle.Thickness = 1.5 saFovCircle.Color = Color3.fromRGB(255, 255, 255) saFovCircle.Filled = false saFovCircle.NumSides = 64 saFovCircle.Transparency = 1 RunService.RenderStepped:Connect(function() local cam = workspace.CurrentCamera saFovCircle.Position = cam.ViewportSize / 2 saFovCircle.Radius = SA.FOV saFovCircle.Visible = SA.Enabled end) -- The actor-side patch string. Uses the same module path as N0IR's script. local SILENT_SRC = [==[ local rs = game:GetService("ReplicatedStorage") local input = game:GetService("UserInputService") local world = game:GetService("Workspace") local ok, gunClass = pcall(function() return require(rs.Modules.Items.Item.Gun) end) if not ok then warn("[silent-aim] could not require Gun module: " .. tostring(gunClass)) return end if gunClass._sw_silent_patched then return end gunClass._sw_silent_patched = true local radius = __RADIUS__ local radius_sq = radius * radius local partMode = "__PARTMODE__" local PARTS = { "head","torso","shoulder1","shoulder2", "arm1","arm2","hip1","hip2","leg1","leg2", } local mouse = input:GetMouseLocation() local cam = world.CurrentCamera input.InputChanged:Connect(function() mouse = input:GetMouseLocation() end) local function pickTarget() local best, bd2 = nil, math.huge local vms = world:FindFirstChild("Viewmodels") if not vms then return nil end local list = partMode == "head" and {"head"} or PARTS 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 torso and torso.Transparency >= 1 then continue end for _, name in ipairs(list) do local p = vm:FindFirstChild(name) if p and p:IsA("BasePart") then local v2, ok = cam:WorldToViewportPoint(p.Position) if ok and v2.Z > 0 then local dx, dy = v2.X - mouse.X, v2.Y - mouse.Y local d2 = dx*dx + dy*dy if d2 <= radius_sq and d2 < bd2 then best, bd2 = p, d2 end end end end end return best end local oldLook = gunClass.get_shoot_look gunClass.get_shoot_look = function(self, ...) local look = oldLook(self, ...) local target = pickTarget() if not target then return look end if typeof(look) == "CFrame" then return CFrame.lookAt(look.Position, target.Position) elseif typeof(look) == "Vector3" then return (target.Position - cam.CFrame.Position).Unit elseif type(look) == "table" then if look.origin and look.direction then return { origin = look.origin, direction = (target.Position - look.origin).Unit } end if look[1] and typeof(look[1]) == "Vector3" then return { look[1], (target.Position - look[1]).Unit } end end return look end print("[silent-aim] patched – radius=" .. tostring(radius) .. " part=" .. tostring(partMode)) ]==] local SILENT_RESET_SRC = [==[ local rs = game:GetService("ReplicatedStorage") local ok, g = pcall(function() return require(rs.Modules.Items.Item.Gun) end) if ok and g then g._sw_silent_patched = nil end ]==] local silentLoaded = false local function runOnActor(src) if not getactors or not run_on_actor then return end local actors = getactors() if not actors or not actors[1] then return end pcall(run_on_actor, actors[1], src) end local function buildSilentSrc() local s = SILENT_SRC s = s:gsub("__RADIUS__", tostring(SA.FOV)) s = s:gsub("__PARTMODE__", SA.TargetPart == "head" and "head" or "all") return s end local function ensureSilentAim() if silentLoaded then return end silentLoaded = true runOnActor(buildSilentSrc()) end local function reloadSilentAim() silentLoaded = false runOnActor(SILENT_RESET_SRC) task.delay(0.1, ensureSilentAim) end -- Auto-shoot: holds M1 when a target is in FOV local saIsHoldingM1 = false local function saPressM1() if saIsHoldingM1 then return end saIsHoldingM1 = true pcall(mouse1press) end local function saReleaseM1() if not saIsHoldingM1 then return end saIsHoldingM1 = false pcall(mouse1release) end -- Lightweight FOV target finder (client-side only, used for auto-shoot) local function saFindTarget() local mouse = UserInputService:GetMouseLocation() local cam = workspace.CurrentCamera local best, bd2 = nil, SA.FOV * SA.FOV local vms = workspace:FindFirstChild("Viewmodels") if not vms then return nil end local list = SA.TargetPart == "head" and {"head"} or {"head","torso","shoulder1","shoulder2","arm1","arm2","hip1","hip2","leg1","leg2"} for _, vm in ipairs(vms:GetChildren()) do if vm.Name == "LocalViewmodel" or not vm:IsA("Model") then continue end local torso = vm:FindFirstChild("torso") if torso and torso.Transparency >= 1 then continue end for _, name in ipairs(list) do local p = vm:FindFirstChild(name) if p and p:IsA("BasePart") then local v2, ok = cam:WorldToViewportPoint(p.Position) if ok and v2.Z > 0 then local dx, dy = v2.X - mouse.X, v2.Y - mouse.Y local d2 = dx*dx + dy*dy if d2 < bd2 then best, bd2 = p, d2 end end end end end return best end RunService.Heartbeat:Connect(function() if not SA.Enabled then saReleaseM1() return end ensureSilentAim() if not SA.AutoShoot then saReleaseM1() return end if saFindTarget() then saPressM1() else saReleaseM1() end end) --------------------------------------------------------------------- -- UNLOAD --------------------------------------------------------------------- local function unloadAll() -- release mouse freedom if active if mouseFree then freeMouse(false) end NoRecoilSettings.Enabled = false pcall(function() RunService:UnbindFromRenderStep("DynamicZeroRecoil") end) _G.ESP_SETTINGS.MainEnabled = false _G.ESP_SETTINGS.Tracers = false _G.ESP_SETTINGS.HealthBar = false _G.espSkeletons = false _G.ESP_ENABLED = false for _, ui in pairs(_G.ESP_Table) do if ui.Box then ui.Box:Remove() end if ui.Tracer then ui.Tracer:Remove() end if ui.Health then ui.Health:Remove() end if ui.Name then ui.Name:Remove() end end _G.ESP_Table = {} for _, data in pairs(_G.skeleton_list) do for _, l in ipairs(data.lines) do l:Remove() end end _G.skeleton_list = {} for _, data in pairs(_G.esp_list) do data.folder:Destroy() end _G.esp_list = {} AimbotSettings.Enabled = false if AimbotSettings.Connection then AimbotSettings.Connection:Disconnect() AimbotSettings.Connection = nil end if AimbotSettings.FOVCircle then AimbotSettings.FOVCircle:Remove() AimbotSettings.FOVCircle = nil end AimbotSettings.WasRMBPressed = false pcall(function() skelGui:Destroy() end) stopWrapHeads() stopFullbright() stopStretch() -- silent aim cleanup SA.Enabled = false SA.AutoShoot = false saReleaseM1() if saFovCircle then saFovCircle.Visible = false end silentLoaded = false pcall(function() runOnActor(SILENT_RESET_SRC) end) end --------------------------------------------------------------------- -- GUI FRAMEWORK --------------------------------------------------------------------- local C = { BG = Color3.fromRGB(7, 7, 7), PANEL = Color3.fromRGB(14, 14, 14), CARD = Color3.fromRGB(23, 23, 23), STROKE = Color3.fromRGB(62, 62, 62), TEXT = Color3.fromRGB(245, 245, 245), DIM = Color3.fromRGB(185, 185, 185), MUTED = Color3.fromRGB(125, 125, 125), ACCENT = Color3.fromRGB(220, 220, 220), CYAN = Color3.fromRGB(155, 155, 155), GREEN = Color3.fromRGB(55, 205, 105), RED = Color3.fromRGB(235, 70, 70), OFF = Color3.fromRGB(48, 48, 48), BLURPLE = Color3.fromRGB(75, 75, 75), WHITE = Color3.new(1, 1, 1), } local E, D = Enum.EasingStyle, Enum.EasingDirection local isTouch = UserInputService.TouchEnabled local HEADER_H = 54 local function new(class, props, children) local o = Instance.new(class) local parent for k, v in pairs(props or {}) do if k == "Parent" then parent = v else o[k] = v end end for _, c in ipairs(children or {}) do c.Parent = o end if parent then o.Parent = parent end return o end local function corner(r) return new("UICorner", { CornerRadius = UDim.new(0, r) }) end local function circle() return new("UICorner", { CornerRadius = UDim.new(1, 0) }) end local function mkStroke(color, th, tr) return new("UIStroke", { Color=color, Thickness=th or 1, Transparency=tr or 0, ApplyStrokeMode=Enum.ApplyStrokeMode.Border }) end local function gradient(c0, c1, rot) return new("UIGradient", { Color = ColorSequence.new(c0, c1), Rotation = rot or 0 }) end local function tw(obj, t, props, style, dir) local tween = TweenService:Create(obj, TweenInfo.new(t, style or E.Quint, dir or D.Out), props) tween:Play() return tween end local function roundedShadow(parent, radius, zIndex, strength) local layers = {} local specs = { { spread=18, y=7, transparency=0.94 }, { spread=12, y=5, transparency=0.91 }, { spread=7, y=3, transparency=0.88 }, { spread=3, y=2, transparency=0.84 }, } for i, spec in ipairs(specs) do layers[#layers+1] = new("Frame", { Name="RoundedShadow"..i, AnchorPoint=Vector2.new(0.5,0.5), Position=UDim2.new(0.5,0,0.5,spec.y), Size=UDim2.new(1,spec.spread*2,1,spec.spread*2), BackgroundColor3=Color3.new(0,0,0), BackgroundTransparency=math.clamp(spec.transparency+(1-(strength or 1))*0.08,0,1), BorderSizePixel=0, ZIndex=zIndex or 1, Parent=parent, }, { corner(radius+spec.spread) }) end return layers end local function copyText(s) if pcall(function() setclipboard(s) end) then return true end if pcall(function() toclipboard(s) end) then return true end return false end local guiParent = (gethui_support and gethui()) or game:GetService("CoreGui") for _, parent in ipairs({ guiParent, Players.LocalPlayer:FindFirstChild("PlayerGui") }) do if parent then local old = parent:FindFirstChild("ScriptWorksUniversal") if old then old:Destroy() end end end local gui = new("ScreenGui", { Name="ScriptWorksUniversal", ResetOnSpawn=false, IgnoreGuiInset=true, DisplayOrder=9999, ZIndexBehavior=Enum.ZIndexBehavior.Sibling, Parent=guiParent, }) local alive = true local conns, cleanups = {}, {} local function track(c) conns[#conns+1] = c return c end local function onCleanup(f) cleanups[#cleanups+1] = f end local function destroyAll() if not alive then return end alive = false for _, c in ipairs(conns) do c:Disconnect() end for _, f in ipairs(cleanups) do pcall(f) end unloadAll() gui:Destroy() end local function viewport() local v = gui.AbsoluteSize if v.X < 10 or v.Y < 10 then v = Vector2.new(1280, 720) end return v end local function interactive(btn, base, hover, pressScale) local sc = new("UIScale", { Parent=btn }) track(btn.MouseEnter:Connect(function() if hover and not btn:GetAttribute("Locked") then tw(btn, 0.15, { BackgroundColor3=hover }) end end)) track(btn.MouseLeave:Connect(function() if base and not btn:GetAttribute("Locked") then tw(btn, 0.15, { BackgroundColor3=base }) end tw(sc, 0.12, { Scale=1 }) end)) track(btn.MouseButton1Down:Connect(function() tw(sc, 0.08, { Scale=pressScale or 0.94 }) end)) track(btn.MouseButton1Up:Connect(function() tw(sc, 0.2, { Scale=1 }, E.Back) end)) return sc end local function wtw(obj, t, props, style, dir) TweenService:Create(obj, TweenInfo.new(t, style or E.Quint, dir or D.Out), props):Play() end local function buildLabel(parent, text) local lbl = Instance.new("TextLabel", parent) lbl.Size = UDim2.new(1,0,0,18) lbl.BackgroundTransparency = 1 lbl.Font = Enum.Font.Gotham lbl.TextSize = 11 lbl.TextColor3 = C.MUTED lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.Text = text return lbl end local function buildSubToggle(parent, label, default, onChange) local row = Instance.new("Frame", parent) row.Name = "SubToggle_"..label row.Size = UDim2.new(1,0,0,36) row.BackgroundColor3 = Color3.fromRGB(18,18,18) row.BorderSizePixel = 0 local rc = Instance.new("UICorner", row) rc.CornerRadius = UDim.new(0,8) local sk = Instance.new("UIStroke", row) sk.Color = C.STROKE sk.Thickness = 1 sk.Transparency = 0.55 local nameLbl = Instance.new("TextLabel", row) nameLbl.Position = UDim2.fromOffset(10,0) nameLbl.Size = UDim2.new(1,-70,1,0) nameLbl.BackgroundTransparency = 1 nameLbl.Font = Enum.Font.GothamMedium nameLbl.TextSize = 13 nameLbl.TextColor3 = default and C.TEXT or C.DIM nameLbl.TextXAlignment = Enum.TextXAlignment.Left nameLbl.Text = label local switchBtn = Instance.new("TextButton", row) switchBtn.AnchorPoint = Vector2.new(1,0.5) switchBtn.Position = UDim2.new(1,-8,0.5,0) switchBtn.Size = UDim2.fromOffset(44,28) switchBtn.BackgroundTransparency = 1 switchBtn.AutoButtonColor = false switchBtn.Text = default and "ON" or "OFF" switchBtn.Font = Enum.Font.GothamBold switchBtn.TextSize = 12 switchBtn.TextColor3 = default and C.GREEN or C.RED local state = default or false local function paint(on) switchBtn.Text = on and "ON" or "OFF" wtw(switchBtn, 0.18, { TextColor3=on and C.GREEN or C.RED }) wtw(nameLbl, 0.18, { TextColor3=on and C.TEXT or C.DIM }) end local function setState(on) state = on paint(on) if onChange then onChange(on) end end switchBtn.Activated:Connect(function() setState(not state) end) return setState end local function buildButton(parent, opts) local btn = Instance.new("TextButton", parent) btn.Name = "Btn_"..opts.Label btn.Size = UDim2.new(1,0,0,36) btn.BackgroundColor3 = Color3.fromRGB(32,32,32) btn.BorderSizePixel = 0 btn.AutoButtonColor = false btn.Text = opts.Label btn.Font = Enum.Font.GothamMedium btn.TextSize = 13 btn.TextColor3 = Color3.fromRGB(220,220,220) local c2 = Instance.new("UICorner", btn) c2.CornerRadius = UDim.new(0,8) local s2 = Instance.new("UIStroke", btn) s2.Color = Color3.fromRGB(62,62,62) s2.Thickness = 1 s2.Transparency = 0.5 local sc = Instance.new("UIScale", btn) btn.MouseEnter:Connect(function() wtw(btn, 0.12, { BackgroundColor3=Color3.fromRGB(50,50,50) }) end) btn.MouseLeave:Connect(function() wtw(btn, 0.12, { BackgroundColor3=Color3.fromRGB(32,32,32) }) wtw(sc, 0.12, { Scale=1 }) end) btn.MouseButton1Down:Connect(function() wtw(sc, 0.08, { Scale=0.94 }) end) btn.MouseButton1Up:Connect(function() wtw(sc, 0.2, { Scale=1 }, E.Back) end) btn.Activated:Connect(function() if opts.Callback then opts.Callback() end end) return btn end local function buildSlider(parent, opts) local inc = opts.Increment or 1 local row = Instance.new("Frame", parent) row.Name = "Slider_"..opts.Label row.Size = UDim2.new(1,0,0,52) row.BackgroundColor3 = Color3.fromRGB(16,16,16) row.BorderSizePixel = 0 local rc = Instance.new("UICorner", row) rc.CornerRadius = UDim.new(0,8) local sk = Instance.new("UIStroke", row) sk.Color = Color3.fromRGB(62,62,62) sk.Thickness = 1 sk.Transparency = 0.6 local lbl = Instance.new("TextLabel", row) lbl.Position = UDim2.fromOffset(10,4) lbl.Size = UDim2.new(1,-20,0,16) lbl.BackgroundTransparency = 1 lbl.Font = Enum.Font.GothamMedium lbl.TextSize = 12 lbl.TextColor3 = C.DIM lbl.TextXAlignment = Enum.TextXAlignment.Left lbl.Text = opts.Label local valLbl = Instance.new("TextLabel", row) valLbl.AnchorPoint = Vector2.new(1,0) valLbl.Position = UDim2.new(1,-10,0,4) valLbl.Size = UDim2.fromOffset(80,16) valLbl.BackgroundTransparency = 1 valLbl.Font = Enum.Font.GothamMedium valLbl.TextSize = 12 valLbl.TextColor3 = C.ACCENT valLbl.TextXAlignment = Enum.TextXAlignment.Right valLbl.Text = tostring(opts.Default)..(opts.Suffix or "") local trackFr = Instance.new("Frame", row) trackFr.Position = UDim2.new(0,10,0,32) trackFr.Size = UDim2.new(1,-20,0,6) trackFr.BackgroundColor3 = Color3.fromRGB(42,42,42) trackFr.BorderSizePixel = 0 local tc = Instance.new("UICorner", trackFr) tc.CornerRadius = UDim.new(1,0) local fill = Instance.new("Frame", trackFr) fill.BackgroundColor3 = Color3.fromRGB(220,220,220) fill.BorderSizePixel = 0 local startPct = math.clamp((opts.Default-opts.Min)/math.max(opts.Max-opts.Min,0.0001),0,1) fill.Size = UDim2.fromScale(startPct,1) local fc = Instance.new("UICorner", fill) fc.CornerRadius = UDim.new(1,0) local fg = Instance.new("UIGradient", fill) fg.Color = ColorSequence.new(Color3.fromRGB(240,240,240), Color3.fromRGB(160,160,160)) local knob = Instance.new("Frame", trackFr) knob.AnchorPoint = Vector2.new(0.5,0.5) knob.Position = UDim2.new(startPct,0,0.5,0) knob.Size = UDim2.fromOffset(12,12) knob.BackgroundColor3 = Color3.new(1,1,1) knob.BorderSizePixel = 0 knob.ZIndex = 2 local kc = Instance.new("UICorner", knob) kc.CornerRadius = UDim.new(1,0) local dragging = false local function applyVal(raw) local clamped = math.clamp(raw, opts.Min, opts.Max) local stepped = math.round((clamped-opts.Min)/inc)*inc+opts.Min stepped = math.clamp(stepped, opts.Min, opts.Max) local pct = math.clamp((stepped-opts.Min)/math.max(opts.Max-opts.Min,0.0001),0,1) fill.Size = UDim2.fromScale(pct,1) knob.Position = UDim2.new(pct,0,0.5,0) local display = math.floor(stepped*100+0.5)/100 valLbl.Text = tostring(display)..(opts.Suffix or "") if opts.OnChange then opts.OnChange(stepped) end end local function posToVal(absX) local relX = math.clamp(absX-trackFr.AbsolutePosition.X, 0, trackFr.AbsoluteSize.X) return opts.Min+(relX/math.max(trackFr.AbsoluteSize.X,1))*(opts.Max-opts.Min) end trackFr.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true applyVal(posToVal(input.Position.X)) end end) UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then applyVal(posToVal(input.Position.X)) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) return function(v) applyVal(v) end end --------------------------------------------------------------------- -- CONFIG --------------------------------------------------------------------- local CONFIG = { Name = "Operation One | ScriptWorks 🟣", DecalId = 3064991066, Discord = DISCORD_LINK, LoadingTime = 4, Toggles = { ---------- 1. SILENT AIM ---------- { Name = "Silent Aim", Enable = function() SA.Enabled = true saFovCircle.Visible = true ensureSilentAim() end, Disable = function() SA.Enabled = false SA.AutoShoot = false saReleaseM1() saFovCircle.Visible = false silentLoaded = false pcall(function() runOnActor(SILENT_RESET_SRC) end) end, BuildSection = function(container) buildLabel(container, "🎯 Hooks gunClass.get_shoot_look on actor.") buildLabel(container, "Bullets track the nearest enemy in FOV server-side.") buildSubToggle(container, "Auto Shoot (M1 when target in FOV)", SA.AutoShoot, function(v) SA.AutoShoot = v if not v then saReleaseM1() end end) buildSubToggle(container, "Team Check", SA.TeamCheck, function(v) SA.TeamCheck = v end) buildSlider(container, { Label="FOV Radius", Min=20, Max=800, Default=SA.FOV, Increment=10, Suffix="px", OnChange = function(v) SA.FOV = v if SA.Enabled then reloadSilentAim() end end }) buildLabel(container, "🔫 Target Part") buildButton(container, { Label="Part: Head Only", Callback=function() SA.TargetPart = "head" if SA.Enabled then reloadSilentAim() end end}) buildButton(container, { Label="Part: Full Body", Callback=function() SA.TargetPart = "all" if SA.Enabled then reloadSilentAim() end end}) buildLabel(container, "⚡ Auto Shoot fires M1 while enemy is in FOV.") buildLabel(container, "💡 Needs getactors / run_on_actor in your executor.") end, }, ---------- 2. AIMBOT ---------- { Name = "AimBot", Enable = function() if not AimbotSettings.Connection then aimbotLoop() end if not AimbotSettings.FOVCircle then AimbotSettings.FOVCircle = Drawing.new("Circle") AimbotSettings.FOVCircle.Visible = false AimbotSettings.FOVCircle.Color = AimbotSettings.FOVColor AimbotSettings.FOVCircle.Thickness = 1 AimbotSettings.FOVCircle.Filled = false AimbotSettings.FOVCircle.Transparency = 1 AimbotSettings.FOVCircle.Position = workspace.CurrentCamera.ViewportSize / 2 AimbotSettings.FOVCircle.Radius = AimbotSettings.FOV end AimbotSettings.FOVCircle.Visible = true AimbotSettings.Enabled = true end, Disable = function() AimbotSettings.Enabled = false if AimbotSettings.Connection then AimbotSettings.Connection:Disconnect() AimbotSettings.Connection = nil end if AimbotSettings.FOVCircle then AimbotSettings.FOVCircle.Visible = false end AimbotSettings.WasRMBPressed = false end, BuildSection = function(container) buildLabel(container, "🎯 Target Part") for _, part in ipairs({"Head","Torso"}) do buildButton(container, { Label="Lock: "..part, Callback=function() AimbotSettings.AimPart = part end }) end buildSubToggle(container, "Aim Assist (Camera Aim)", AimbotSettings.UseCameraAim, function(v) AimbotSettings.UseCameraAim = v end) buildSubToggle(container, "Wall Check", AimbotSettings.WallCheck, function(v) AimbotSettings.WallCheck = v end) buildSlider(container, { Label="Smoothness", Min=0, Max=10, Default=AimbotSettings.Smoothness, Increment=0.1, Suffix="", OnChange=function(v) AimbotSettings.Smoothness=v end }) buildSlider(container, { Label="FOV", Min=30, Max=700, Default=AimbotSettings.FOV, Increment=5, Suffix="px", OnChange=function(v) AimbotSettings.FOV=v if AimbotSettings.FOVCircle then AimbotSettings.FOVCircle.Radius=v end end }) buildSlider(container, { Label="Head Offset Y", Min=-60, Max=60, Default=AimbotSettings.AimHeadOffset, Increment=1, Suffix="px", OnChange=function(v) AimbotSettings.AimHeadOffset=v end }) buildLabel(container, "💡 Positive = aim lower on head") buildSlider(container, { Label="Torso Offset Y", Min=-60, Max=60, Default=AimbotSettings.AimTorsoOffset, Increment=1, Suffix="px", OnChange=function(v) AimbotSettings.AimTorsoOffset=v end }) buildLabel(container, "⚡ Hold RMB (or scope on mobile) to lock") end, }, ---------- 3. NO RECOIL ---------- { Name = "No Recoil", Enable = function() NoRecoilSettings.Enabled = true syncCamera() end, Disable = function() NoRecoilSettings.Enabled = false end, BuildSection = function(container) buildSlider(container, { Label="Recoil Sensitivity", Min=0.1, Max=2.0, Default=NoRecoilSettings.Sens, Increment=0.1, Suffix="x", OnChange=function(v) NoRecoilSettings.Sens=v end }) buildLabel(container, "💡 Lower = less camera correction") end, }, ---------- 4. FULL ESP (all in one section) ---------- { Name = "Full ESP", Enable = function() _G.ESP_SETTINGS.MainEnabled = true _G.ESP_SETTINGS.Tracers = true _G.ESP_SETTINGS.HealthBar = true _G.espSkeletons = true _G.ESP_ENABLED = true end, Disable = function() _G.ESP_SETTINGS.MainEnabled = false _G.ESP_SETTINGS.Tracers = false _G.ESP_SETTINGS.HealthBar = false _G.espSkeletons = false _G.ESP_ENABLED = false end, BuildSection = function(container) buildLabel(container, "Toggle individual parts below:") buildSubToggle(container, "Boxes", _G.ESP_SETTINGS.MainEnabled, function(v) _G.ESP_SETTINGS.MainEnabled = v end) buildSubToggle(container, "Tracers", _G.ESP_SETTINGS.Tracers, function(v) _G.ESP_SETTINGS.Tracers = v end) buildSubToggle(container, "Health Bars", _G.ESP_SETTINGS.HealthBar, function(v) _G.ESP_SETTINGS.HealthBar = v end) buildSubToggle(container, "Skeleton Overlay", _G.espSkeletons, function(v) _G.espSkeletons = v _G.ESP_ENABLED = v end) buildLabel(container, "🌈 Rainbow colours toggle below.") end, }, ---------- 5. RAINBOW CHAMS ---------- { Name = "Rainbow Chams", Enable = function() _G.RainbowEnabled = true end, Disable = function() _G.RainbowEnabled = false end, BuildSection = function(container) buildSlider(container, { Label="Cycle Speed", Min=0.1, Max=5.0, Default=_G.RainbowSpeed, Increment=0.1, Suffix="x", OnChange=function(v) _G.RainbowSpeed=v end }) buildLabel(container, "🌈 Auto-enabled on load.") end, }, ---------- 6. GUN SKIN ---------- { Name = "Gun Skin", Enable = function() startWrapHeads() end, Disable = function() stopWrapHeads() end, BuildSection = function(container) buildLabel(container, "Applies arm & gun decal wrap to your viewmodel.") buildLabel(container, "Enemy heads turn neon red. Hats hidden on enemies.") buildLabel(container, "🔴 Console prints head match status every 3s.") end, }, ---------- 7. FULLBRIGHT ---------- { Name = "Fullbright", Enable = function() startFullbright() end, Disable = function() stopFullbright() end, BuildSection = function(container) buildLabel(container, "Max brightness, removes fog and atmosphere.") end, }, ---------- 8. STRETCH RES + SPIN ---------- { Name = "Stretch Res", Enable = function() startStretch() end, Disable = function() stopStretch() end, BuildSection = function(container) buildLabel(container, "Squashes vertical FOV to 0.67x.") buildLabel(container, "⚡ Press T to 360 spin (0.3s).") end, }, ---------- 9. MOUSE FREEDOM ---------- { Name = "Mouse Freedom", Enable = function() freeMouse(true) end, Disable = function() freeMouse(false) end, BuildSection = function(container) buildLabel(container, "Frees your cursor from FPS mouse lock.") buildLabel(container, "⚡ Press - (Minus key) to toggle anytime.") buildLabel(container, "Toggle this OFF to re-lock to the game.") end, }, ---------- 10. MOBILE MODE ---------- { Name = "Mobile Mode", Enable = function() _G.ManualMobileMode = true end, Disable = function() _G.ManualMobileMode = false end, BuildSection = function(container) buildLabel(container, "Only enable on mobile devices.") buildLabel(container, "Auto-detected: "..tostring(IS_MOBILE or IS_MOBILE_EXECUTOR)) buildLabel(container, "Executor: "..EXECUTOR) buildLabel(container, "Player: "..LocalPlayer.Name) end, }, ---------- 11. UNLOAD ---------- { Name = "Unload Cheat", Enable = function() unloadAll() task.delay(0.1, function() pcall(destroyAll) end) end, Disable = function() end, }, }, } --------------------------------------------------------------------- -- STARFIELD --------------------------------------------------------------------- local function starField(parent, count, gapMin, gapMax) local live = true local rng = Random.new() local activeTweens = {} local activeMeteors = {} for i = 1, math.min(count, 120) do local size = rng:NextInteger(1, 2) local star = new("Frame", { Name="Star", AnchorPoint=Vector2.new(0.5,0.5), Size=UDim2.fromOffset(size,size), Position=UDim2.fromScale(rng:NextNumber(), rng:NextNumber()), BackgroundColor3=C.WHITE, BackgroundTransparency=rng:NextNumber(0.2,0.65), BorderSizePixel=0, ZIndex=2, Parent=parent, }, { circle() }) if i <= 14 then local t = TweenService:Create(star, TweenInfo.new(rng:NextNumber(2.8,4.2), E.Sine, D.InOut, -1, true, rng:NextNumber(0,2)), { BackgroundTransparency=0.82 }) t:Play() activeTweens[#activeTweens+1] = t end end task.spawn(function() while live and alive and parent.Parent do task.wait(rng:NextNumber(gapMin, gapMax)) if not live or not alive or not parent.Parent then break end local bounds = parent.AbsoluteSize if bounds.X < 20 or bounds.Y < 20 then continue end local startX = rng:NextNumber(0.06,0.82)*bounds.X local startY = rng:NextNumber(0.03,0.58)*bounds.Y local travel = math.min(bounds.X*0.38, 300) local angle = math.rad(rng:NextNumber(22,36)) local meteor = new("Frame", { Name="ShootingStar", AnchorPoint=Vector2.new(0.5,0.5), Position=UDim2.fromOffset(startX,startY), Size=UDim2.fromOffset(rng:NextInteger(58,88),2), Rotation=math.deg(angle), BackgroundColor3=C.WHITE, BackgroundTransparency=0.05, BorderSizePixel=0, ZIndex=4, Parent=parent, }, { new("UIGradient", { Transparency=NumberSequence.new({ NumberSequenceKeypoint.new(0,1), NumberSequenceKeypoint.new(0.72,0.12), NumberSequenceKeypoint.new(1,0), }) }) }) activeMeteors[meteor] = true local dur = rng:NextNumber(0.62,0.82) local move = TweenService:Create(meteor, TweenInfo.new(dur,E.Linear), { Position=UDim2.fromOffset(startX+math.cos(angle)*travel, startY+math.sin(angle)*travel) }) local fade = TweenService:Create(meteor, TweenInfo.new(dur,E.Quad,D.In), { BackgroundTransparency=1 }) move.Completed:Connect(function() activeMeteors[meteor]=nil if meteor.Parent then meteor:Destroy() end end) move:Play() fade:Play() end end) local function stop() live = false for _, t in ipairs(activeTweens) do pcall(function() t:Cancel() end) end for m in pairs(activeMeteors) do activeMeteors[m]=nil if m.Parent then m:Destroy() end end end onCleanup(stop) return stop end --------------------------------------------------------------------- -- NOTIFICATIONS --------------------------------------------------------------------- local notifHolder = new("Frame", { Name="Notifications", AnchorPoint=Vector2.new(1,1), Position=UDim2.new(1,-14,1,-14), Size=UDim2.new(0,260,1,-28), BackgroundTransparency=1, ZIndex=50, Parent=gui, }, { new("UIListLayout", { SortOrder=Enum.SortOrder.LayoutOrder, VerticalAlignment=Enum.VerticalAlignment.Bottom, Padding=UDim.new(0,8) }), }) local function fitNotifWidth() notifHolder.Size = UDim2.new(0, math.min(260,viewport().X-28), 1, -28) end fitNotifWidth() track(gui:GetPropertyChangedSignal("AbsoluteSize"):Connect(fitNotifWidth)) local function dismiss(wrap) if not wrap.Parent or wrap:GetAttribute("Out") then return end wrap:SetAttribute("Out", true) local holder = wrap:FindFirstChild("Holder") if holder then tw(holder, 0.3, { Position=UDim2.new(1.2,0,0,0) }, E.Quint, D.In) end task.delay(0.3, function() if not alive or not wrap.Parent then return end tw(wrap, 0.2, { Size=UDim2.new(1,0,0,0) }) task.delay(0.22, function() wrap:Destroy() end) end) end local notifOrder = 0 local function notify(text, color) if not alive then return end notifOrder += 1 local live2 = {} for _, w in ipairs(notifHolder:GetChildren()) do if w:IsA("Frame") and not w:GetAttribute("Out") then live2[#live2+1] = w end end table.sort(live2, function(a,b) return a.LayoutOrder < b.LayoutOrder end) while #live2 >= 4 do dismiss(table.remove(live2,1)) end local wrap = new("Frame", { Name="N", LayoutOrder=notifOrder, Size=UDim2.new(1,0,0,46), BackgroundTransparency=1, Parent=notifHolder }) local holder = new("Frame", { Name="Holder", Size=UDim2.fromScale(1,1), Position=UDim2.new(1.2,0,0,0), BackgroundTransparency=1, Parent=wrap }) roundedShadow(holder, 10, 1, 0.8) local body = new("Frame", { Size=UDim2.fromScale(1,1), BackgroundColor3=C.PANEL, BorderSizePixel=0, ZIndex=2, ClipsDescendants=true, Parent=holder }, { corner(10), mkStroke(C.STROKE,1,0.5) }) new("Frame", { Position=UDim2.fromOffset(8,8), Size=UDim2.new(0,4,1,-16), BackgroundColor3=color, BorderSizePixel=0, Parent=body }, { circle() }) new("TextLabel", { Position=UDim2.fromOffset(24,0), Size=UDim2.new(1,-34,1,-2), BackgroundTransparency=1, Text=text, Font=Enum.Font.GothamMedium, TextSize=14, TextColor3=C.TEXT, TextXAlignment=Enum.TextXAlignment.Left, Parent=body }) local timer = new("Frame", { AnchorPoint=Vector2.new(0,1), Position=UDim2.new(0,0,1,0), Size=UDim2.new(1,0,0,2), BackgroundColor3=color, BackgroundTransparency=0.4, BorderSizePixel=0, Parent=body }) tw(holder, 0.4, { Position=UDim2.new(0,0,0,0) }) tw(timer, 3, { Size=UDim2.new(0,0,0,2) }, E.Linear) task.delay(3, dismiss, wrap) end --------------------------------------------------------------------- -- WINDOW FACTORY --------------------------------------------------------------------- local function makeWindow(name, size, anchor, pos) local root = new("Frame", { Name=name, AnchorPoint=anchor, Position=pos, Size=size, BackgroundTransparency=1, Parent=gui }) local fit = new("UIScale", { Parent=root }) roundedShadow(root, 18, 1, 1) local group = new("CanvasGroup", { AnchorPoint=Vector2.new(0.5,0.5), Position=UDim2.fromScale(0.5,0.5), Size=UDim2.fromScale(1,1), BackgroundColor3=C.PANEL, BorderSizePixel=0, GroupTransparency=1, ZIndex=2, Parent=root, }, { corner(18), mkStroke(C.STROKE,1,0.35) }) local anim = new("UIScale", { Scale=0.9, Parent=group }) local win = { root=root, group=group, fit=fit } function win.show() tw(group,0.4,{GroupTransparency=0}) tw(anim,0.5,{Scale=1},E.Back) end function win.hide() tw(group,0.3,{GroupTransparency=1}) tw(anim,0.3,{Scale=0.92},E.Quint,D.In) end return win end local function accentLine(parent) new("Frame", { Size=UDim2.new(1,0,0,2), BackgroundColor3=C.WHITE, BorderSizePixel=0, ZIndex=20, Parent=parent }, { gradient(Color3.fromRGB(235,235,235), Color3.fromRGB(105,105,105), 0), }) end --------------------------------------------------------------------- -- LOADING SCREEN --------------------------------------------------------------------- local function runLoading() local vp = viewport() local grp = new("Frame", { Name="Loading", Size=UDim2.fromScale(1,1), BackgroundColor3=Color3.new(0,0,0), BackgroundTransparency=0, BorderSizePixel=0, ZIndex=10, Parent=gui }) local sky = new("Frame", { Name="StarSky", Size=UDim2.fromScale(1,1), BackgroundColor3=Color3.new(0,0,0), BorderSizePixel=0, ClipsDescendants=true, ZIndex=1, Parent=grp }) local stopStars = starField(sky, 110, 0.28, 0.48) local stack = new("Frame", { AnchorPoint=Vector2.new(0.5,0.5), Position=UDim2.fromScale(0.5,0.5), Size=UDim2.fromOffset(math.min(330,math.max(260,vp.X-32)),300), BackgroundTransparency=1, ZIndex=5, Parent=grp, }, { new("UIListLayout", { SortOrder=Enum.SortOrder.LayoutOrder, HorizontalAlignment=Enum.HorizontalAlignment.Center, VerticalAlignment=Enum.VerticalAlignment.Center, Padding=UDim.new(0,8) }) }) local logoHolder = new("Frame", { LayoutOrder=1, Size=UDim2.fromOffset(132,132), BackgroundColor3=Color3.fromRGB(8,8,8), BorderSizePixel=0, ZIndex=8, ClipsDescendants=true, Parent=stack }, { corner(22), mkStroke(Color3.fromRGB(105,105,105),1,0.18) }) new("ImageLabel", { Name="LogoImage", AnchorPoint=Vector2.new(0.5,0.5), Position=UDim2.fromScale(0.5,0.5), Size=UDim2.new(1,-16,1,-16), BackgroundTransparency=1, Image="rbxthumb://type=Asset&id="..tostring(CONFIG.DecalId).."&w=420&h=420", ImageColor3=C.WHITE, ScaleType=Enum.ScaleType.Fit, ImageTransparency=0, Visible=true, ZIndex=9, Parent=logoHolder }) new("TextLabel", { LayoutOrder=2, Size=UDim2.new(1,0,0,38), BackgroundTransparency=1, Text="OPERATION ONE", Font=Enum.Font.GothamBlack, TextSize=28, TextColor3=C.WHITE, Parent=stack }) local subtitle = ("REZTORED 🟣"):gsub("(.)","%1 ") new("TextLabel", { LayoutOrder=3, Size=UDim2.new(1,0,0,17), BackgroundTransparency=1, Text=subtitle, Font=Enum.Font.GothamMedium, TextSize=11, TextColor3=Color3.fromRGB(145,145,145), Parent=stack }) new("Frame", { LayoutOrder=4, Size=UDim2.fromOffset(1,10), BackgroundTransparency=1, Parent=stack }) local lbl = new("TextLabel", { LayoutOrder=5, Size=UDim2.new(1,0,0,20), BackgroundTransparency=1, Text="Loading.", Font=Enum.Font.Gotham, TextSize=13, TextColor3=Color3.fromRGB(175,175,175), Parent=stack }) local progressTrack = new("Frame", { LayoutOrder=6, Size=UDim2.fromOffset(210,3), BackgroundColor3=Color3.fromRGB(42,42,42), BorderSizePixel=0, Parent=stack }, { circle() }) local progressFill = new("Frame", { Size=UDim2.fromScale(0,1), BackgroundColor3=Color3.fromRGB(235,235,235), BorderSizePixel=0, Parent=progressTrack }, { circle() }) local running = true task.spawn(function() local dots = {".","..","..."} local idx = 0 while running and alive and lbl.Parent do idx = idx % #dots + 1 lbl.Text = "Loading"..dots[idx] task.wait(0.42) end end) local startedAt = os.clock() tw(progressFill, CONFIG.LoadingTime, { Size=UDim2.fromScale(1,1) }, E.Linear) task.wait(math.max(0, CONFIG.LoadingTime-(os.clock()-startedAt))) running = false stopStars() grp:Destroy() end --------------------------------------------------------------------- -- TOGGLE CARD BUILDER --------------------------------------------------------------------- local function buildToggle(parent, index, def) local rowH = isTouch and 54 or 48 local state = { on=false, active=false, token=0, expanded=false, animating=false } local card = new("Frame", { Name="Toggle"..index, LayoutOrder=index, AutomaticSize=Enum.AutomaticSize.Y, Size=UDim2.new(1,0,0,0), BackgroundColor3=C.CARD, BackgroundTransparency=0.12, BorderSizePixel=0, Parent=parent, }, { corner(12), new("UIListLayout", { SortOrder=Enum.SortOrder.LayoutOrder }) }) local cardStroke = mkStroke(C.STROKE,1,0.4) cardStroke.Parent = card local header = new("Frame", { LayoutOrder=1, Size=UDim2.new(1,0,0,rowH), BackgroundTransparency=1, Parent=card }) local nameBtn = new("TextButton", { Position=UDim2.fromOffset(14,0), Size=UDim2.new(1,-114,1,0), BackgroundTransparency=1, AutoButtonColor=false, Text=def.Name, Font=Enum.Font.GothamMedium, TextSize=15, TextColor3=C.DIM, TextXAlignment=Enum.TextXAlignment.Left, Parent=header }) local arrow = new("TextButton", { AnchorPoint=Vector2.new(1,0.5), Position=UDim2.new(1,-8,0.5,0), Size=UDim2.fromOffset(34,34), BackgroundTransparency=1, AutoButtonColor=false, Text="▼", Font=Enum.Font.GothamBold, TextSize=10, TextColor3=C.MUTED, Parent=header }) local switchBtn = new("TextButton", { AnchorPoint=Vector2.new(1,0.5), Position=UDim2.new(1,-44,0.5,0), Size=UDim2.fromOffset(48,34), BackgroundTransparency=1, AutoButtonColor=false, Text="OFF", Font=Enum.Font.GothamBold, TextSize=13, TextColor3=C.RED, TextXAlignment=Enum.TextXAlignment.Center, Parent=header }) local barTrack = new("Frame", { Position=UDim2.new(0,14,1,-8), Size=UDim2.new(1,-28,0,3), BackgroundColor3=Color3.fromRGB(42,42,42), BorderSizePixel=0, Visible=false, Parent=header }, { circle() }) local barFill = new("Frame", { Size=UDim2.fromScale(0,1), BackgroundColor3=C.WHITE, BorderSizePixel=0, Parent=barTrack }, { circle(), gradient(Color3.fromRGB(235,235,235), Color3.fromRGB(105,105,105), 0) }) local content = new("Frame", { LayoutOrder=2, Size=UDim2.new(1,0,0,0), BackgroundTransparency=1, ClipsDescendants=true, Parent=card }) local body = new("Frame", { Size=UDim2.new(1,0,0,0), AutomaticSize=Enum.AutomaticSize.Y, BackgroundTransparency=1, Parent=content }) new("UIPadding", { PaddingLeft=UDim.new(0,12), PaddingRight=UDim.new(0,12), PaddingTop=UDim.new(0,2), PaddingBottom=UDim.new(0,12), Parent=body }) local list = new("UIListLayout", { SortOrder=Enum.SortOrder.LayoutOrder, Padding=UDim.new(0,8), Parent=body }) if def.BuildSection then def.BuildSection(body) else new("Frame", { Size=UDim2.new(1,0,0,38), BackgroundColor3=Color3.fromRGB(16,16,16), BorderSizePixel=0, Parent=body }, { corner(8), mkStroke(C.STROKE,1,0.6), new("TextLabel", { Size=UDim2.fromScale(1,1), BackgroundTransparency=1, Text="Toggle to activate", Font=Enum.Font.Gotham, TextSize=12, TextColor3=C.MUTED }) }) end local function needed() return list.AbsoluteContentSize.Y + 14 end track(list:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() if state.expanded and not state.animating then content.Size = UDim2.new(1,0,0,needed()) end end)) local function setExpanded(v) state.expanded = v state.animating = true tw(arrow, 0.3, { Rotation=v and 180 or 0, TextColor3=v and C.TEXT or C.MUTED }) tw(content, 0.35, { Size=UDim2.new(1,0,0,v and needed() or 0) }, E.Quint, D.InOut) task.delay(0.38, function() state.animating = false end) end local function paint(on) switchBtn.Text = on and "ON" or "OFF" tw(switchBtn, 0.18, { TextColor3=on and C.GREEN or C.RED }) tw(nameBtn, 0.18, { TextColor3=on and C.TEXT or C.DIM }) tw(cardStroke,0.18, { Color=on and Color3.fromRGB(105,105,105) or C.STROKE, Transparency=on and 0.2 or 0.4 }) end local function setOn(on) state.token += 1 local tk = state.token state.on = on paint(on) if on then barTrack.BackgroundTransparency = 0 barFill.BackgroundTransparency = 0 barFill.Size = UDim2.fromScale(0,1) barTrack.Visible = true local bar = tw(barFill, 0.5, { Size=UDim2.fromScale(1,1) }, E.Linear) state.bar = bar bar.Completed:Connect(function(st) if st ~= Enum.PlaybackState.Completed or state.token ~= tk or not alive then return end barTrack.Visible = false state.active = true task.spawn(function() pcall(def.Enable) end) notify(def.Name.." Enabled", C.GREEN) end) else if state.bar then state.bar:Cancel() end barTrack.Visible = false if state.active then state.active = false task.spawn(function() pcall(def.Disable) end) end notify(def.Name.." Disabled", C.RED) end end interactive(switchBtn, nil, nil, 0.92) interactive(arrow, nil, nil, 0.85) track(switchBtn.Activated:Connect(function() setOn(not state.on) end)) track(arrow.Activated:Connect(function() setExpanded(not state.expanded) end)) track(nameBtn.Activated:Connect(function() setExpanded(not state.expanded) end)) end --------------------------------------------------------------------- -- HUB SIZE --------------------------------------------------------------------- local function hubSize() local vp = viewport() local w = math.min(math.clamp(vp.X*0.3,230,270), vp.X-28) local h = math.min(math.clamp(vp.Y-170,250,540), vp.Y-32) return w, h end --------------------------------------------------------------------- -- SHOW HUB --------------------------------------------------------------------- local function showHub() if not alive then return end local w, h = hubSize() local win = makeWindow("Hub", UDim2.fromOffset(w,h), Vector2.new(1,0.5), UDim2.new(1,w+60,0.5,0)) local root, group = win.root, win.group local minimized, busy, closing = false, true, false local sky = new("Frame", { Name="Sky", Size=UDim2.fromScale(1,1), BackgroundColor3=C.WHITE, BorderSizePixel=0, ClipsDescendants=true, ZIndex=1, Parent=group }, { gradient(Color3.fromRGB(30,30,30), Color3.fromRGB(7,7,7), 90) }) starField(sky, 26, 2.5, 5) accentLine(group) local btnSz = isTouch and 32 or 28 local header = new("Frame", { Name="Header", Size=UDim2.new(1,0,0,HEADER_H), BackgroundTransparency=1, Active=true, ZIndex=3, Parent=group }) local dragging, dragInput, dragStart, startPos = false, nil, nil, nil track(header.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging=true dragInput=input dragStart=input.Position startPos=root.Position end end)) track(header.InputEnded:Connect(function(input) if input == dragInput or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging=false dragInput=nil end end)) track(UserInputService.InputChanged:Connect(function(input) if not dragging then return end if input == dragInput or input.UserInputType == Enum.UserInputType.MouseMovement then local delta = input.Position - dragStart root.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset+delta.X, startPos.Y.Scale, startPos.Y.Offset+delta.Y) end end)) track(UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input == dragInput then dragging=false dragInput=nil end end)) new("ImageLabel", { Name="HeaderLogo", AnchorPoint=Vector2.new(0,0.5), Position=UDim2.new(0,14,0.5,0), Size=UDim2.fromOffset(28,28), BackgroundTransparency=1, Image="rbxthumb://type=Asset&id="..tostring(CONFIG.DecalId).."&w=420&h=420", ImageColor3=C.WHITE, ScaleType=Enum.ScaleType.Fit, ImageTransparency=0, Visible=true, ZIndex=5, Parent=header }) new("TextLabel", { Position=UDim2.fromOffset(48,9), Size=UDim2.new(1,-140,0,20), BackgroundTransparency=1, Text="Operation One", Font=Enum.Font.GothamBold, TextSize=15, TextColor3=C.TEXT, TextXAlignment=Enum.TextXAlignment.Left, TextTruncate=Enum.TextTruncate.AtEnd, Parent=header }) new("TextLabel", { Position=UDim2.fromOffset(48,29), Size=UDim2.new(1,-140,0,14), BackgroundTransparency=1, Text="REZTORED 🟣 | By ScriptWorks", Font=Enum.Font.Gotham, TextSize=10, TextColor3=C.MUTED, TextXAlignment=Enum.TextXAlignment.Left, Parent=header }) local function headerBtn(text, size, xOff) return new("TextButton", { AnchorPoint=Vector2.new(1,0.5), Position=UDim2.new(1,xOff,0.5,0), Size=UDim2.fromOffset(btnSz,btnSz), BackgroundColor3=Color3.fromRGB(38,38,38), AutoButtonColor=false, Text=text, Font=Enum.Font.GothamBold, TextSize=size, TextColor3=C.TEXT, Parent=header }, { corner(8) }) end local closeBtn = headerBtn("X", 13, -12) local minBtn = headerBtn("-", 20, -12-btnSz-6) interactive(closeBtn, Color3.fromRGB(38,38,38), Color3.fromRGB(90,90,90)) interactive(minBtn, Color3.fromRGB(38,38,38), Color3.fromRGB(85,85,85)) new("Frame", { Position=UDim2.new(0,14,0,HEADER_H-1), Size=UDim2.new(1,-28,0,1), BackgroundColor3=C.WHITE, BackgroundTransparency=0.92, BorderSizePixel=0, ZIndex=3, Parent=group }) local scroll = new("ScrollingFrame", { Name="List", Position=UDim2.fromOffset(0,HEADER_H), Size=UDim2.new(1,0,1,-HEADER_H), BackgroundTransparency=1, BorderSizePixel=0, ScrollBarThickness=3, ScrollBarImageColor3=C.ACCENT, CanvasSize=UDim2.new(), AutomaticCanvasSize=Enum.AutomaticSize.Y, ScrollingDirection=Enum.ScrollingDirection.Y, ZIndex=3, Parent=group, }, { new("UIPadding", { PaddingTop=UDim.new(0,10), PaddingBottom=UDim.new(0,10), PaddingLeft=UDim.new(0,10), PaddingRight=UDim.new(0,10) }), new("UIListLayout", { SortOrder=Enum.SortOrder.LayoutOrder, Padding=UDim.new(0,8) }), }) for i, def in ipairs(CONFIG.Toggles) do buildToggle(scroll, i, def) end track(minBtn.Activated:Connect(function() if busy or closing then return end busy = true minimized = not minimized local cw, ch = hubSize() if minimized then minBtn.Text = "+" tw(root, 0.4, { Size=UDim2.fromOffset(cw,HEADER_H) }, E.Quint, D.InOut) task.delay(0.4, function() scroll.Visible=false busy=false end) else minBtn.Text = "-" scroll.Visible = true local view = viewport() local safeX = math.max(cw+12, view.X-16) local safeY = math.clamp(view.Y*0.5, ch*0.5+12, view.Y-ch*0.5-12) root.Position = UDim2.fromOffset(safeX, safeY) tw(root, 0.4, { Size=UDim2.fromOffset(cw,ch) }, E.Quint, D.InOut) task.delay(0.4, function() local cv = viewport() local x = math.clamp(root.AbsolutePosition.X+root.AbsoluteSize.X, cw+12, cv.X-8) local y = math.clamp(root.AbsolutePosition.Y+root.AbsoluteSize.Y*0.5, ch*0.5+8, cv.Y-ch*0.5-8) root.Position = UDim2.fromOffset(x,y) busy = false end) end end)) track(closeBtn.Activated:Connect(function() if closing or busy then return end closing = true local cw = hubSize() win.hide() tw(root, 0.4, { Position=UDim2.new(1,cw+60,0.5,0) }, E.Quint, D.In) task.delay(0.45, destroyAll) end)) track(gui:GetPropertyChangedSignal("AbsoluteSize"):Connect(function() if closing then return end local cw, ch = hubSize() root.Size = UDim2.fromOffset(cw, minimized and HEADER_H or ch) task.defer(function() if not root.Parent or closing then return end local view = viewport() local halfH = root.AbsoluteSize.Y*0.5 local right = math.clamp(root.AbsolutePosition.X+root.AbsoluteSize.X, cw+8, view.X-8) local centerY = math.clamp(root.AbsolutePosition.Y+halfH, halfH+8, view.Y-halfH-8) root.Position = UDim2.fromOffset(right,centerY) end) end)) win.show() tw(root, 0.6, { Position=UDim2.new(1,-16,0.5,0) }) task.delay(0.6, function() busy = false end) end --------------------------------------------------------------------- -- DISCORD WINDOW --------------------------------------------------------------------- local function showDiscord() local vp = viewport() local win = makeWindow("Discord", UDim2.fromOffset(340,176), Vector2.new(0.5,0.5), UDim2.fromScale(0.5,0.5)) win.fit.Scale = math.min(1,(vp.X-24)/340) local group = win.group accentLine(group) new("TextLabel", { AnchorPoint=Vector2.new(0.5,0), Position=UDim2.new(0.5,0,0,20), Size=UDim2.new(1,-40,0,54), BackgroundTransparency=1, Text="Join The Discord For Updates & Support!", Font=Enum.Font.GothamBold, TextSize=18, TextColor3=C.TEXT, TextWrapped=true, Parent=group }) new("TextBox", { AnchorPoint=Vector2.new(0.5,0), Position=UDim2.new(0.5,0,0,82), Size=UDim2.new(1,-48,0,26), BackgroundColor3=Color3.fromRGB(12,12,12), Text=CONFIG.Discord, Font=Enum.Font.Gotham, TextSize=13, TextColor3=C.DIM, TextEditable=false, ClearTextOnFocus=false, Parent=group }, { corner(8), mkStroke(C.STROKE,1,0.6) }) local btn = new("TextButton", { AnchorPoint=Vector2.new(0.5,1), Position=UDim2.new(0.5,0,1,-16), Size=UDim2.fromOffset(210,40), BackgroundColor3=C.BLURPLE, AutoButtonColor=false, Text="Copy Invite Link", Font=Enum.Font.GothamBold, TextSize=15, TextColor3=C.WHITE, Parent=group }, { corner(10) }) local sc2 = interactive(btn, C.BLURPLE, Color3.fromRGB(100,100,100)) local clicked = false track(btn.Activated:Connect(function() if clicked then return end clicked = true btn:SetAttribute("Locked", true) local ok = copyText(CONFIG.Discord) btn.Text = ok and "Paste Into Browser!" or "Copy The Link Above!" tw(btn, 0.25, { BackgroundColor3=Color3.fromRGB(75,75,75) }) tw(sc2, 0.15, { Scale=1.1 }, E.Quad) task.delay(0.15, function() tw(sc2, 0.35, { Scale=1 }, E.Back) end) local ringStroke = mkStroke(Color3.fromRGB(190,190,190),2,0) local ring = new("Frame", { AnchorPoint=Vector2.new(0.5,0.5), Position=UDim2.new(0.5,0,1,-36), Size=UDim2.fromOffset(210,40), BackgroundTransparency=1, Parent=group }, { corner(12), ringStroke }) tw(ring, 0.6, { Size=UDim2.fromOffset(270,62) }) tw(ringStroke, 0.6, { Transparency=1 }) task.delay(0.65, function() ring:Destroy() end) task.delay(2, function() if not alive then return end win.hide() task.wait(0.35) win.root:Destroy() showHub() end) end)) win.show() end --------------------------------------------------------------------- -- START --------------------------------------------------------------------- task.spawn(function() runLoading() if alive then showDiscord() end end) print("Operation One | ScriptWorks — Reztored GUI Loaded")