Unable to cast array to UDim2

Hi, I made a tween script but i’m getting this error:
Unable to cast Array to UDim2
script:

script.Parent.MouseButton1Click:Connect(function()
	if script.Parent.Parent.ShopFrame.Closed == false then
		script.Parent:TweenPosition{
			UDim2.new(0.25, 0,-1, 0),
			Enum.EasingDirection.Out,
			Enum.EasingStyle.Bounce,
			0.5,
			true
		}
		script.Parent.Parent.ShopFrame.Closed.Value = true
	else
			script.Parent:TweenPosition{
				UDim2.new(0.25, 0,0.224, 0),
				Enum.EasingDirection.In,
				Enum.EasingStyle.Bounce,
				0.5,
				true
		}
		script.Parent.Parent.ShopFrame.Closed.Value = false
	end
end)

You have to use parentheses, not curly brackets.

1 Like

I figured that out right before you said that. I’ll give you solution though.

1 Like