I was wondering if you can restrict the rotation of a part on ONE specific axes( for example: X- Rotation always stays the same, while Y and Z axes can rotate as normal, without using any scripts that constantly update the CFrame (because it makes the game very laggy). I’m sorry if there is already any existing posts for this, I browsed around the devforum for around 20 minutes and I couldn’t find anything that worked, or if this is the wrong category. Thank you all in advance!
@RMofSBI I’m not sure, but I think PlaneConstraints are only for position-related stuff, I asked ChatGPT about it, it also said it’s only for the position, so correct me if I’m work, however if I’m wrong and it’s also used for rotation, can you tell me how to set this up? The only Constraints I’ve ver used are WeldConstraints so I don’t have a lot of knowledge about PlaneConstraints
You could use an AlignOrientation with the OneAttachment mode and specifically assign what CFrame it should aim at which you can obviously manipulate any way you choose.
I was thinking about it after i had posted the message, and yes the plane constraint will only allow movement on one axis but wont restrict the rotation, sorry.