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

How do you make an explosion unanchor a part?

I've looked in the Roblox Wiki, and it tells me that "Hit" is activated when an explosion touches a part. However, I don't know the correct format and am having trouble figuring out how to go about this. Any help is appreciated, I'm sorry if this is a stupid question.

1 answer

Same as any other Touched event. Pretty sure the wikia has a list of parameters the events and functions take next to it.

local explosion = Instance.new("Explosion",game.Workspace)
explosion.Hit:connect(function(hit)
	hit.Anchored = false
end)

2 comments

0

Wouldn't that script just create an explosion? I'll test it because I may be wrong, but Instance.new would just add it to workspace.

0

The script creates an explosion and unanchors any part the explosion hits like your question asked. You can change any of the properties of the explosion yourself.

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