M_org
|
  |
| Joined: 19 Sep 2013 |
| Total Posts: 231 |
|
|
| 30 Jul 2017 05:22 PM |
I have 8 custom character in a folder which are all named ' StarterCharacter ' and in a server script I have:
game.Players.PlayerAdded:Connect(function (player) local allcharacter = game.ServerStorage.AllCharacters:GetChildren() local newcharacter = allcharacter[math.random(1, #allcharacter)] newcharacter.Parent = game.StarterPlayer player:LoadCharacterAppearance(newcharacter) end)
But here is the problem, if there are 2 or more people in a server, the game will choose the same character. Tried to debug it myself, but there is no hope... |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2017 05:25 PM |
I think you could try doing:
player.Character = NewCharacter
|
|
|
| Report Abuse |
|
|
M_org
|
  |
| Joined: 19 Sep 2013 |
| Total Posts: 231 |
|
|
| 30 Jul 2017 05:30 PM |
| Thank you, but for some reason, when I add :Clone() to line 2. The Same problem just occurs |
|
|
| Report Abuse |
|
|
M_org
|
  |
| Joined: 19 Sep 2013 |
| Total Posts: 231 |
|
| |
|