How to make a GUI button that goes inwards when clicked

Hey, everyone!

I was wondering if anyone knew how to make a button similar to Adopt Me Buttons for example, like when you click, the button goes inwards. If anyone knew how to make it, that would be amazing as I could not find any videos and tutorials.

Thanks,
DistrictJesse

3 Likes

Put it in scripting support please (The topic)

-- example
script.Parent.MouseButton1Click:Connect(function()
    script.Parent.TweenPosition(UDim2.new(0, 730,0, 100), "InOut", "Sine", 3) -- replace with your UDim2 coordinates
end)
3 Likes

Thank you for your help!

I also have put this topic in the Scripting Support section.

1 Like

I suggest changing the title.

If someone else has a problem like this, they won’t be able to find this thread because it’s title is just… “GUI Button Help”.

2 Likes

Ok! Thanks for the reply.
I have changed the title, could you tell me if this is good?

Thanks!

That title seems good now. Thank you for changing it.

1 Like