Scoreboards issues

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

K9Lil

Member
May 26, 2019
11
1
0
i dont even know where to start on custom skript scoreboards if you know a cheatsheat or some other code i could look at that be nice cause im confused on where to start
 
i dont even know where to start on custom skript scoreboards if you know a cheatsheat or some other code i could look at that be nice cause im confused on where to start
With SkRayFall:
code_language.skript:
on join:
    while player's online:
        wipe player's sidebar
        wait 1 second
        set name of sidebar of player to "&e&lSERVER &6&lNAME"
        set score "&fName:&a %player's name%" in sidebar of player to 7
        set score "&1 " in sidebar of player to 6
        set score "&fRank: %player's prefix%" in sidebar of player to 5
        set score "&2 " in sidebar of player to 4
        set score "&fMoney:&a %player's balance%" in sidebar of player to 3
        set score "&3 " in sidebar of player to 2
        set score "&eyourserver-ip.com" in sidebar of player to 1
        wait 1 second
It isn't tested, but i think that's correct.
 
  • Like
Reactions: jonawoning
Depends on what version you are using. I used this addon for scoreboards when I used 1.12.2: https://forums.skunity.com/resources/skore-the-scoreboard-addon.617/

I have no idea if this works on other versions though. You got to test it yourself.

Example:

code_language.skript:
function updateBoard(p: player):
    if {_p} has a skoreboard:
        set title of skoreboard {_p} to "TitleYouWant"
        set slot 1 of skoreboard {_p} to "Line1"
        set slot 2 of skoreboard {_p} to "Line2"
        # etc
    else:
        setup skoreboard for {_p}
        updateBoard({_p})

on join:
    while player is online:
        updateBoard(player)
        wait 1 second
 
  • Like
Reactions: TPGamesNL
Status
Not open for further replies.