|
| 20 Aug 2013 08:34 PM |
This script is supposed to create a frame and put it inside a screen gui (script.Parent.Parent.Parent), and then slowly fade it to half of it's transparency. Sadly, when I run it, it does nothing. I'm not sure if there are any errors or not because I have to test it in online mode due to the use of data persistance.
Can anyone help?
local back = Instance.new("Frame", script.Parent.Parent.Parent) back.BackgroundTransparency = 1 back.BackgroundColor3 = Color3.new(0/255,0/255,0/255) for i = 1,.5,.1 do back.BackgroundTransparency = i wait(.1) end |
|
|
| Report Abuse |
|
|
redlo43
|
  |
| Joined: 16 Feb 2011 |
| Total Posts: 4722 |
|
|
| 20 Aug 2013 08:35 PM |
the for loop is wrong
for i = 1, .5, -.1 |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Ozzypig
|
  |
| Joined: 27 Mar 2008 |
| Total Posts: 4906 |
|
|
| 21 Aug 2013 12:59 AM |
Maybe because you're making a frame, but not positioning it nor sizing it so you can't _see_ it working?
~Ozzypig |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 01:06 AM |
-FACEPALM-(At myself)
I make silly mistakes like this all the time! Yes, I did forget to resize it, thank you, ozzypig! |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 Aug 2013 01:08 AM |
This is your 2nd mistake, your first was the :GetChildren instead of :GetChildren()
right? |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 01:11 AM |
I don't recall. . .
But I did completely forget that you could turn off classic chat... big facepalm right there. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 12:34 PM |
| It's still not working... does roblox just hate me or something? |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 12:35 PM |
local back = Instance.new("Frame", script.Parent.Parent.Parent) back.BackgroundTransparency = 1 back.BackgroundColor3 = Color3.new(0/255,0/255,0/255) back.Size = UDim2.new(1,0,1,0) for i = 1,.5,-.1 do back.BackgroundTransparency = i wait(.1) end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 Aug 2013 06:04 PM |
| You realize a frame has to be in a GUI in PlayerGui, right? |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
|
| 21 Aug 2013 06:10 PM |
*sigh*
I guess it will never work. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 06:24 PM |
| There has to be SOMETHING wrong with it! |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 Aug 2013 06:24 PM |
| Maybe "script.Parent.Parent.Parent" is wrong. |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 07:01 PM |
| No it's right, the script is in a button, which is inside a frame, which is inside the screengui (hence, script.Parent.Parent.Parent) |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 Aug 2013 07:02 PM |
| Then something swaggy is going on |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 08:33 PM |
| Aww man, I really need to get this working :( |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 21 Aug 2013 08:35 PM |
| So, does the frame even create and cover the screen? |
|
|
| Report Abuse |
|
|
Ludici
|
  |
| Joined: 22 Jul 2013 |
| Total Posts: 640 |
|
|
| 21 Aug 2013 08:45 PM |
Maybe because the transparency scale only goes from 0 to 1. Just a guess.
~Make the simple, amazing~ |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2013 08:53 PM |
| What happens when I test it, is that it does absolutely nothing after everything else in the script runs perfectly. I am so sick of this happening, I can never get anything containing "for" loops to work :( |
|
|
| Report Abuse |
|
|