Thank you for that detail, I think this will fix it:
game.Players.LocalPlayer.CharacterAdded:wait()
thingy = 1
while true do
thingy = script.Parent:WaitForChild("Waste").Value
if game.Players.LocalPlayer.leaderstats.Hunger.Value == 0 then
game.Players.LocalPlayer.Character.Humanoid.Health = game.Players.LocalPlayer.Character.Humanoid.Health - 1
wait(0.1)
elseif game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
wait()
else
game.Players.LocalPlayer.leaderstats.Hunger.Value = game.Players.LocalPlayer.leaderstats.Hunger.Value - thingy
game.Players.LocalPlayer.Character.Humanoid.JumpPower = game.Players.LocalPlayer.leaderstats.Hunger.Value*0.5
wait(3)
end
end
|