This is really easy but...

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
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).

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"
 
Status
Not open for further replies.