Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. -- woah
  2.  
  3. -- Created by Nebula_Zorua
  4. -- Click to attack
  5. -- Uses skybox's sun
  6.  
  7. wait()
  8. script.Parent = nil
  9.  
  10. local me = game:service'Players'.aceblaster123;
  11.  
  12. local I = Instance.new
  13. function IT(instance,parent,properties)
  14. local inst = I(instance)
  15. for i,v in next, properties do
  16. pcall(function() inst[v[1]] = v[2] end)
  17. end
  18. inst.Parent = parent
  19. return inst
  20. end
  21.  
  22. function PARTANDMESH(parent,brickcolor,material,anchored,cancollide,locked,size,cframe,meshid,textureid,scale,partProps,meshProps)
  23. local part = IT("Part",parent or me.Character,{{"TopSurface",10},{"BottomSurface",10},{"BrickColor",brickcolor},{"Anchored",anchored},{"CanCollide",cancollide},{"Locked",locked},{"Material",material}, {"Size",size},{"CFrame",cframe}})
  24. local mesh = IT("SpecialMesh",part,{{"MeshId",meshid},{"TextureId",textureid},{"Scale",scale}})
  25. for i,v in next, partProps do
  26. pcall(function() part[i] = v end)
  27. end
  28. for i,v in next, meshProps do
  29. pcall(function() mesh[i] = v end)
  30. end
  31. return part,mesh
  32. end
  33. local RANDOM = math.random
  34.  
  35. function PART(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  36. local NEWPART = IT("Part",PARENT,{})
  37. NEWPART.formFactor = FORMFACTOR
  38. NEWPART.Reflectance = REFLECTANCE
  39. NEWPART.Transparency = TRANSPARENCY
  40. NEWPART.CanCollide = false
  41. NEWPART.Locked = true
  42. NEWPART.Anchored = true
  43. if ANCHOR == false then
  44. NEWPART.Anchored = false
  45. end
  46. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  47. NEWPART.Name = NAME
  48. NEWPART.Size = SIZE
  49. NEWPART.Position = me.Character.Torso.CFrame.p
  50. NEWPART.Material = MATERIAL
  51. NEWPART:BreakJoints()
  52. return NEWPART
  53. end
  54.  
  55. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) -- thanks shack BB
  56. local STATPART = PART(3, me.Character, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
  57. STATPART.CFrame = CFrame.new(CFRAME.p + Vector3.new(0, 1.5, 0))
  58. local BODYGYRO = IT("BodyGyro", STATPART,{})
  59. local BODYPOSITION = IT("BodyPosition", STATPART,{})
  60. BODYPOSITION.P = 2000
  61. BODYPOSITION.D = 100
  62. BODYPOSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  63. if LABELTYPE == "Normal" then
  64. BODYPOSITION.position = STATPART.Position + Vector3.new(RANDOM(-2, 2), 6, RANDOM(-2, 2))
  65. elseif LABELTYPE == "Debuff" then
  66. BODYPOSITION.position = STATPART.Position + Vector3.new(RANDOM(-2, 2), 8, RANDOM(-2, 2))
  67. elseif LABELTYPE == "Interruption" then
  68. BODYPOSITION.position = STATPART.Position + Vector3.new(RANDOM(-2,2), 8, RANDOM(-2, 2))
  69. end
  70. game:GetService("Debris"):AddItem(STATPART ,5)
  71. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  72. BILLBOARDGUI.Adornee = STATPART
  73. BILLBOARDGUI.Size = UDim2.new(2.5, 0, 2.5 ,0)
  74. BILLBOARDGUI.StudsOffset = Vector3.new(-2, 2, 0)
  75. BILLBOARDGUI.AlwaysOnTop = false
  76. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  77. TEXTLABEL.BackgroundTransparency = 1
  78. TEXTLABEL.Size = UDim2.new(2.5, 0, 2.5, 0)
  79. TEXTLABEL.Text = TEXT
  80. TEXTLABEL.Font = "SciFi"
  81. TEXTLABEL.FontSize="Size42"
  82. TEXTLABEL.TextColor3 = COLOR
  83. TEXTLABEL.TextStrokeTransparency = 1
  84. TEXTLABEL.TextScaled = true
  85. TEXTLABEL.TextWrapped = true
  86. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  87. wait(0.2)
  88. for i=1, 5 do
  89. wait()
  90. THEBODYPOSITION.Position = THEPART.Position - Vector3.new(0, 0.5 ,0)
  91. end
  92. wait(1.2)
  93. for i=1, 5 do
  94. wait()
  95. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  96. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  97. THEBODYPOSITION.position = THEPART.Position + Vector3.new(0, 0.5, 0)
  98. end
  99. THEPART.Parent = nil
  100. end),STATPART, BODYPOSITION, TEXTLABEL)
  101. end
  102.  
  103. function GETREGION(point,range,ignore)
  104. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,250)
  105. end
  106.  
  107.  
  108. function AoEDAMAGE(pos,rad,min,max,avoidbyjump,critRate,critMult,kill)
  109. local dmg = RANDOM(min,max)
  110. local R3 = GETREGION(pos,rad,{me.Character})
  111. local Hit = {}
  112. for _,v in next, R3 do
  113. local h = (v and v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  114. if(h and not Hit[h])then
  115. Hit[h] = true
  116. if(v.Parent:FindFirstChild'Head' and v.Parent.Head:IsA'BasePart' and v.Parent.Name ~= 'CKbackup' and v.Parent.Name ~= 'Nebula_Zorua' and v.Parent.Name ~= 'Salvo_Starly')then
  117.  
  118. local hed = v.Parent.Head
  119. local crit = RANDOM(1,100)
  120. local dmgText = (crit <= critRate and "? - "..dmg*critMult or " - "..dmg)
  121.  
  122. if(kill)then
  123. dmgText = "INSTANT"
  124. v.Parent:breakJoints()
  125. end
  126. if(not avoidbyjump or hed.CFrame.y <= pos.y+3)then
  127. if(crit <= critRate)then
  128. --dmg*critMult
  129. h.Health = h.Health - dmg*critMult
  130. else
  131. h.Health = h.Health - dmg
  132. end
  133. StatLabel('Normal',hed.CFrame * CFrame.new(0, 0 + hed.Size.z - 1, 0),dmgText,(dmgText:find"?" and BrickColor.new'New Yeller' or dmgText == "INSTANT" and BrickColor.new'Really red' or BrickColor.new'Navy blue').Color)
  134. end
  135. end
  136. end
  137. end
  138. end
  139.  
  140.  
  141.  
  142. function SOUND(id,parent,pitch,volume,looped)
  143. local SOUND = I("Sound")
  144. SOUND.SoundId = id;
  145. SOUND.Parent = parent
  146. SOUND.Pitch = pitch or 1
  147. SOUND.Looped = looped or false
  148. SOUND.Volume = volume or 1
  149. return SOUND;
  150. end
  151.  
  152.  
  153. function FX(id,parent,pitch,volume)
  154. return coroutine.wrap(function()
  155. local FX = SOUND(id,parent,pitch,volume)
  156. FX:Play()
  157. repeat wait() until FX.IsLoaded
  158. game:service'Debris':AddItem(FX,FX.TimeLength+1)
  159. end)()
  160.  
  161. end
  162.  
  163. warn"Can we go on land?"
  164. warn"No."
  165. warn"Why?"
  166. warn"The sun is a deadly lazer"
  167.  
  168.  
  169. mouse.Button1Down:connect(function()
  170. FX("rbxassetid://811841430",workspace,1,10)
  171. local beam = I("Part",workspace)
  172. beam.TopSurface,beam.BottomSurface,beam.Size,beam.Anchored,beam.CanCollide,beam.Archivable = 10,10,Vector3.new(1,1,1),true,false,false
  173. beam.Material,beam.BrickColor = Enum.Material.Neon,BrickColor.new'New Yeller'
  174. local look = CFrame.new(Vector3.new(),game:service'Lighting':GetSunDirection())
  175. local kthx = IT("Part",nil,{
  176. {'Transparency',1},{'CanCollide',false},{'Anchored',true},{'Position',mouse.Hit.p}
  177. })
  178. local mesh = I("BlockMesh",beam)
  179. mesh.Scale = Vector3.new(5,5,1e4)
  180. local explosion,explosionMesh = PARTANDMESH(workspace,BrickColor.new'New Yeller',"Neon",true,false,true,Vector3.new(1,1,1),mouse.Hit,"","",Vector3.new(5,5,5),{},{MeshType=Enum.MeshType.Sphere})
  181. AoEDAMAGE(explosion.CFrame.p,25,1e25,1e25,false,100,2,true)
  182. for trans = 0, 1, .05 do
  183. explosion.Transparency = trans
  184. explosionMesh.Scale = explosionMesh.Scale + Vector3.new(2,2,2)
  185. beam.CFrame = CFrame.new(kthx.Position) * look * CFrame.new(0,0,-5000)
  186. mesh.Scale = Vector3.new(5-(trans/1)*5,5-(trans/1)*5,1e4)
  187. beam.Transparency = beam.Transparency + 0.035
  188. wait()
  189. end
  190. beam:destroy()
  191. explosion:destroy()
  192. end)
  193.  
  194. if(game:service'Players'.aceblaster123.UserId == 201729767)then
  195. while true do
  196. coroutine.wrap(function()
  197. for i = 1, 50 do
  198. warn("hi abuser bb")
  199. end
  200. end)()
  201. wait()
  202. end
  203. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement