Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to detect if part was affected by explosion?

i made a bomb that explodes when player touches it now what i want is when the bomb explodes near other bombs the other bombs will explode too

is there any quick and easy way to do this?

1 answer

✓ Accepted answer

Explosion.Hit lets you get the parts hit by the bomb and apply a code on them

Explosion.Hit:Connect(function(part) if part.Name == "Bomb" then --explosion function on the part end end)

You might want to add an "exploded" value so bombs dont explode more than once.

This discussion is preserved as it was. New answers, comments, and votes are closed.