Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 8 days 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 107 — 8d
0
I want it to explode then destroy yourfuturepilot2 -2 — 8d
0
You didn't position the explosion to the parent's position Player1_Joined 231 — 8d

1 answer

Log in to vote
0
Answered by 8 days ago

give the explosion a position

Ad

Answer this question