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

How do I make a part unanchor when an explosion touches it?

Not sure whether it requires scripting or not but I changed the ExplosionType and it doesn't seem to do anything.

2 answers

✓ Accepted answer

What you are looking for is the Hit event of the Explosion object. This event will fire when your specified Explosion object hits a BasePart.

Knowing this, you can Connect() a function that unanchors the touched BasePart at the occurrence of this event.

--[[
	hitPart is the part that was touched by the explosion
	distance is the distance of the part from the explosion
--]]
explosion.Hit:Connect(function(hitPart, distance)
	hitPart.Anchored = false
end)

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