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

How do I make a hunger and thirst G.U.I? [closed]

Asked by
Ryfry221 -12
7 years ago

I want to make it so people have to find food and water to survive how would i do that?

Closed as Not Constructive by User#5423 and shayner32

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 7 years ago

Scripting helpers is a website where people help others fix their scripts, not so guide them to make ones from scratch.

But i'll help you a bit.

Of course, i'm going to be vague and not give you any scripts, but i'll tell you what to do.

Look up tutorials for custom health bar GUIs. essentially, make a health bar that doesn't show your health, but rather shows your hunger.

The hunger bar should display an the value of an int value that represents your hunger.

Make a local script under that int value that reduces it over time.

*Hint, use the wait command and then subract the int value's value by what ever you want. Loop this

Finnaly, make models of food and water. Put a script in them that increases the player's int value whenever a players touches it

0
Thanks so much it helped a lot!!! The tutorials show me how to make it but don't tell me how to make it minus it every 5 seconds or so. I searched how to do it but couldn't find anything! Any ideas? Ryfry221 -12 — 7y
0
sorry i didn't realize you answered this already! Ryfry221 -12 — 7y
Ad