Infinite repeating

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

Opp3nheimer

Member
Jan 20, 2024
1
0
1
So my script repeats itself and idk why iam still new to this and I tought best I can do is asking for help my skript is this:
on right click with chain:
if name of player's tool is "&fBaterang":
if {baterang.cooldown.%player%} is not set:
set {baterang.cooldown.%player%} to true
shoot snowball from player at speed 3
set {baterang.snowball.%player%} to true
wait 30 ticks
delete {baterang.cooldown.%player%}
delete {baterang.snowball.%player%}
else:
send "&cYou must wait 1.5 seconds before using this again!" to the player

on damage of entity:
if victim is a player:
damage victim by 4
stop