1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

This is really easy but...

Discussion in 'Skript' started by TheCringleYT, Sep 7, 2021.

Thread Status:
Not open for further replies.
  1. TheCringleYT

    TheCringleYT Active Member

    Joined:
    Sep 29, 2019
    Messages:
    191
    Likes Received:
    4
    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 (Text):
    1. chance of 25%:
    2.             play sound "entity.firework_rocket.twinkle" with volume 0.5 to the player
    3.             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:
    4.                 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"
     
  2. ShyDoge

    ShyDoge Member

    Joined:
    Jul 31, 2021
    Messages:
    41
    Likes Received:
    1
    Why do you need to do it at the same time just do it separately...
     
  3. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    422
    Likes Received:
    30
    Code (Text):
    1. ... to run:
    2.     close player's inventory
    3.     # do stuff
     
    • Agree Agree x 1
  4. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    And I recommend not using TusKe.
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...