Solved AoE attack not working

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

Chuckins

New Member
May 5, 2022
8
0
1
27
I am very new to skript and I've been making this server for fun, tho I ran into an issue:
I want to make a wand that when the player holding it right clicks, it makes particles in an 8 block radius and damages all the other players while launching them in the air
So far I have managed to do the particles and sounds but I can't seem to make the players to take damage

Please help me, thanks!
I don't have a skript to share as I don't have a clue what to do for the damage
 
Try

Code:
loop players in radius %your radius% of player:
  damage loop-player by %the amount of damage% hearts
%your particle stuff here%
 
It needed a bit of messing around to fix it but I managed to get it working using your skript, thanks a lot!

Edit:
It still damages people in safe zones like spawn, is there a way to fix that?
 
Code:
loop players in radius %your radius% of player where [input's region = "regionname"]:
It needed a bit of messing around to fix it but I managed to get it working using your skript, thanks a lot!

Edit:
It still damages people in safe zones like spawn, is there a way to fix that?
 
Status
Not open for further replies.