Scoreboard flickers all of the sudden

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

Rosathorn

Member
Oct 29, 2019
13
0
1
18
Skript Version (do not put latest): Skript 2.5.3
Skript Author: Bensku
Minecraft Version: 1.16.5
Addons: Skrayfall,SkQuery,Skellett,TuSKe,Skbee

This system worked fine yesterday, all of the sudden it's constantly flickering. Why? And how do I fix it?

https://pastebin.com/BCNWMWZw
 
Skript Version (do not put latest): Skript 2.5.3
Skript Author: Bensku
Minecraft Version: 1.16.5
Addons: Skrayfall,SkQuery,Skellett,TuSKe,Skbee

This system worked fine yesterday, all of the sudden it's constantly flickering. Why? And how do I fix it?

https://pastebin.com/BCNWMWZw
I dont recommend you use "every X seconds", that cause a bit of lag in your server. Use this instead.
code_language.skript:
on join:
    while player is online:
        #score
        wait 5 seconds
 
in stead use
every 5 seconds:
loop all players:
#update scoreboard not with the funtion tho
 
Or Try doing this:

code_language.skript:
on join:
    set name of sidebar of player to "<##5E4B48>&lBUNKERED"
    set id based score "&f&l-&7------------------&f&l-" in sidebar of player to 7 with id "%player's uuid%.id50"
    set id based score "&3" in sidebar of player to 6 with id "%player's uuid%.id51"
    set id based score "&8&l●&f Balance&8 |&f %{stats.%player's uuid%::bal}%" in sidebar of player to 5 with id "%player's uuid%.id52"
    set id based score "&3" in sidebar of player to 4 with id "%player's uuid%.id53"
    set id based score "&8&l●&f Kills&8 |&f %{stats.%player's uuid%::kills}%" in sidebar of player to 3 with id "%player's uuid%.id54"
    set id based score "&4" in sidebar of player to 2 with id "%player's uuid%.id55"
    set id based score "&8&l●&f Your Tier&8 |&f %{tier::%player's uuid%}%" in sidebar of player to 1 with id "%player's uuid%.id56"
    while player is online:
        update score with id "%player's uuid%.id52" to "&8&l●&f Balance&8 |&f %{stats.%player's uuid%::bal}%" and 5
        update score with id "%player's uuid%.id54" to "&8&l●&f Kills&8 |&f %{stats.%player's uuid%::kills}%" and 3
        update score with id "%player's uuid%.id56" to "&8&l●&f Your Tier&8 |&f %{tier::%player's uuid%}%" and 1
        wait 5 seconds
EDIT: I change all the {uuid} variables for %player's uuid%
 
Last edited:
Status
Not open for further replies.