1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Scoreboard flickers all of the sudden

Discussion in 'Skript' started by Rosathorn, Feb 25, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. Rosathorn

    Rosathorn Member

    Joined:
    Oct 29, 2019
    Messages:
    13
    Likes Received:
    0
    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
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    I dont recommend you use "every X seconds", that cause a bit of lag in your server. Use this instead.
    Code (Skript):
    1. on join:
    2.     while player is online:
    3.         #score
    4.         wait 5 seconds
     
  3. Xgod2205

    Xgod2205 Member

    Joined:
    Feb 25, 2021
    Messages:
    17
    Likes Received:
    0
    in stead use
    every 5 seconds:
    loop all players:
    #update scoreboard not with the funtion tho
     
  4. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Or Try doing this:

    Code (Skript):
    1. on join:
    2.     set name of sidebar of player to "<##5E4B48>&lBUNKERED"
    3.     set id based score "&f&l-&7------------------&f&l-" in sidebar of player to 7 with id "%player's uuid%.id50"
    4.     set id based score "&3" in sidebar of player to 6 with id "%player's uuid%.id51"
    5.     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"
    6.     set id based score "&3" in sidebar of player to 4 with id "%player's uuid%.id53"
    7.     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"
    8.     set id based score "&4" in sidebar of player to 2 with id "%player's uuid%.id55"
    9.     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"
    10.     while player is online:
    11.         update score with id "%player's uuid%.id52" to "&8&l●&f Balance&8 |&f %{stats.%player's uuid%::bal}%" and 5
    12.         update score with id "%player's uuid%.id54" to "&8&l●&f Kills&8 |&f %{stats.%player's uuid%::kills}%" and 3
    13.         update score with id "%player's uuid%.id56" to "&8&l●&f Your Tier&8 |&f %{tier::%player's uuid%}%" and 1
    14.         wait 5 seconds
    EDIT: I change all the {uuid} variables for %player's uuid%
     
    #4 couger44, Feb 25, 2021
    Last edited: Feb 25, 2021
Thread Status:
Not open for further replies.

Share This Page

Loading...