Script attached to mesh affects all meshes?

I applied a script to a mesh that allows me to click on the mesh and deform the vertices. It works, but even though it is applied to only one mesh, the deformation is possible on any other mesh in the scene - including the terrain. How do I make the script only apply to the mesh that it is attached to?

Thank you!

-Whystler

put this in your update and then use the var “mesh”.

var mesh : Mesh = GetComponent(MeshFilter).mesh;

This gets the mesh of the gameObject its attached to.