How do I change a parts position without breaking the code upon moving said part in studio?

I’m aiming to make an automated door, however, if i move my doors they still tween to the old position. I’d like to be able to move my model in studio and it tween to where I need it to tween to based off where the model is? Any help is appreciated.

What you can do is basically have in the script the 2 CFrames (open and closed) stored, and do a check to see if the door is opened or closed. If it’s closed it moves to the open CFrame and if it’s open it moves to the closed CFrame.

1 Like

True, do you know if it’s possible to do it without CFrame and just a tween? I’ve seen models without it before.

I’m not to sure about tweening the Position of a Model, but you can always tween the CFrame of the model and just change the position and not touch orientation in the CFrame.