Sorry if I do not have code with me currently.
I built separate rigs for my game with its own attachments and Motor6Ds, applying unique animations to these rigs. A player may select different classes at the start of the game, which corresponds to each rig.
As I know it right now, StarterPlayer allows only one StarterCharacter model for the rig when a player spawns, disallowing multiple rigs for different classes.
A solution/pseudocode I had in mind is to disable CharacterAutoLoads, then to destroy the current StarterCharacter in StarterPlayer, then copying the suitable rig for the player from ServerStorage unto StarterPlayer. After this, I will call LoadCharacter, and the player will respawn with the correct rig.
Is this the only solution? Is there any better way to apply this? What happens when multiple people die at the same time? I don't request for a code, but the methods or the services I need to use to achieve this.