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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 9 |
|
|
| 13 Sep 2011 08:25 PM |
| also I needsomething that can regain hunger points |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2011 08:26 PM |
| no i dont think u should ask for this lol |
|
|
| Report Abuse |
|
|
jaboble
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 9 |
|
|
| 13 Sep 2011 08:40 PM |
| but I can probably make it myself |
|
|
| Report Abuse |
|
|
jaboble
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 9 |
|
| |
|