All players in a radius of 10 as loop players

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

youri kelderman

New Member
Feb 25, 2020
5
0
0
19
So im trying to make it so when you right click on a certain item it pushes every player in a 10 block radius away, now when i try this it only affects 1 player in the radius, why is this?


loop 1 times:
loop all players in radius 10 around spawned zombie:
push %loop-player% backwards at speed 2
 
Code:
loop all players in radius 10 around spawned zombie:
    push loop-player backwards at speed 2
 
Status
Not open for further replies.