execute unless score @s pay matches 5.. run return run function ws:store/banktocash/fail
scoreboard players remove @s pay 5
give @s minecraft:emerald[minecraft:custom_model_data=1002,minecraft:custom_data={5:1},minecraft:custom_name='{"italic":false,"text":"5$"}']
execute at @s run playsound minecraft:entity.arrow.hit_player player @s ~ ~ ~