Hello, I am a beginner scripter. I've just made my first script involving a landmine. Touching the landmine will of course explode upon contact. The problem here is that it doesn't have a delay. Every part it touches will explode immediately. I just wanted to explode at least every second. Here's the code:
function ExplodePart(part)
local explosion = Instance.new("Explosion")
explosion.BlastRadius = 10
explosion.Position = part.Position
explosion.Parent = game.Workspace
end
landMine = game.Workspace.Landmine
landMine.Touched:connect(ExplodePart)
Please help a beginner scripter out. ;)
EDIT: Sorry for the mistake but what I mean is that it need to explode and DELAY after it. Multiple explosions happen at once!

1 comment
We can use the Variable wait(seconds)