Gui Scripting Help map

I am trying to create a map to track players in game into a gui.

here is the script, this is for your character
Script
Any ways, it wont work till I I reset my character. it will show where I reset my character at.

But I trying to make it disappear when they respawn.

any way to fix this.

I working the same way for different objects.

also I am not very good at advanced scripting.