My script gives points to the bright red team, however it only gives to one player on that team :(. What did I do wrong?
Here is my script:
game.Workspace.ChildAdded:connect(function(child) if child.Name == "HostageFree" then script.Sound:Play() for _,player in pairs(game.Players:GetPlayers()) do if player.TeamColor == BrickColor.Red() then local leaderstats = player.leaderstats local points = leaderstats:findFirstChild("Credits") points.Value = points.Value +200 wait(7) local pl = game.Players:GetChildren() for i=1,#pl do pl[i].Character.Humanoid.Health = 0 game.Workspace.HostageFree:Remove() end end end end end)