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)
COMMUNITY QUESTION
How do you make it so when a player on a team dies the total score of the other team goes up?
2 answers
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)
3 comments
0
this isn't a threaded forum post, edit your original question instead of trying to answer it.
0
I forgot I could edit.
0
@weirdraidercs35 Then edit your question and remove this answer..
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
It doesn't work
Put the code in a code block so that people can read it.
i put it in a code block now