print("LandMine Script Loaded")

local LandMine = script.Parent
local pos = game.Workspace.Meteor1.Position
local meteor = game.Workspace.Meteor1

function onTouched(hit)
explosion = Instance.new("Explosion")
explosion.BlastRadius = 20
explosion.BlastPressure = 100000
explosion.Position = script.Parent.Position
explosion.Parent = game.Workspace
script.Parent.Transparency = 0
wait(.1)
meteor.Parent = nil
wait(2)
meteor.Parent = workspace
meteor.CFrame = CFrame.new(pos) 

connection = LandMine.Touched:connect(onTouched)

So this is the script i used to make the meteor fall, touch the ground, explode, and in .1 second disappear, and then appear after 2 seconds. Only problem is that it doesn't go back to where it started from, it just starts appears lower and lower every time. Help?

3 comments

0

Please use a code block.

0

ok now help?

1

You didn't end the function