Unable to cast to Dictionary

Hello, I have this problem and I tried debugging it numerous times but I still can’t figure out what I did wrong here.

image

This is the script
image

Any help would be appreciated.

I’m guessing the issue is in the local floor1up line?

Try doing

local floor1up = tweenservice:Create(part1,tweeninfo,position1[1])

Edit since I never explained why this works: The reason your code failed was because you tried t ogive the entire dictionary as a parameter for the Create function, when you only have to give it once thing, a table that contains all the information you want to edit about a certain part, so to fix it, you jsut had to give it the specific thing you wanted to give it by specifying the index

1 Like