Location data using `@p` seems to be lost...

get.id FN:

execute as @a run tellraw @p ["",{"score":{"name":"@s","objective":"playerid"},"color":"yellow"},{"text":" "},{"selector":"@s","color":"green"}]

This simply displays the name and id of all players online. Example: 6846 Steve Players get this by running a trigger command... TICK FN:

#! Detects when '/trigger get.id' is run
scoreboard players enable @a get.id
execute as @a if score @s get.id matches 1.. run function name:get.id

When running the get.id function, it works as intended. The @p makes sure the tellraw displays at the player who ran the function because execute as isn't location specific. But when running the trigger command, /trigger get.id it does not display anything. The location of the player who ran the command seems to be lost somewhere. Whats going wrong here? INFO: [1.20.6]

Continue to help post