I have a script that is supposed to add one win and 100 coins to the winner after the round is over. I know that the part of the script that checks to see if there is less than two players in the team "Players" works, but the output console keeps showing the error "plrs1 is not a valid member of Players". If anyone can point me in the right direction that would be great! Here's my script:
local plrs1 = game.Teams.Playing:GetPlayers()
if #plrs1 < 2 then
t = 1
local wins = game.Players.plrs1.leaderstats.wins
wins.Value = wins.Value + 1
local coins = game.Players.plrs1.leaderstats.coins
coins.Value = coins.Value + 100
end
