Solved Clicker Not Working (Variables)

  • 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.

ThatPerson

Member
Aug 27, 2019
4
0
0
25
when I do /bal even after clicking with the button it shows <none> anyone know? Skript:

Code:
options:
    money: 0
    price: 10
command /start:
    trigger:
        if {start.%player%} is not set:
            send "&b---Start---"
            give 1 oak button named "&b&lClicker Button" to player
            set {start.%player%} to true
            stop
        send "&4&lYou Have Started Already!"
command /restartpl <player>:
    permission: clicker.admin
    trigger:
        delete {start.%argument%}
        send "&4&lRestarted %argument% &4&lthey can now use /start again" to player
on right click with oak button:
    uncolored name of tool is "Clicker Button":
        cancel event
        send "&b Click " to player
        add {cpc.%player%} to {money.%player%}
on left click with oak button:
    uncolored name of tool is "Clicker Button":
        cancel event
        send "&b Shop Opened " to player
        make console execute command "/execute at %player% run playsound minecraft:block.note_block.pling ambient %player% ~ ~ ~ 100 1"
      
        open chest with 1 row named "&cShop" to player
        wait 1 tick
        format slot 0 of player with red glass named "&4&lClose" to close
command /addcps:
    trigger:
        if {money.%player%} is more than or equal to {price.%player%}:
            send "&b&lUpgraded!" to player
            add 1 to {cpc.%player%}
            remove {price.%player%} from {money.%player%}
            add 10 to {price.%player%}
            stop
        send "Not Enough Money!"
command /bal:
    trigger:
        send "%{money.player}%" to player
[doublepost=1566899150,1566898527][/doublepost]Got Help from discord :emoji_grinning:
 
Status
Not open for further replies.