kinglime
|
  |
| Joined: 27 Jun 2008 |
| Total Posts: 2751 |
|
|
| 16 Jul 2013 07:10 PM |
Workspace.ChildAdded:connect(function(child) print(child.Name) end)
New to this. How can I make it so that when they enter game and respawn it does this? |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 07:14 PM |
| If your testing in solo mode, it may be character added before script loaded? |
|
|
| Report Abuse |
|
|
kinglime
|
  |
| Joined: 27 Jun 2008 |
| Total Posts: 2751 |
|
|
| 16 Jul 2013 07:21 PM |
| I try'ed added waits in a couple places and still nothing. |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 16 Jul 2013 07:21 PM |
Because that script only works when the character has been respawned.
game.Players.ChildAdded:connect(function(p) -- player enters the server p.CharacterAdded:connect(c) -- player's character has loaded print(p.Name) end end) |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 16 Jul 2013 07:22 PM |
I forgot something. D:
game.Players.ChildAdded:connect(function(p) -- player enters the server p.CharacterAdded:connect(c) -- player's character has loaded print(p.Name) end) end) |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 16 Jul 2013 07:27 PM |
D: what's wrong with me today.
game.Players.ChildAdded:connect(function(p) -- player enters the server p.CharacterAdded:connect(function(c) -- player's character has loaded print(p.Name) end) end) |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 07:35 PM |
a better way is
Game.Players.PlayerAdded:connect(function(p) |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 16 Jul 2013 07:38 PM |
@Samuel But playeradded has been acting pretty weird lately. |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 07:45 PM |
I prefer
playerAdded = function(player) player.CharacterAdded:connect(function(character) print('Character Added', player) end) end
game.Players.PlayerAdded;connect(playerAdded)
for i, v in next, game.Players:GetPlayers() do playerAdded(v) end
As this will work in Play Solo. |
|
|
| Report Abuse |
|
|