What's wrong with this script?
No errors in the dev tool.
When I team myself to the awayteam, my name doesn't show up on the textlabel t1.
The text is not there at all, so it is not an issue with updating my playergui.
Help?
01 | local bench = game.StarterGui.InfoGui.Frame.ABenchP |
05 | for i, v in pairs (game.Teams:GetChildren()) do |
06 | if v:findFirstChild( "home" ) then |
14 | for i, v in pairs (game.Teams:GetChildren()) do |
15 | if v:findFirstChild( "away" ) then |
31 | local p = game.Players:GetChildren() |
33 | if p [ i ] .TeamColor = = hometeam.TeamColor then |
34 | table.insert(home,p.Name) |
35 | elseif p [ i ] .TeamColor = = awayteam.TeamColor then |
36 | table.insert(away,p.Name) |
43 | local find = bench:FindFirstChild( "t" ..i) |