This script is a regular script and will delete it self after exploding, but it crashes after it hits. I can't identify the problem.
script.Parent.Touched:connect(function()
local ex = Instance.new("Explosion")
ex.BlastRadius = 5
ex.BlastPressure = 0
ex.Position = script.Parent.Position
ex.Parent = script.Parent
ex.Hit:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid:TakeDamage(20,30)
end
script.Parent:Destroy()
end)
end)

2 comments
Please post the output of the script
I can't because I crash after it happends.