So, I am implementing a functionality for players to sidestep, roll, backflip, etc. upon double tapping certain keys. All this is fine - in first person - because to determine the direction the player will move, I have been using the vectors associated with their character's HumanoidRootPart. To accommodate third-person play as well, I would like to use vectors associated with the player's camera position instead (so that if the camera is facing in a direction different from that of the root part, the character will still move in a direction, such as left, in reference to the camera). Is there any way to do this? Thanks in advance to anyone who can help.

1 comment

0

camera.CFrame should be what you want? You can find the vectors by doing cam.CFrame.LookVector, .RightVector, etc.