I need help with this sniper 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!

Status
Not open for further replies.

CyberNinjaSk

Member
May 21, 2020
1
0
0
23
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
 

Attachments

  • testnumber11.sk
    5.3 KB · Views: 165
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:
 
Status
Not open for further replies.