1. I'm trying to get my pets unit frame to display my pets current target on the pet unit frame in pitbull4. Currently i have

       if (event == "PLAYER_TARGET_CHANGED")
       then return Name("target")
       end
    

    The problem i'm having is that it isn't updating each time I change targets. Any ideas?

    You'd be better off talking to someone who deals with Pitbull specifically. That isn't really WoW API code, it looks like LuaTexts to me, which is another beast entirely. That being said, you can't respond to the event if you haven't registered it, and I don't see that being done here.