I wanted to make when Player is died will be run next code after
v.Character.Humanoid.Died:connect(function()
Can you help? This is won't work.
local PlayersInTeam = game.Teams.Playing:WaitForChild("PlayersInTeam")
for i,v in pairs(game.Teams.Playing:GetPlayers()) do
v.Character.Humanoid.Died:connect(function()
PlayersInTeam.Value = PlayersInTeam.Value - 1
end)
end

1 comment
Thanks you!