What I mean is, in the problematic area indicated below, where I should be able to make the script half as long I couldn't. I tried inpairs, strings, variables, and some other unmemorable attempts.. I just know too little about what I am doing to fix the problem.
wait()
player = game.Players.LocalPlayer
hum = player.Character.Humanoid
local n = {"Player1", "pmcdonough"}
hum.HealthChanged:connect(function()
if hum.Parent.Name == "Player1" then--HERE lies the issues I am having. "Name == Player1 **or** pmcdonough" is the effect I would like.
if hum.Health < 100 then
repeat
hum.Health = hum.Health + .01
wait()
until hum.Health == 100
-- Doubling bit. Reason I need help compressing.
elseif hum.Parent.Name == "pmcdonough" then
if hum.Health < 100 then
repeat
hum.Health = hum.Health + .01
wait()
until hum.Health == 100
end
end
end
end)

2 comments
You would have to complete the condition. You need to compare the humanoid parent's name to both Player1 and pmcdonough. So your if then would have to be: if hum.Parent.Name == "Player1" or hum.Parent.Name == "pmcdonough" then. Otherwise you're just identifying if that string value exists, which of course it does you made it.
Thank you, that was the missing info. Due to previous attempts I thought or wouldn't work in that way.