I’m trying to work on some mechanics for a mech. I want to make it controllable with the mouse. I’ve got it set to rotate to the mouse position but its quite fast. Is there a way I can slow it down and set a maximum rotation speed with what I got?
Codes pretty basic. This is what I’m using
RunService.RenderStepped:Connect(function() --move mech to cursor
local move = game.Workspace.mini.mech.default -- part the will be moving
local pos = Vector3.new(mouse.Hit.Position.X,mouse.hit.Position.Y, mouse.Hit.Position.Z) -- mouse position to move to
move.CFrame= CFrame.new(move.Position, pos)
end)