For example, I shoot a missile at a wall, and it bounces off slightly before exploding so the full impact isn't received by the wall! Here is a simple collision script for a missile that was shot by one of my helicopters - Also, I am using BodyVelocity to make the missile fly through the air if that even matters.
part = script.Parent
-- Variables
part.Touched:connect(function(hit)
ep = Instance.new("Explosion,part)
ep.Position = part.Position
ep.Hit:connect(function(HIT)
if HIT.Name == "BuildBrick" then
HIT.Velocity = Vector3.new(0,10,0)
HIT.Anchored = true
game.Debris:AddItem(HIT,1)
end
end)
end)

1 comment
How do I fix that, then? Can I get an example?