why are you doing this:
set {_x} to x-coordinate of player
set {_y} to y-coordinate of player
set {_z} to z-coordinate of player
set {_world} to world of player
set {_yaw} to yaw of player
set {_pitch} to pitch of player
set {spawn::} to location({_x}, {_y}, {_z}, {_world}, {_yaw}, {pitch})
when you could literally do
set {spawn} to location of player ?
Also
set {spawn::} to location...
what is {spawn::} ??