When I click Part 1 it should explode Part 2 but when I click Part 1 , Part 2 explodes but it is still there it does not disappear. It exploded me when I was near it but it doesnt explode it self.
script.Parent.ClickDetector.MouseClick:Connect(function() local explosionPart = game.Workspace.Part2 local explosion = Instance.new("Explosion",game.Workspace.Part2) explosion.Position = explosionPart.position end)

2 comments
Thanks and why do we need to put "explosionPart.Parent=nil'?
Sorry I will correct its suppose to be explosionPart = nil. On the Roblox developer site(will link at end) it give an example of the variable where the destroyed part was held can still be referenced. https://developer.roblox.com/en-us/api-reference/function/Instance/Destroy