Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. hint = Instance.new("Hint",workspace)
  2. nuke = Instance.new("Part",workspace)
  3. nuke.Size = Vector3.new(5,50,5)
  4. nuke.Material = Enum.Material.DiamondPlate
  5. nuke.BrickColor = BrickColor.Gray()
  6. nuke.CFrame = CFrame.new(0,10000,0)
  7. bodypos = Instance.new("BodyPosition",nuke)
  8. bodypos.MaxForce = Vector3.new(100,100,100)
  9. bodypos.D = 100
  10. bodypos.P = 5
  11. bodypos.Position = Vector3.new(0,0,0)
  12. debounce = false
  13. size = 5
  14. waittime = 0.0001
  15. hint.Text = "TACTICAL NUKE! INCOMING!"
  16. nuke.Touched:connect(function()
  17. if debounce == false then
  18. debounce = true
  19. nuke.Anchored = true
  20. boomboom = Instance.new("Part",workspace)
  21. boomboom.BrickColor = BrickColor.new("Gold")
  22. boomboom.Shape = Enum.PartType.Ball
  23. boomboom.Anchored = true
  24. boomboom.Transparency = 0.5
  25. boomboom.TopSurface = Enum.SurfaceType.Smooth
  26. boomboom.BottomSurface = Enum.SurfaceType.Smooth
  27. boomboom.CanCollide = false
  28. boomboom.CFrame = CFrame.new(0,0,0)
  29. boomboom.Touched:connect(function(hit)
  30. hit:BreakJoints()
  31. end)
  32. while true do
  33. wait(waittime)
  34. expl = Instance.new("Explosion",workspace)
  35. hint.Text = "NUKE HAS GAINED "..tostring(boomboom.Size.Y).." STUDS OF SIZE!"
  36. expl.BlastPressure = 999
  37. expl.BlastRadius = size
  38. expl.Position = Vector3.new(0,0,0)
  39. boomboom.Size = boomboom.Size + Vector3.new(size,size,size)
  40. size = size + 0.001
  41. waittime = waittime - 0.001
  42. end
  43. end
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement