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.
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 ;-;
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.
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)
Oh my goodness it works - thanks sm. <3