I have a successful character randomizer between two characters, but I'm trying to make up to 5 characters, but since my brain is smooth, I dont know how to add to my current script:
while wait(0.5) do local CharRound = math.random(1,2)
if CharRound == 1 then
game.StarterPlayer:FindFirstChild("StarterCharacter"):Destroy()
game.StarterPlayer.Characters.Boy.StarterCharacter:Clone().Parent = game.StarterPlayer
print("Character Two selected.")
elseif CharRound == 2 then
game.StarterPlayer:FindFirstChild("StarterCharacter"):Destroy()
game.StarterPlayer.Characters.Girl.StarterCharacter:Clone().Parent = game.StarterPlayer
print("Character One selected.")
end
end
Anything help. thanks :)

1 comment
[EDIT] THE [While wait(0.5) do local Charround - math.random(1,2)] AND [end] ARE SUPPOSED TO BE IN THE SCRIPT