Dark_EccentricYT

Untitled

Jun 10th, 2020
5,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. lp=game:service'Players'.LocalPlayer
  2. pl=lp.Character
  3. e=0
  4. ring={}
  5.  
  6. Part = function(x,y,z,color,tr,cc,an,parent)
  7. local p = Instance.new('Part',parent or Weapon)
  8. p.formFactor = 'Custom'
  9. p.Size = Vector3.new(x,y,z)
  10. p.BrickColor = BrickColor.new(color)
  11. p.CanCollide = cc
  12. p.Transparency = tr
  13. p.Anchored = an
  14. p.TopSurface,p.BottomSurface = 0,0
  15. p.Material="Neon"
  16. return p
  17. end
  18.  
  19. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  20. p0.Position = p1.Position
  21. local w = Instance.new('Motor',par or p0)
  22. w.Part0 = p0
  23. w.Part1 = p1
  24. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  25. return w
  26. end
  27.  
  28. so = function(id,par,lo,pi,tm)
  29. local s = Instance.new("Sound",par)
  30. s.Looped=lo
  31. s.Pitch=pi
  32. s.SoundId = "http://roblox.com/asset/?id="..id
  33. s:play()
  34. s.Volume=1
  35. Spawn(function()
  36. wait(tm)
  37. s:Stop''
  38. s:Destroy''
  39. end)
  40. return s
  41. end
  42. findHumanoid = function(where)
  43. if where and where:IsA("Model") then
  44. for i,v in pairs(where:GetChildren()) do
  45. if v:IsA("Humanoid") then return v end
  46. end
  47. end
  48. end
  49.  
  50. Mesh = function(par,num,x,y,z)
  51. local msh = _
  52. if num == 1 then
  53. msh = Instance.new("CylinderMesh",par)
  54. elseif num == 2 then
  55. msh = Instance.new("SpecialMesh",par)
  56. msh.MeshType = 3
  57. elseif num == 3 then
  58. msh = Instance.new("BlockMesh",par)
  59. elseif num == 4 then
  60. msh = Instance.new("SpecialMesh",par)
  61. msh.MeshType = "Torso"
  62. elseif type(num) == 'string' then
  63. msh = Instance.new("SpecialMesh",par)
  64. msh.MeshId = num
  65. end
  66. msh.Scale = Vector3.new(x,y,z)
  67. return msh
  68. end
  69.  
  70. Lightning = function(Start,End,Times,Offset,Color,Thickness)
  71. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  72. for i=1,Times do
  73. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = 0 li.BrickColor = Color li.Material="Neon"
  74. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  75. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  76. if Times == i then
  77. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  78. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  79. else
  80. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  81. end
  82. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p Spawn(function() for i=1,10 do wait() li.Transparency = li.Transparency+.1 end li:Destroy() end)
  83. end
  84. end
  85.  
  86. function skul(v)
  87. if v:findFirstChild("Torso") ~= nil then
  88. for i=1,30 do
  89. local prt= Part(1,.2,1,'Black',0,true,false,workspace)
  90. prt.Material='Concrete'
  91. prt.CanCollide=false
  92. prt.CFrame=v.Torso.CFrame*CFrame.new(math.random(-30,30)/10,math.random(-20,30)/10,math.random(-20,20)/10)
  93. game.Debris:AddItem(prt,math.random(50,70)/10)
  94. end
  95. ypcall(function()v.Head.face:Destroy()end)
  96. local ms= Mesh(v.Head,'http://www.roblox.com/asset/?id=4770583',3.2,3.2,3.2)
  97. ms.TextureId='http://www.roblox.com/asset/?id=4770560'
  98. local ded=so('16433289',v.Head,false,1,1)
  99. for _,a in pairs(v:GetChildren()) do if a.Name ~= 'Head' and not a:IsA'Humanoid' then a:remove() end end
  100. end
  101. end
  102.  
  103. mod=Instance.new("Model",pl)
  104. mainp=Part(1,1,1,"",1,false,false,mod)
  105. mainw=Weld(mainp,pl['Torso'],0,0,0,0,0,0,mainp)
  106.  
  107. for i=1,360,24 do
  108. local p=Part(.1,.1,2.5,'',.9,false,false,mod)
  109. table.insert(ring,p)
  110. local w=Weld(p,mainp,0,0,0,0,0,0,p)
  111. w.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(i),0,0)*CFrame.new(0,6,0);
  112. end
  113.  
  114. for i=1,360,24 do
  115. local p=Part(.1,.1,2.5,'',.9,false,false,mod)
  116. table.insert(ring,p)
  117. local w=Weld(p,mainp,0,0,0,0,0,0,p)
  118. w.C1=CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(i),0)*CFrame.new(6,0,0);
  119. end
  120.  
  121. Spawn(function()
  122. while wait() do
  123. e=e+1
  124. for i,v in pairs(workspace:children()) do
  125. if v:IsA("Model") and findHumanoid(v) then
  126. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  127. if (v:findFirstChild("Torso").Position - pl.Torso.Position).magnitude < 7.5 and v.Name ~= pl.Name then
  128. Lightning(v.Torso.Position,pl['Torso'].Position,math.random(5,10),math.random(-2.5,2.5),BrickColor.random(),0.35)
  129. skul(v)
  130. Spawn(function()
  131. for i=1,10 do wait(.01)
  132. for o=1,#ring do
  133. ring[o].Transparency=i/10-.1
  134. end
  135. end
  136. end)
  137. end
  138. end
  139. end
  140. end
  141. mainw.C1=CFrame.new()*CFrame.Angles(math.rad(e),-math.rad(e),math.rad(e))
  142. end
  143. end)
Add Comment
Please, Sign In to add comment