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

My HungerGUI won't deplete with this LocalScript?

Asked by 7 years ago
Edited 7 years ago
01local hungerGui = script.Parent
02local player = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
03maxHunger = Instance.new("IntValue")
04maxHunger.Name = "maxHunger"
05maxHunger.Value = 300
06maxHunger.Parent = game.Players.LocalPlayer
07currHunger = Instance.new("IntValue")
08currHunger.Name = "currHunger"
09currHunger.Value = 300
10currHunger.Parent = game.Players.LocalPlayer
11minHunger = Instance.new("IntValue")
12minHunger.Name = "minHunger"
13minHunger.Value = 0
14minHunger.Parent = game.Players.LocalPlayer
15 
View all 28 lines...
0
click on code block "the lua logo" above your qestion. it will print a bunch of "~~~~~~~~" put your code in between wookey12 174 — 7y

1 answer

Log in to vote
0
Answered by
H4X0MSYT 536 Moderation Voter
7 years ago

We cant answer this, don't bother posting unless you can say 'The hunger bar will not deplete' or 'I get an error when trying to modify hunger' The big issue i can see, is it's a LOCAL SCRIPT. If you dont use a server script too, and turn fe on, your gonna have big exploiters.

0
Thanks for the advice! basicecstasy 122 — 7y
Ad

Answer this question