Is there some form of On End Overlap for a SphereTrace

I am working on a script that fires a function when the sphere trace hits it, but I can’t figure out how to make it fire a different function when the spheretrace is no longer hitting it.