Auto update scoreboard?

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

Status
Not open for further replies.

iStopcontact

Member
Feb 18, 2017
115
2
18
Hey guys, i'm working on a minigame called "gungame"
Now I have a scoareboard but i have only one problem.
How can i make it update automaticly so when for example a player kills someone it updates automaticly to 1 in the scoreboard.

So it refresh it automaticly every second.

I have this as my code:
code_language.skript:
command /ggscore:
    trigger:
        display board named "&b&lGun&f&lGame" to player
        make score "&6 " in board of player 15
        make score "&aLevel &8»" in board of player 14
        make score "&7%{gungame:level:%player%}%" in board of player 13
        make score "&0 " in board of player 12
        make score "&bKills &8»" in board of player 11
        make score "&7%{gungame:kills:%player%}%" in board of player 10
        make score "&2 " in board of player 9
        make score "&cStreak &8»" in board of player 8
        make score "&7%{gungame:killstreak:%player%}%" in board of player 7
        make score "&6 " in board of player 6
        make score "&eDeaths &8»" in board of player 5
        make score "&7%{gungame:deaths:%player%}%" in board of player 4
        make score "&3 " in board of player 3
        make score "&9Coins &8»" in board of player to 2
        make score "&7%{gungame:coins:%player%}%" in board of player 1
        move display of player to sidebar
 
Add a loop all players And put iT on a kill event iT might be better To run iT as a function
 
Status
Not open for further replies.