Hey devs, I am making a cannon for a little side project to learn more about CFrame manipulation.
Problem is, I don’t know how to make the cannon rotate on two axis at the same time as allowing it to move along rail tracks. Here is an image showing what I mean:
So far I have tried using TweenService with WeldConstraints but I think it would break when the cannon moves along the rails. Another solution I tried was using BodyGyro to rotate the cannon, but I have absolutely no idea how to use that and I feel like it is on the wrong track anyway.
Any ideas on how to do this would be greatly appreciated!