GiverLol
|
  |
| Joined: 20 Dec 2010 |
| Total Posts: 810 |
|
|
| 06 Jul 2012 01:01 AM |
game.Players.PlayerAdded:connect(function(p) lol = game.Lighting.Intro:clone() lol.Parent = p.PlayerGui end)
Could anyone say what is wrong or how to fix it? Thanks! |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 01:09 AM |
There souldn't be a ) beside the end... Also, there is a better way to make arrange this script.
And what is the script supposed to do?
|
|
|
| Report Abuse |
|
|
GiverLol
|
  |
| Joined: 20 Dec 2010 |
| Total Posts: 810 |
|
|
| 06 Jul 2012 01:11 AM |
At first: It need to be becouse it says something like (function At second: It is supposed to load a intro gui when a player enters. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 06 Jul 2012 01:13 AM |
game.Players.PlayerAdded:connect(function(p) lol = game.Lighting.Intro:Clone() lol.Parent = p.PlayerGui end)
There was pretty much nothing wrong with it except I changed clone() to Clone() because I like my methods capitalized. |
|
|
| Report Abuse |
|
|
GiverLol
|
  |
| Joined: 20 Dec 2010 |
| Total Posts: 810 |
|
| |
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
|
| 06 Jul 2012 01:22 AM |
| Oh I was thinking about putting in a different way, I'm too tired... It's 2:22 AM. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 06 Jul 2012 01:28 AM |
@pleasantly I'm pretty sure you meant to do it like this: function PlayerEntered(p) --[[code]]-- end game.Players.PlayerAdded:connection(PlayerEntered)
They are the same thing except the one before this uses an anonymous function and, personally, I prefer using the other one over this template. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 01:31 AM |
| Yeah that's the way I was going to suggest, but I was too tired to put that way. I prefer using it that way. |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
|
| 06 Jul 2012 01:32 AM |
| I prefer the other way so I don't have to worry about the connection line and making sure I have the correct function name afterwards. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2012 02:41 AM |
| I still like it my way because any way I want it that's the way I need it... |
|
|
| Report Abuse |
|
|