generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Fade GUI - Still having problems...

Previous Thread :: Next Thread 
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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 is not online. malachi11
Joined: 07 May 2008
Total Posts: 2420
08 Apr 2012 07:51 PM
Is the script in a TextButton?
Report Abuse
UFAIL2 is not online. 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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
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
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
08 Apr 2012 08:05 PM
THANK YOU GUYS SO MUCH! I got it thanks to UFAIL2.

Thank you guys. <3
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
08 Apr 2012 08:06 PM
No problem.
Report Abuse
smurf279 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image