artbarte

Dark powers

May 7th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.58 KB | None | 0 0
  1. --[[Made by PointCoded]]--
  2. --[[Private Script, Do Not Leek!]]--
  3. --[[==The Darkness Wielder==]]--
  4. --[[Not finished]]--
  5. -------------------------
  6. local Music = false
  7. -------------------------
  8. local Player = game:GetService("Players").LocalPlayer
  9. local Char = Player.Character
  10. local Torso = Char["Torso"]
  11. local Head = Char["Head"]
  12. local Larm = Char["Left Arm"]
  13. local Rarm = Char["Right Arm"]
  14. local Lleg = Char["Left Leg"]
  15. local Rleg = Char["Right Leg"]
  16. local Humanoid = Char["Humanoid"]
  17. local Neck = Torso["Neck"]
  18. local LS = Torso["Left Shoulder"]
  19. local LH = Torso["Left Hip"]
  20. local RS = Torso["Right Shoulder"]
  21. local RH = Torso["Right Hip"]
  22. local Mouse = Player:GetMouse()
  23. local root = Char.HumanoidRootPart
  24. local cam = workspace.CurrentCamera
  25. local HealLimit = 5
  26. ----------------------------------
  27. -------------------------
  28. --[[Made by PointCoded]]--
  29. --[[Private Script, Do Not Leek!]]--
  30. --[[==The Darkness Wielder ==]]--
  31. --[[Not finished]]--
  32. -------------------------
  33. local Ter = workspace.Terrain
  34. local Attacking = false
  35. local flySpeed = 10
  36. local MAX_FLY_SPEED = 500
  37. local canFly = false
  38. local flyToggled = false
  39. local keysDown = {}
  40. local rad = math.rad
  41. local Sound = Instance.new("Sound",Char)
  42. Sound.Volume = 0.3
  43. Sound.Looped = false
  44. Sound:Play()
  45. local SoundIds = {"267979379","324976791","401059459"}
  46. ----------------------------------
  47. local floatBP = Instance.new("BodyPosition")
  48. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  49. local flyBV = Instance.new("BodyVelocity")
  50. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  51. local turnBG = Instance.new("BodyGyro")
  52. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  53. it=Instance.new
  54. vt=Vector3.new
  55. cf=CFrame.new
  56. euler=CFrame.fromEulerAnglesXYZ
  57. angles=CFrame.Angles
  58. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  59. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  60. RW.Name="Right Shoulder"
  61. RW.Part0=Torso
  62. RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15)
  63. RW.C1=cf(0, 0.5, 0)
  64. RW.Part1=Rarm
  65. RW.Parent=Torso
  66. LW.Name="Left Shoulder"
  67. LW.Part0=Torso
  68. LW.C0=cf(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, -0.15)
  69. LW.C1=cf(0, 0.5, 0)
  70. LW.Part1=Larm
  71. LW.Parent=Torso
  72. function swait(num)
  73. if num==0 or num==nil then
  74. game:service'RunService'.Stepped:wait(0)
  75. else
  76. for i=0,num do
  77. game:service'RunService'.Stepped:wait(0)
  78. end
  79. end
  80. end
  81. ----------------------------------------------------
  82. -------------------------
  83. --[[Made by PointCoded]]--
  84. --[[Private Script, Do Not Leek!]]--
  85. --[[==The Darkness Wielder ==]]--
  86. --[[Not finished]]--
  87. -------------------------
  88. --[[Morphing]]--
  89. for i,v in pairs(Char:children()) do
  90. if v:IsA("Hat") or v:IsA("Pants") or v:IsA("Shirt") or v:IsA("CharacterMesh") then
  91. v:Destroy()
  92. end
  93. end
  94. local H = Instance.new("Hat",Char)
  95. local P = Instance.new("Part",H)
  96. local M = Instance.new("SpecialMesh",P)
  97. M.MeshId = "http://www.roblox.com/asset/?id=346578029"
  98. M.TextureId = "http://www.roblox.com/asset/?id=134207168"
  99. P.Locked = true
  100. H.AttachmentPos = Vector3.new(0, 0, 0)
  101. P.formFactor = 0
  102. P.Size = Vector3.new(2,2,2)
  103. P.Position = Head.Position
  104. local cor = Instance.new("Part", Char.Hat)
  105. cor.Name = "Link"
  106. cor.Locked = true
  107. cor.BottomSurface = 0
  108. cor.CanCollide = false
  109. cor.Size = Vector3.new(1, 9, 1)
  110. cor.Transparency = 1
  111. cor.TopSurface = 0
  112. corw = Instance.new("Weld", cor)
  113. corw.Part0 = Head
  114. corw.Part1 = cor
  115. corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  116. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  117. weld1 = Instance.new("Weld", Char.Hat)
  118. weld1.Part0 = cor
  119. weld1.Part1 = Char.Hat.Part
  120. weld1.C0 = CFrame.new(0, 0.56, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  121. local S = Instance.new("Shirt",Char)
  122. S.ShirtTemplate = "http://www.roblox.com/asset/?id=151958439"
  123. local P = Instance.new("Pants",Char)
  124. P.PantsTemplate = "http://www.roblox.com/asset/?id=119143689"
  125.  
  126. function clerp(a,b,t)
  127. local qa = {QuaternionFromCFrame(a)}
  128. local qb = {QuaternionFromCFrame(b)}
  129. local ax, ay, az = a.x, a.y, a.z
  130. local bx, by, bz = b.x, b.y, b.z
  131. local _t = 1-t
  132. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  133. end
  134.  
  135. function QuaternionFromCFrame(cf)
  136. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  137. local trace = m00 + m11 + m22
  138. if trace > 0 then
  139. local s = math.sqrt(1 + trace)
  140. local recip = 0.5/s
  141. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  142. else
  143. local i = 0
  144. if m11 > m00 then
  145. i = 1
  146. end
  147. if m22 > (i == 0 and m00 or m11) then
  148. i = 2
  149. end
  150. if i == 0 then
  151. local s = math.sqrt(m00-m11-m22+1)
  152. local recip = 0.5/s
  153. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  154. elseif i == 1 then
  155. local s = math.sqrt(m11-m22-m00+1)
  156. local recip = 0.5/s
  157. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  158. elseif i == 2 then
  159. local s = math.sqrt(m22-m00-m11+1)
  160. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  161. end
  162. end
  163. end
  164.  
  165. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  166. local xs, ys, zs = x + x, y + y, z + z
  167. local wx, wy, wz = w*xs, w*ys, w*zs
  168. local xx = x*xs
  169. local xy = x*ys
  170. local xz = x*zs
  171. local yy = y*ys
  172. local yz = y*zs
  173. local zz = z*zs
  174. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  175. end
  176.  
  177. function QuaternionSlerp(a, b, t)
  178. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  179. local startInterp, finishInterp;
  180. if cosTheta >= 0.0001 then
  181. if (1 - cosTheta) > 0.0001 then
  182. local theta = math.acos(cosTheta)
  183. local invSinTheta = 1/math.sin(theta)
  184. startInterp = math.sin((1-t)*theta)*invSinTheta
  185. finishInterp = math.sin(t*theta)*invSinTheta
  186. else
  187. startInterp = 1-t
  188. finishInterp = t
  189. end
  190. else
  191. if (1+cosTheta) > 0.0001 then
  192. local theta = math.acos(-cosTheta)
  193. local invSinTheta = 1/math.sin(theta)
  194. startInterp = math.sin((t-1)*theta)*invSinTheta
  195. finishInterp = math.sin(t*theta)*invSinTheta
  196. else
  197. startInterp = t-1
  198. finishInterp = t
  199. end
  200. end
  201. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  202. end
  203. ------------------------------------------------------
  204. function Particle(Part)
  205. local P = Instance.new("ParticleEmitter",Part)
  206. C = Color3.new(0,0,0)
  207. P.Color = ColorSequence.new(C,C)
  208. P.Lifetime = NumberRange.new(0.1,0.4)
  209. P.Size = NumberSequence.new(0.5)
  210. P.Speed = NumberRange.new(1)
  211. P.Acceleration = Vector3.new(0,-10,0)
  212. P.Texture = "http://www.roblox.com/asset/?id=341277531"
  213. end
  214. -------------------------
  215. --[[Made by PointCoded]]--
  216. --[[Private Script, Do Not Leek!]]--
  217. --[[==The Darkness Wielder ==]]--
  218. --[[Not finished]]--
  219. -------------------------
  220. function PT(Part,Time)
  221. local P = Instance.new("ParticleEmitter",Part)
  222. C = Color3.new(0,0,0)
  223. P.Color = ColorSequence.new(C,C)
  224. P.Lifetime = NumberRange.new(0.1,0.4)
  225. P.Size = NumberSequence.new(0.5)
  226. P.Speed = NumberRange.new(1)
  227. P.Acceleration = Vector3.new(0,-10,0)
  228. P.Texture = "http://www.roblox.com/asset/?id=341277531"
  229. game:GetService("Debris"):AddItem(P, Time)
  230. end
  231. function Heal ()
  232. for i,Part in pairs(Char:GetChildren()) do
  233. if Part:IsA("Part") then
  234. Particle(Part)
  235. end
  236. end
  237. Humanoid.Health = Humanoid.MaxHealth
  238. end
  239. function SetupHeal ()
  240. for i,Part in pairs(Char:GetChildren()) do
  241. if Part:IsA("Part") then
  242. Particle(Part)
  243. end
  244. end
  245. Humanoid.MaxHealth = 5000
  246. Humanoid.WalkSpeed = 30
  247. Humanoid.JumpPower = 100
  248. Humanoid.Health = Humanoid.MaxHealth
  249. wait(5)
  250. for i,Part in pairs(Char:GetChildren()) do
  251. if Part:IsA("Part") then
  252. if Part:findFirstChild("ParticleEmitter") then
  253. Part.ParticleEmitter:remove()
  254. end
  255. end
  256. end
  257. end
  258. function Destroy(hit,Damage)
  259. if Damage == nil then Damage = 1 end
  260. if hit and hit.Parent and hit.Parent:IsA("Model") and hit.Parent ~= Player.Character and hit.Parent:findFirstChild("Hit") == nil then
  261. if hit.Parent:findFirstChild("Torso") then
  262. rl=Instance.new("BodyAngularVelocity")
  263. rl.P=3000
  264. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  265. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  266. rl.Parent=hit
  267. local M = Instance.new("Model",hit.Parent)
  268. M.Name = "Hit"
  269. game:GetService("Debris"):AddItem(rl,.5)
  270. if hit.Parent:findFirstChild("Humanoid") then
  271. hit.Parent.Humanoid.MaxHealth = 100
  272. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - Damage
  273. end
  274. for i,Part in pairs(hit.Parent:GetChildren()) do
  275. if Part:IsA("Part") then
  276. Part.BrickColor = BrickColor.new("Black")
  277. PT(Part,2)
  278. end
  279. end
  280. swait()
  281. M:remove()
  282. end
  283. end
  284. end
  285. function BeamHit(hit)
  286. if hit and hit.Parent and hit.Parent:IsA("Model") and hit.Parent ~= Player.Character and hit.Parent:findFirstChild("Hit") == nil then
  287. if hit.Parent:findFirstChild("Torso") then
  288. rl=Instance.new("BodyAngularVelocity")
  289. rl.P=3000
  290. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  291. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  292. rl.Parent=hit
  293. local M = Instance.new("Model",hit.Parent)
  294. M.Name = "Hit"
  295. game:GetService("Debris"):AddItem(rl,1)
  296. if hit.Parent:findFirstChild("Humanoid") then
  297. hit.Parent.Humanoid.MaxHealth = 100
  298. hit.Parent.Humanoid.PlatformStand = true
  299. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 5
  300. end
  301. for i,Part in pairs(hit.Parent:GetChildren()) do
  302. if Part:IsA("Part") then
  303. PT(Part,2)
  304. end
  305. end
  306. end
  307. end
  308. end
  309. -------------------------
  310. --[[Made by PointCoded]]--
  311. --[[Private Script, Do Not Leek!]]--
  312. --[[==The Darkness Wielder ==]]--
  313. --[[Not finished]]--
  314. -------------------------
  315. function Blast ()
  316. Attacking = true
  317. for i=0,1,0.1 do
  318. swait()
  319. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(0)),.3)
  320. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(0)),.3)
  321. end
  322. for i=0,1,0.1 do
  323. swait()
  324. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(50)),.5)
  325. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(190),math.rad(0),math.rad(-50)),.5)
  326. end
  327. swait(1)
  328. ypcall(function()
  329. local Ball = Instance.new("Part",Char)
  330. Ball.Shape = 0
  331. Ball.CFrame = Torso.CFrame -- Starting Place
  332. Ball.Transparency = 0.1
  333. Ball.BrickColor = BrickColor.new("Black")
  334. Ball.Reflectance = 0.1
  335. Ball.Material = "Neon"
  336. Ball.Anchored = true
  337. Ball.CanCollide = false
  338. Ball.Size = Vector3.new(3,3,3)
  339. Ball.Locked = true
  340. Ball.Touched:connect(Destroy)
  341. local HB = Instance.new("Part",Char)
  342. HB.Name = "Ball Hitbox"
  343. HB.Transparency = 1
  344. HB.Anchored = true
  345. HB.CanCollide = false
  346. HB.Shape = 0
  347. HB.Size = Vector3.new(6,6,6)
  348. HB.Locked = true
  349. z = Instance.new("Sound",HB)
  350. z.SoundId = "rbxassetid://237035051"
  351. z.Volume = 1
  352. z.Pitch = .9
  353. z:Play()
  354. for i = 0, 260, 8 do
  355. wait()
  356. Ball.Touched:connect(Destroy)
  357. HB.Touched:connect(Destroy)
  358. Ball.CFrame = Ball.CFrame * CFrame.new(0, 0, -4.2 -(i/18)) * CFrame.Angles(0, 0, math.rad(0))-- Make The Ball Go Forward
  359. HB.CFrame = Ball.CFrame
  360. HB.Touched:connect(Destroy)
  361. Ball.Touched:connect(Destroy)
  362. end
  363. swait()
  364. Ball:remove()
  365. z:Stop()
  366. HB:remove()
  367. swait(1)
  368. for i=0,1,0.1 do
  369. swait()
  370. RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15)
  371. LW.C0=cf(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, -0.15)
  372. end
  373. Attacking = false
  374. end)
  375. end
  376. Mouse.KeyDown:connect(function(key)
  377. keysDown[key] = true
  378. key = key:lower()
  379. if Attacking == false then
  380. if key == "q" then
  381. Blast()
  382. elseif key == "g" then
  383. Puddle()
  384. elseif key == "r" then
  385. Beam()
  386. elseif key == "y" then
  387. NuclearBlast()
  388. end
  389. end
  390. if key == "e" then
  391. ypcall(function()
  392. flyToggled = not flyToggled
  393. if not flyToggled then
  394. floatBP.Parent = nil
  395. flyBV.Parent = nil
  396. turnBG.Parent = nil
  397. Humanoid.PlatformStand = false
  398. end
  399. end)
  400. elseif key == "t" then
  401. Boost()
  402. end
  403. end)
  404. function NuclearBlast()
  405.  
  406. end
  407. -------------------------
  408. --[[Made by PointCoded]]--
  409. --[[Private Script, Do Not Leek!]]--
  410. --[[==The Darkness Wielder ==]]--
  411. --[[Not finished]]--
  412. -------------------------
  413. function Boost()
  414. Attacking = true
  415. for i=0,1,0.1 do
  416. swait()
  417. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,100,100),.3)
  418. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(5,-100,-100),.3)
  419. end
  420. Head.Velocity=Torso.CFrame.lookVector*300
  421. RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15)
  422. LW.C0=cf(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, -0.15)
  423. Attacking = false
  424. end
  425. function Beam()
  426. Attacking = true
  427. for i=0,1,0.1 do
  428. swait()
  429. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,100,-10),.3)
  430. end
  431. swait(2)
  432. for i=0,1,0.1 do
  433. swait()
  434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,250,-10),.3)
  435. end
  436. for i=0,1,0.1 do
  437. swait()
  438. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,5,-10),.3)
  439. end
  440. for i=0,1,0.1 do
  441. swait()
  442. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,5,10),.3)
  443. end
  444. local P = Instance.new("Part",Torso)
  445. P.Name = "Circle"
  446. P.Size = Vector3.new(0.5,0.5,0.5)
  447. P.Shape = 0
  448. P.TopSurface = "Smooth"
  449. P.BottomSurface = "Smooth"
  450. P.CFrame = Rarm.CFrame
  451. P.CanCollide = false
  452. P.Anchored = true
  453. P.Transparency = 0.4
  454. P.BrickColor = BrickColor.new("Black")
  455. P.Material = "Neon"
  456. for i=1,200 do
  457. P.CFrame = Rarm.CFrame
  458. swait()
  459. P.Size = Vector3.new(P.Size.X + 0.02,P.Size.Y + 0.02,P.Size.Z + 0.02)
  460. end
  461. P.Shape = 1
  462. P.Size = Vector3.new(3.5,3.5,3.5)
  463. P.Touched:connect(Destroy,80)
  464. for i=1,350 do
  465. local ray = Ray.new(Rarm.CFrame.p, (Mouse.Hit.p - Rarm.CFrame.p).unit * 450)
  466. local part, position = workspace:FindPartOnRay(ray, Char, false, true)
  467. local distance = (Rarm.CFrame.p - position).magnitude
  468. P.Size = Vector3.new(P.Size.X, P.Size.Y, distance)
  469. P.Touched:connect(BeamHit)
  470. P.CFrame = CFrame.new(Rarm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  471. P.Touched:connect(BeamHit)
  472. swait()
  473. if part then
  474. if part.Parent then
  475. local humanoid = part.Parent:FindFirstChild("Humanoid")
  476. if not humanoid and part.Parent.Parent then
  477. humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  478. end
  479. if humanoid then
  480. if humanoid.Parent:findFirstChild("Torso") then
  481. rl=Instance.new("BodyAngularVelocity")
  482. rl.P=3000
  483. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  484. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  485. rl.Parent = humanoid.Parent.Torso
  486. game:GetService("Debris"):AddItem(rl,.5)
  487. humanoid.MaxHealth = 100
  488. humanoid.Health = humanoid.Health - 5
  489. PT(humanoid.Parent.Torso,0.1)
  490. end
  491. end
  492. end
  493. end
  494. end
  495. for i=1,60 do
  496. P.Transparency = P.Transparency + 0.01
  497. P.Touched:connect(BeamHit)
  498. swait()
  499. end
  500. P:remove()
  501. RW.C0=cf(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0.15)
  502. Attacking = false
  503. end
  504. Mouse.KeyUp:connect(function(key)
  505. keysDown[key] = nil
  506. end)
  507. function Puddle()
  508. Attacking = true
  509. local P = Instance.new("Part",Char)
  510. P.Size = Vector3.new(1,0.1,1)
  511. P.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 2.7,Torso.CFrame.Z)
  512. P.Anchored = true
  513. P.BrickColor = BrickColor.new("Black")
  514. Instance.new("CylinderMesh",P)
  515. P.Name = "Puddle"
  516. P.CanCollide = false
  517. P.Touched:connect(Destroy)
  518. for i=1,200 do
  519. swait(0.1)
  520. P.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 2.7,Torso.CFrame.Z)
  521. P.Touched:connect(Destroy)
  522. P.Size = Vector3.new(P.Size.X + 0.1,P.Size.Y,P.Size.Z + 0.1)
  523. P.Touched:connect(Destroy)
  524. P.CFrame = CFrame.new(Torso.CFrame.X,Torso.CFrame.Y - 2.7,Torso.CFrame.Z)
  525. end
  526. Attacking = false
  527. P:Remove()
  528. end
  529. -------------------------
  530. --[[Made by PointCoded]]--
  531. --[[Private Script, Do Not Leek!]]--
  532. --[[==The Darkness Wielder ==]]--
  533. --[[Not finished]]--
  534. -------------------------
  535. function Click()
  536. Attacking = true
  537. for i=0,1,0.1 do
  538. swait()
  539. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,100,50),.2)
  540. end
  541. for i=0,1,0.1 do
  542. swait()
  543. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(5,-100,-550),.2)
  544. end
  545. local ray = Ray.new(Rarm.CFrame.p, (Mouse.Hit.p - Rarm.CFrame.p).unit * 300)
  546. local part, position = workspace:FindPartOnRay(ray, Char, false, true)
  547. local beam = Instance.new("Part", workspace)
  548. beam.BrickColor = BrickColor.new("Really black")
  549. beam.FormFactor = "Custom"
  550. beam.Material = "Neon"
  551. beam.Touched:connect(Destroy)
  552. beam.Transparency = 0.25
  553. beam.Anchored = true
  554. beam.Locked = true
  555. beam.CanCollide = false
  556. z = Instance.new("Sound",beam)
  557. z.SoundId = "rbxassetid://169380525"
  558. z.Pitch = 1.3
  559. z.Volume = 1
  560. local distance = (Rarm.CFrame.p - position).magnitude
  561. beam.Size = Vector3.new(0.3, 0.3, distance)
  562. beam.Touched:connect(Destroy)
  563. beam.CFrame = CFrame.new(Rarm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  564. beam.Touched:connect(Destroy)
  565. game:GetService("Debris"):AddItem(beam, 0.2)
  566. if part then
  567. local humanoid = part.Parent:FindFirstChild("Humanoid")
  568. if not humanoid then
  569. humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  570. end
  571. if humanoid then
  572. if humanoid.Parent:findFirstChild("Torso") then
  573. rl=Instance.new("BodyAngularVelocity")
  574. rl.P=3000
  575. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  576. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  577. rl.Parent = humanoid.Parent.Torso
  578. game:GetService("Debris"):AddItem(rl,.5)
  579. humanoid.MaxHealth = 100
  580. humanoid.Health = humanoid.Health - 80
  581. end
  582. end
  583. end
  584. beam.Touched:connect(Destroy)
  585. z:Play()
  586. Attacking = false
  587. end
  588. -------------------------
  589. --[[Made by PointCoded]]--
  590. --[[Private Script, Do Not Leek!]]--
  591. --[[==The Darkness Wielder ==]]--
  592. --[[Not finished]]--
  593. -------------------------
  594. function Click2()
  595. Attacking = true
  596. for i=0,1,0.1 do
  597. swait()
  598. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(5,100,50),.2)
  599. end
  600. for i=0,1,0.1 do
  601. swait()
  602. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(5,-100,-550),.2)
  603. end
  604. local ray = Ray.new(Larm.CFrame.p, (Mouse.Hit.p - Larm.CFrame.p).unit * 300)
  605. local part, position = workspace:FindPartOnRay(ray, Char, false, true)
  606. local beam = Instance.new("Part", workspace)
  607. beam.BrickColor = BrickColor.new("Really black")
  608. beam.FormFactor = "Custom"
  609. beam.Material = "Neon"
  610. beam.Transparency = 0.25
  611. beam.Anchored = true
  612. beam.Locked = true
  613. z = Instance.new("Sound",beam)
  614. z.SoundId = "rbxassetid://169380525"
  615. z.Pitch = 1.3
  616. z.Volume = 1
  617. beam.CanCollide = false
  618. local distance = (Larm.CFrame.p - position).magnitude
  619. beam.Touched:connect(Destroy)
  620. beam.Size = Vector3.new(0.3, 0.3, distance)
  621. beam.CFrame = CFrame.new(Larm.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
  622. beam.Touched:connect(Destroy)
  623. game:GetService("Debris"):AddItem(beam, 0.2)
  624. if part then
  625. local humanoid = part.Parent:FindFirstChild("Humanoid")
  626. if not humanoid then
  627. humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
  628. end
  629. if humanoid then
  630. if humanoid.Parent:findFirstChild("Torso") then
  631. rl=Instance.new("BodyAngularVelocity")
  632. rl.P=3000
  633. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  634. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  635. rl.Parent = humanoid.Parent.Torso
  636. game:GetService("Debris"):AddItem(rl,.5)
  637. humanoid.MaxHealth = 100
  638. humanoid.Health = humanoid.Health - 80
  639. end
  640. end
  641. end
  642. beam.Touched:connect(Destroy)
  643. z:Play()
  644. Attacking = false
  645. end
  646. Mouse.Button1Down:connect(function()
  647. if Attacking == false then
  648. Click2()
  649. end
  650. end)
  651. -------------------------
  652. --[[Made by PointCoded]]--
  653. --[[Private Script, Do Not Leek!]]--
  654. --[[==The Darkness Wielder ==]]--
  655. --[[Not finished]]--
  656. -------------------------
  657. local function updateFly()
  658. ypcall(function()
  659. if not flyToggled then return end
  660.  
  661. lastForward = forward
  662. lastSide = side
  663.  
  664. forward = 0
  665. side = 0
  666.  
  667. if keysDown.w then
  668. forward = forward + 1
  669. end
  670. if keysDown.s then
  671. forward = forward - 1
  672. end
  673. if keysDown.a then
  674. side = side - 1
  675. end
  676. if keysDown.d then
  677. side = side + 1
  678. end
  679.  
  680. canFly = (forward ~= 0 or side ~= 0)
  681.  
  682. if canFly then
  683. stanceToggle = "Floating"
  684. turnBG.Parent = root
  685. floatBP.Parent = nil
  686. flyBV.Parent = root
  687.  
  688. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  689. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  690. else
  691. floatBP.position = root.Position
  692. floatBP.Parent = root
  693.  
  694. flySpeed = flySpeed - 1
  695. if flySpeed < 0 then flySpeed = 0 end
  696. end
  697.  
  698. local camCF = cam.CoordinateFrame
  699. local in_forward = canFly and forward or lastForward
  700. local in_side = canFly and side or lastSide
  701.  
  702. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  703. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  704.  
  705. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  706. 0)
  707. end)
  708. end
  709. -------------------------
  710. --[[Made by PointCoded]]--
  711. --[[Private Script, Do Not Leek!]]--
  712. --[[==The Darkness Wielder ==]]--
  713. --[[Not finished]]--
  714. -------------------------
  715. Mouse.Button2Down:connect(function()
  716. if Attacking == false then
  717. Click()
  718. end
  719. end)
  720. game:GetService("RunService").RenderStepped:connect(function()
  721. if Humanoid.Health ~= Humanoid.MaxHealth and HealLimit > 0 then
  722. HealLimit = HealLimit - 1
  723. Heal()
  724. wait(2)
  725. for i,Part in pairs(Char:GetChildren()) do
  726. if Part:IsA("Part") then
  727. if Part:findFirstChild("ParticleEmitter") then
  728. Part.ParticleEmitter:remove()
  729. end
  730. end
  731. end
  732. end
  733. if flyToggled then
  734. Humanoid.PlatformStand = true
  735. end
  736. updateFly()
  737. if Sound.IsPlaying == false and Music == true then
  738. Soundid = SoundIds[math.random(1,#SoundIds)]
  739. Sound.SoundId = "http://www.roblox.com/asset/?id="..Soundid
  740. Sound:Play()
  741. end
  742. end)
  743. SetupHeal()
  744. -------------------------
  745. --[[Made by PointCoded]]--
  746. --[[Private Script, Do Not Leek!]]--
  747. --[[==The Darkness Wielder ==]]--
  748. --[[Not finished]]--
Add Comment
Please, Sign In to add comment