How to go about making a aim system

hello everyone so i am making a trench warfare game and i want to know how to go about making an aim type of thing that when you sit in a seat it automatically goes to an aim position and how would i make it when you avatar turns the machine turns. the machine is a machine gun on the ground idk if this is in the wrong category but could anyone help me?
thx
-dodosnicker

I have a model for this if you want to use it; (it’s the cannons)

https://www.roblox.com/library/6853113756/Classy-Guns-v0-3-1

Apart from that, you could get the mouse.Hit (gets mouses CFrame position onscreen) and use a remote event so on every RunService.Stepped it fires it as long as the character using it is seated, it would then set the primary part’s cframe of the model to the mouse.Hit

Omg thank you soooo much I will test this out when I have a chance