Guns

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

Benni76

Member
Apr 20, 2019
2
0
1
22
Hello I am trying to make guns in Skript 1.15.2 but I don't want to use arrows. Snowballs and Eggs don't work. So my plan was to use armorstands and push them forward but when I try making them NoGravity they dont fly forward. And I don't even know how to detect if someone got hit by a armorstand. Can somebody please help?
My Code so far:
Code:
on right click using stone hoe:
  if the name of player's tool is coloured "&7Pistol":
    set {_spawnloc} to location of player
    spawn 1 armor stand at {_spawnloc}
    set {_bullet} to last spawned armor stand
    set name of {_bullet} to "Bullet"
    push {_bullet} in the direction of player at speed 3
    wait 5 seconds
    kill {_bullet}
 
Status
Not open for further replies.