Help with tweening orientation

I’ve been trying to figure out this one issue that’s been bothering me for a while now: I can’t figure out a good way to get the character to always be facing the left or right of the screen using tweens.
So far I’ve tried out two things. (both of these methods have only been tried out on the HumanoidRootPart)
CFrame tweening; though CFrame also must include a position value, so the character ends up being stuck in place for the duration of the tween.


And orientation/rotation tweening; which quickly detaches the rest of the character from the HumanoidRootPart

Is there a working way to force the character to always face left or right by use of tweening?

Edit: this issue has since been solved through usage of AlignOrientation

2 Likes

You could animate it because you won’t be able to tween it while moving it

2 Likes

Unfortunately it would be best for my situation if I could accomplish this without the use of animations, but I do appreciate the response

2 Likes

I think animations is the way to go though…
To do this, you need an animation which turns the body 180° and when it ends it immediately sets it’s actual position to that.
If you don’t want to use animations, could you tell us why?

2 Likes

I know of how it would be accomplished if I were to use animations, but my stubbornness has gotten me stuck on the idea of “there has to be a way to do this using only scripting”
Though it seems at this point that animating would be easier (but personally not preferable) rather than figuring out an overly-complicated solution for the purpose of easing my mind
I’ll be sure to keep the animation method on the list of resolvents for when I get back around to working on the issue

Edit: this issue has since been solved through usage of AlignOrientation

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.