How would I make it so that when you’re flying, your character faces your camera/mouse so if you’re looking/pointing down, your character will face downwards for example?
(example below in super power training simulator)
I’m only looking for the code that makes your character face a certain way. Even if the code is not with a flight script, I’ll be able to merge it.
I can’t really think of a way to achieve this effect. One possible option is to constantly set your character’s HumanoidRootPart CFrame (or possibly another part) to where your camera/mouse is facing, but it’s janky.
I could try some sort of orientation bodymovers/constraints. (psst: i like the legacy bodymovers because i don’t have to make and add an attachment)
The craziest method I thought of would be to clone the player’s character which will then align with the camera/pointer. Since that’s not actually your character, it won’t mess around with any position/movement things which was a problem in the first possible option. This won’t really be good for standard avatars because the clothes might not be visible on the dummy.
It kinda works (after tweaking stuff like dampening and power), however looking too high up or down causes the character to be very shaky. I would use this as a back up if I can’t think of anything else.