As part of a pvp game I'm working on, I need to set the team scores to 0 at the end of the game. Said game ends when one team gets 50 kills. I can easily set that teams score back to 0 by subtracting 50 kills from them, but I can't just subtract 50 from the other 3 teams, they would be left at negative something or other. Is there a way that I could in theory set a minimum amount of kills? I'm using fake players (RedTeam, BlueTeam, etc.) to track kills per team. If there are any details I missed that are necessary, tell me.
EDIT: I just fixed my own problem. I made a clock making sure that the teams kills were between 0 and 50, and if they weren't, their score was set to 0.
As part of a pvp game I'm working on, I need to set the team scores to 0 at the end of the game. Said game ends when one team gets 50 kills. I can easily set that teams score back to 0 by subtracting 50 kills from them, but I can't just subtract 50 from the other 3 teams, they would be left at negative something or other. Is there a way that I could in theory set a minimum amount of kills? I'm using fake players (RedTeam, BlueTeam, etc.) to track kills per team. If there are any details I missed that are necessary, tell me.
EDIT: I just fixed my own problem. I made a clock making sure that the teams kills were between 0 and 50, and if they weren't, their score was set to 0.
My Youtube: https://www.youtube.com/channel/UCmX3F8hcNfrJUHGDAdeHKvg