|
| 26 Apr 2014 11:42 PM |
So basically, it's supposed to switch you to the white team when you die if your on green or red. Help me fix it please!
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Char) Char.Humanoid.Died:connect(function() if Player.TeamColor == BrickColor.new("Bright red") then Player.TeamColor = BrickColor.new("White") if Player.TeamColor == BrickColor.new("Medium green") then Player.TeamColor = BrickColor.new("White") end end end) end) end)
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 Apr 2014 02:18 AM |
Game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) Connection = Character.Humanoid.Died:connect(function() Player.TeamColor = BrickColor.new("White") Connection:disconnect() end) end) end) |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2014 03:07 AM |
| I only want this script to affect the red team players, not everyone. |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 27 Apr 2014 03:08 AM |
Game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) Connection = Character.Humanoid.Died:connect(function() if Player.TeamColor = BrickColor.new("Bright red") then Player.TeamColor = BrickColor.new("White") Connection:disconnect() end end) end) end) |
|
|
| Report Abuse |
|
|
| |
|