of     1   

gum444
#182975289Thursday, February 04, 2016 5:32 AM GMT

I have a script that heals a player to 100 health. But lets say I want it to heal the player to his/her max health? Like if the players max health was 500, but because the brick only heals to 100, it will only heal that player to 100, not 500. How do I make it maxHealth? I think I need it to find the value of the players - humanoid - maxHealth value and set the health to that, but I don't know how to do that. Any help please?
gum444
#182975311Thursday, February 04, 2016 5:33 AM GMT

I also tried this local p = player.Parent:findFirstChild("Humanoid") p.Health = MaxHealth. but that just kills me for some reason :/
gum444
#182975339Thursday, February 04, 2016 5:34 AM GMT

oops remove that period I put on that script that's not really in there
gum444
#182975364Thursday, February 04, 2016 5:34 AM GMT

OMGGGGGG heres what it REALLY looks like... local p = player.Parent:findFirstChild("Humanoid") p.Health = "MaxHealth" SO MANY MISTAKES
gum444
#182976731Thursday, February 04, 2016 6:10 AM GMT

bump
Locard
#182976862Thursday, February 04, 2016 6:15 AM GMT

p.Health only takes number values, not strings. What you're looking for is this: p.Health = p.MaxHealth
gum444
#182989982Thursday, February 04, 2016 5:39 PM GMT

Thank you!

    of     1