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:
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}