Such as in Alexnewtrons
I realized that this would not work: game.Workspace.Players.LocalPlayer.Shirt = id if game.Workspace.Players.LocalPlayer.Team = Red (Yes I am very bad at scripting.)
A good way to do this is to store a character template, then when you spawn a character on a certain team, replace all of their appearance assets with a copy of the template's contents.
Easy I would use values (but only because I am addicted to them) so a value with a script that would change when the player's team changes so
01 | if Player.Team.Value = = 1 then |
02 | --however you want to get to the player's shirt |
03 | playerhierarchyhere.Shirt.ID = 314159265 |
04 | elseif Player.Team.Value = = 2 then |
05 | --however you want to get to the player's shirt |
06 | playerhierarchyhere.Shirt.ID = 123456789 |
07 | elseif Player.Team.Value = = 3 then |
08 | --however you want to get to the player's shirt |
09 | playerhierarchyhere.Shirt.ID = 8787878787 |
10 | end |
(this was posted before I realized waffle had sry)