|
| 08 Apr 2012 07:47 PM |
Because ROBLOX crashes everytime I try to reply in Roblox Studio; and because my Internet sucks I have to make a new forum to say this.
A = script.Parent.Parent.Parent.Fade.BackgroundTransparency B = 1 script.Parent.MouseButton1Click:connect(function() for i=1,10 do A = (A - 0.1) Wait(B) end end)
^ This did not work...as I was told to try this, thanks anyways.
Output: Players.xXStealthsniper200Xx.PlayerGui.Menu.MFrame.SGO.1.Fade:3: 'name' expected near '('
----------------------------------------------------------------------------------------- I have no idea why it's like Frames are completely unscriptable now... |
|
|
| Report Abuse |
|
|
malachi11
|
  |
| Joined: 07 May 2008 |
| Total Posts: 2420 |
|
|
| 08 Apr 2012 07:51 PM |
| Is the script in a TextButton? |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 08 Apr 2012 07:54 PM |
A = script.Parent.Parent.Parent.Fade B = 1 script.Parent.MouseButton1Down:connect(function() for i=1,10 do A.BackgroundTransparency = A.BackgroundTransparency - 0.1 Wait(B) end end) |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2012 07:57 PM |
It is so hard to get passed the error message so this is my last post on this thread.
Yes this is in a text button obviously, Fade is a Frame with nothing in it which may mean I need to try it with a TextLabel. I have no idea but I see no reason for this to not work at all... |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2012 08:05 PM |
THANK YOU GUYS SO MUCH! I got it thanks to UFAIL2.
Thank you guys. <3 |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
| |
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 08 Apr 2012 08:19 PM |
local fadeObj = script.Parent.Parent.Parent.Fade local fade = function() for i=1,10 do fadeObj.BackgroundTransparency = fadeObj.BackgroundTransparency - 0.1 wait(1) end end
script.Parent.MouseButton1Down:connect(fade) fade = nil __________________________
Sorry, seeing him use a variable for a constant number was just disgusting to me and then I didn't like all the pascal ccase so I had to change that too and then i just decided to change the whole formatting of the script :U nothin personal @ufail |
|
|
| Report Abuse |
|
|