Hi Sama,
That sounds like a complicated thing to do with Blender’s (old) Particle System; you might need to set up a Particle System for each time a foot hits the sand…
You’d probably have a better chance, using GN (Simulation Nodes).
But anyway, be aware that it is not beginner stuff you’re trying to do here.