Kagan22

Untitled

Sep 22nd, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.41 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. char = plr.Character
  3. mouse = plr:GetMouse()
  4. torso = char.Torso
  5. head = char.Head
  6. ra = char["Right Arm"]
  7. la = char["Left Arm"]
  8. rs = char.Torso["Right Shoulder"]
  9. ls = char.Torso["Left Shoulder"]
  10. humanoid = char:findFirstChild("Humanoid")
  11. local damage = math.random(16, 22)
  12. local debounce = false
  13. local attack = false
  14. local healing = false
  15. local touched = false
  16. Run = game:service'RunService'
  17.  
  18. hndl = Instance.new("Part", char)
  19. hndl.FormFactor = "Custom"
  20. hndl.Material = "SmoothPlastic"
  21. hndl.Size = Vector3.new(0.51, 5, 0.21)
  22. hndl.BottomSurface = "SmoothNoOutlines"
  23. hndl.FrontSurface = "SmoothNoOutlines"
  24. hndl.RightSurface = "SmoothNoOutlines"
  25. hndl.LeftSurface = "SmoothNoOutlines"
  26. hndl.TopSurface = "SmoothNoOutlines"
  27. hndl.BackSurface = "SmoothNoOutlines"
  28. hndl.Locked = true
  29. hndl.CanCollide = false
  30. hndl.Reflectance = 0.5
  31. hndl:BreakJoints()
  32. w = Instance.new("Weld", char)
  33. w.C0 = CFrame.new(0, 0, -0.6) * CFrame.Angles(0, 0, math.pi/4)
  34. w.Part0 = hndl
  35. w.Part1 = torso
  36. hndl2 = Instance.new("Part", char)
  37. hndl2.Material = "SmoothPlastic"
  38. hndl2.FormFactor = "Custom"
  39. hndl2.Size = Vector3.new(0.53, 1.5, 0.23)
  40. hndl2.BrickColor = BrickColor.Blue()
  41. hndl2.BottomSurface = "SmoothNoOutlines"
  42. hndl2.FrontSurface = "SmoothNoOutlines"
  43. hndl2.RightSurface = "SmoothNoOutlines"
  44. hndl2.LeftSurface = "SmoothNoOutlines"
  45. hndl2.TopSurface = "SmoothNoOutlines"
  46. hndl2.BackSurface = "SmoothNoOutlines"
  47. hndl2.CanCollide = false
  48. hndl2.Locked = true
  49. hndl2:BreakJoints()
  50. w2 = Instance.new("Weld", char)
  51. w2.C0 = CFrame.new(0, -1.8, 0) * CFrame.Angles(0, 0, 0)
  52. w2.Part0 = hndl2
  53. w2.Part1 = hndl
  54. hndl3 = Instance.new("Part", char)
  55. hndl3.FormFactor = "Custom"
  56. hndl3.Material = "SmoothPlastic"
  57. hndl3.Size = Vector3.new(0.73, 0.4, 0.23)
  58. hndl3.BrickColor = BrickColor.Blue()
  59. hndl3.BottomSurface = "SmoothNoOutlines"
  60. hndl3.FrontSurface = "SmoothNoOutlines"
  61. hndl3.RightSurface = "SmoothNoOutlines"
  62. hndl3.LeftSurface = "SmoothNoOutlines"
  63. hndl3.TopSurface = "SmoothNoOutlines"
  64. hndl3.BackSurface = "SmoothNoOutlines"
  65. hndl3.CanCollide = false
  66. hndl3.Locked = true
  67. hndl3:BreakJoints()
  68. w3 = Instance.new("Weld", char)
  69. w3.C0 = CFrame.new(0, -1.2, 0) * CFrame.Angles(0, 0, 0)
  70. w3.Part0 = hndl3
  71. w3.Part1 = hndl
  72. hndl4 = Instance.new("Part", char)
  73. hndl4.FormFactor = "Custom"
  74. hndl4.Material = "SmoothPlastic"
  75. hndl4.Size = Vector3.new(0.36, 0.36, 0.21)
  76. hndl4.BottomSurface = "SmoothNoOutlines"
  77. hndl4.FrontSurface = "SmoothNoOutlines"
  78. hndl4.RightSurface = "SmoothNoOutlines"
  79. hndl4.LeftSurface = "SmoothNoOutlines"
  80. hndl4.TopSurface = "SmoothNoOutlines"
  81. hndl4.BackSurface = "SmoothNoOutlines"
  82. hndl4.CanCollide = false
  83. hndl4.Reflectance = 0.5
  84. hndl4.Locked = true
  85. hndl4:BreakJoints()
  86. w4 = Instance.new("Weld", char)
  87. w4.C0 = CFrame.new(-1.77, 1.77, 0) * CFrame.Angles(0, 0, math.pi/4)
  88. w4.Part0 = hndl4
  89. w4.Part1 = hndl
  90.  
  91. sound = Instance.new("Sound", head)
  92. sound.SoundId = "http://roblox.com/asset/?id=10209850"
  93. sound.Volume = 1
  94.  
  95. tool = Instance.new("HopperBin", plr.Backpack)
  96. tool.Name = "Sword"
  97.  
  98. tool.Selected:connect(function(mouse)
  99. rs.Part0 = nil
  100. rs.Part1 = nil
  101. ls.Part0 = nil
  102. ls.Part1 = nil
  103.  
  104.  
  105. ar = Instance.new("Part", char)
  106. ar.FormFactor = "Custom"
  107. ar.Material = "SmoothPlastic"
  108. ar.Size = Vector3.new(1, 1, 1)
  109. ar.Transparency = 1
  110. ar.Locked = true
  111. ar.CanCollide = false
  112. ar:BreakJoints()
  113.  
  114. fake = Instance.new("Weld", char)
  115. fake.Part0 = char.Torso
  116. fake.C0 = CFrame.new(1.48,0.45,0)
  117. fake.Part1 = ar
  118.  
  119. ws = Instance.new("Weld", char)
  120. ws.C0 = CFrame.new(0, 0.45, 0)
  121. ws.Part0 = ra
  122. ws.C1 = CFrame.new()
  123. ws.Part1 = ar
  124.  
  125.  
  126. ar2 = Instance.new("Part", char)
  127. ar2.FormFactor = "Custom"
  128. ar2.Size = Vector3.new(1, 1, 1)
  129. ar2.Transparency = 1
  130. ar2.Locked = true
  131. ar2.CanCollide = false
  132. ar2:BreakJoints()
  133.  
  134. fake2 = Instance.new("Weld", char)
  135. fake2.Part0 = char.Torso
  136. fake2.C0 = CFrame.new(-1.48,0.45,0)
  137. fake2.Part1 = ar2
  138.  
  139. ws2 = Instance.new("Weld", char)
  140. ws2.C0 = CFrame.new(0, 0.45, 0)
  141. ws2.Part0 = la
  142. ws2.C1 = CFrame.new()
  143. ws2.Part1 = ar2
  144.  
  145. for i = 0, 160, 12 do
  146. fake.C0 = CFrame.new(1.48, 0.45, 0) * CFrame.Angles(math.rad(i), 0, 0)
  147. wait()
  148. end
  149. w.C0 = CFrame.new(-0.6, 2, -0.8) * CFrame.Angles(-math.pi/2, 0, math.pi/4)
  150. w.Part0 = hndl
  151. w.Part1 = ra
  152. coroutine.wrap(function()
  153. for i = 160, 70, -10 do
  154. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(i/1.8))
  155. wait()
  156. end
  157. end)()
  158. for i = 0, 70, 10 do
  159. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(i/1.8))
  160. wait()
  161. end
  162. mouse.Button1Down:connect(function(mouse)
  163. if attack then return end
  164. if debounce then return end
  165. if healing then return end
  166. attack = true
  167. for i = 70, 120, 10 do
  168. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(50/1.8))
  169. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(90/1.8))
  170. wait()
  171. end
  172. sound:play()
  173. for i = 125, 30, -15 do
  174. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(50/1.8))
  175. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(90/1.8))
  176. wait()
  177. end
  178. for i = 30, 70, 10 do
  179. fake2.C0 = CFrame.new(-1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(70/1.8))
  180. fake.C0 = CFrame.new(1, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(70/1.8))
  181. wait()
  182. end
  183. attack = false
  184.  
  185. end)
  186. mouse.KeyDown:connect(function(key)
  187. if key == "e" then
  188. if attack then return end
  189. if debounce then return end
  190. if healing then return end
  191. debounce = true
  192. super1()
  193. end
  194. if key == "q" then
  195. if attack then return end
  196. if debounce then return end
  197. healing = true
  198. coroutine.wrap(function()
  199. while healing do
  200. coroutine.wrap(function()
  201. if char:findFirstChild("Humanoid") then
  202. char.Humanoid.Health = char.Humanoid.Health + 10
  203. end
  204. local pow = Instance.new("Part", char)
  205. pow.BrickColor = BrickColor.Blue()
  206. pow.FormFactor = "Custom"
  207. pow.CanCollide = false
  208. pow.Size = Vector3.new(0.2, 0.6, 0.2)
  209. pow.Anchored = true
  210. pow.TopSurface = 0
  211. pow.BottomSurface = 0
  212. pow.BottomSurface = "SmoothNoOutlines"
  213. pow.FrontSurface = "SmoothNoOutlines"
  214. pow.RightSurface = "SmoothNoOutlines"
  215. pow.LeftSurface = "SmoothNoOutlines"
  216. pow.TopSurface = "SmoothNoOutlines"
  217. pow.BackSurface = "SmoothNoOutlines"
  218. pow.CFrame = torso.CFrame * CFrame.new(math.random(-4, 4), -4, math.random(-4, 4))
  219. Instance.new("PointLight", pow).Color = Color3.new(0, 0, 1)
  220. coroutine.wrap(function()
  221. while pow ~= nil do
  222. pow.CFrame = pow.CFrame * CFrame.new(0, 0.5, 0)
  223. Run.Stepped:wait()
  224. end
  225. end)()
  226. wait(0.5)
  227. for transpar = 0, 1, 0.1 do
  228. pow.Transparency = transpar
  229. wait()
  230. end
  231. pow:Destroy()
  232.  
  233.  
  234. end)()
  235. Run.Stepped:wait(0.2)
  236. end
  237. end)()
  238. end
  239. if key == "r" then
  240. if debounce then return end
  241. if healing then return end
  242. if attack then return end
  243. debounce = true
  244. super2()
  245. end
  246. end)
  247.  
  248. mouse.KeyUp:connect(function(key)
  249. if key == "q" then
  250. healing = false
  251. end
  252. end)
  253.  
  254. end)
  255.  
  256. tool.Deselected:connect(function()
  257. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4)
  258. fake.C0 = CFrame.new(1.2, 0.45, -0.4)
  259. w.C0 = CFrame.new(0, 0, -0.6) * CFrame.Angles(0, 0, math.pi/4)
  260. w.Part0 = hndl
  261. w.Part1 = torso
  262. ws:Destroy()
  263. ws2:Destroy()
  264. fake:Destroy()
  265. fake2:Destroy()
  266. ar2:Destroy()
  267. ar:Destroy()
  268. rs.Part0 = torso
  269. rs.Part1 = ra
  270. ls.Part0 = torso
  271. ls.Part1 = la
  272. end)
  273.  
  274.  
  275. function super1()
  276. for i = 70, 150, 10 do
  277. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(i/1.8))
  278. wait()
  279. end
  280.  
  281.  
  282.  
  283. for i = 0, 60 do
  284. coroutine.wrap(function()
  285. local charge = Instance.new("Part", char)
  286. charge.FormFactor = "Custom"
  287. charge.Material = "SmoothPlastic"
  288. charge.TopSurface = 0
  289. charge.BottomSurface = 0
  290. charge.Transparency = 0.4
  291. charge.BrickColor = BrickColor.White()
  292. charge.Anchored = true
  293. charge.CanCollide = false
  294. charge.Size = Vector3.new(2, 2, 2)
  295. charge.BottomSurface = "SmoothNoOutlines"
  296. charge.FrontSurface = "SmoothNoOutlines"
  297. charge.RightSurface = "SmoothNoOutlines"
  298. charge.LeftSurface = "SmoothNoOutlines"
  299. charge.TopSurface = "SmoothNoOutlines"
  300. charge.BackSurface = "SmoothNoOutlines"
  301. charge.CFrame = la.CFrame * CFrame.new(0, -0.8, 0) * CFrame.Angles(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  302. wait()
  303. for tra = 0.4, 1, 0.1 do
  304. charge.Transparency = tra
  305. wait()
  306. end
  307. charge:Destroy()
  308. end)()
  309. wait(0.06)
  310. end
  311. for i = 150, 70, -10 do
  312. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, -math.rad(i/1.8))
  313. wait()
  314. end
  315. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(70), 0, math.rad(70/1.8))
  316. local powa = Instance.new("Part", char)
  317. powa.FormFactor = "Custom"
  318. powa.Material = "SmoothPlastic"
  319. powa.BrickColor = BrickColor.White()
  320. powa.Size = Vector3.new(4, 200, 4)
  321. powa.Transparency = 0.6
  322. powa.CanCollide = false
  323. powa.Locked = true
  324. powa.Anchored = true
  325. powa.CFrame = torso.CFrame * CFrame.new(0, 0, 0)
  326. Instance.new("CylinderMesh", powa)
  327. coroutine.wrap(function()
  328. powa.Touched:connect(function(hit)
  329. if hit.Parent ~= nil and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.Name ~= plr.Name then
  330. hit.Parent:BreakJoints()
  331. end
  332. end)
  333. end)()
  334. coroutine.wrap(function()
  335. for size = 4, 70, 2 do
  336. powa.Size = Vector3.new(size, 200, size)
  337. powa.CFrame = torso.CFrame * CFrame.new(0, 0, 0)
  338. wait()
  339. end
  340. end)()
  341. wait(0.4)
  342. for trans = 0.6, 1, 0.02 do
  343. powa.Transparency = trans
  344. wait()
  345. end
  346. powa:Destroy()
  347.  
  348.  
  349. debounce = false
  350. end
  351.  
  352. function super2()
  353. for i = 70, 0, -10 do
  354. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(i/1.8))
  355. wait()
  356. end
  357.  
  358. bodyG = Instance.new("BodyGyro", torso)
  359. bodyG.maxTorque = Vector3.new(0, math.huge, 0)
  360. bodyG.P = 9999999
  361. bodyG.cframe = torso.CFrame
  362. neck = torso.Neck
  363. neck.C0 = neck.C0 * CFrame.Angles(0, math.rad(0), math.rad(90))
  364. coroutine.wrap(function()
  365. game:service'RunService'.Stepped:connect(function()
  366. bodyG.cframe = CFrame.new(torso.Position,Vector3.new(mouse.Hit.p.x,torso.Position.y,mouse.Hit.p.z)) * CFrame.Angles(0, math.rad(-90), 0)
  367. end)
  368. end)()
  369. for i = 0, 90, 10 do
  370. fake2.C0 = CFrame.new(-1.45, 0.45, -0) * CFrame.Angles(0, 0, -math.rad(i))
  371. wait()
  372. end
  373. for i = 0, 20 do
  374. coroutine.wrap(function()
  375. local charge = Instance.new("Part", char)
  376. charge.FormFactor = "Custom"
  377. charge.Material = "SmoothPlastic"
  378. charge.TopSurface = 0
  379. charge.BottomSurface = 0
  380. charge.Transparency = 0.4
  381. charge.BrickColor = BrickColor.White()
  382. charge.Anchored = true
  383. charge.CanCollide = false
  384. charge.Size = Vector3.new(2, 2, 2)
  385. charge.BottomSurface = "SmoothNoOutlines"
  386. charge.FrontSurface = "SmoothNoOutlines"
  387. charge.RightSurface = "SmoothNoOutlines"
  388. charge.LeftSurface = "SmoothNoOutlines"
  389. charge.TopSurface = "SmoothNoOutlines"
  390. charge.BackSurface = "SmoothNoOutlines"
  391.  
  392. charge.CFrame = la.CFrame * CFrame.new(0, -0.8, 0) * CFrame.Angles(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  393. wait()
  394. for tra = 0.4, 1, 0.1 do
  395. charge.Transparency = tra
  396. wait()
  397. end
  398. charge:Destroy()
  399. end)()
  400. wait(0.06)
  401. end
  402. local ball = Instance.new("Part", char)
  403. ball.FormFactor = "Custom"
  404. ball.Material = "SmoothPlastic"
  405. ball.Size = Vector3.new(4, 4, 4)
  406. ball.Shape = "Ball"
  407. ball.Transparency = 0.4
  408. ball.BottomSurface = 0
  409. ball.TopSurface = 0
  410. ball.CanCollide = true
  411. ball.Anchored = true
  412. ball:breakJoints()
  413. coroutine.wrap(function()
  414. for i = 0, 100, 2 do
  415. if touched then return end
  416. ball.CFrame = la.CFrame * CFrame.new(0, -7, 0) *CFrame.new(0, -i, 0)
  417. wait()
  418. end
  419. if touched then return end
  420. ball.Size = Vector3.new(5, 5, 5)
  421. wait(0.1)
  422. ball.Transparency = 0.6
  423. ball.Size = Vector3.new(6, 6, 6)
  424. wait(0.1)
  425. ball.Size = Vector3.new(7, 7, 7)
  426. ball.Transparency = 0.8
  427. wait(0.1)
  428. ball.Transparency = 1
  429. ball:Destroy()
  430. end)()
  431. ball.BrickColor = BrickColor.White()
  432.  
  433. ball.Touched:connect(function(hit)
  434. if touched then return end
  435. if hit.Parent ~= nil then
  436. touched = true
  437. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  438. hit.Parent:BreakJoints()
  439. end
  440. ball.Transparency = 0.6
  441. ball.Size = Vector3.new(6, 6, 6)
  442. wait(0.1)
  443. ball.Size = Vector3.new(7, 7, 7)
  444. ball.Transparency = 0.8
  445. wait(0.1)
  446. ball.Transparency = 1
  447. ball:Destroy()
  448. wait(1)
  449. touched = false
  450. end
  451. end)
  452.  
  453. wait(2)
  454. bodyG:Destroy()
  455. neck.C0 = neck.C0 * CFrame.Angles(0, math.rad(0), math.rad(-90))
  456. for i = 90, 0, -10 do
  457. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(0, 0, -math.rad(i))
  458. wait()
  459. end
  460. for i = 0, 70, 10 do
  461. fake2.C0 = CFrame.new(-1.2, 0.45, -0.4) * CFrame.Angles(math.rad(i), 0, math.rad(i/1.8))
  462. wait()
  463. end
  464. debounce = false
  465. end
  466.  
  467.  
  468. hndl.Touched:connect(function(hit)
  469. if attack then
  470. if debounce then return end
  471. debounce = true
  472. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  473. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(damage)
  474. end
  475. wait(0.1)
  476. debounce = false
  477. end
  478. end)
Add Comment
Please, Sign In to add comment