Character gets teleported to void

Hello.

I am making a fighting game but the character seems to be teleporting to the void out of nowhere when doing specific moves.

Here are the footage.

Player POV

Outsider POV

Sorry if links don’t embed, I used discord links since I cannot upload them directly.

Forgot to specify, code doesn’t include much other than setting CFrames. If you still want to look at them they are below.
Player POV code.

p.HumanoidRootPart.CFrame = (CFrame.lookAt(target.HumanoidRootPart.Position+Vector3.new(math.random(-5,5),0,math.random(-5,5)),target.HumanoidRootPart.Position))

Outsider POV code.

target.HumanoidRootPart.CFrame=p.HumanoidRootPart.CFrame
1 Like

Is the HumanoidRootPart anchored? I’m pretty sure the physics on a character glitches out if teleported too often. If your system uses some sort of velocity forces, I recommend un-anchoring the HumanoidRootPart then re-anchoring it. If that doesn’t work, I’m not too sure what will.