Hi,
If I make a code for example
character:PivotTo(CFrame.new(Part.Position))
is there any chance to determine the direction that the character is facing?
pls let me know.
Hi,
If I make a code for example
character:PivotTo(CFrame.new(Part.Position))
is there any chance to determine the direction that the character is facing?
pls let me know.
as far as i know, if you use :MoveTo(), then the character will be facing the same way it was before teleportation (ex. if character faces in the same direction the front of baseA is facing and get teleported to baseB, hell still face in the same direction as the front of baseA)
but using :PivotTo() i believe will make the character face the same as the front of the part he gets teleported to (ex. if character is facing west, and you PivotTo() the character to a part thats facing south, upon teleporting, character will be facing south)
hope i helped!
Rotate the part to the direction you want the player to face, then pivot to the pivot
character:PivotTo(part:GetPivot())
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.