Scoreboard Kills

  • 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.
Try this:
Code:
every 5 seconds:
    loop all players:
        if {Kills::%loop-player%} is not set:
            set {Kills::%loop-player%} to 0
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "&9&lSERVER"
        set score "&8&m--------------------" in sidebar of loop-player to 3
        set score "&b➸ &fKills: &7%{Kills::%loop-player%}%" in sidebar of loop-player to 2
        set score "&7&8&m--------------------" in sidebar of loop-player to 1
        
        
        
command /Refresh:
    trigger:
        if {Kills::%player%} is not set:
            set {Kills::%player%} to 0
        wipe player's sidebar
        set name of sidebar of player to "&9&lSERVER"
        set score "&8&m--------------------" in sidebar of player to 3
        set score "&b➸ &fKills: &7%{Kills::%player%}%" in sidebar of player to 2
        set score "&7&8&m--------------------" in sidebar of player to 1
    

on death:
    if victim is a player:
        if attacker is a player:
            add 1 to {Kills::%attacker%}
 
Status
Not open for further replies.