im trying to make a door that slides into the floor and i am using this code
local TweenService = game:GetService("TweenService")
local Panel = workspace.UnlockedDoor.door
local PanelRoot = Panel.PrimaryPart
local PanelSlideInfo = TweenInfo.new()
local PanelSlideTween = TweenService:Create(PanelRoot, PanelSlideInfo, {
CFrame = PanelRoot.CFrame * CFrame.new(PanelRoot.Size.Y + 0, 0, 0)
})
wait(3)
PanelSlideTween:Play()
when i run the script the door keeps going to the right, i want the door to move down, but no matter what XYZ i plug into the vector3 it just wont change. whats wrong?

2 comments
Maybe try CFrame:lerp() instead?
Did you already try swapping the x and the z