Please help with my Gun 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 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!

Status
Not open for further replies.

Fuziii

Member
Dec 31, 2018
1
0
0
on rightclick:
if name of player's tool is "&c&lX &6Erdész Puska &c&lX":
if player has a 351:1 named "&cLőszer":
loop 20 times:
shoot an arrow at speed 9
play "ITEM_SHIELD_BREAK" to player at volume 50
remove 1 351:1 named "&cLőszer" from the player
wait a tick
set action bar of player to "&a&lÚjratöltés... [8 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [7 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [6 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [5 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [4 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [3 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [2 MP]..."
wait 1 second
set action bar of player to "&a&lÚjratöltés... [1 MP]..."
wait 1 second
set action bar of player to "&a&lErdész Puska újratöltve."
give 1 351:1 named "&cLőszer" to player

I need help with this, everything is working fine, but i want that a player dies the reload be cancelled, so I mean if die while reloading, reload stops...Please help and I also want it for Teleports so if a player teleports to lobby/hub/spawn the reload be cancelled.. (Sorry for my English) But please help, I'am beginner.
 
Status
Not open for further replies.