Solved Able to still open gui

  • 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 community!

    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.

Marc

Active Member
Nov 27, 2020
94
0
8
Whaddup my n-words, I tried skripting this particle system and when {%player%.togglep} is false it still allows you to open the gui

skript:

Code:
command /cosmetics:
    trigger:
        wait 2 ticks
        open chest with 1 row named "particles" to player
        format slot 0 of player with cobweb named "&f&lSmall Cloud" to close then run [make player execute command "/cosp1"]
        format slot 1 of player with white stained glass pane  named " " to be unstealable
        format slot 2 of player with white stained glass pane  named " " to be unstealable
        format slot 3 of player with white stained glass pane  named " " to be unstealable
        format slot 4 of player with redstone named "&c&lWings" to run [make player execute command "/cosp2m"]
        format slot 5 of player with white stained glass pane  named " " to be unstealable
        format slot 6 of player with white stained glass pane  named " " to be unstealable
        format slot 7 of player with white stained glass pane  named " " to be unstealable
        format slot 8 of player with hopper named "&8&lSettings" to run [make player execute command "/settings2"]

command /cosp1:
    permission: dot.part
    trigger:
        drawDot count 1, particle "cloud", RGB 0, 0, 0, center player, rainbowMode true, visibleRange 32, pulseDelay 0, keepFor 200 ticks  

command /cosp2m:
    trigger:
        if {%player%.togglep} is false:
            send message "&cYou dont have particles toggled, please go to ""&8&lSettings"" to toggle them" to player
            stop
        else:
            wait 2 ticks
            open chest with 3 rows named "&6Color &8picker for &c'Wings'" to player
            format slot 3 of player with book and quill named "&cRed" to close then run [make player execute command "/cosp2 red"]
            format slot 5 of player with book and quill named "&bBlue" to close then run [make player execute command "/cosp2 blue"]
            format slot 21 of player with book and quill named "&aGreen" to close then run [make player execute command "/cosp2 green"]
            format slot 23 of player with book and quill named "&eYellow" to close then run [make player execute command "/cosp2 yellow"]

thanks in advance <3
[doublepost=1608635629,1608565596][/doublepost]Nvm I was being a fat turd and I put set {%player%.togglep} to "false", but instead it shouldve been just false
 
Status
Not open for further replies.