getAutoAttachList().add("Tutorial-i386.exe") previousValue = 0 currentValue = 0 function readValue() io.open( "ValueOutput.txt", "w+" ) io.output( "ValueOutput.txt" ) currentValue = readFloat(0xA289113C) if previousValue ~= currentValue then previousValue = currentValue io.write(tostring(previousValue)) elseif tonumber(currentValue) <= 0 then previousValue = currentValue io.write("Player has died.") sleep(15000) end io.close() end readValue()