How I can add rotation speed to tank turret?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Heinz

I’m new in godot and gdscript. I’m making a 2D tank game with tutorial on YT. Everything works fine, turret rotates with the movement of the mouse but it’s doing it too fast. So my question is: how can I limit the turret rotation speed? Also my second, less important question is: how I can limit rotation of the turret like in a tank destroyer?

Script that rotate the turret:
$Turret.look_at(get_global_mouse_position())

Sorry if there are errors in this question. English isn’t my first language.