player = game.Players.LocalPlayer _G.Rangers_score=0 _G.Moondarkers_score=0 game.StarterGui.ScreenGui["Team score"].TextLabelMOONDARKERS.Text=("Moondarkers:").._G.Moondarkers_score game.StarterGui.ScreenGui["Team score"].TextLabelRANGERS.Text=("Rangers:").._G.Rangers_score while true do wait (0.2) if player.Humanoid.Health <=0 and player.TeamColor==BrickColor.new("Storm blue") then _G.Rangers_score=_G.Rangers_score+1 end game.StarterGui.ScreenGui["Team score"].TextLabelMOONDARKERS.Text=("Moondarkers:").._G.Moondarkers_score game.StarterGui.ScreenGui["Team score"].TextLabelRANGERS.Text=("Rangers:").._G.Rangers_score end print(_G.Rangers_score)
Why not put,
Player Died (Player) if player.TeamColor==BrickColor.new("Storm blue") then _G.Rangers_score=_G.Rangers_score+1 else if Player.TeamColor== BrickColor.new("THE OTHER TEAMCOLOR HERE") then _G.OTHER TEAM HERE_score = _G.OTHER TEAM HERE_score
Hopefully you know this isn't the full one. You'll have to script it yourself but I told you how to script it.
player = game.Players.LocalPlayer _G.Rangers_score=0 _G.Moondarkers_score=0 game.StarterGui.ScreenGui["Team score"].TextLabelMOONDARKERS.Text=("Moondarkers:").._G.Moondarkers_score game.StarterGui.ScreenGui["Team score"].TextLabelRANGERS.Text=("Rangers:").._G.Rangers_score while true do wait (0.2) if player.Humanoid.Health <=0 and player.TeamColor==BrickColor.new("Storm blue") then _G.Rangers_score=_G.Rangers_score+1 end game.StarterGui.ScreenGui["Team score"].TextLabelMOONDARKERS.Text=("Moondarkers:").._G.Moondarkers_score game.StarterGui.ScreenGui["Team score"].TextLabelRANGERS.Text=("Rangers:").._G.Rangers_score end print(_G.Rangers_score)