function pctf:cosmetics/death_messages/page/return
execute unless entity @s[tag=c_dm_kek] unless score @s credits matches 50.. run return run tellraw @s {"text":"You don't have enough Credits!","color":"red"}

execute if entity @s[tag=c_dm_kek] run scoreboard players set @s dm_num 6
function pctf:cosmetics/death_messages/page/return
execute if entity @s[tag=c_dm_kek] run return run tellraw @s {"text":"You selected kek!","color":"aqua"}

scoreboard players remove @s credits 50
tag @s add c_dm_kek
function pctf:cosmetics/death_messages/page/return
tellraw @s {"text":"You purchased kek!","color":"green"}
playsound minecraft:entity.player.levelup player @s ~ ~ ~ 1 1.25
function pctf:music/jingle/play
particle minecraft:happy_villager ~ ~ ~ 2 2 2 0 250 force @s