Need help for my Gun turret

I want to make the Gun turret follow my mouse and it should be server side and have limit on movement

the Issue is I am not good at weld movement stuff

I have tried using head follow mouse and other scripts which I modified for the turret but most of them are not work and choppy

I want to make the Turret smoothly follow the mouse like Tankery which is tank game with good turret movement

Here is the code

–local

--Movement
Rs.RenderStepped:Connect(function()
	if Player then
		if Player.Character.Humanoid.Sit == true then
			if Tar.Seat.Occupant.DisplayName == Player.Name then
				game.ReplicatedStorage.RemoteEvents.SpaceShip.GunMove:FireServer(Mouse.Hit.p)
			end
		end
	end
end)

Server

--Movement

game.ReplicatedStorage.RemoteEvents.SpaceShip.GunMove.OnServerEvent:Connect(function(Player, Mouse)
	if Player.Character.Humanoid.Sit == true then
		if Player then
			if Part.Parent.Seat.Occupant.DisplayName == Player.Name then
				
			end
		end
	end
end)

Plus the Turret
https://www.roblox.com/library/6713383565/Turret

Try removing the

since you used it in the local script