How do you make a Team-Only Health System?

I’m trying to figure out how to create a script that allows one team to have a specific amount of health. For example, if you’re in Team One, you have 100 Health. If you’re in Team Two, you have 200 Health. Do any of you guys know how to do this? Thanks for your help! It’s very appreciated.

2 Likes

Try checking their team color:

game.Players.PlayerAdded:Connect(function(plr))
    if plr.TeamColor=="the team color here" then
        plr.Character.Humanoid.Health = the team health
    elseif plr.TeamColor=="the other team color here" then
        plr.Character.Humanoid.Health = the other team health
    end
end)

Okay, thanks for letting me know! It’s appreciated!

1 Like