Need help fixing this dash skript

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

bewf

Member
Apr 19, 2024
27
0
1
24
on rightclick:
if player has a stone hoe named "&cScythe of Reaping" in their main hand:
if {cooldown.%player%} is less than 1:
add 1 to {cooldown.%player%}
push player in direction the player is looking with force 2
wait 1 tick
set {cooldown.%player%} to 0
send "&6You performed a short dash with the &cScythe of Reaping!"
else:
if player has a stone hoe named "&cScythe of Reaping" in their off hand:
if {cooldown.%player%} is less than 1:
add 3 to {cooldown.%player%}
push player in direction the player is looking with force 5
wait 1 tick
set {cooldown.%player%} to 0
send "&6You performed a long dash with the &cScythe of Reaping!"

on join:
set {cooldown.%player%} to 0


ERROR ON LINE 2 AND 9
 
If name of player's tool contains "&cScythe of Reaping":

if name of player's offhand tool contains "&cScythe of Reaping":

Also your cooldown system won't work
 
okay ill try to fix the cooldown system i js have no clue how :sob:
thank you!
 
If name of player's tool contains "&cScythe of Reaping":

if name of player's offhand tool contains "&cScythe of Reaping":

Also your cooldown system won't work
Sorry if this is too much to ask, but could you make the cooldown work and add an ability when dropped called
&4Slice of &cFlesh
which does the following effects on the next hit:
Takes away 25% from your health
Gives you strength 3 for 10 seconds
Gives the hit player slowness 1 for 10 seconds
Gives the hit player darkness for 5 seconds

itll mean a lot brother

EDIT: the strength and 25% health can be done on drop instead of hit

on rightclick:
If name of player's tool contains "&cScythe of Reaping":
if {cooldown.%player%} is less than 1:
add 1 to {cooldown.%player%}
push player in direction the player is looking with force 2
wait 1 tick
set {cooldown.%player%} to 0
send "&6You performed a short dash with the &cScythe of Reaping!"
else:
if name of player's offhand tool contains "&cScythe of Reaping":
if {cooldown.%player%} is less than 1:
add 3 to {cooldown.%player%}
push player in direction the player is looking with force 5
wait 1 tick
set {cooldown.%player%} to 0
send "&6You performed a long dash with the &cScythe of Reaping!"

on join:
set {cooldown.%player%} to 0