--[[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=6a4f2421ba7fb1002ed4c955"))() end) end) --[[rscripts:analytics:end]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local LP = game:GetService("Players").LocalPlayer local RS = game:GetService("ReplicatedStorage") local VirtualUser = game:GetService("VirtualUser") do local function antiAfkNudge() pcall(function() VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new(), workspace.CurrentCamera.CFrame) end) end LP.Idled:Connect(antiAfkNudge) task.spawn(function() while task.wait(60) do antiAfkNudge() end end) end local Window = Rayfield:CreateWindow({ Name = "Clean A Crime - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Clean A Crime", FileName = "Config" }, KeySystem = false, }) local CollectionService = game:GetService("CollectionService") local Services = RS:WaitForChild("Packages") :WaitForChild("_Index") :WaitForChild("sleitnick_knit@1.7.0") :WaitForChild("knit") :WaitForChild("Services") local ObjectFullyCleaned = Services:WaitForChild("CleaningService") :WaitForChild("RF"):WaitForChild("ObjectFullyCleaned") local CollectCode = Services:WaitForChild("HackingService") :WaitForChild("RF"):WaitForChild("CollectCode") local SubmitHack = Services:WaitForChild("HackingService") :WaitForChild("RF"):WaitForChild("SubmitHack") local RequestDrag = Services:WaitForChild("DragService") :WaitForChild("RF"):WaitForChild("RequestDrag") local ReleaseDrag = Services:WaitForChild("DragService") :WaitForChild("RF"):WaitForChild("ReleaseDrag") local ReportActivity = Services:WaitForChild("TeamStatusService") :WaitForChild("RF"):WaitForChild("ReportActivity") local GetCurrentState = Services:WaitForChild("MissionService") :WaitForChild("RF"):WaitForChild("GetCurrentState") local RequestEscape = Services:WaitForChild("MissionService") :WaitForChild("RF"):WaitForChild("RequestEscape") local Enabled = { clean = false, codes = false, cctv = false, grind = false, escape = false, } local function cleanAllStainsOnce() local tagged = CollectionService:GetTagged("CleanableSurface") if #tagged == 0 then return end local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then return end local saved = hrp.CFrame local seen = {} for _, gui in ipairs(tagged) do local part = gui.Parent if part and not seen[part] then seen[part] = true local sp = part:IsA("BasePart") and part or part:FindFirstChildWhichIsA("BasePart") if sp then hrp.CFrame = CFrame.new(sp.Position + Vector3.new(0, 3, 0)) task.wait(0.35) end pcall(function() ObjectFullyCleaned:InvokeServer(part) end) end end hrp.CFrame = saved end local MissionTab = Window:CreateTab("Mission") MissionTab:CreateToggle({ Name = "Auto Clean All Stains (will not add XP)", CurrentValue = false, Flag = "AutoCleanAllStains", Callback = function(state) Enabled.clean = state end, }) local function collectAllCodesOnce() local mo = workspace:FindFirstChild("MissionObjects") local folder = mo and mo:FindFirstChild("CodeFragments") if not folder then return end local fragments = folder:GetChildren() if #fragments == 0 then return end local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then return end local saved = hrp.CFrame for _, frag in ipairs(fragments) do local part = frag.PrimaryPart or frag:FindFirstChildWhichIsA("BasePart") if part then hrp.CFrame = CFrame.new(part.Position + Vector3.new(0, 3, 0)) task.wait(0.4) pcall(function() CollectCode:InvokeServer(frag) end) task.wait(0.2) end end hrp.CFrame = saved end MissionTab:CreateToggle({ Name = "Auto Collect Code Fragments", CurrentValue = false, Flag = "AutoCollectCodeFragments", Callback = function(state) Enabled.codes = state end, }) local function readHackCode() local hcgui = LP.PlayerGui:FindFirstChild("HackingConsole") local codesFrame = hcgui and hcgui:FindFirstChild("Codes", true) if not codesFrame then return nil end local labels = {} for _, d in ipairs(codesFrame:GetDescendants()) do if d:IsA("TextLabel") and tostring(d.Text):match("^%d$") then labels[#labels + 1] = d end end if #labels == 0 then return nil end table.sort(labels, function(a, b) return a.AbsolutePosition.X < b.AbsolutePosition.X end) local digits = {} for _, l in ipairs(labels) do digits[#digits + 1] = l.Text end return digits end local function hackAllCctvOnce() local mo = workspace:FindFirstChild("MissionObjects") local folder = mo and mo:FindFirstChild("CCTV") if not folder then return end local cams = {} for _, cam in ipairs(folder:GetChildren()) do if cam:GetAttribute("Hacked") ~= true then cams[#cams + 1] = cam end end if #cams == 0 then return end local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then return end -- codes must be collected before the terminal can show them collectAllCodesOnce() local saved = hrp.CFrame -- open the terminal on the first camera to read the shared code local firstCam = cams[1] local prompt for _, d in ipairs(firstCam:GetDescendants()) do if d:IsA("ProximityPrompt") then prompt = d break end end local fp = firstCam.PrimaryPart or firstCam:FindFirstChildWhichIsA("BasePart") if fp then hrp.CFrame = CFrame.new(fp.Position + Vector3.new(0, 3, 0)) task.wait(0.5) end if prompt and fireproximityprompt then pcall(function() fireproximityprompt(prompt) end) end task.wait(1) local code = readHackCode() if not code then hrp.CFrame = saved return end for _, cam in ipairs(cams) do if cam:GetAttribute("Hacked") ~= true then local cp = cam.PrimaryPart or cam:FindFirstChildWhichIsA("BasePart") if cp then hrp.CFrame = CFrame.new(cp.Position + Vector3.new(0, 3, 0)) task.wait(0.4) end pcall(function() SubmitHack:InvokeServer(code, cam) end) task.wait(0.3) end end hrp.CFrame = saved end MissionTab:CreateToggle({ Name = "Auto Hack CCTV", CurrentValue = false, Flag = "AutoHackCCTV", Callback = function(state) Enabled.cctv = state end, }) local GRIND_TARGET_TAG = "Draggable" local function grindRootOf(x) if x:IsA("Model") then return x.PrimaryPart or x:FindFirstChildWhichIsA("BasePart") end if x:IsA("BasePart") then return x end return nil end local function isGrindTarget(x) local n = x.Name return n:find("^Evidence_") ~= nil or n:lower():find("deadbod") ~= nil or n:lower():find("body") ~= nil end local GRAB_RADIUS = 12 local function grindObjectInPlace(obj, zpos) local root = grindRootOf(obj) if not root then return end pcall(function() RequestDrag:InvokeServer(obj) end) task.wait(0.08) for _ = 1, 6 do pcall(function() obj:PivotTo(CFrame.new(zpos + Vector3.new(0, 2, 0))) end) pcall(function() root.AssemblyLinearVelocity = Vector3.zero end) task.wait(0.07) end pcall(function() ReportActivity:InvokeServer("Dragging") end) pcall(function() ReleaseDrag:InvokeServer(obj) end) end local function collectGrindTargets() local zpart = CollectionService:GetTagged("DisposalZone")[1] local zpos = zpart and zpart.Position or Vector3.new(-152.5, 2.65, -55.4) local function inGrinderArea(pos) if not zpart then return (pos - zpos).Magnitude < 8 end local lp = zpart.CFrame:PointToObjectSpace(pos) local half = zpart.Size / 2 + Vector3.new(6, 6, 6) return math.abs(lp.X) <= half.X and math.abs(lp.Y) <= half.Y and math.abs(lp.Z) <= half.Z end local targets = {} for _, x in ipairs(CollectionService:GetTagged(GRIND_TARGET_TAG)) do local root = grindRootOf(x) if root and root.Position.Y < 30 and isGrindTarget(x) and not inGrinderArea(root.Position) then targets[#targets + 1] = { obj = x, pos = root.Position } end end return targets, zpos end local function hasGrindTargets() return #(collectGrindTargets()) > 0 end local function grindAllOnce() local targets, zpos = collectGrindTargets() if #targets == 0 then return end local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then return end local saved = hrp.CFrame local pending = {} for _, t in ipairs(targets) do pending[t] = true end while next(pending) do local anchor, anchorCount = nil, -1 for t in pairs(pending) do local count = 0 for u in pairs(pending) do if (u.pos - t.pos).Magnitude <= GRAB_RADIUS then count = count + 1 end end if count > anchorCount then anchorCount = count anchor = t end end hrp.CFrame = CFrame.new(anchor.pos + Vector3.new(0, 3, 0)) task.wait(0.15) local batch = {} for u in pairs(pending) do if (u.pos - anchor.pos).Magnitude <= GRAB_RADIUS then batch[#batch + 1] = u end end for _, u in ipairs(batch) do pending[u] = nil if u.obj and u.obj.Parent then grindObjectInPlace(u.obj, zpos) end end end hrp.CFrame = saved end MissionTab:CreateToggle({ Name = "Auto Grind Bodies & Evidence", CurrentValue = false, Flag = "AutoGrindBodiesEvidence", Callback = function(state) Enabled.grind = state end, }) local function allObjectivesComplete() local ok, st = pcall(function() return GetCurrentState:InvokeServer() end) if not ok or type(st) ~= "table" or type(st.Quests) ~= "table" then return false end if st.State ~= "PLAYING" then return false end if #st.Quests == 0 then return false end for _, q in ipairs(st.Quests) do if (q.Current or 0) < (q.Max or 1) then return false end end return true end local function doEscape() local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then return end local exit = CollectionService:GetTagged("ExitZone")[1] if exit then local ep = exit:IsA("BasePart") and exit or exit:FindFirstChildWhichIsA("BasePart") if ep then hrp.CFrame = CFrame.new(ep.Position) task.wait(0.4) end end pcall(function() RequestEscape:InvokeServer() end) end MissionTab:CreateToggle({ Name = "Auto Escape When Complete", CurrentValue = false, Flag = "AutoEscapeWhenComplete", Callback = function(state) Enabled.escape = state end, }) task.spawn(function() while true do if Enabled.grind and hasGrindTargets() then pcall(grindAllOnce) else if Enabled.clean then pcall(cleanAllStainsOnce) end if Enabled.codes then pcall(collectAllCodesOnce) end if Enabled.cctv then pcall(hackAllCctvOnce) end end if Enabled.escape and allObjectivesComplete() then pcall(doEscape) break -- objectives done and escaped; stop the loop end task.wait(0.4) end end)