Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do i make a "Hunger bar" in roblox studio which goes down when it is hungry ?

Asked by 8 years ago

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!

0
This would be a very complicated script and we'd rather you try first learning about some advanced GUI elements and attempt a script on that before asking us itsJooJoo 195 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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!

Ad

Answer this question