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.
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
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 = Instance.new("Part")
local Speed = 200
Explosion.Touched:Connect(function(Hit)
if Hit.Name == "BlockToFling" and Hit:IsA("BasePart") then
Hit.AssemblyLinearVelocity = (Explosion.Position-Hit.Position).Unit*Speed
end
end)