How do i add ignore list to raycasting?

You can use the above example I showed you, but just copy and paste your existing values into the new script. If anything breaks, you can just revert it.

Thats the problem i dont understand raycasting very good i dont know what to replace and what to change.
Askasta#6514 is my discord im free for a call if you are interested.

If you want to learn more about raycasting I’d recommend reading these articles:

All of them are pretty short and once you understand them you’ll be able to make a proper gun. All of the articles have working script samples to help you as well.

1 Like

i dont wanna make a gun myself. I just dont want a shoooting gun. My gun itself has other features aswell
how would i modificate this current one to use the new raycast

I already provided an example which shows you how to use the new raycasting and gave you additional resources to help you. If you don’t want to learn how, then I don’t want to help you (i’m not going to spoonfeed).

1 Like

its not about the how. Its just the current one when you hit a object wich it should wallbang it then hits the object and behind the object create a new ray.

Also it has a feature if the player mouse is aiming somehwere it cant shoot meaning behind him the gun will then switch to the gun barrel and just shoot foward. this is to disable people shooting behind them

idk how to do that

also the gun has a jam feature it has the ability to switch to gangster animation making you hold the gun sideways.

i dont know how to do all that buddy im a script modificator not a creator sadly :C

1 Like