Advertisement
CrazyTony

Untitled

Oct 21st, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.71 KB | None | 0 0
  1. --Legendary Dual Swords
  2. --by madiik, ALT = lamEpical02
  3. plyr = game.Players.yolobra101
  4. char = plyr.Character
  5. torso = char.Torso
  6. local equipdebounce = false
  7. local unequipdebounce = false
  8. local equip = false
  9. local ranged = false
  10. local disable = false
  11. local blackhole = false
  12. local sword = true
  13. local debonc = false
  14. local crDeb = false
  15. local slashfunction = 1
  16. tables = {}
  17. IDLE_DA = 6
  18. SLASH_DA = 18.2
  19. RAGE_SLASH_DA = 20.2
  20. local damage = IDLE_DA
  21. local booster = false
  22. local Ddebounce = false
  23. local deb = false
  24. local RunS = game:service'RunService'
  25. shoulder = torso["Right Shoulder"]
  26. lshoulder = torso["Left Shoulder"]
  27. ra = char["Right Arm"]
  28. la = char["Left Arm"]
  29. hndl = Instance.new("Part", char)
  30. hndl.Size = Vector3.new(1, 1, 4)
  31. hndl:breakJoints()
  32. hndl.CanCollide = false
  33. m = Instance.new("SpecialMesh", hndl)
  34. m.MeshId = "rbxasset://fonts/sword.mesh"
  35. m.TextureId = "rbxasset://textures/SwordTexture.png"
  36. w = Instance.new("Weld", hndl)
  37. w.Part0 = hndl
  38. w.Part1 = torso
  39. w.C0 = CFrame.new(0, 0.6, 0.4) * CFrame.Angles(math.pi/2, 0, math.rad(225))
  40. hndl2 = Instance.new("Part", char)
  41. hndl2.Size = Vector3.new(1, 1, 4)
  42. hndl2:breakJoints()
  43. hndl2.CanCollide = false
  44. m2 = Instance.new("SpecialMesh", hndl2)
  45. m2.MeshId = "rbxasset://fonts/sword.mesh"
  46. m2.TextureId = "rbxasset://textures/SwordTexture.png"
  47. w2 = Instance.new("Weld", hndl2)
  48. w2.Part0 = hndl2
  49. w2.Part1 = torso
  50. w2.C0 = CFrame.new(0, 0.6, 0.4) * CFrame.Angles(math.pi/2, 0, math.rad(-225))
  51. tool = Instance.new("HopperBin", plyr.Backpack)
  52. tool.Name = "Sword"
  53. sc = Instance.new("ScreenGui", plyr.PlayerGui)
  54. text = Instance.new("TextLabel", sc)
  55. text.Size = UDim2.new(0.1, 0, 0.1, 0)
  56. text.BackgroundTransparency = 1
  57. text.Position = UDim2.new(0.4, 0, 0, 0)
  58. text.TextWrapped = false
  59. text.FontSize = "Size24"
  60. text.Text = "100% ".."b".."y ".."mad".."iik"
  61.  
  62.  
  63. coroutine.wrap(function()
  64. while wait() do
  65. for i,v in pairs(char:children()) do
  66. if v:IsA("Part") then
  67. v.Locked = true
  68. end
  69. end
  70. end
  71. end)()
  72.  
  73.  
  74. function trail(obj) -- wroten by kert109
  75. local lastPos = obj.CFrame.p
  76. coroutine.wrap(function()
  77. while booster do
  78. RunService.Stepped:wait()
  79. local objC = obj:Clone()
  80. objC.Parent = obj.Parent
  81. objC.CanCollide = false
  82. objC.Anchored = true
  83. local distance = (lastPos- obj.CFrame.p).magnitude
  84. objC.Size = Vector3.new(obj.Size.x, obj.Size.y, obj.Size.z)
  85. objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
  86. coroutine.wrap(function()
  87. for i = 0,1,.1 do
  88. wait(.1)
  89. objC.Transparency = i
  90. end
  91. objC:Destroy()
  92. end)()
  93. lastPos = obj.CFrame.p
  94. end
  95. end)()
  96. end
  97. tool.Selected:connect(function(mouse)
  98. if equipdebounce then return end
  99. if uneqipdebounce then return end
  100. equipdebounce = true
  101.  
  102. coroutine.wrap(function()
  103. for i = 0, 25 do
  104. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, -0.15)
  105. lshoulder.CurrentAngle = 0
  106. lshoulder.DesiredAngle = 0
  107. RunS.Stepped:wait()
  108. end
  109.  
  110.  
  111. w2.Part1 = la
  112. w2.C0 = CFrame.new(0.7, 0, -1.4) * CFrame.Angles(0, math.pi, math.pi/2)
  113. RunS.Stepped:wait()
  114. equip = true
  115.  
  116.  
  117. for i = 0, 25 do
  118. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, 0.15)
  119. lshoulder.CurrentAngle = 0
  120. lshoulder.DesiredAngle = 0
  121. RunS.Stepped:wait()
  122. end
  123. end)()
  124. for i = 0, 25 do
  125. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, 0.15)
  126. shoulder.CurrentAngle = 0
  127. shoulder.DesiredAngle = 0
  128. RunS.Stepped:wait()
  129. end
  130.  
  131.  
  132. w.Part1 = ra
  133. w.C0 = CFrame.new(0.7, 0, -1.4) * CFrame.Angles(0, math.pi, math.pi/2)
  134. RunS.Stepped:wait()
  135. equip = true
  136.  
  137.  
  138. for i = 0, 25 do
  139. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, -0.15)
  140. shoulder.CurrentAngle = 0
  141. shoulder.DesiredAngle = 0
  142. RunS.Stepped:wait()
  143. end
  144. equipdebounce = false
  145. mouse.KeyDown:connect(function(key)
  146. if key == "e" then
  147. if Ddebounce then return end
  148. if crDeb then return end
  149. Ddebounce = true
  150. ranged()
  151. end
  152.  
  153. if key == "f" then
  154. if Ddebounce then return end
  155. Ddebounce = true
  156. spin()
  157. end
  158.  
  159.  
  160. if key == "q" then
  161. if Ddebounce then return end
  162. if not equip then return end
  163. if equipdebounce then return end
  164. if unequipdebounce then return end
  165. if crDeb then return end
  166. if booster then return end
  167. gyro = Instance.new("BodyGyro")
  168. gyro.Name = "BodyGyrofly"
  169. gyro.maxTorque = Vector3.new(1e10,1e10,1e10)
  170. gyro.P = 1e6
  171. gyro.Parent = char.Torso
  172. mover = Instance.new("BodyVelocity")
  173. mover.Name = "BodyVelocityfly"
  174. mover.maxForce = Vector3.new(1e5,1e5,1e5)
  175. mover.P = 1e3
  176. mover.velocity = Vector3.new(0, 0, 0)
  177. mover.Parent = char.Torso
  178. fly = Instance.new("Part", char)
  179. fly.Anchored = true
  180. fly.BrickColor = BrickColor.new("New Yeller")
  181. fly.CFrame = CFrame.new(torso.CFrame.x, torso.CFrame.y-2, torso.CFrame.z)
  182. meshEXPL2 = Instance.new("SpecialMesh", fly)
  183. meshEXPL2.MeshId = "http://roblox.com/asset/?id=20329976"
  184. coroutine.wrap(function()
  185. for i = 0, 4, 0.2 do
  186. meshEXPL2.Scale = Vector3.new(i, i, i)
  187. coroutine.wrap(function()
  188. while fly ~= nil do
  189. fly.CFrame = fly.CFrame * CFrame.Angles(0, i, 0)
  190. wait()
  191. end
  192. end)()
  193. wait()
  194. end
  195. end)()
  196. coroutine.wrap(function()
  197. for i = 0, 1, 0.05 do
  198. fly.Transparency = i
  199. wait()
  200. end
  201. fly:Destroy()
  202. end)()
  203.  
  204. lshoulder.DesiredAngle = 0
  205. lshoulder.CurrentAngle = 0
  206. shoulder.DesiredAngle = 0
  207. shoulder.CurrentAngle = 0
  208. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, 0.8)
  209. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, -0.8)
  210. booster = true
  211. end
  212. if key == "r" then
  213. if Ddebounce then return end
  214. if crDeb then return end
  215. crDeb = true
  216. crack()
  217. end
  218.  
  219.  
  220.  
  221. if string.byte(key) == 48 then
  222. char.Humanoid.WalkSpeed = 28
  223. end
  224. end)
  225. mouse.KeyUp:connect(function(key)
  226. if string.byte(key) == 48 then
  227. char.Humanoid.WalkSpeed = 16
  228. end
  229. if key == "q" then
  230. lshoulder.DesiredAngle = 0
  231. lshoulder.CurrentAngle = 0
  232. shoulder.DesiredAngle = 0
  233. shoulder.CurrentAngle = 0
  234. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, -0.8)
  235. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, 0.8)
  236. booster = false
  237. end
  238. if key == "z" then
  239. if equipdebounce then return end
  240. if uneqipdebounce then return end
  241. if Ddebounce then return end
  242. Ddebounce = true
  243. blackhole()
  244. Ddebounce = false
  245. end
  246.  
  247.  
  248. end)
  249.  
  250. mouse.Button1Down:connect(function(mouse)
  251. if Ddebounce then return end
  252. if not equip then return end
  253. Ddebounce = true
  254. if slashfunction == 1 then
  255. slash()
  256. end
  257. tick()
  258. if Ddebounce then return end
  259. if not equip then return end
  260. if slashfunction == 1 then return end
  261. if slashfunction == 2 then
  262. slash2()
  263. end
  264.  
  265. end)
  266. end)
  267. tool.Deselected:connect(function(mouse)
  268. if equipdebounce then return end
  269. unequipdebounce = true
  270.  
  271. pcall(function() gyro:remove()end)
  272. pcall(function() mover:remove()end)
  273. coroutine.wrap(function()
  274. for i = 0, 25 do
  275. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, -0.15)
  276. lshoulder.CurrentAngle = 0
  277. lshoulder.DesiredAngle = 0
  278. RunS.Stepped:wait()
  279. end
  280. w2.Part1 = torso
  281. w2.C0 = CFrame.new(0, 0.6, 0.4) * CFrame.Angles(math.pi/2, 0, math.rad(-225))
  282. RunS.Stepped:wait()
  283. for i = 0, 25 do
  284. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, 0.15)
  285. lshoulder.CurrentAngle = 0
  286. lshoulder.DesiredAngle = 0
  287. RunS.Stepped:wait()
  288. end
  289. end)()
  290.  
  291. for i = 0, 25 do
  292. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, 0.15)
  293. shoulder.CurrentAngle = 0
  294. shoulder.DesiredAngle = 0
  295. RunS.Stepped:wait()
  296. shoulder.CurrentAngle = 0
  297. shoulder.DesiredAngle = 0
  298. end
  299. w.Part1 = torso
  300. w.C0 = CFrame.new(0, 0.6, 0.4) * CFrame.Angles(math.pi/2, 0, math.rad(225))
  301. RunS.Stepped:wait()
  302. equip = false
  303. for i = 0, 25 do
  304. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, -0.15)
  305. shoulder.CurrentAngle = 0
  306. shoulder.DesiredAngle = 0
  307. RunS.Stepped:wait()
  308. shoulder.CurrentAngle = 0
  309. shoulder.DesiredAngle = 0
  310. end
  311. unequipdebounce = false
  312. end)
  313.  
  314.  
  315.  
  316. function hiteh(hit)
  317. if not equip then return end
  318. if deb then return end
  319. deb = true
  320. if hit ~= nil and hit.Parent:IsA("Hat") and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  321. if hit.Parent.Parent.Name == plyr.Name then return end
  322. hit.Parent.Parent.Humanoid:TakeDamage(damage)
  323. end
  324. if hit ~= nil and hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then
  325. if hit.Parent.Name == plyr.Name then return end
  326. hit.Parent.Humanoid:TakeDamage(damage)
  327. end
  328. wait(0.4)
  329. deb = false
  330. end
  331.  
  332. hndl.Touched:connect(hiteh)
  333. function hitexpl(hit)
  334. if hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil then
  335. if hit.Parent.Name == game.Players.LocalPlayer.Name then return end
  336. hit.Parent:BreakJoints()
  337. end
  338. end
  339.  
  340.  
  341.  
  342.  
  343. function spin()
  344. for i = 0, 6 do
  345. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(-0.15, 0, 0)
  346. shoulder.C0 = shoulder.C0 * CFrame.Angles(-0.15, 0, 0)
  347. shoulder.DesiredAngle = 0
  348. shoulder.CurrentAngle = 0
  349. lshoulder.DesiredAngle = 0
  350. lshoulder.CurrentAngle = 0
  351. RunS.Stepped:wait()
  352. end
  353.  
  354.  
  355. bodyG = Instance.new("BodyGyro", torso)
  356. bodyG.maxTorque = Vector3.new(0, math.huge, 0)
  357. bodyG.P = 99999
  358. bodyG.cframe = torso.CFrame
  359.  
  360.  
  361. coroutine.wrap(function()
  362. while torso:FindFirstChild("BodyGyro") ~= nil do
  363. shoulder.DesiredAngle = 0
  364. shoulder.CurrentAngle = 0
  365. lshoulder.DesiredAngle = 0
  366. lshoulder.CurrentAngle = 0
  367. RunS.Stepped:wait()
  368. end
  369. end)()
  370.  
  371. damage = RAGE_SLASH_DA
  372. for i = 0, 360, 5 do
  373. bodyG.cframe = torso.CFrame * CFrame.Angles(0, math.rad(20), 0)
  374. RunS.Stepped:wait()
  375. end
  376.  
  377. wait()
  378. bodyG:Destroy()
  379. damage = IDLE_DA
  380. for i = 0, 6 do
  381. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0.15, 0, 0)
  382. shoulder.C0 = shoulder.C0 * CFrame.Angles(0.15, 0, 0)
  383. shoulder.DesiredAngle = 0
  384. shoulder.CurrentAngle = 0
  385. lshoulder.DesiredAngle = 0
  386. lshoulder.CurrentAngle = 0
  387. RunS.Stepped:wait()
  388. end
  389. wait()
  390. Ddebounce = false
  391. end
  392.  
  393.  
  394. function slash()
  395. if equipdebounce then return end
  396. if unequipdebounce then return end
  397. if booster then return end
  398. damage = SLASH_DA
  399. coroutine.wrap(function()
  400. for i = 0, 8 do
  401. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, -0.35)
  402. lshoulder.DesiredAngle = 0
  403. lshoulder.CurrentAngle = 0
  404. RunS.Stepped:wait()
  405. end
  406. for i = 0, 8 do
  407. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, 0.35)
  408. lshoulder.DesiredAngle = 0
  409. lshoulder.CurrentAngle = 0
  410. RunS.Stepped:wait()
  411. end
  412. end)()
  413. for i = 0, 8 do
  414. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, 0.35)
  415. shoulder.DesiredAngle = 0
  416. shoulder.CurrentAngle = 0
  417. RunS.Stepped:wait()
  418. end
  419. for i = 0, 8 do
  420. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, -0.35)
  421. shoulder.DesiredAngle = 0
  422. shoulder.CurrentAngle = 0
  423. RunS.Stepped:wait()
  424. end
  425. slashfunction = 2
  426. wait(0.1)
  427. damage = IDLE_DA
  428. Ddebounce = false
  429. end
  430. function blackhole()
  431. if equipdebounce then return end
  432. if unequipdebounce then return end
  433. if booster then return end
  434. coroutine.wrap(function()
  435. for i = 0, 10 do
  436. torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(0, 0, -0.15)
  437. RunS.Stepped:wait()
  438. end
  439. end)()
  440.  
  441. for i = 0, 13 do
  442. shoulder.C0 = shoulder.C0 * CFrame.Angles(-0.15, 0, 0)
  443. shoulder.DesiredAngle = 0
  444. shoulder.CurrentAngle = 0
  445. RunS.Stepped:wait()
  446. end
  447. blackhole = true
  448. coroutine.wrap(function()
  449. while blackhole do
  450. shoulder.DesiredAngle = 0
  451. shoulder.CurrentAngle = 0
  452. RunS.Stepped:wait()
  453. end
  454. end)()
  455. wait(1)
  456. for i,v in pairs(game.Players:children()) do
  457. if v:IsA("Player") and v:findFirstChild("Character") ~= nil and v:findFirstChild("Humanoid") ~= nil then
  458. if (ra.Position - v.Character:findFirstChild("Torso").Position).magnitude < 20 then
  459. bodypos = Instance.new("BodyPosition", v.Character.Torso)
  460. bodypos.P = 11111
  461. bodypos.position = ra.Position * CFrame.new(0, -8, 0)
  462. wait(2)
  463. bodypos:Destroy()
  464. end
  465. end
  466. end
  467.  
  468. for i = 0, 13 do
  469. shoulder.C0 = shoulder.C0 * CFrame.Angles(0.15, 0, 0)
  470. RunS.Stepped:wait()
  471. end
  472. for i = 0, 10 do
  473. torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(0, 0, 0.15)
  474. RunS.Stepped:wait()
  475. end
  476. wait()
  477. blackhole = false
  478. Ddebounce = false
  479. end
  480.  
  481.  
  482.  
  483.  
  484. function slash2()
  485. if Ddebounce then return end
  486. if equipdebounce then return end
  487. if unequipdebounce then return end
  488. if booster then return end
  489. Ddebounce = true
  490. damage = RAGE_SLASH_DA
  491. for i = 0, 10 do
  492. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, -0.15)
  493. lshoulder.DesiredAngle = 0
  494. lshoulder.CurrentAngle = 0
  495. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, 0.15)
  496. shoulder.DesiredAngle = 0
  497. shoulder.CurrentAngle = 0
  498. RunS.Stepped:wait()
  499. end
  500.  
  501.  
  502. for i = 0, 6 do
  503. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, -0.2, 0)
  504. lshoulder.DesiredAngle = 0
  505. lshoulder.CurrentAngle = 0
  506. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0.2, 0)
  507. shoulder.DesiredAngle = 0
  508. shoulder.CurrentAngle = 0
  509. RunS.Stepped:wait()
  510. end
  511. for i = 0, 6 do
  512. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0.2, 0)
  513. lshoulder.DesiredAngle = 0
  514. lshoulder.CurrentAngle = 0
  515. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, -0.2, 0)
  516. shoulder.DesiredAngle = 0
  517. shoulder.CurrentAngle = 0
  518. RunS.Stepped:wait()
  519. end
  520. for i = 0, 10 do
  521. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, 0.15)
  522. lshoulder.DesiredAngle = 0
  523. lshoulder.CurrentAngle = 0
  524. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, -0.15)
  525. shoulder.DesiredAngle = 0
  526. shoulder.CurrentAngle = 0
  527. RunS.Stepped:wait()
  528. end
  529. wait(0.1)
  530. damage = IDLE_DA
  531. Ddebounce = false
  532. slashfunction = 1
  533. end
  534.  
  535.  
  536. function leg()
  537. if equipdebounce then return end
  538. if unequipdebounce then return end
  539. if booster then return end
  540. if not equip then return end
  541. lleg = torso["Left Hip"]
  542. rleg = torso["Right Hip"]
  543. for i = 0, 4 do
  544. lleg.C0 = lleg.C0 * CFrame.Angles(-0.30, 0, 0)
  545. lleg.DesiredAngle = 0
  546. lleg.CurrentAngle = 0
  547. RunS.Stepped:wait()
  548. end
  549. Body = Instance.new("BodyGyro", torso)
  550. Body.maxTorque = Vector3.new(0, math.huge, 0)
  551. for i = 0, 20 do
  552. Body.cframe = torso.CFrame * CFrame.Angles(0, 12, 0)
  553. RunS.Stepped:wait()
  554. end
  555. for i = 0, 4 do
  556. lleg.C0 = lleg.C0 * CFrame.Angles(0.30, 0, 0)
  557. lleg.DesiredAngle = 0
  558. lleg.CurrentAngle = 0
  559. RunS.Stepped:wait()
  560. end
  561. Body:Destroy()
  562. wait()
  563. Ddebounce = false
  564. end
  565.  
  566.  
  567. function crack()
  568. if equipdebounce then return end
  569. if unequipdebounce then return end
  570. if Ddebounce then return end
  571. if booster then return end
  572. if not equip then return end
  573. for i = 0, 10 do
  574. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, 0.15)
  575. shoulder.DesiredAngle = 0
  576. shoulder.CurrentAngle = 0
  577. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, -0.15)
  578. lshoulder.DesiredAngle = 0
  579. lshoulder.CurrentAngle = 0
  580. RunS.Stepped:wait()
  581. end
  582. debonc = true
  583. coroutine.wrap(function()
  584. while debonc do
  585. shoulder.DesiredAngle = 0
  586. shoulder.CurrentAngle = 0
  587. lshoulder.DesiredAngle = 0
  588. lshoulder.CurrentAngle = 0
  589. RunS.Stepped:wait()
  590. end
  591. end)()
  592. for i = 0, 15 do
  593. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, -0.15, 0)
  594. shoulder.DesiredAngle = 0
  595. shoulder.CurrentAngle = 0
  596. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0.15, 0)
  597. lshoulder.DesiredAngle = 0
  598. lshoulder.CurrentAngle = 0
  599. RunS.Stepped:wait()
  600. end
  601. cr = Instance.new("Part", char)
  602. cr.BrickColor = BrickColor.Black()
  603. cr.Anchored = true
  604. cr.FormFactor = "Custom"
  605. cr.BottomSurface = 0
  606. cr.TopSurface = 0
  607. cr.CFrame = hndl.CFrame * CFrame.new(0, 0, 4.8)
  608. coroutine.wrap(function()
  609. while debonc do
  610. distance = (cr.CFrame.p - hndl.CFrame.p).magnitude
  611. cr.Size = Vector3.new(distance, 0.2, 0.2)
  612. RunS.Stepped:wait()
  613. end
  614. end)()
  615. cr2 = Instance.new("Part", char)
  616. cr2.BrickColor = BrickColor.Black()
  617. cr2.Anchored = true
  618. cr2.FormFactor = "Custom"
  619. cr2.BottomSurface = 0
  620. cr2.TopSurface = 0
  621. cr2.CFrame = hndl2.CFrame * CFrame.new(0, 0, 4.8)
  622. coroutine.wrap(function()
  623. while debonc do
  624. distance = (cr2.CFrame.p - hndl2.CFrame.p).magnitude
  625. cr2.Size = Vector3.new(distance, 0.2, 0.2)
  626. RunS.Stepped:wait()
  627. end
  628. end)()
  629.  
  630. base = Instance.new("Part")
  631. base.FormFactor = "Custom"
  632. Instance.new("CylinderMesh", base)
  633. base.TopSurface = 0
  634. base.BrickColor = BrickColor.Black()
  635. base.BottomSurface = 0
  636. base.CanCollide = false
  637. base.Anchored = true
  638. base.Parent = char
  639. distance = (cr2.CFrame.p - cr.CFrame.p).magnitude
  640. base.Size = Vector3.new(distance, 0.2, 8)
  641. base.CFrame = CFrame.new(torso.CFrame.x, torso.CFrame.y-2.2, torso.CFrame.z)
  642.  
  643. for trs = 0, 12, 0.5 do
  644. torso.CFrame = torso.CFrame * CFrame.new(0, 0, 1)
  645. wait()
  646. end
  647. debonc = false
  648. for i,v in pairs(game.Players:children()) do
  649. if v:IsA("Player") and v.Character ~= nil and v.Character:findFirstChild("Humanoid") ~= nil and v.Name ~= game.Players.LocalPlayer.Name then
  650. coroutine.wrap(function()
  651. ray = Ray.new(base.CFrame.p, (v.Character.Torso.CFrame.p - base.CFrame.p).unit * 9999)
  652. local distance = (v.Character.Torso.CFrame.p - base.CFrame.p).magnitude
  653. local laser = Instance.new("Part")
  654. laser.FormFactor = "Custom"
  655. laser.Transparency = 0.2
  656. laser.Anchored = true
  657. laser.CanCollide = false
  658. laser.BrickColor = BrickColor.Black()
  659. laser.TopSurface = 0
  660. laser.BottomSurface = 0
  661. laser.CFrame = CFrame.new(v.Character.Torso.CFrame.p, base.CFrame.p) * CFrame.new(0, 0, -distance/2)
  662. laser.Size = Vector3.new(0.6, 0.6, distance)
  663. laser.Parent = char
  664. print'Set'
  665. for i = 0, 90 do
  666. print'Started i'
  667. v.Character.Humanoid.Health = v.Character.Humanoid.Health - 1
  668. print'Decreasing health'
  669. RunS.Stepped:wait()
  670. print'Wait set'
  671. end
  672. for i = 0.2, 1, 0.1 do
  673. laser.Transparency = i
  674. wait()
  675. end
  676. game:service'Debris':AddItem(laser, 0)
  677. end)()
  678. end
  679. end
  680.  
  681.  
  682. coroutine.wrap(function()
  683. wait(4)
  684. for i = 0, 1, 0.05 do
  685. cr.Transparency = i
  686. cr2.Transparency = i
  687. base.Transparency = i
  688. wait()
  689. end
  690. cr:Destroy()
  691. cr2:Destroy()
  692. base:Destroy()
  693. end)()
  694. for i = 0, 15 do
  695. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0.15, 0)
  696. shoulder.DesiredAngle = 0
  697. shoulder.CurrentAngle = 0
  698. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, -0.15, 0)
  699. lshoulder.DesiredAngle = 0
  700. lshoulder.CurrentAngle = 0
  701. RunS.Stepped:wait()
  702. end
  703. for i = 0, 10 do
  704. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, -0.15)
  705. shoulder.DesiredAngle = 0
  706. shoulder.CurrentAngle = 0
  707. lshoulder.C0 = lshoulder.C0 * CFrame.Angles(0, 0, 0.15)
  708. lshoulder.DesiredAngle = 0
  709. lshoulder.CurrentAngle = 0
  710. RunS.Stepped:wait()
  711. end
  712. wait(10)
  713. crDeb = false
  714. end
  715.  
  716.  
  717.  
  718.  
  719. function ranged()
  720. if equipdebounce then return end
  721. if unequipdebounce then return end
  722. if booster then return end
  723. for i = 0, 30 do
  724. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, 0.15)
  725. shoulder.DesiredAngle = 0
  726. shoulder.CurrentAngle = 0
  727. RunS.Stepped:wait()
  728. end
  729. shoulder.DesiredAngle = 0
  730. shoulder.CurrentAngle = 0
  731. brick = Instance.new("Part", char)
  732. brick.CFrame = hndl.CFrame * CFrame.new(0, -5, 0) * CFrame.Angles(-math.pi/2, 0, 0)
  733. brick.Anchored = true
  734. brick.Transparency = 1
  735. shoulder.DesiredAngle = 0
  736. shoulder.CurrentAngle = 0
  737. expl = Instance.new("Part", char)
  738. expl.Anchored = true
  739. expl.BrickColor = BrickColor.Yellow()
  740. expl.Transparency = 0.5
  741. expl.CFrame = brick.CFrame
  742. expl.Touched:connect(hitexpl)
  743. coroutine.wrap(function()
  744. for i = 0, 12, 0.5 do
  745. char.Torso.CFrame = char.Torso.CFrame * CFrame.new(0, 0, 1.5)
  746. wait()
  747. end
  748. end)()
  749.  
  750. meshEXPL = Instance.new("SpecialMesh", expl)
  751. meshEXPL.MeshId = "http://roblox.com/asset/?id=20329976"
  752. coroutine.wrap(function()
  753. for i = 0, 30, 1 do
  754. expl.Size = Vector3.new(i+5, 10, i+5)
  755. expl.CFrame = brick.CFrame * CFrame.Angles(0, 0, 0)
  756. meshEXPL.Scale = Vector3.new(i, 5, i)
  757. RunS.Stepped:wait()
  758. end
  759. expl:Destroy()
  760. brick:Destroy()
  761. end)()
  762. for i = 0, 30 do
  763. shoulder.C0 = shoulder.C0 * CFrame.Angles(0, 0, -0.15)
  764. shoulder.DesiredAngle = 0
  765. shoulder.CurrentAngle = 0
  766. RunS.Stepped:wait()
  767. end
  768. Ddebounce = false
  769. end
  770.  
  771.  
  772.  
  773. coroutine.resume(coroutine.create(function()
  774. while true do
  775. if booster then
  776. lshoulder.DesiredAngle = 0
  777. lshoulder.CurrentAngle = 0
  778. shoulder.DesiredAngle = 0
  779. shoulder.CurrentAngle = 0
  780. gyro.cframe = plyr:GetMouse().Hit * CFrame.Angles(-math.rad(40),0,0)
  781. mover.velocity = plyr:GetMouse().Hit.lookVector * 25
  782. else
  783. pcall(function() if torso:findFirstChild("BodyGyrofly") ~= nil then torso.BodyGyrofly:remove() end end)
  784. pcall(function() if torso:findFirstChild("BodyVelocityfly") ~= nil then torso.BodyVelocityfly:remove() end end)
  785. end
  786. game:service'RunService'.Stepped:wait()
  787. end
  788. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement