I'm trying to make an elevator and everything works except it jitters. How do I keep it from jittering? I'm using tweenservice by the way.

local TweenService = game:GetService("TweenService")
local Left = script.Parent:WaitForChild("Moving")
local tweeningInformation = TweenInfo.new(
    25,   
    Enum.EasingStyle.Linear,
    Enum.EasingDirection.Out,
    -1,
    true,
    0
)
local LeftDown = {CFrame = CFrame.new(-952.228,script.Parent.Buttom.Position.Y,-1980.066)}
local tween1down = TweenService:Create(Left,tweeningInformation,LeftDown)
 
script.Parent.Button.ClickDetector.MouseClick:Connect(function(hit)
	 tween1down:Play()
end)

5 comments

0

Is the part Anchored?

2

Id use :Lerp() and RunService instead truthfully. A bit more code to run but x1000 times more smoother than what you will be getting with TweenService. And also if you are watching another user lag through the floor of it, thats ROBLOX replication. Nothing you can do about that.

1

I think constraints should be used here instead of the above. See the PrismaticConstraint.

0

If you wanted the elevator to be used by a player that is.

1

i'd just use bodyposition. shrug