Error with CFrame Angles and LookVector

  1. What do you want to achieve?
    I want to achieve that when a player clicks another player, the other player is in front of him looking at the opposite direction. I have used LookVector for this (this is for a handcuff system)

  2. What is the issue?
    I’m getting “Argument 3 missing or nil”
    https://gyazo.com/465e5f9d52a1a57cfe93db74c3419bdb

https://gyazo.com/60e6e8d9027bccc0099a4f2abd898aea

DetainedCharacter.HumanoidRootPart.CFrame = (CFrame.new(DetainedCharacter.HumanoidRootPart.Position) * CFrame.Angles(Player.Character.HumanoidRootPart.CFrame)).LookVector

Isn’t a valid way to make a CFrame.

Can you explain what you want to do a little more clearly?

I want the DetainedCharacter to face the opposite direction as the Player

And where do you want them to be positioned?

And when you say “opposite”, do you mean they should be looking at each other? Or that the detained character should be facing away from the player?

1 Like
DetainedCharacter.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.Angles(0,math.pi,0)

Like this?
This’d place it where the player is but make it rotated 180 radians around (pi => 180 radians)

1 Like

It should be facing away from the player
And they will be positioned in front of them.