scoreboard players remove @s invis_timer 1

particle entity_effect{color:[1.000,1.000,1.000,1.00]} ~ ~ ~ 0.5 0.5 0.5 0 1 force @s

execute if score @s invis_timer matches 1 run function pctf:logic/player/potion/invisibility/end