Forgive me if this is off topic for this thing or whatever as this is my first proper forum post, But how would this be possible?
Im wondering how i could make a system that automatically gives people hats and clothes depending on what team they join and the rank they have in a set group.
So how would this be possible and how could i make this easy to edit?
Within the scope of the example given in the API, you’d then want to wait for the character to spawn:
And when the player has spawned, you can iterate through the character model and find the shirt & pants and furthermore change the “ShirtTemplate” to whatever you want.
First u would need to use this function, to get the rank, depending on the rank returned or nil if not in the group u can perform ur actions:
u can place the function on player added adding a value of the rank group, so on character added, or in a script inside startercharacter, wait for the value, then iterate the character children to change clothes or clone ur hat into the character, also u can use InsertService with loadAssets to load hats from id in game without needing to have them loaded in the game.