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.

Solved There's no loop that matches

Discussion in 'Skript' started by dfsdfas, Jul 22, 2020.

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

    dfsdfas New Member

    Joined:
    Jul 22, 2020
    Messages:
    7
    Likes Received:
    0
    My code:
    Code (Text):
    1.        loop all players:
    2.             if loop-player has glowing:
    3.                 remove glowing from loop-player
    4.                 else:
    5.                     apply glowing of tier 1 to loop-players for 999 days
    Error:
    Code (Text):
    1. There´s no loop that matches ´loop-player has´ (Permaglow.sk line 2: if loop-player has glowing:)
     
  2. ESW_ST33le

    ESW_ST33le Member

    Joined:
    May 6, 2020
    Messages:
    32
    Likes Received:
    1
    i think you might need to have something before "loop all players:" like "every 1 minute:" With just loop all players Skript wont know when to run that loop. You need something that tells skript when to do the loop.

    every 1 minute:
    loop all players:
    if loop-player as glowing:
    remove glowing from loop-player
    else:
    apply glowing of tier 1 to loop-player for 999 days
     
  3. Gowixx

    Gowixx Member

    Joined:
    Jul 9, 2020
    Messages:
    28
    Likes Received:
    6
    Try this:


    Code (Text):
    1. every 5 seconds:
    2.      loop all players:
    3.             if loop-player has glowing:
    4.                 remove glowing from loop-player
    5.                 else:
    6.                     apply glowing of tier 1 to loop-players for 999 days
    Should be fairly fast and wouldn't cause lag. Also could you send the whole skript to see if anything is interfering.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...