Advertisement
Mitko1223tm

faster dstar

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