Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Instead of going to the same position, it changes to where it went away at, help?

Asked by 8 years ago
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)
end

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?

0
Can you literally stop re-posting this every single day? UniversalDreams 205 — 8y
0
We are not quite understanding your issue. Any chance you can make a gif of the issue and give us a link to the image? A good screen to Gif recorder is LiceCap if you are having trouble finding one. M39a9am3R 3210 — 8y

Answer this question