Random Trial Spawner Spawning

Could someone take a look at these functions and tell me why it isn't working:

Version: 1.21.4

Concept: I want for a random player to be selected and a trial spawner to be placed just above their head. Then 15 minutes later select another random player and repeat.

This is level 1's timing. Timing gets shorter with increase of level. As well as each levels effects are additive to the levels below it.

It would be triggered by a staff member running the warp_up and warp_down functions. These functions ultimately cause a warp_check that compares the scoreboard score and tells it which warp level function to run. Admittedly, levels 2 & 3 might be completely off because I've stopped updating them until I could get level 1 to work correctly.

What it's doing: I've tried to place the @r in a variety of places and it either doesn't work at all or as in this current arrangement of the code, it only selects the person who runs the warp_up function.

Everything is working up to lvl1spawns function. It gets triggered and scheduled correctly, but it's not selecting a random player and spawning in the trial spawner other that first that it choses who ever ran the command which won't work come event time cause staff will be excluded from the selection pool.

I also know that there is an issue with the chicken jockies spawning for the spawner. I intend to look into this my self, but if the problem jumps out at you I would appreciate the nudge in the right direction.

Thank you in advance for your time looking at this. I am headed to bed and I will check back in the morning to answer questions and look at feedback.

Continue to help post