Solved On right click

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

BestGamerNL

Member
Apr 25, 2017
38
1
0
25
Heey guys we are working on a skirpt called mystery murder.
now we want that the murder only can hit people with an sword but we dont no how to do that

our problem is that the murder can hit people with their own hand but we want that it only can be used by an sword.

Does some one know we now have something like this

code_language.skript:
on right click with wooden sword:
    if name of tool of player is "&6&lGun":
        if {murder:shootdelay} is false:
            set {murder:gunshoot:%player%} to true
            make the player shoot a snowball at speed 3
            set {murder:shootdelay} to true
            wait 2 seconds
            set {murder:shootdelay} to false
            delete {murder:gunshoot:%player%}
        else:
            send "{@MD} &7You need to wait before you can shoot again!"
 
Status
Not open for further replies.