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.

Hey can you fix my scoreboard skript?

Discussion in 'Skript' started by FossilOG, Jul 31, 2019.

Thread Status:
Not open for further replies.
  1. FossilOG

    FossilOG Member

    Joined:
    Jul 31, 2019
    Messages:
    12
    Likes Received:
    0
    Fix the my skript or make a better one for me please. I'm a beginner ;-; and I learn fast by looking at other complex skripts

    Code (Text):
    1.  
    2. options:
    3.     ScoreboardName: &f&lbalala
    4.  
    5. every 2 second:
    6.     loop all players:
    7.         wipe loop-player's sidebar
    8.         set name of sidebar of loop-player to "{@ScoreboardName}"
    9.         set score "&b" in sidebar of loop-player to 4
    10.         set score "&b&lPLAYER" in sidebar of loop-player to 2
    11.         set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 1
    12.         set score "&8» &bMoney: &f{%balance.%player%}" in sidebar of loop-player to 0
    The Money wont show at all
     
  2. GiorgixPRO

    GiorgixPRO Member

    Joined:
    Jul 29, 2017
    Messages:
    44
    Likes Received:
    0
    Try this Skript:

    Code (Text):
    1. options:
    2.     ScoreboardName: &f&lbalala
    3.  
    4.  
    5. every 2 second:
    6.     loop all players:
    7.         wipe loop-player's sidebar
    8.         set name of sidebar of loop-player to "{@ScoreboardName}"
    9.         set score "&b" in sidebar of loop-player to 4
    10.         set score "&b&lPLAYER" in sidebar of loop-player to 3
    11.         set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 2
    12.         set score "&8» &bMoney: &f%{balance.%loop-player%}%" in sidebar of loop-player to 1
    The money wont show beacause if you are in a loop you have to replace player with loop-player

    If you want to show a variable on the scoreboard you need to write {money.%loop-player%}
    instead of {money.%player%}
     
  3. FossilOG

    FossilOG Member

    Joined:
    Jul 31, 2019
    Messages:
    12
    Likes Received:
    0
    OOoohh ok Ill try it!
    --- Double Post Merged, Aug 1, 2019, Original Post Date: Aug 1, 2019 ---
    Soo.. here is what I got

    It worked it shows it but it shows with a <none> do you know how to fix?
     
  4. Marsbar

    Marsbar Active Member

    Joined:
    Mar 31, 2019
    Messages:
    131
    Likes Received:
    4
    {money.%loop-player%} shows <none>? Do you use a custom money skript og just the economy money plugin? If you do use economy instead of {money.%loop-player%} try %loop-player's balance% or %balance of loop-player%
    remember do not use %%loop-player's balance%% :emoji_slight_smile:
    Im pretty sure it will help
     
  5. GiorgixPRO

    GiorgixPRO Member

    Joined:
    Jul 29, 2017
    Messages:
    44
    Likes Received:
    0
    So as @Marsbar said if you are using an economy plugin and not a custom money skript the scoreboard skript will be:
    Code (Text):
    1. options:
    2.     ScoreboardName: &f&lbalala
    3.  
    4.  
    5. every 2 second:
    6.     loop all players:
    7.         wipe loop-player's sidebar
    8.         set name of sidebar of loop-player to "{@ScoreboardName}"
    9.         set score "&b" in sidebar of loop-player to 4
    10.         set score "&b&lPLAYER" in sidebar of loop-player to 3
    11.         set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 2
    12.         set score "&8» &bMoney: &f%balance of loop-player%" in sidebar of loop-player to 1
     
Thread Status:
Not open for further replies.

Share This Page

Loading...