smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 09 Jun 2013 09:12 AM |
So PlayerAdded doesn't work on Solo, and according to the Wiki, I need to use this line:
for _, player in pairs(game.Players:GetPlayers()) do PlayerAdded(player) end
Here's my script.
game.Players.PlayerAdded:connect(function(player) --code end)
Where exactly do I put the line?
Thanks |
|
|
| Report Abuse |
|
|
pauljkl
|
  |
| Joined: 23 Oct 2008 |
| Total Posts: 9364 |
|
|
| 09 Jun 2013 09:15 AM |
| Well you would make the function inside your event as a separate function named ' PlayerAdded' and put that line at the bottom |
|
|
| Report Abuse |
|
|
| |
|
smiley599
|
  |
| Joined: 23 Jan 2010 |
| Total Posts: 21869 |
|
|
| 09 Jun 2013 12:00 PM |
This is the script:
game.Players.PlayerAdded:connect(function(player) --code end)
for _, player in pairs(game.Players:GetPlayers()) do PlayerAdded(player) end
The output is: attempy to call/index PlayerAdded (a nil value) |
|
|
| Report Abuse |
|
|