Hello. My goal is to make an explosion explode after about five seconds repeatedly, but I am having trouble doing so. I think I wrote the code sort of correctly, but I don't see the visual explosion. I don't want it to do any damage, I just want the visual effect to play every five seconds. Can somebody help?
while true do
wait(5)
explosion = Instance.new("Explosion")
explosion.Parent = script.Parent
explosion.ExplosionType = Enum.ExplosionType.Craters
explosion.BlastRadius = 5
wait(1)
explosion:Destroy()
end

2 comments
You should say local explosion = Instance.new("Explosion") , and I believe you need BlastPressure aswell.
Thanks, I figured it out. I also forgot to set the position.