I am not sure if this is the correct category to post this on, but I need some help.
So I was wondering if a script could randomize some starter characters im a folder.
I personally would apply a humanoid description and that works
local Characters = {workspace.Character1,workspace.Character2}
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
Character:Destroy()
Player.Character = nil
wait(.3)
local new = Characters[math.random(#Characters)]:Clone()
new.Parent = workspace
Player.Character = new
end)
end)
Untested code, but what Iâm doing is destroying and replacing the character.
The way youâre intending to use StarterCharacter is not the proper way to be using it. StarterCharacter is only intended for you to change the way that rigs are constructed by default. If you are planning anything that has to do with using multiple rigs, StarterCharacter isnât what you want.
Please look into other solutions for changing how characters are constructed or clothed if you need some form of randomisation. Itâs currently unclear what you want multiple rigs for. If itâs to change how the characterâs built, assign the new model to their character. If itâs for the sake of appearance, manually construct it or make use of the HumanoidDescription system.
Your question is off topic. Please ask this over private messages or use the Report Abuse feature to report incidents with other players.
I cannot make this private. You can flag your own thread under âSomething Elseâ and ask for it to be closed, but if thereâs information to be derived out of it or itâs helpful to other users, it will not be hidden. That being said, you didnât write this topic, so this isnât applicable to you.