Hi, I'm looking to make a spawn teleportation cancel, but I can't seem to figure out how. Please help me if u can!
trigger:
set {spawn::%player%} to 4
send title "&f☁ <##6AB6FB>&lꜱᴘᴀᴡɴ &f☁" with subtitle "&fᴛᴇʟᴇᴘᴏʀᴛɪɴɢ ᴛᴏ ꜱᴘᴀᴡɴ ɪɴ <##6AB6FB>&n5 ꜱᴇᴄᴏɴᴅꜱ." to player
play sound "ui.button.click" with volume 0.5 with pitch 0.75 to player
while {spawn::%player%} is not 0:
wait a second
send title "&f☁ <##6AB6FB>&lꜱᴘᴀᴡɴ &f☁" with subtitle "&fᴛᴇʟᴇᴘᴏʀᴛɪɴɢ ᴛᴏ ꜱᴘᴀᴡɴ ɪɴ <##6AB6FB>&n%{spawn::%player%}% ꜱᴇᴄᴏɴᴅꜱ." to player
remove 1 from {spawn::%player%}
play sound "ui.button.click" with volume 0.5 with pitch 0.75 to player
{spawn::%player%} is 0
wait 1 second
teleport player to {spawn}
delete {spawn::%player%}
send title "&f☁ <##6AB6FB>&lꜱᴘᴀᴡɴ &f☁" with subtitle "&fʏᴏᴜ ʜᴀᴠᴇ ꜱᴜᴄᴄᴇꜱꜱꜰᴜʟʟʏ ᴛᴇʟᴇᴘᴏʀᴛᴇᴅ ᴛᴏ <##6AB6FB>&nꜱᴘᴀᴡɴ." to player for 0.50 seconds
play sound "entity.enderman.teleport" with volume 0.7 with pitch 0.75 to player
on quit:
delete {spawn::%player%}```