How do I make a tank turret that follows mouse with speed

I would like to make a tank turret that follows the mouse on the x axis, it will be able to fo a full rotation and have a speed (like if it rotates to the mouse position slowly or fast) if anyone could give me a sample script for this or at least a formula to do this, that would be great because the current turret I have does a rotation to the back but then stops and comes back around, I cant really explain it but I just need a tank turret that does a 360 turn with a speed

1 Like

Have you got any script to show us you have tried to do this yourself?
You should be able to at least print out values of mouse position, turret rotation, turning speed, for example with some sample values you have tried.