I have not tested it, But I would like to have an Expert Say it should or should not work, and Then I will test it.
FindObject = game.Players:GetChildren() while true do return end for i,v in pairs(time and FindObject.Name == "amegaman") do v.Character.Humanoid.MaxHealth = "inf" and v.Character.Humanoid.Health == "inf" end
well this will just find all the players in the game and change there name to amegaman and set there health and maxhealth to inf if that is what you are trying to do it would work but if you are trying to turn your own health and maxhealth to inf it wont work and why is the time there?
~~~~~~~~~~~~~~~~~ for i,v in pairs (FindObject) do if FindObject.Name=="amegaman"then v .Character.Humanoid.MaxHealth = "inf" and v.Character.Humanoid.Health == "inf" end end ~~~~~~~~~~~~~~~~~