scoreboard issue

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

completeidiot

Member
May 5, 2024
46
1
8
i was making a thing for a friend and found some errors, not sure whats wrong with the code

code:
code_language.skript:
on join:
    if {kills::%player's uuid%} is not set:
        set {kills::%player's uuid%} to 0
    if {deaths::%player's uuid%} is not set:
        set {deaths::%player's uuid%} to 0
    if {gembalance::%player's uuid%} is not set:
        set {gembalance::%player's uuid%} to 0

every 1 second:
    loop all players:
        if loop-player is online:
            clear loop-player's sidebar

            set name of sidebar of loop-player to "<##FB00F8>&l-<##EC00F8>&l=<##DD00F9>&l-<##CF01F9>&l | <##C001FA>&lA<##B101FA>&lt<##A201FA>&lo<##9401FB>&lm<##8501FB>&li<##7602FC>&lc <##6702FC>&lK<##5902FD>&li<##4A02FD>&lt<##3B02FD>&ls<##2C02FE>&l | <##1E03FE>&l-<##0F03FF>&l=<##0003FF>&l->"

            set score "&7&m------------------" in sidebar of loop-player to 10
            set score "&fKills: &d%{kills::%loop-player's uuid%}%" in sidebar of loop-player to 9
            set score "&fDeaths: &d%{deaths::%loop-player's uuid%}%" in sidebar of loop-player to 8
            set score "&fGems: &d%{gembalance::%loop-player's uuid%}%" in sidebar of loop-player to 7
            set score " " in sidebar of loop-player to 6
            set score "&a&lSTORE" in sidebar of loop-player to 5
            set score "&7when you setup tebex change this to the link ._." in sidebar of loop-player to 4
            set score " " in sidebar of loop-player to 3
            set score "&7AtomicKit.minehut.gg" in sidebar of loop-player to 2
            set score "&7&m------------------&r" in sidebar of loop-player to 1

"loop-player is not an nbt compound"
 

Attachments

  • 1752658850001.png
    1752658850001.png
    226.1 KB · Views: 100
  • 1752659008679.png
    1752659008679.png
    274 KB · Views: 89
Last edited: