Hey can you fix my scoreboard skript?

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

FossilOG

Member
Jul 31, 2019
12
0
1
25
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:
options:
    ScoreboardName: &f&lbalala

every 2 second:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "{@ScoreboardName}"
        set score "&b" in sidebar of loop-player to 4
        set score "&b&lPLAYER" in sidebar of loop-player to 2
        set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 1
        set score "&8» &bMoney: &f{%balance.%player%}" in sidebar of loop-player to 0

The Money wont show at all
 
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:
options:
    ScoreboardName: &f&lbalala

every 2 second:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "{@ScoreboardName}"
        set score "&b" in sidebar of loop-player to 4
        set score "&b&lPLAYER" in sidebar of loop-player to 2
        set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 1
        set score "&8» &bMoney: &f{%balance.%player%}" in sidebar of loop-player to 0

The Money wont show at all
Try this Skript:

Code:
options:
    ScoreboardName: &f&lbalala

 
every 2 second:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "{@ScoreboardName}"
        set score "&b" in sidebar of loop-player to 4
        set score "&b&lPLAYER" in sidebar of loop-player to 3
        set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 2
        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%}
 
Try this Skript:

Code:
options:
    ScoreboardName: &f&lbalala

 
every 2 second:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "{@ScoreboardName}"
        set score "&b" in sidebar of loop-player to 4
        set score "&b&lPLAYER" in sidebar of loop-player to 3
        set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 2
        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%}
OOoohh ok Ill try it!
[doublepost=1564668323,1564668151][/doublepost]Soo.. here is what I got

It worked it shows it but it shows with a <none> do you know how to fix?
 
OOoohh ok Ill try it!
[doublepost=1564668323,1564668151][/doublepost]Soo.. here is what I got

It worked it shows it but it shows with a <none> do you know how to fix?
{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
 
OOoohh ok Ill try it!
[doublepost=1564668323,1564668151][/doublepost]Soo.. here is what I got

It worked it shows it but it shows with a <none> do you know how to fix?
{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

So as @Marsbar said if you are using an economy plugin and not a custom money skript the scoreboard skript will be:
Code:
options:
    ScoreboardName: &f&lbalala
 
 
every 2 second:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "{@ScoreboardName}"
        set score "&b" in sidebar of loop-player to 4
        set score "&b&lPLAYER" in sidebar of loop-player to 3
        set score "&8» &bName: &f%loop-player%" in sidebar of loop-player to 2
        set score "&8» &bMoney: &f%balance of loop-player%" in sidebar of loop-player to 1
 
Status
Not open for further replies.