Tweening UI broken

So when I click the button, the frame is suppose to move down to the position, but insead it moves to the corner of the screen, no matter what position is set. https://gyazo.com/62803fa92558c476436a9575f492d7ce

local AnimationButton = script.Parent.AnimationButton
local AnimationFrame = game.Players.LocalPlayer.PlayerGui.MainGUI.Animations

AnimationButton.MouseButton1Down:Connect(function()
AnimationFrame:TweenPosition(
UDim2.new({0,0},{0,0}),
“Out”,
“Quad”,
1,
false
)
warn(“Animations Loaded…”)
if AnimationFrame.Visible == false then
AnimationFrame.Visible = true
end
end)

In this line you have it specifically telling the computer to go to that position. So if you want it to move down I can’t really help cause I don’t know the pos of your animation frame? But you can move it to the cennter with

UDim2.new(0.5,0,0.5,0)

Don’t try and assign a UDim2 as 2 tables of values. UDim2 accepts 4 values -
number xScale, number xOffset, number yScale, number yOffset.

What I’d recommend is moving the frame manually in studio, copying the position, and slicing that into your code.

I went ahead and improved your code for you:

local AnimationButton = script.Parent.AnimationButton
local AnimationFrame = game.Players.LocalPlayer.PlayerGui.MainGUI.Animations

AnimationButton.MouseButton1Down:Connect(function()
    AnimationFrame:TweenPosition(UDim2.new(0, 0, 0, 0), “Out”, “Quad”, 1, false)
    print('Animations Loaded..')
    if AnimationFrame.Visible == false then
	    AnimationFrame.Visible = true
    end
end)

Work it works, thanks a lot!!!