Daw588
(Daw588)
June 7, 2022, 6:39pm
#1
As you can see, when I put my mouse at certain position, it will start gaining crazy speed, how can I limit the speed? Because so far I only managed to lower the acceleration with CFrame:Lerp()
.
Here is how I set the CFrame of the Motor6D.
RunService.Heartbeat:Connect(function()
TurretMotor6D.C0 = CFrameAtMousePosition()
end)
TubeyBoii
(YouTubey)
June 14, 2022, 10:04am
#2
You could possible try to add a wait() before it tracks the mouse so it would look something like this:
RunService.Heartbeat:Connect(function()
wait(numberhere)
TurretMotor6D.C0 = CFrameAtMousePosition()
end)
CoderHusk
(CoderHusk)
August 25, 2022, 4:23am
#3
You could create a stack data structure of the previous mouse positions and pop them every 0.2 seconds or so.