there's no error it just wasn't doing what it's meant to do.
repeat
wait(1)
for i, player in ipairs(game.Players:GetPlayers()) do
if player.Character then
local hum = player.Character:FindFirstChild('Humanoid')
hum.Health -= 1
end
end
until 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
(hunger script)
script.Parent.MouseClick:Connect(function(g)
if g.Character then
local hum = g.Character:FindFirstChild('Humanoid')
hum.Health += 10
end
script.Parent.Parent:Destroy()
end)
(food script)
neither of these work. if i remove "if __.Character then end" it will error.
i already removed the auto regen.

1 comment
thank you it works now