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 AoE attack not working

Discussion in 'Skript' started by Chuckins, May 5, 2022.

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

    Chuckins New Member

    Joined:
    May 5, 2022
    Messages:
    7
    Likes Received:
    0
    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

     
  2. Best Answer:
    Post #3 by ShyDoge, May 5, 2022
  3. Jake*

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    117
    Likes Received:
    6
    Code (Text):
    1. damage X by Y hearts
     
  4. ShyDoge

    ShyDoge Member

    Joined:
    Jul 31, 2021
    Messages:
    49
    Likes Received:
    1
    Try

    Code (Text):
    1. loop players in radius %your radius% of player:
    2.   damage loop-player by %the amount of damage% hearts
    3. %your particle stuff here%
     
  5. Chuckins

    Chuckins New Member

    Joined:
    May 5, 2022
    Messages:
    7
    Likes Received:
    0
    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?
     
  6. Jake*

    Supporter

    Joined:
    Jan 30, 2022
    Messages:
    117
    Likes Received:
    6
    Code (Text):
    1. loop players in radius %your radius% of player where [input's region = "regionname"]:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...