0

Why isn't this explosion script working? (beginner question don't judge me)

For some reason, it puts in an explosion but doesn't explode. I also need to put in checks because it is putting in multiple, but I don't know how. nothing is showing up in output.

script.Parent.Touched:Connect(function(hit)
local lol = Instance.new("Explosion")
lol.Name = "explosion"
lol.BlastPressure = 1000
lol.Parent = script.Parent
lol.Visible = true
if lol ~= nil then
wait(.1)
script.Parent:Destroy()
end

end)

0
You parented the explosion to the item you're destroying on line 10 Justingamer700 114 — 7mo
0
I want it to explode then destroy yourfuturepilot2 -2 — 7mo
0
You didn't position the explosion to the parent's position Player1_Joined 271 — 7mo