i tried to make it remove some value from something in a script and then if the value got to 0 the player dies
while true do game.Workspace.HungerValue = game.Workspace.HungerValue.Value - 1 wait(5) end if game.Workspace.HungerValue.Value == 0 then player.health = 0 end