effect give @s[tag=InvisSpell2,tag=K,tag=!InvisReset,level=5..] minecraft:invisibility 60 0
effect give @s[tag=InvisSpell2,tag=K,tag=!InvisReset,tag=InvisUpgrade2,level=5..] minecraft:invisibility 120 0
tellraw @s[tag=InvisSpell2,tag=!InvisReset,level=5..] ["",{"text":"Invisibility has been activated!","color":"green"}]
tellraw @s[tag=InvisSpell2,tag=InvisReset,level=0..4] ["",{"text":"You do not have the required xp to cast this.","color":"yellow"}]
xp add @s[tag=InvisSpell2,level=5..] -55 points

scoreboard players set @s KyuSpells 0



execute if entity @e[type=marker,distance=..40,tag=KyuBigPyramid] run tellraw @s[tag=InvisSpell2] ["",{"text":"P.S. - Invisibility doesn't help you against the plethora of traps that await you in here.","color":"gold"}]