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: GUI help ONLY READ tis if u r GOOD at scripting...

Previous Thread :: Next Thread 
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
07 Nov 2011 04:58 PM
ok ive posted about 4 forums about this ... and nobody really helped me...


im tryin to make it to were wen u enter my game there will be a redd screen GUI that will fade away slowly ...

this is watt ive done so far..

1. I inserted A screen GUI into starterGUI

2. I inserted a frame into that screenGUI and made it red

3. Then i inserted a script into frame that said:

function onPlayerEntered(newPlayer)
g = script.parent.BackgroundTransparency

wait(0.5)
g = 0.1
wait(0.5)
g = 0.2
wait(0.5)
g = 0.3
wait(0.5)
g = 0.4
wait(0.5)
g = 0.5
wait(0.5)
g = 0.6
wait(0.5)
g = 0.7
wait(0.5)
g = 0.8
wait(0.5)
g = 0.9
wait(0.5)
g = 1
end

game.Players.ChildAdded:connect(onPlayerEntered)


is this correct if not can u tell me how to do this?....reply




~littleAU999~
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
07 Nov 2011 05:01 PM
Change the script to:

    for i = 1, 10, 0.1 do
        script.Parent.BackgroundTransparency
    end
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
07 Nov 2011 05:02 PM
Oops, I failed. I meant:

    for i = 1, 10, 0.1 do
        script.Parent.BackgroundTransparency = i
        wait(0.1)
    end
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
07 Nov 2011 05:04 PM
...I failed again.

    for i = 0, 1, 0.1 do
        script.Parent.BackgroundTransparency = i
        wait(0.1)
    end
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
07 Nov 2011 05:04 PM
so this will work right? this is the script now...


function onPlayerEntered(newPlayer)
for i = 1, 10, 0.1 do
script.Parent.BackgroundTransparency
end

game.Players.ChildAdded:connect(onPlayerEntered)


if this will work THNK U!!!!! u answered my other forum too :D
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
07 Nov 2011 05:06 PM
oh so this is it...


function onPlayerEntered(newPlayer)
for i = 1, 10, 0.1 do
script.Parent.BackgroundTransparency = i
wait(0.1)
end

game.Players.ChildAdded:connect(onPlayerEntered)

Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
07 Nov 2011 05:06 PM
No, just use my third script. Don't even edit it.
Report Abuse
XenaMelody is not online. XenaMelody
Joined: 12 Oct 2011
Total Posts: 21
07 Nov 2011 05:07 PM
If you want know if your script work, then test it by yourself ;)

function onPlayerEntered() -- You'll never use the parameter newPlayer, then don't write it here
for i = 0, 1, 0.1 do

script.Parent.BackgroundTransparency = i

end
end

game.Players.PlayerEntered:connect(onPlayerEntered)


Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
07 Nov 2011 05:08 PM
Needs 2 ends for yours. (not Electric)
Report Abuse
XenaMelody is not online. XenaMelody
Joined: 12 Oct 2011
Total Posts: 21
07 Nov 2011 05:08 PM
I forgot the wait(0.1) ^^

PS : You don't have to be GOOD at scripting for that ^^
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
07 Nov 2011 05:09 PM
@Xena -

 1. PlayerEntered is not even an event.
 2. If you'd used PlayerAdded, that would happen every time a player enters.
 3. what is this i dont even
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
08 Nov 2011 06:20 AM
still dont work... ok this is watt ill do ill post a model of my work...and then u can get it....and then u can see watts wrong...Oh,and i changed it up a bit.

would u do this for me ElectricBlaze?
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
08 Nov 2011 06:42 AM
put this into the frame and it should work. I tested it out
Report Abuse
DragonFang1 is not online. DragonFang1
Joined: 02 Apr 2009
Total Posts: 1068
08 Nov 2011 06:42 AM
ops ..

this I mean:

--

wait(1)
for i=0, 1, 0.1 do
script.Parent.BackgroundTransparency = i
wait(.1)
end
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
08 Nov 2011 07:05 AM
"ONLY READ tis if u r GOOD at scripting..."

wat
Report Abuse
littleAU999 is not online. littleAU999
Joined: 15 Jan 2011
Total Posts: 1375
08 Nov 2011 04:33 PM
no i want electric to fix... but u can fix too...just go to my models
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
08 Nov 2011 04:34 PM
"GUI help ONLY READ tis if u r GOOD at scripting..."
Report Abuse
drgn42 is not online. drgn42
Joined: 11 Feb 2010
Total Posts: 3231
08 Nov 2011 04:36 PM
bump for you. cant help you sorry

tip to make peopl want to actually read your post:

spell stuff correctly.

what it looks like...

im tryin to make it to were wen u enter my game there will be a redd screen GUI that will fade away slowly ...

what it SHOULD look like...

im trying to make it so that when you enter my game there will be a red screen GUI that will fade away slowly...


i dunno, im not an english professor or anything, but you could ATLEAST spell out when and you.


just a tip though.
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