I'm trying to make a main menu type GUI and I want the buttons to tween to the right a little when your mouse hovers over them and then to go back when the mouse leaves. For some reason when your mouse hovers over the button the GUI tweens to the top of the screen. Here is the code:
function me(button)
button.MouseEnter:connect(function()
button:TweenPosition(UDim2.new(0.5, 0,button.Position.Y), "Out", "Quad", 3, true)
end)
button.MouseLeave:connect(function()
button:TweenPosition(UDim2.new(0.5, -50,button.Position.Y), "Out", "Quad", 3, true)
end)
end
me(script.Parent.Credits)
me(script.Parent.Play)
NOTE: I'm very new to Udmi2 and tweening. Thanks!

4 comments
try setting offset(first numver in you udim2.new) to 0
its definetly the way you have youre numbers set up
can you give me the position of the guis (labeled please)
Credits: {0.5, -50},{0.5, 25} Play: {0.5, -50},{0.5, -50}