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 loop all player near players what have the scoreboard tag "Z":

Discussion in 'Skript' started by Vxnku, Dec 18, 2022.

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

    Vxnku Member

    Joined:
    Nov 29, 2022
    Messages:
    15
    Likes Received:
    0
    Stuck
    I want all players who were within 15 blocks of the player with the scoreboard "Z" to write a command every 15 seconds with a certain chance

    Code (Text):
    1. every 15 seconds:
    2.     loop all players:
    3.         if player have the scoreboard tag "Z":
    4.             chance of 99%:
    5.                 wait 40 ticks


     
  2. Best Answer:
    Post #4 by Sabified, Jan 1, 2023
  3. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    46
    Likes Received:
    2
    Could you explain? I don't really know what you want to do
     
  4. Vxnku

    Vxnku Member

    Joined:
    Nov 29, 2022
    Messages:
    15
    Likes Received:
    0
    In this example, I didn’t run the trigger any further, I want to know how to make all people with a certain scoreboard write a command every 15 seconds
     
  5. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    46
    Likes Received:
    2
    Code (Text):
    1. every 15 seconds:
    2.     loop all player:
    3.         if player have the scoreboard tag "Z":
    4.             execute loop-player command "yourcommand"
     
Thread Status:
Not open for further replies.

Share This Page

Loading...