Pivot Point is different in script then to what I set it to be. (Tween Service)

  1. What do you want to achieve?
    I am making a button with a glass case, and once I fire a RemoteEvent the glass will lift on a pivot.

  2. What is the issue?
    Whenever I try to rotate the part in TweenService. It rotates the part the right way, but not on the pivot point I have set. Here is what I want it to do:


    Here is what it does:
    Screenshot 2023-12-02 162202

  3. What solutions have you tried so far? I looked at videos and dev forum and found nothing. This is my code right now : part.Orientation = Vector3.new(0,0,30) --Starting Orientation local tweenopen = tweenService:Create(part, tweenInfo, {Orientation = Vector3.new(0,0,-60)})

It would be greatly appreciated if someone could help!

1 Like

I figured out how to do it, but without tween service. I just pivot the glass up or down with this code every time the remote event has been called: model:PivotTo(model:GetPivot()*CFrame.Angles(0,0,math.rad(-1 (change to positive to go back down) )))

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.