Unable to cast to dictionary

  1. What do you want to achieve? A vault door

  2. What is the issue? Unable to cast to Dictionary

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub? Yes. It just isn’t using what i told it to do.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Why does my code not work, I do not see the problem

tween = game.TweenService
tweeninfo = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local openUP = {Vector3.new(-185, 14.736, 314.5)}
local openSLIDE = {Vector3.new(-118, 14.736, 314.5)}
local closeslide = {Vector3.new(-185, 15.736, 314.5)}
local closeDown = {Vector3.new(-185, 11.736, 314.5)}
tween:Create(script.Parent.Parent.Vault, tweeninfo, openUP):Play()
tween:Create(script.Parent.Parent.Vault, tweeninfo, openSLIDE):Play()
tween:Create(script.Parent.Parent.Vault, tweeninfo, closeslide):Play()
tween:Create(script.Parent.Parent.Vault, tweeninfo, closeDown):Play()
d = false
script.Parent.Touched:Connect(function()
	if d == false then
		d = true
		tween:Create(script.Parent.Parent.Vault, tweeninfo, openUP):Play()
wait(3)
		tween:Create(script.Parent.Parent.Vault, tweeninfo, openSLIDE):Play()
	wait(5)
		tween:Create(script.Parent.Parent.Vault, tweeninfo, closeslide):Play()
	wait(3)
		tween:Create(script.Parent.Parent.Vault, tweeninfo, closeDown):Play()
		wait(3)
		d = false
	end
end)

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.