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:
local BlueTeamPlayers = game.Teams.Blue:GetPlayers()
if BlueWins == true then
status.Value = "The Winner is the Blue Team!"
BlueTeamPlayers.leaderstats.Money.Value = BlueTeamPlayers.leaderstats.Money.Value + 10
wait(8)
end
