How to tween an object on a moving part

Hi, I want to know how to tween an object on a moving part, without it moving, as it currently moves if you understand what I mean. It doesn’t stay in one place. Thanks!

1 Like

Please give us more information about what you’re trying to achieve. I’m really confused and I think most of us could agree. Do you have any examples of what you’re trying to do (this includes videos, screenshots, drawings …)? Explain everything in detail as much as possible!

1 Like

You could maybe try using a Motor6D to hold the doors in place, then tween the C0 or C1 property of it?
Tried it, and this was the result. I believe this is what you want:
robloxapp-20230809-1459221.wmv (755.4 KB)
This was my code:

local TweenService = game:GetService("TweenService")

local Info = TweenInfo.new(2, Enum.EasingStyle.Quint, Enum.EasingDirection.InOut)
TweenService:Create(workspace.Base.Motor6D, Info, {C1 = CFrame.new(0, -5, 0)}):Play()
wait(3)
TweenService:Create(workspace.Base.Motor6D, Info, {C1 = CFrame.new(0, 0, 0)}):Play()

And my very simple setup:
image
Motor6D.Part0 = Base
Motor6D.Part1 = Door