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

How to make a part explode when clicked?

Like when u click the part it explodes.

script.Parent.MouseClick:Connect(function() local explosionPart = script.Parent local explosion = Instance.new("Explosion",script.Parent) explosion.Position = explosionPart.position end) I saw two tutorials tried to combine the script.

1 answer

✓ Accepted answer

You forgot the ClickDetector.

Insert ClickDetector into a part and put this script in the part too.

 script.Parent.ClickDetector.MouseClick:Connect(function()
local explosionPart = script.Parent 
local explosion = Instance.new("Explosion",script.Parent) 
explosion.Position = explosionPart.position end)

Sorry if I sound passive agressive, I talk like that ¯_(?)_/¯

If this was helpful please, accept this question. I will really appreciate it.

2 comments

0

Thanks , I made a mistake when putting the script lol it is not suppose to be in the part.

0

Ok this works but how do you change the blast pressure/ radius

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