How can I fix my player so they don't fall off the map when respawning?

You need to set the correct vector for the player spawn.