My studio is crashing whenever I run this script:
bomb = script.Parent function explode() explosion = Instance.new("Explosion", workspace) explosion.Position = bomb.Position bomb:Destroy() end bomb.ClickDetector.MouseClick:connect(explode)
removing the bomb:Destroy() line, it doesn't crash. Trying it with just a touch event instead of mouseclick, it doesn't crash. Any clue why this is happening, and how I might fix it?