Unable To Cast To Dictionary

I’m trying to tween a door, but I am not sure why it will not cast.

local Door1Closed = Door1.CFrame
local Door1Opened = Door1Closed * CFrame.new(5,0,0)



local Info = TweenInfo.new(1)

local Tween1Open = TweenService:Create(Door1, Info, Door1Opened)

The third parameter of TweenService:Create is a table of properties. I think you mean this:

TweenService:Create(Door1, Info, {
    CFrame = Door1Opened,
})
2 Likes