local black = false
function dondrop()
if black == false then
script.Parent:TweenPosition(UDim2.new(0.5, 100,0.5, 225), "Out", "Quad", 1)
wait(0.1)
black = true
script.Parent.DonateTitle.TextLabel.Text = "Close Donate"
elseif black == true then
script.Parent.Position = UDim2.new(0.5, 100,0.5, -500)
black = false
script.Parent.DonateTitle.TextLabel.Text = "Donate"
end
script.Parent.Parent.Donate.MouseButton1Down:connect(dondrop)
the elseif is supposed to make it so that when it's already dropped down, it will go back up again to the invisible-land if you click "close donate".. otherwise there's no way to close it.

4 comments
Where's the error? Anything in the output?
Nothing in the output.
Well, I removed my answer since it was wrong. Are you sure the hierarchy is correct?
Everything after line 9 makes it function incorrectly-everything before it works fine (until you remove everything after line 9)... I added the elseif and 'black' variable to add the ability to move it up to invisible-land. I'm not sure what else to do, but I need an ability to close it.