Unable to cast dictionary to tweeninfo

I’m trying to make an automatic sliding door, and it comes up with this error:


Does anybody know how to fix this?
I tried a devforum post about it, but it didn’t work.

1 Like

It cuts off at the top, but replace

TweenInfo

in your tweens with whatever you have it referenced to at the top, that should fix it.

2 Likes

It did fix it, but now theres another error.
image

1 Like

Are ldooropened and rdooropened CFrame values?

Are rdoor and ldoor regular parts?

1 Like

image
They are all parts.

1 Like

Add .Value to the end of the closed/opened values

1 Like

As I said they are all parts, and I did “tweenInfo” as specified in the third post.
Script:
image

1 Like

If they are parts then put .Position on the end of it

1 Like

But I want to use CFrame, correct?

local ldoorclosed = script.Parent.LeftDoorClosedPos.CFrame
local ldooropened = script.Parent.LeftDoorOpenedPos.CFrame
local rdoorclosed = script.Parent.RightDoorClosedPos.CFrame
local rdooropened = script.Parent.RightDoorPos.CFrame

Try replacing those with that.

2 Likes

Then put .CFrame on the end of it my bad

1 Like