When the player right clicks, do your checks (item check, cooldown check, etc.) then place a Select Players By Name, in the chest put a string with the value of %default and use the NOT arrow on the select block, this will insure that the raycast that we will do next doesn't hit the player, now...