Hey Arachia,
you can rez prims using the llRezObject function.
Put a prim in your main (moving) prims inventory, give it a name (eg. "trail"), and then after each move of your main prim, add
llRezObject("trail", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 0);
That should do the job.
Greetings, Galen