How would I make this body position shoot the player backwards from the direction the attacker is facing?

  1. What do you want to achieve? Keep it simple and clear!
    I want to add knockback that will send the receiving player backwards the direction the attacker is facing.

  2. What is the issue? Include screenshots / videos if possible!
    With the current code, it only sends the receiving player backwards where they’re facing, not where the attacker is facing. When a player is getting launched, I want the attacker to have the freedom of knocking them in desired directions.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I know I would have to do something with lookVector, but with the current code I don’t know how I would do it. I want to continue using this code as it works the way I want, minus the desired knockback direction.

i.Position = root.Position + MyTorso.CFrame.LookVector * Knock_Distance

Thank you so much! If I mind asking, do you know how you would do this if you wanted to do both horizontal and vertical velocity together?

The humanoidrootpart can only rotate horizontally. You can base the lookvector off the camera instead.

Using

workspace.CurrentCamera.CFrame.LookVector

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.