Help with this uniform script?
Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
My goal is so that when the player respawns they are uniformed. Unfortunately, that isn't working..
04 | for i, v in pairs (game.Teams:GetChildren()) do |
05 | if v:findFirstChild( "home" ) then |
13 | for i, v in pairs (game.Teams:GetChildren()) do |
14 | if v:findFirstChild( "away" ) then |
24 | game.Players.PlayerAdded:connect( function (player) |
25 | player.CharacterAdded:connect( function (character) |
26 | local a = player.TeamColor |
27 | if a = = home.TeamColor then |
28 | character.Shirt:remove() |
29 | character.Pants:remove() |
30 | local shirt = home.Home.Shirt:Clone() |
31 | local pants = home.Home.Pants:Clone() -Set the pants to be added |
32 | shirt.Parent = character |
33 | pants.Parent = character |
34 | elseif a = = away.TeamColor then |
35 | character.Shirt:remove() |
36 | character.Pants:remove() |
37 | local shirt = away.Away.Shirt:Clone() |
38 | local pants = away.Away.Pants:Clone() |
39 | shirt.Parent = character |
40 | pants.Parent = character |