Taser

  • 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 community!

    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!

AdenR84

Active Member
Sep 4, 2023
112
1
18
I made a taser skript:
on shoot:
name of shooter's tool is "&eTaser":
shoot snowball from shooter at speed 2
cancel event
set metadata "&eTaser" of last spawned snowball to true
on projectile hit:
event-projectile is a snowball
metadata "&eTaser" of event-projectile is true
apply slowness to victim for 10 seconds
if {cooldown::%shooter's uuid%::event} is greater than now:
# Cancel the event since the cooldown is not yet over
cancel event
set {_waited} to difference between {cooldown::%shooter's uuid%::event} and now
message "&cTry Again in{cooldown::%shooter's uuid%::event}"

else:
set {cooldown::%shooter's uuid%::event} to 3 seconds from now
it works but when i shoot it spawns 10 billion snowballs and crashes my server
please help!