Dark_EccentricYT

Untitled

Jun 15th, 2018
3,340
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.Players.LocalPlayer
  2. chr=lp.Character
  3. attacking=false
  4. mouse = game.Players.LocalPlayer:GetMouse()
  5. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  6. p0.Position = p1.Position
  7. local w = Instance.new('Motor',par or p0)
  8. w.Part0 = p0
  9. w.Part1 = p1
  10. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  11. return w
  12. end
  13. z=Instance.new("Part",chr)
  14. z.Size=chr.Torso.Size
  15. cloud=Instance.new("SpecialMesh",z)
  16. cloud.MeshId="rbxassetid://1095708"
  17. cloud.Scale=Vector3.new(2,2,2)
  18. z.Transparency=1
  19. Weld(z,chr.Torso,0,15,0,0,0,0,z)
  20. Song = function(Volume,SoundId,Looped,Object)
  21. sound=Instance.new("Sound")
  22. sound.Parent=Object
  23. sound.Volume=Volume
  24. sound.SoundId="rbxassetid://"..SoundId
  25. sound.Looped=Looped
  26. sound:Play()
  27. end
  28. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  29. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  30. for i=1,Times do
  31. local li = Instance.new("Part",workspace)
  32. li.TopSurface =0
  33. li.BottomSurface = 0
  34. li.Anchored = true
  35. li.Material = 288
  36. li.Transparency = Transparency or 0.4
  37. li.BrickColor = BrickColor.new("Really black")
  38. li.formFactor = "Custom"
  39. li.CanCollide = false
  40. 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)])
  41. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  42. if Times == i then
  43. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  44. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  45. else
  46. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  47. end
  48. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  49. end
  50. end
  51. mouse.KeyDown:connect(function(key)
  52. key:lower()
  53. if key == "q" and attacking == false then
  54. attacking= true
  55. for i=1,4 do
  56. Lightning(chr.Head.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  57. explode=Instance.new("Explosion",Workspace)
  58. explode.Position=mouse.Hit.p
  59. end
  60. attacking=false
  61. end
  62. end)
  63. mouse.KeyDown:connect(function(key)
  64. key:lower()
  65. if key == "." and attacking == false then
  66. attacking = true
  67. Instance.new("ForceField",chr)
  68. chr.Torso.Anchored=true
  69. z.Transparency=0
  70. z.Material = 288
  71. for i=1,20 do
  72. Wait()
  73. Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  74. explode=Instance.new("Explosion",chr)
  75. explode.Position=chr.Torso.Position
  76. end
  77. wait(2)
  78. chr.ForceField:Destroy()
  79. chr.Torso.Anchored=false
  80. z.Transparency=1
  81. z.Material = 288
  82. attacking=false
  83. end
  84. end)
  85. mouse.KeyDown:connect(function(key)
  86. key:lower()
  87. if key == "." and attacking == false then
  88. Song(math.huge,172949886,true,chr.Head)
  89. end
  90. end)
  91. mouse.KeyDown:connect(function(key)
  92. key:lower()
  93. if key == "e" and attacking == false then
  94. wait()
  95. for i=1,5 do
  96. Lightning(chr.Torso.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  97. end
  98. Wait()
  99. x=Instance.new("Part",chr)
  100. x.Transparency=1
  101. x.Material = 288
  102. x.Position=mouse.Hit.p
  103. chr.Torso.CFrame=x.CFrame*CFrame.new(0,5,0)
  104. x:Destroy()
  105. end
  106. end)
  107. mouse.KeyDown:connect(function(key)
  108. key:lower()
  109. if key == "y" and attacking == false then
  110. for i,v in pairs(chr.Head:GetChildren()) do
  111. if v:IsA("Sound") then
  112. v:Destroy()
  113. end
  114. end
  115. end
  116. end)
  117. mouse.KeyDown:connect(function(key)
  118. key:lower()
  119. if key == "h" and attacking == false then
  120. for i=1,10 do
  121. wait()
  122. Lightning(z.Position,chr.Torso.Position,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  123. explode=Instance.new("Explosion",chr)
  124. explode.Position=chr.Torso.Position
  125. explode.BlastPressure=0
  126. chr.Humanoid.Health=chr.Humanoid.Health+10
  127. end
  128. end
  129. end)
  130. mouse.KeyDown:connect(function(key)
  131. key:lower()
  132. if key == "r" and attacking == false then
  133. attacking=true
  134. z.Transparency=0
  135. Lightning(z.Position,mouse.Hit.p,10,math.random(5,10),math.random(-2.5,2.5),"New Yeller",0.05,0.3)
  136. explode=Instance.new("Explosion",chr)
  137. explode.Position=mouse.Hit.p
  138. z.Transparency=1
  139. attacking=false
  140. end
  141. end)
Add Comment
Please, Sign In to add comment