the only thing i see, that is wrong ( might have worked in the past…) is setParent = target
try the old code and replace that with setParent(target)
Because setParent() is a function, it needs to have the argument, in your case “target”.
you need get - vector to object -
vect = own.getVectTo(object_orient)
own.getAxisVect(-vect[1], 1, 1.0) # own its sprite, vect - position vector, getAxisVect orientation object another object or position
or you use billboard or halo surface orientation in material setup this rotation surface sprite in active camera in you game scene