Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I randomize the StarterCharacters?

Asked by 4 years ago

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

0
Are the StarterCharacters custom rigs, or are they Humanoids with specific attachments and clothing? y3_th 176 — 4y
0
The StarterCharacters are typical R6 roblox characters, their only real difference between them is their clothing. niceboy1419 14 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

Ad

Answer this question