Datapack works on single player, but not multiplayer

Not sure why this is, but it works 100% on single player and every now and then, 1 person can use abilities on multiplayer. I will provide the tick function and playerloop function, and can do more if needed. Please look through this and see if I made any mistakes, or if there are none and you want more code. Thank you.

scoreboard players add @a orbcooldownR 1
scoreboard players add @a orbcooldownL 1


scoreboard players add @a second 1




execute as @a at @s run function orb:playerloop```
Continue to help post