1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I need help with this sniper skript.

Discussion in 'Skript' started by CyberNinjaSk, May 23, 2020 at 10:35 AM.

  1. CyberNinjaSk

    CyberNinjaSk Member

    Joined:
    Thursday
    Messages:
    1
    Likes Received:
    0
    So, this is my 12th or 13th try at this skript and I have had 5 different people help me with it and I have just given up. This is the first post i am doing on a forum.

    command /kitsniper:
    permission: guns.sniper
    permission message: You can't use this
    trigger:
    set {sniper} to repeater named "&0Sniper"
    give {sniper} to the player
    give leather chestplate of protection 2 named "&0Sniper Chesplate" to the player
    give leather helmet named "&0Sniper Helmet" to the player

    on rightclick:
    if player is holding {sniper}:
    set {_waited} to difference between {sniper.%player%} and now
    if {_waited} is less than 4 seconds:
    send "&cYou are reloading!"
    if {_waited} is more than 4 seconds:
    shoot arrow from the player at speed 20
    show mob spawner flames at the targeted block to the player
    show smoke from fire when arrow is shot
    remove effects after two seconds
    variables:
    {zoom.%player%} = false
    on leftclick:
    {zoom.%player%} = false:
    player is holding {sniper}
    apply slowness 40 to the player
    set {zoom.%player%} to true
    else:
    remove slowness from player
    set {zoom.%player%} to false

    on join:
    set {sniper.%player%} to now
     

    Attached Files:

  2. Viktor Tim Aggerholm

    Supporter

    Joined:
    Dec 29, 2019
    Messages:
    182
    Likes Received:
    11
    So, what is your issue? You can't just post a thread, and expect us to know exactly what to do.

    What's the expected behaviour, what's the current behaviour and is there any error messages when reloading the code?

    Also, use the code format when posting code :emoji_slight_smile:
     
Loading...