local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = game:GetService("Players").LocalPlayer getgenv().ForsakenSpoof = { Enabled = true, MaxOffset = 4, PingDivisor = 1400, } local CharacterReplication = ReplicatedStorage:WaitForChild("Systems"):WaitForChild("Player"):WaitForChild("Game"):WaitForChild("CharacterReplication") local module = require(CharacterReplication) if not getgenv().OldSerialize then getgenv().OldSerialize = module.Serialize end function module.Serialize(p1, p2) if not getgenv().ForsakenSpoof.Enabled then return getgenv().OldSerialize(p1, p2) end local Character = LocalPlayer.Character local PrimaryPart if Character then PrimaryPart = Character.PrimaryPart else PrimaryPart = Character end if Character then Character = Character:FindFirstChildOfClass("Humanoid") end if not (PrimaryPart and (Character and (p1.Position - PrimaryPart.Position).Magnitude < 15)) then return getgenv().OldSerialize(p1, p2) end local MoveDirection = Character.MoveDirection if MoveDirection.Magnitude <= 0.1 then return getgenv().OldSerialize(p1, p2) end local Magnitude = PrimaryPart.AssemblyLinearVelocity.Magnitude local WalkSpeed = Character.WalkSpeed local v11 = math.max(Magnitude, WalkSpeed) * (LocalPlayer:GetNetworkPing() * 1000) / getgenv().ForsakenSpoof.PingDivisor local MaxOffset = getgenv().ForsakenSpoof.MaxOffset local v13 = math.min(v11, MaxOffset) local vector3 = Vector3.new(MoveDirection.X, 0, MoveDirection.Z) if vector3.Magnitude <= 0 then return getgenv().OldSerialize(p1, p2) end p1 = p1 + vector3.Unit * v13 return getgenv().OldSerialize(p1, p2) end