How To Fix a Player Sticking Like a Magnet to Another Player?

I’ve been working on my anti-exploits and this is one of the very annoying ones that I see happen in other games.

local HumanoidRootPart = game.Players.LocalPlayer.Character.HumanoidRootPart
local Victim = workspace:FindFirstChild("Player Name Here")

while wait() do
    HumanoidRootPart.CFrame = Victim.HumanoidRootPart.CFrame
end

How would I go about fixing this?

1 Like

I don’t really think you should even attempt to fix this because I can’t think of a scenario where this would actually affect gameplay too much, as acting like a ‘magnet’ is very easy without exploits, if you just follow the person around and stick to them as best as you can.

Rather than patching something specific like this, look into patching erratic movement patterns, such as speed / teleport exploits.