Lock On Clash with Animation Problem

Hello there!

I am working on a melee combat game.

So, the problem is, as you can see in the video above, the player can turn anywhere he wants. Which I don’t want since it is based on a Lock On System.

This video shows how I want it to be.

I know I can just set the HumanoidRootPart’s CFrame to look at the target’s torso, but, this will clash with my animations that I will do in the future.

How do I restrict the player from turning their character, while keeping the character facing the target, without disrupting animations?

Thank you in advance.

1 Like

You have a few ways to do it:

  1. What I used to do was update the lower torso to the rotation I desired based on the opponents position on every render.
  2. (Recommended) Recently, roblox released a few tools: Constraint movers. These will be your best friend.

I am sorry but can you elaborate more? I don’t know how to apply it to my game. I have problems understanding constraints since I am still very young. I also have little understanding about CFrames such as the math, vectors and all. I haven’t learned anything about vectors in school yet.