Unable to cast Array to UDim2

Hello, I keep having the issue, i’ve read through other posts. That didn’t help me out.

The error is: Unable to cast Array to UDim2
Here is the script:

``local Tween = game:GetService(“TweenService”)
local Gui = script.Parent.Parent.Parent.Parent.Main

– Client –

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Visible = false
script.Parent.Parent.format_indent_increase.Visible = true
script.Parent.Parent.Parent:TweenPosition{
UDim2.new(0.784,0,0.414,0),
“Out”,
“Quad”,
2,
false
}
end)

You’re using brackets instead of parentheses.

local Tween = game:GetService(“TweenService”)
local Gui = script.Parent.Parent.Parent.Parent.Main

– Client –

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Visible = false
    script.Parent.Parent.format_indent_increase.Visible = true

    script.Parent.Parent.Parent:TweenPosition(
        UDim2.new(0.784,0,0.414,0),
        “Out”,
        “Quad”,
        2,
        false
    )
end)

Let me update, didn’t even notice that :joy:

Thanks, it worked. Sorry for the issue :confused:

1 Like