|
| 08 Apr 2012 07:06 PM |
A = script.Parent.Parent.Parent.Fade.BackgroundTransparency B = 1
function onButtonClicked() for i=1,10 do A = (A - 0.1) Wait(B) end end
script.Parent.MouseButton1Click:connect(onButtonClicked)
^ I've tried tons of other ways to do this but it just refuses to work. I can see my GUI so that's not the problem here. I tried it without the A shortcut, I tried without the loop and other ways but it's the same story. Help me please... |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2012 07:07 PM |
Any output?
~I don't always forum, but when I do, I forum like a collection of pixels.~ |
|
|
| Report Abuse |
|
|
BEART12
|
  |
| Joined: 22 Oct 2008 |
| Total Posts: 3190 |
|
|
| 08 Apr 2012 07:08 PM |
for i=1,10, -0.1 do
something like that i think. |
|
|
| Report Abuse |
|
|
Quovis
|
  |
| Joined: 24 Mar 2012 |
| Total Posts: 494 |
|
|
| 08 Apr 2012 07:08 PM |
| Just use "Transparency" instead of BackgroundTransparency |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2012 07:14 PM |
No dice...
I added a print 'Hi' and it printed...this could be a bug. |
|
|
| Report Abuse |
|
|
Quovis
|
  |
| Joined: 24 Mar 2012 |
| Total Posts: 494 |
|
|
| 08 Apr 2012 07:16 PM |
A = script.Parent.Parent.Parent.Fade.BackgroundTransparency B = 1 script.Parent.MouseButton1Down:connect(function() for i=1,10 do A = (A - 0.1) Wait(B) end end)
Try that.
|
|
|
| Report Abuse |
|
|