generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Custom Characters[2]

Previous Thread :: Next Thread 
M_org is not online. 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
PhantomVisual is not online. PhantomVisual
Joined: 08 Apr 2011
Total Posts: 2025
30 Jul 2017 05:25 PM
I think you could try doing:

player.Character = NewCharacter


Report Abuse
M_org is not online. 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 is not online. M_org
Joined: 19 Sep 2013
Total Posts: 231
30 Jul 2017 05:36 PM
^ Mistake: Line 3 I mean
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image