Heyo,
I have an accessory in one of my experiences that I would like to be able make spin, however I am having trouble scripting it as I only want the accessory to spin on the y axis only if that makes sense.
The problem I’m having is that it always rotates the accessory relative to the angle/rotation of the player’s head, so when the player is running or walking and the animation lowers the angle of their head and the accessory spins it stays on the angle the player’s head was on leading to some funky results in which it doesn’t align properly.
I’d appreciate anything that just guides me in the right direction towards what formulas or code I need to look into,
cheers.
You can try to use BodyGyros, you just set the CFrame value and it will rotate the object based on the rotation of that CFrame.
However, it’s possible to do it with AlignOrientation but it’s more complicated because you have to use attachment to control the rotation.
I’ve had a look at Align Orientation, however it does seem rather complicated for such a simple task… would you be able to provide a very simple or basic piece of code?
I also looked at Body Gyros but they were deprecated so I just assumed they’re outdated and skipped over them, correct me if I’m wrong.