I im making a game at the moment and i was wondering how to make a hunger bar GUI like Battery percentage and when the player consumes "Food" its goes up when the player does not get food, the hunger bar does not go up. but the "food" does not satisfy the player but the "food" goes up a little bit, sorry if this did not make sense.
if you have any questions please ask me, thank you!
Since you don't have a script I will tell you how you would want to make it. Basically, what you would want to do is have a GUI with a background and a Bar and make a script that moves the bar back using the bar's size continuously until the bar's size is less than or equal to 0, in which the health would lower or they would die. Also you would need a script inside of whatever is clicked and a click detector and it would need to change the bar's size up by a certain amount. I do agree with itsJooJoo though in what he said with this may end up being complicated if you don't have experience.
If I have helped or answered your question please remember to accept the answer, and if not then please message me or comment what I could have done better!