So I made an image Button and whenever you click it a menu is supposed to pop up but I am getting an error saying (argument 2 missing or nill)
Here is my code
local menuButton = script.Parent
local mainMenu = script.Parent.Parent.MenuFrame.mainMenuFrame
local Tween = game:GetService("TweenService")
menuButton.MouseButton1Up:Connect(function()
mainMenu:TweenSizeAndPosition{
UDim2.new(0, 479,0, 271),
UDim2.new(-7.792, 0,-0.742, 0),
Enum.EasingStyle.Quint,
Enum.EasingDirection.Out,
1,
false
}
end)
Please tell me what I missed or what i'm doing wrong.

2 comments
Don't use brackets, use parentheses. Just a tip, not sure if that'll fix it or not. But in my opinion I'd use parentheses.
I changed them to parentheses and got a new error "Unable to cast token to token". Btw I use parentheses for variables and other stuff and brackets for tables, in this case i'm listing multiple things so I used brackets for a table.