generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I'm trying to make a hunger gui

Previous Thread :: Next Thread 
jaboble is not online. jaboble
Joined: 24 Nov 2010
Total Posts: 9
11 Sep 2011 04:53 PM
I am trying to make a hunger gui that can be regeined and slowly decreases
can anyone help
Report Abuse
Bob123456789103570 is not online. Bob123456789103570
Joined: 23 Dec 2008
Total Posts: 9531
11 Sep 2011 05:01 PM
Don't ask for scripts; this forum is for fixing them!

Try using a NumberValue.
Use:

if script.Parent.Value.Value <= 0 then

& change sizes using "elseif"
Daviidi has a few uncopylocked Survival games, check them out.


~Join Scriptspeak, my new group -- a whole new scripting community!
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
11 Sep 2011 05:10 PM
heres a very basic version of what your looking for. hopefully this will help you out and maybe you will learn of it it.

put this in a local script. put the local script inside a TextLabel. put A NumberValue named Hunger into the text label.

while wait(1) do
script.Parent.Hunger.Value = script.Parent.Hunger.Value - 1
script.Parent.Text = script.Parent.Hunger.Value.."/100"
if Hunger == 0 then
game.Players.LocalPlayer.Character.Health = game.Players.LocalPlayer.Character.Health - 2
end
end
Report Abuse
jaboble is not online. jaboble
Joined: 24 Nov 2010
Total Posts: 9
13 Sep 2011 08:23 PM
all I need now is a script that can kill you when the value is 0 can anyone help
Report Abuse
jaboble is not online. jaboble
Joined: 24 Nov 2010
Total Posts: 9
13 Sep 2011 08:25 PM
also I needsomething that can regain hunger points
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
13 Sep 2011 08:26 PM
no i dont think u should ask for this lol
Report Abuse
jaboble is not online. jaboble
Joined: 24 Nov 2010
Total Posts: 9
13 Sep 2011 08:40 PM
but I can probably make it myself
Report Abuse
jaboble is not online. jaboble
Joined: 24 Nov 2010
Total Posts: 9
13 Sep 2011 08:40 PM
except the kill part
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image