What is wrong with my repel player script?
I reworked the whole script from bottom up and came up with the solution that I needed. With this script, any object that triggers the near sensor will be pushed from the origin of the object with the near sensor. The from bge import render and render.drawLine(shieldLoc, objLoc, [0, 0, 255]) is just there to visually see the script when it triggers.

from bge import render
from bge import logic
from mathutils import Vector

def _getForceMagnitude(distance, max_force, max_range):
    return (distance * (-max_force/max_range)) + max_force

def main():
    cont = logic.getCurrentController()
    own = cont.owner
    scene = logic.getCurrentScene()
    #sensor and sensor location
    trigger = cont.sensors["Near"]
    shieldLoc = own.worldPosition

if trigger.positive:
    #iterate through all objects in range
    obj = trigger.hitObjectList
    for objList in obj:
        #location of each object and vecter
        objLoc = objList.worldPosition
        dist = own.getDistanceTo(objLoc)
        vec = objLoc - shieldLoc
        #applying vecter
        vec.magnitude = _getForceMagnitude(dist, 50, 25)
        objList.applyForce(vec)
        render.drawLine(shieldLoc, objLoc, [0, 0, 255])
main()