scoreboard players add @s coins 1
playsound minecraft:entity.experience_orb.pickup player @s ~ ~ ~ 0.1 2
particle minecraft:wax_on ~ ~0.1 ~ 0 0 0 10 1 normal @s
scoreboard players remove @s coins_to_add 1