Coudn't seem to find out what was wrong with this one. The only error it gives me is " Attempt to connect failed: Passed value is not a function", but im not sure that error refers to this script. Would anyone happen to know just how to fix this script? Thanks! ;)
local RedTeamDeaths = game.Workspace.Config.RedDeaths
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
local Humanoid = Character:WaitForChild("Humanoid")
Humanoid.Died:connect(function(Died)
if Player.TeamColor == BrickColor.Red() then
RedTeamDeaths.Value = RedTeamDeaths.Value + 1
end
end)
end)
end)

1 comment
Brush up on your BrickColor. http://wiki.roblox.com/index.php?title=BrickColor#Quick_Reference