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: Nothing happening?

Previous Thread :: Next Thread 
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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 is not online. 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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 12:23 AM
It still doesn't work :(
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 12:45 AM
bump
Report Abuse
Ozzypig is not online. 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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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 is not online. 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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 12:34 PM
It's still not working... does roblox just hate me or something?
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 12:53 PM
bump
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 01:36 PM
bump
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 06:04 PM
bump
Report Abuse
cntkillme is not online. 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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 06:07 PM
It is
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
21 Aug 2013 06:08 PM
It seems fine...
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 06:10 PM
*sigh*

I guess it will never work.
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 06:24 PM
There has to be SOMETHING wrong with it!
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
21 Aug 2013 06:24 PM
Maybe "script.Parent.Parent.Parent" is wrong.
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
21 Aug 2013 07:02 PM
Then something swaggy is going on
Report Abuse
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
21 Aug 2013 08:33 PM
Aww man, I really need to get this working :(
Report Abuse
cntkillme is not online. 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 is not online. 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
froggodude is not online. froggodude
Joined: 22 Sep 2012
Total Posts: 1638
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
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