Solved loop all player near players what have the scoreboard tag "Z":

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

Vxnku

Member
Nov 29, 2022
15
0
1
23
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:
every 15 seconds:
    loop all players:
        if player have the scoreboard tag "Z":
            chance of 99%:
                wait 40 ticks
 
Could you explain? I don't really know what you want to do

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
 
Code:
every 15 seconds:
    loop all player:
        if player have the scoreboard tag "Z":
            execute loop-player command "yourcommand"
 
Status
Not open for further replies.