Thank you guys for replying!
The only problem i have here that it doesn't detect arrows
Sending me an error like this
So i assume the problem is here then doSendDistanceShoot({ x = p.pos.x - 7, y = p.pos.y - 7, z = p.pos.z}, p.pos, math.random(1,#arrows))
I tried just add it like this...