Loop player not working

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

es63

Member
Oct 22, 2020
2
0
1
35
Code:
every 2 seconds:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "&8»&cRascalPVP&8«"
        set score "&8" in sidebar of loop-player to 11
        set score "&c&lStats &8» &c%loop-player%" in sidebar of loop-player to 10
        set score " &8» &7&lRank: %colored loop-player's prefix%" in sidebar of loop-player to 9
        set score " &8» &7&lHealth: &c%player's health%" in sidebar of loop-player to 8 # this part is what isnt working, it says there isnt any loop to match the loop player.
        set score " &8» &7&lKills: &c%{kills.%loop-player%.show}%" in sidebar of loop-player to 7
        set score " &8» &7&lDeaths: &c%{deaths.%loop-player%.show}%" in sidebar of loop-player to 6
        set score "&c&lServer"  in sidebar of loop-player to 4
        set score " &8» &7&lOnline: &8» &c%number of all players% / 16" in sidebar of loop-player to 3
        set score " &6 " in sidebar of loop-player to 1



on death:
    add 1 to {kills.%attacker%}
    add 1 to {deaths.%victim%}


every 1 second:
    loop all players:
        if {kills.%loop-player%} is not set:
            set {kills.%loop-player%.show} to "0"
        else:
            if {kills.%loop-player%} is set:
                set {kills.%loop-player%.show} to "%{kills.%loop-player%}%"
        if {deaths.%loop-player%} is not set:
            set {deaths.%loop-player%.show} to "0"
        else:
            if {deaths.%loop-player%} is set:
                set {deaths.%loop-player%.show} to "%{deaths.%loop-player%}%"
help. code that's not working is stated in the code on the top code
 
I've had this problem with skRayFall's scoreboards. If your problem is, that one scoreboard is showing to all the players, or that every player sees a wrong scoreboard, I recommend switching over to Skore, a Skript addon. I found that working better
 
Status
Not open for further replies.