I need help tweening an image button

The title says it all, I’ve been trying to make this button work for the past hour and I can’t get it to work.
Screen Shot 2020-04-04 at 11.43.43 PM
Screen Shot 2020-04-04 at 11.43.47 PM

I want it so when I click the ImageButton, the entire frame animates to (0,0,20,0) position.
I am no good with anything scripting ;-;

You can use :TweenPosition for this.

script.Parent.Activated:Connect(function()
     script.Parent.Parent.Parent:TweenPosition(UDim2.new(0, 0, 20, 0), "Out", "Linear", .5, true)
end)

:slight_smile:

2 Likes

Oh my goodness it works - thanks sm. <3

2 Likes