i was making a thing for a friend and found some errors, not sure whats wrong with the code
code:
"loop-player is not an nbt compound"
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><<##A201FA>&lo<##9401FB>&lm<##8501FB>&li<##7602FC>&lc <##6702FC>&lK<##5902FD>&li<##4A02FD><<##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
Last edited: