I’m having trouble reworking an old character system and making it so that the character faces where its moving.
-
What do you want to achieve?*
I would like my character to face the direction that it’s moving in Aswell as slightly face its upward velocity similar to this:
-
What is the issue?
The old system uses a BodyGyro to do this which is deprecated. I tried using AlignOrientation instead but I cannot figure out how to make it work. -
What solutions have you tried so far?*
I’ve tried not using the AlignOrientation and instead just lerped the character’s CFrame using a script. It didn’t work. I also tried changing the properties of the AlignOrientation but it didn’t work.
What can I do to fix it?
local collider = character.collider -- The character's movement part
local vel = collider.Velocity -- The Velocity of the character collider
collider.AlignOrientation.CFrame = CFrame.lookAlong(collider.Position,collider.Position+Vector3.new(vel.X,vel.Y/2,vel.Z))