function healthStart(player)

if player:GetRankInGroup(group) == 255 then humanoid.MaxHealth = 1000 humanoid.Health = 800

elseif player:GetRankInGroup(group) == 10 then humanoid.MaxHealth = 500 humanoid.Health = 500

elseif player.GetRankInGroup(group) <= 5 then humanoid.MaxHealth = 1 humanoid.Health = 0

end

local group = 3286803 local humanoid = player:findFirstChild("Humanoid")

game.Players.ChildAdded:connect(healthStart)