I want to make that after counting all the players threw for one team. I made the count in another script and the problem is not this. The problem in this -----------------------------------------ServerScriptService.Script:4: attempt to index local 'player' (a nil value)
The script itself
local player = game.Players.LocalPlayer
if game.Workspace.NYGNO.BrickColor == BrickColor.new("Lily white") then player.TeamColor = BrickColor.new("Forest green") end
Where is the script
ServerScriptService
Script

2 comments
A normal script can't get the LocalPlayer, only client-sided scripts can
you would have to get the player from some event, like touched