I can't find a solution to this but I know I'm not the first person to run into this issue, so sorry if this has already been answered, but how do I teleport a player to another player's coordinates. Sounds confusing, but I'm not trying to teleport a player to another player, but rather their coordinates. Maybe you'll understand if you see my code
Sorry if that was confusing. Heres the skript error
Code:
command /spectate [<player>]:
aliases: /spec, /spectator
trigger:
if arg-1 is set:
set player's gamemode to spectator
set {_player} to "%arg-1%"
broadcast "%{_player}%"
set {_coords} to the location of {_player}
teleport player to {_coords} in world ul_Ocean
Sorry if that was confusing. Heres the skript error