Umbaska simple scoreboards

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

Typh

Member
Jan 27, 2017
14
2
0
24
code_language.skript:
# ----------------------------------------------------
# An introduction to skRayFall's animated scoreboards
# ----------------------------------------------------
# Developed by: eyesniper2
# ----------------------------------------------------
# This skript is meant to give you an introduction
# to skRayFall's animated scoreboards
# ----------------------------------------------------
# Required Addons: skRayFall, skQuery
# ----------------------------------------------------

#Will make sure once skript starts the player count is synced up, even during reloads!
on Skript start:
    set {playersOnline} to number of all players

on join:
    add 1 to {playersOnline}

    #Wait for the players world to load a bit, helps to smooth out the animation. Increase this if you have a player download a resource back.

    wait 10 ticks

    #Call the animation sub, you can also do this through fuctions!

    invoke "joinAnimate" from player

    #Also update all the players with new scoreboard data!
    loop all players:
        set score "&3Player's Online:" in sidebar of loop-player to {playersOnline}

on quit:
    subtract 1 from {playersOnline}
    loop all players:
        set score "&3Player's Online:" in sidebar of loop-player to {playersOnline}


sub "joinAnimate":
    set {_player} to parameter 1
    #First frame/set up of scoreboard
    set name of sidebar of {_player} to ">"
    #Set more scores here if you want
    set score "&3Player's Online:" in sidebar of {_player} to {playersOnline}
    #Set the delay between the first frame and the next frame
    wait 3 ticks
    #All frames after the inital frame
    set name of sidebar of {_player} to "s>"
    wait 3 ticks
    set name of sidebar of {_player} to "sk>"
    wait 3 ticks
    set name of sidebar of {_player} to "skR>"
    wait 3 ticks
    set name of sidebar of {_player} to "skRa>"
    wait 3 ticks
    set name of sidebar of {_player} to "skRay>"
    wait 3 ticks
    set name of sidebar of {_player} to "skRayF>"
    wait 3 ticks
    set name of sidebar of {_player} to "skRayFa>"
    wait 3 ticks
    set name of sidebar of {_player} to "skRayFal>"
    wait 3 ticks
    set name of sidebar of {_player} to "skRayFall>"
    wait 3 ticks
    set name of sidebar of {_player} to "&bskRayFall>"
    wait 2 ticks
    set name of sidebar of {_player} to "&3skRayFall>"
    wait 2 ticks
    set name of sidebar of {_player} to "&bskRayFall>"
    wait 2 ticks
    set name of sidebar of {_player} to "&3skRayFall>"
    wait 2 ticks
    set name of sidebar of {_player} to "&bskRayFall>"
    wait 2 ticks
    set name of sidebar of {_player} to "&askRayFall"

As you can see, it is scoreboard but it has 1 line.
set score "&3Player's Online:" in sidebar of {_player} to {playersOnline}
how can i add second line ?
[doublepost=1498652153,1498650172][/doublepost]I solved it but my question is how can i delete red numbers at the line of end ?
[doublepost=1498652185][/doublepost]And sorry, i write to umbaska. It must skrayfall..
 
I have a problem. I made a scoreboard without func.
code_language.skript:
on join:

    wait 10 ticks
    set name of sidebar of player to ">"
    set score "          &aPlayer" in sidebar of player to 18
    set score "&c&l%player%" in sidebar of player to 17
But when i quit to server skript spamming
[16:15:55 ERROR]: [Skript] The player is not online
How can i fix it ?