Tick function triggers every tick but doesnt include all commands

when it triggers by itself it doesnt do the execute as @s[scores={shift=1..}] run function template:shiftcheck but it does to say hi and if i trigger the function with /function it works fine

Continue to help post