How Can I Play The Explosion From A Script

The Script is pretty self explanatory and I can’t seem to get the explosion to work. Any help would be appreciated

script.Parent.Touched:Connect(function(hit)
	if hit.Parent == game.Workspace.KillBricks.TrollAstroids then
		local Explosion = Instance.new("Explosion")
		Explosion.Parent = hit
		task.wait(1)
		hit:Destroy()
	end
end)

I will edit the properties after I get it to work.

i think you need to position the explosion

script.Parent.Touched:Connect(function(hit)
	if hit.Parent == game.Workspace.KillBricks.TrollAstroids then
		local Explosion = Instance.new("Explosion")
		Explosion.Position = hit.Position
		Explosion.Parent = hit
		task.wait(1)
		hit:Destroy()
	end
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.