My gun script welds the bullet to whatever it hits. I fired my gun and then touched it to see what would happen. When I touched it, the weld remained attached to what it hit but then welded me there. How would I prevent this?
Here is the block of code that deals with the weld.
B.Touched:connect(function(hit)
local weld = Instance.new("Weld", B)
weld.Part0 = B
weld.Part1 = hit
end)
Thanks ahead of time.

1 comment
I found my problem. It isn't changing the weld. It adds a new one everytime it is touched. This would work had this actually been the case so I will accept the answer.