Mitko1223tm

oh no dstar

Jan 31st, 2020
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. gui = Instance.new("ScreenGui",game.Players.Mitko1223tm.PlayerGui)
  2. gui.Name = "Death Star II"
  3.  
  4.  
  5.  
  6. button = Instance.new("TextButton",gui)
  7. button.BackgroundColor3 = Color3.new(35/255, 139/255, 218/255)
  8. button.BorderColor3 = Color3.new(255/255, 255/255, 255/255)
  9. button.BorderSizePixel = 5
  10. button.Position = UDim2.new(0.8, 0,0.6, 0)
  11. button.Size = UDim2.new(0, 60,0, 60)
  12. button.Font = "Arial"
  13. button.TextColor3 = Color3.new(255/255, 255/255, 255/255)
  14. button.TextScaled = true
  15. button.Text = "Fire"
  16. button.TextWrapped = true
  17.  
  18.  
  19. button.MouseButton1Click:connect(function()
  20.  
  21. wait(1)
  22. local target = game.Workspace
  23. local DeathStar = Instance.new("Part")
  24. local BBG = Instance.new("BillboardGui")
  25. local ImLab = Instance.new("ImageLabel")
  26. local fire = "/fire"
  27. local Sound = Instance.new("Sound")
  28. Sound.SoundId = "rbxassetid://522569768"
  29. Sound.MaxDistance = math.huge
  30. Sound.EmitterSize = math.huge
  31. Sound.Volume = 10
  32. Sound.Parent = game.Workspace
  33. Sound.PlayOnRemove = true
  34. local DISTANCE = 1500
  35. local SIZE = 999
  36. local TIMEE = 100
  37. DeathStar.Size = Vector3.new(1,1,1)
  38. DeathStar.BrickColor = BrickColor.new("Lime green")
  39. DeathStar.Material = Enum.Material.Neon
  40. local Mesh = Instance.new("SpecialMesh")
  41. Mesh.Scale = Vector3.new(SIZE,0,SIZE)
  42. Mesh.MeshType = Enum.MeshType.Sphere
  43. Mesh.Parent = DeathStar
  44. DeathStar.Transparency = 1
  45. DeathStar.Anchored = true
  46. BBG.Size = UDim2.new(SIZE,0,SIZE,0)
  47. ImLab.Size = UDim2.new(1,0,1,0)
  48. ImLab.Image = "rbxassetid://4644935884"
  49. ImLab.BackgroundTransparency = 1
  50. ImLab.ImageTransparency = 1
  51. ImLab.Parent = BBG
  52. BBG.Parent = DeathStar
  53. DeathStar.CFrame = (game.Workspace:GetModelCFrame() + Vector3.new(0, 0, DISTANCE))
  54. DeathStar.Parent = game.Workspace
  55. wait(1)
  56. function boom(part)
  57. if part ~= target and part ~= DeathStar then
  58. local a = Instance.new("Explosion")
  59. a.Position = part.Position
  60. a.Parent = part
  61. part.Anchored = false
  62. end
  63. local b = part:GetChildren()
  64. for i=1,#b do
  65. if b[i]:IsA("BasePart") or b[i]:IsA("Folder") or b[i]:IsA("Model") then
  66. boom(b[i])
  67. end
  68. end
  69. end
  70.  
  71. for i=1,TIMEE do
  72. wait()
  73. DeathStar.CFrame = CFrame.new(0,DeathStar.Position.y + (DISTANCE/TIMEE), DeathStar.Position.z - (DISTANCE/TIMEE))
  74. ImLab.ImageTransparency = ImLab.ImageTransparency - (1/(TIMEE/2))
  75. end
  76. Sound:Play()
  77. game:GetService("Debris"):AddItem(Sound,Sound.TimeLength+1)
  78. wait(11)
  79. for i=1,25 do
  80. wait()
  81. if DeathStar.Transparency ~= 0 then
  82. DeathStar.Transparency = DeathStar.Transparency - 0.2
  83. end
  84. if DeathStar.Transparency <= 0 then
  85. DeathStar.Transparency = 0
  86. end
  87. Mesh.Scale = Vector3.new(SIZE,Mesh.Scale.y + ((DISTANCE*4)/50),SIZE)
  88. Mesh.Offset = Mesh.Offset - Vector3.new(0,((DISTANCE*2)/50),0)
  89. end
  90. game.Lighting.TimeOfDay = 0
  91. boom(target)
  92. for i=1,25 do
  93. wait()
  94. Mesh.Scale = Vector3.new(SIZE,Mesh.Scale.y - ((DISTANCE*4)/50),SIZE)
  95. Mesh.Offset = Mesh.Offset - Vector3.new(0,((DISTANCE*2)/50),0)
  96. end
  97.  
  98. for i=1,100 do
  99. DeathStar.Transparency = DeathStar.Transparency + 1/50
  100. ImLab.ImageTransparency = ImLab.ImageTransparency + 1/50
  101. BBG.Size = BBG.Size - UDim2.new(SIZE/50,0,SIZE/50,0)
  102. wait()
  103. end
  104. game:GetService("Debris"):AddItem(DeathStar,1)
  105. end)
Add Comment
Please, Sign In to add comment