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

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

Asked by 4 years ago

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.BlastRadius = 100
    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 — 4y
0
I want it to explode then destroy yourfuturepilot2 -2 — 4y
0
You didn't position the explosion to the parent's position Player1_Joined 271 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

give the explosion a position

Ad

Answer this question