|
| 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 |
|
|
|
| 07 Nov 2011 05:01 PM |
Change the script to:
for i = 1, 10, 0.1 do script.Parent.BackgroundTransparency end |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 07 Nov 2011 05:06 PM |
| No, just use my third script. Don't even edit it. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 07 Nov 2011 05:08 PM |
| Needs 2 ends for yours. (not Electric) |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 08 Nov 2011 06:42 AM |
| put this into the frame and it should work. I tested it out |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|