Your thanking him without testing it I see.
That's my code I'm using and it works for "years"
It's compatible with missions when switchPlayer/switchModel used. But prepare to chaos after teleporting: it'll be funny
I recommend to set god mode to yourself or at least go prone.