How to make "Explosion" damage certain parts?

Hello, I’m trying to make an explosion that does not break joints/welds of every part or fling them and I want it to do these to certain parts just like in Doomspire Brickbattle.

Note: I’ve searched it, and didn’t get anything as I don’t know much about Roblox physics.

1 Like

How are you causing the explosion of parts?

You could have an anchored uncollidable transparent part at the location of the explosion with a size of what parts you want effected by explosion. Then get the touching parts of this part and use if statements to detect the typeof part which is touching and filter accordingly of which parts you want the explosion to effect

But how can I make the explosion damage certain parts tho? If I place an explosion it will just explode everything around it.

Don’t use the actual explosion thing. Make your own explosion with a particle effect or whatever. Then doing what I said earlier, for the parts you want effected, you can add your own velocities in random directions and whatsnot

I’ve already solved it, thank you tho. For anybody wondering, basically:

local Explosion ="Part")
local Speed = 200


if Hit.Name == "BlockToFling" and Hit:IsA("BasePart") then

Hit.AssemblyLinearVelocity = (Explosion.Position-Hit.Position).Unit*Speed



I believe that’s how explosion velocity works aswell.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.