HEY EVERYONE!!!!!!!!!!!!!!!!! Rachubal26 here! This is my new and improved healthbar code for one of my upcoming games! (it's really complicated, but I think you'll get the idea. If you don't, ask me in a comment)
Thanks to Will_Wam for the start of the code! I couldn't have done this without you! Update 12/18/19 - V2 - Added color-changing health bar and rounding code for health percent