How can i give points to every player in a certain team?
All im trying to do is give points to the every player in the winning team. I thought it should be simple, but i guess not. Below, i used the blue team as an example in my script. I believe the script is not working because the players in a team would act as a table, but im not quite sure. Would anyone happen to know how i could fix this to get it working properly? Thanks! ;)
Script:
1 | local BlueTeamPlayers = game.Teams.Blue:GetPlayers() |
3 | if BlueWins = = true then |
4 | status.Value = "The Winner is the Blue Team!" |
5 | BlueTeamPlayers.leaderstats.Money.Value = BlueTeamPlayers.leaderstats.Money.Value + 10 |