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)
I think you need to destroy the part on your own. Meaning that at the end add
wait() explosionPart:Destroy() explosionPart = nil
https://developer.roblox.com/en-us/api-reference/function/Instance/Destroy