Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I randomize the StarterCharacters?

I have about 5 StarterCharacters and for my game I want to use them all at once and make it that all players whenever they join or respawn in my game they spawn as one of the StarterCharacters, and the StarterCharacter is chosen at random for each player. I have very little knowledge of scripting, and I don't know how to execute or script this kind of thing. I tried putting them in StarterPlayer but it makes me only spawn as one constantly rather than a random one everytime i spawn in or die/respawn

2 comments

0

Are the StarterCharacters custom rigs, or are they Humanoids with specific attachments and clothing?

0

The StarterCharacters are typical R6 roblox characters, their only real difference between them is their clothing.

1 answer

✓ Accepted answer

Assuming they are Humanoids, this is what I could help with, not very experienced either but at least I'll try to help.

You can create a script in which can apply the humanoid to the player, then you can put it in a math.random sort of script.

Then you can add a part of the script in which for example it's 1-10

you can make it if math.random number = number then (from here you put the script to replace the character looks of the player with your custom avatar.)

Hope this helps.

This discussion is preserved as it was. New answers, comments, and votes are closed.