Adding an effect to a damaged player

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

JackyBoy

Member
Feb 4, 2017
104
1
18
21
Hellow, I have been working on this new system where a player can shoot a snowball at a player, however, I would like the player that gets hit to get slowness for 5 seconds. Here is my current code:
code_language.skript:
on rightclick:
      player is holding wooden hoe
      shoot a snowball at speed 1
 
Listen for player damage events and check if the projectile is a snowball, and if so then you can do whatever you want (like applying slowness).
 
Status
Not open for further replies.