This paper presents a three-dimensional molecular dynamics (MD) model for AFM-based nanomachining, focusing on nanoscale mechanical indentation and scratching processes. The study investigates the correlation between machining parameters and substrate deformation, employing simulations on single-crystal gold substrates while comparing with experimental data. Findings reveal significant variations in material properties at the nanoscale and emphasize the need for accurate computational models to enhance understanding and control of nanomachining processes.