So I know this is probably really easy but I haven't touched a single line of script in a year.
Anyways, I have a script and I was wondering how to execute a command but also close a gui at the same time.
Here's what I tried (which doesn't work).
Anyways, I have a script and I was wondering how to execute a command but also close a gui at the same time.
Here's what I tried (which doesn't work).
Code:
chance of 25%:
play sound "entity.firework_rocket.twinkle" with volume 0.5 to the player
format gui slot 13 of player with shiny glowstone dust named "&e10k tokens" with lore " " and "&7This item can be used to redeem" and "&710k credits." and " " and "&e&lRIGHT CLICK &7to use." and " " and "&e&lMYTHIC" to close then run:
give player shiny glowstone dust named "&e10k tokens" with lore " " and "&7This item can be used to redeem" and "&710k credits." and " " and "&e&lRIGHT CLICK &7to use." and " " and "&e&lMYTHIC"