Undet_Dev
(Undet_Dev)
April 28, 2021, 4:53pm
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)
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?
Undet_Dev
(Undet_Dev)
April 28, 2021, 5:12pm
3
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
etyurae
(etyu)
April 28, 2021, 5:20pm
5
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
Undet_Dev
(Undet_Dev)
April 28, 2021, 6:17pm
6
It should be facing away from the player
And they will be positioned in front of them.