Advertisement
princeofheaven

Untitled

Aug 3rd, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. debounce = true
  2. function OnTouched(hit)
  3. if debounce == false then return end
  4. debounce = false
  5. script.Parent.Anchored = true
  6. wait(0.05)
  7. Boom2 = Instance.new("Explosion")
  8. Boom2.BlastRadius = 40
  9. Boom2.Parent = game.Workspace
  10. Boom2.Position = script.Parent.Position
  11. wait(0.5)
  12. Boom2:Remove()
  13. Boom = Instance.new("Part")
  14. Boom.Parent = game.Workspace
  15. Boom.formFactor = 0
  16. Boom.Shape = 0
  17. Boom.BrickColor = BrickColor:White()
  18. Boom.Position = script.Parent.Position
  19. Boom.Transparency = .25
  20. Boom.Size = Vector3.new(4, 1, 4)
  21. Boom.Anchored = true
  22. Boom.TopSurface = "Smooth"
  23. Boom.BottomSurface = "Smooth"
  24. script.Parent.Transparency = .5
  25. SC = script.Explosion:clone()
  26. SC.Disabled = false
  27. SC.Parent = Boom
  28. Grow = script.Grow
  29. GC = Grow:clone()
  30. GC.Disabled = false
  31. GC.Parent = Boom
  32. Stay = script.Stay
  33. C = Stay:clone()
  34. C.Disabled = false
  35. C.Parent = Boom
  36. Boom2 = Instance.new("Explosion")
  37. Boom2.BlastRadius = 40
  38. Boom2.Position = script.Parent.Position
  39. wait(0.5)
  40. Boom2:Remove()
  41. wait(5)
  42. script.Parent:Remove()
  43. wait(100)
  44. end
  45.  
  46. script.Parent.Touched:connect(OnTouched)
  47.  
  48. --Vector3.new(script.Parent.Position.x,script.Parent.Position.y + 250,script.Parent.Position.z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement