Is there any way to make a bullet go through a certain part? Or to let the Player's mouse ignore the certain part?
COMMUNITY QUESTION
How can I make a bullet go through a part?
2 answers
with raycasting,
Mouse.TargetFilter = part
with raycasting, extend the length of the 'ray' so it goes through a wall
Try defining the parts that you dont want it to go through and then removing the bullet when it touches that part
This script will make the bullet go through all the parts except for the part with the name you put
example
local bullet = script.Parent
bullet.Touched:connect(function(hit)
if hit.Parent.Name = "name all parts that you want the bullet to not go through the same" then
bullet:Remove()
else
print("k")
This discussion is preserved as it was. New answers, comments, and votes are closed.
