Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make an explosion unanchor a part?

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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)
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. R2D2yodayolo 32 — 6y
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. Meltdown81 309 — 6y
Ad

Answer this question