In other words, I need to have a "for" loop and inside that loop be able to select a specific part of the table, i.e. "table[1]"
Here's an example of code that would cause an error but would be what I want:
local players = game.Players:GetChildren()
for _, players in ipairs(players) do
if players.Character.Humanoid.Health < 100 then
players[1].Character.Humanoid.Health = 100
end
end
The output would read: ":5: 1 is not a valid member of Player
Is there a way to have a "for" loop and be able to specify a part of a table inside of a "for" loop?

4 comments
This kind of works, but when you use the line that has "Players[1]", it shows every player in game.Players, when I just want it to show every player that has their health below 100. In other words, using "Players[1]" would show the very first player in the game, but I want the script to show the very first player to have their health under 100; it may or may not be the actual first player in the s
In the edit it's far more complicated than it needs to.
Dragon, read what he said. He makes NO mention of wanting to heal the player, rather that he wants to find a particular player who has LESS THAN 100 health. Do learn to read his comment good sir.
I edited my script. I just deleted one line. Happy?