Health bar help

I was wondering if anyone could tell me how to make like a health bar that scales based on something like _global.hppercent and not something like _global.hp (because it would probably go over 100). If you need me to try and say it more clear the I’ll try. Thanks =D