I’m making a security system. But I have an issue. The Servo doesn’t go to where it supposed to and abruptly stops.
It supposed to go 45. Instead it goes like 22 until you change it down to 44, and back to 45.
I’m making a security system. But I have an issue. The Servo doesn’t go to where it supposed to and abruptly stops.
It supposed to go 45. Instead it goes like 22 until you change it down to 44, and back to 45.
Try using TweenService:
Example:
local Servo = --wherver your servo is
local TS = game:GetService("TweenService")
local TI = TweenInfo.new(
2,
Enum.EasingStyle.Linear)
local goal = {}
goal.Position = Vector3.new(0,45,0) --or whatever you want
local tween = TS:Create(Servo, TI, goal)
tween:Play()
I’ve already found a fix. Thanks though!
The moving was actually just an example since the player is going to able to look around with the camera using their mouse. However. I found that using AlignPosition and AlignOrientation worked 10x better than a hinge constraint (and I didn’t have to make another part to attach another Servo to)
I’ll mark yours as a solution. Since you were the first one to try to help.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.