Hello, I was making Hunger bar. I want to do this When you ate something, your Hunger.Value will + Its a Tool.
local Tool = script.Parent
Tool.Handle.DrinkSound:Play()
local player = Tool.Parent
if game.Players.LocalPlayer[player.Name].currHunger.Value <300 then
game.Players.LocalPlayer[player.Name].currHunger.Value = game.Players.LocalPlayer[player].currHunger.Value +100
if game.Players.LocalPlayer[player.Name].currHunger.Value >300 then
game.Players.LocalPlayer[player.Name].currHunger.Value = 300
end
end
if game.Players.LocalPlayer[player.Name].currHunger.Value >300 then
game.Players.LocalPlayer[player.Name].currHunger.Value = 300
end

1 comment
Can you give the stack it produced?