Making a light trace an object or text?

Just for info purposes, I know how to get the motion guid, just don’t know how to make the light!