I copied this from a working script I made here, and edited it:
This one is supposed to pop up an information box when you click on another GUI, and it works perfectly:
infobase = script.Parent.Parent.InformationBase
infobase2 = script.Parent.Parent.InformationBase.InformationTitle
infobase3 = infobase2.TextLabel
local droppeddown = false
function infor()
if droppeddown == false then
script.Parent.Text = "Close Information"
infobase.Visible = true
infobase2.Visible = true
infobase3.Visible = true
droppeddown = true
elseif droppeddown == true then
script.Parent.Text = "Information"
infobase.Visible = false
infobase2.Visible = false
infobase3.Visible = false
droppeddown = false
end
end
script.Parent.MouseButton1Down:connect(infor)
BUT I tried it with THIS which is already visible (=true) but makes it fade in and out, and it doesn't work. I thought there was an easier way to do it, like while variable < 1 do variable = variable +0.1 wait(0.5) end but it does not work and I have to do it the hard way:
donate = script.Parent.Parent.DonateFrame
t = script.Parent.Parent.DonateFrame.BackgroundTransparency
local droppeddown = false
function donate()
if droppeddown == false then
script.Parent.Text = "Close Donate"
t = 1
t = 0.95
wait(0.1)
t = 0.90
wait(0.1)
t = 0.85
wait(0.1)
t = 0.80
wait(0.1)
t = 0.75
wait(0.1)
t = 0.70
wait(0.1)
t = 0.65
wait(0.1)
t = 0.60
wait(0.1)
t = 0.55
wait(0.1)
t = 0.50
wait(0.1)
t = 0.45
droppeddown = true
elseif droppeddown == true then
script.Parent.Text = "Donate"
t = 0.45
wait(0.1)
t = 0.50
wait(0.1)
t = 0.55
wait(0.1)
t = 0.60
wait(0.1)
t = 0.65
wait(0.1)
t = 0.70
wait(0.1)
t = 0.75
wait(0.1)
t = 0.80
wait(0.1)
t = 0.85
wait(0.1)
t = 0.90
wait(0.1)
t = 0.95
wait(0.1)
t = 1
droppeddown = false
end
end
script.Parent.MouseButton1Down:connect(donate)
Someone please help me... I've had a scorching headache over this and the Extenderframe thing I posted a while ago then deleted (because I gave up on it and nobody was responding) and if you can, help me with the easier way to do it.
Thanks.

16 comments
It doesn't work, it instantly goes to fully untransparent then fades away-not helping. The point was to make you click on it, then it fades from 1% transparency to 0.45% transparency.. then if you click Close Donate (which you took out of the script, I believe), it makes it fade from 0.45% to 1%
This is what you did: http://i.imgur.com/Ovvhhcx.gif
Try it out again, I had mispelled
droppeddownStill does not function correctly.
it should be.. if the problem is the transparency, you can edit that on lines 9 and 17 to match your needs, taking into consideration that it's laid out (start, stop, step)
Even if I change it, it still works weirdly, all like this, regardless of how I change it. Strange: http://i.imgur.com/Qgb7LXk.gifv
is this the only script in the textbutton, or is there another script in there as well?
Yes, there's a hover script (as you could see in the GIF), and there's a donate script (which is disabled). I tried disabling them both but it still does not function correctly. Is there any other way you can assist me?
i'd have to get on a laptop and re-produce it myself to see what's wrong because I can't test it right now so give me a few
Okay then. If you can, do you know if there's a way to move or resize a GUI to a certain point, such as 'while variable < 7 do variable = variable.Size.X.Offset +1', or something like that?
http://wiki.roblox.com/index.php?title=API:Class/GuiObject/TweenSize
alright fixed, tested myself and is now working.
okay....
well..? Did you test it? Is it not working? If there's anything else you have in this very script except what i posted, share it.
Nothing else. Had to use the tweenposition method.
you mean my code didn't work?