There's no loop that matches 'loop-player to 4'

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

Quuart_Pickle

Member
Dec 27, 2024
1
0
1
I am creating a Scoreboard using SkRayfall for my server and I want to display towny information but when I input the information I get this error

Code:
on join:
    set {_tlocation} to placeholder "townyadvanced_town"
 
every 2 seconds:
    loop all players:
        wipe loop-player's sidebar
        set name of sidebar of loop-player to "&c&l[Eternal Earth]"
        set score "&cUser: &f%loop-player%" in sidebar of loop-player to 8
        set score "&7 " in sidebar of loop-player to 7
        set score "&c&lServer" in sidebar of loop-player to 6
        set score "&7 " in sidebar of loop-player to 5
        set score "Current Location "{_tlocation} in sidebar of loop-player to 4
        set score "&7 " in sidebar of loop-player to 3
        set score "&7 " in sidebar of loop-player to 2
        set score "&cBal: &f%loop-player's balance%" in sidebar of loop-player to 1
 
Last edited:
Is the line meant to be, or is this a typo?
Code:
        set score "Current Location "{_tlocation} in sidebar of loop-player to 4

It should be:
Code:
        set score "Current Location %{_tlocation}%" in sidebar of loop-player to 4
 
  • Like
Reactions: slyafe