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)