It being zero makes sense if your code is using global_position
it will take into account the parent’s position. That’s why it was sending you to zero when using position
. Can you paste your full script again? something should’ve changed.
I see you’ve made a new thread here: Player teleports to wrong spot after death
Make sure to mark the solution for this thread; this post specifically