367lord2

Sword 4

Apr 8th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 134.60 KB | None | 0 0
  1. local name = "trainerpokemonninja"
  2. local me = game.Players.trainerpokemonninja
  3. local char = me.Character
  4. selected = false
  5. attacking = false
  6. attack = false
  7. dela = 0.4
  8. normdmg = 9
  9. avgdmg = normdmg
  10. normal = 14
  11. speed = 14
  12. normchance = 9333333333333
  13. criticalchance = normchance
  14. splashdist = 14333333333333333333333333333333333333333333333333
  15. plat = 1
  16. healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
  17. if char:findFirstChild("Sword",true) ~= nil then
  18. char:findFirstChild("Sword",true).Parent = nil
  19. end
  20. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  21. part.Parent = parent
  22. part.formFactor = form
  23. part.CanCollide = collide
  24. part.Transparency = tran
  25. part.Reflectance = ref
  26. part.Size = Vector3.new(x,y,z)
  27. part.BrickColor = BrickColor.new(color)
  28. part.TopSurface = 0
  29. part.BottomSurface = 0
  30. part.Anchored = anchor
  31. part.Locked = true
  32. part:BreakJoints()
  33. end
  34. function weld(w, p, p1, a, b, c, x, y, z)
  35. w.Parent = p
  36. w.Part0 = p
  37. w.Part1 = p1
  38. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  39. end
  40. function mesh(mesh, parent, x, y, z, type)
  41. mesh.Parent = parent
  42. mesh.Scale = Vector3.new(x, y, z)
  43. mesh.MeshType = type
  44. end
  45. function getcharparts(path)
  46. local objs = {}
  47. for _,v in pairs(path:children()) do
  48. if v:IsA("Model") and v.Name ~= name then
  49. for _,k in pairs(v:children()) do
  50. if k.Name == "Torso" then
  51. table.insert(objs,k)
  52. end
  53. end
  54. end
  55. end
  56. return objs
  57. end
  58. sword = Instance.new("Model",me.Character)
  59. sword.Name = "Sword"
  60. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  61. rarm = char:findFirstChild("Right Arm")
  62. larm = char:findFirstChild("Left Arm")
  63. torso = char:findFirstChild("Torso")
  64. hum = char:findFirstChild("Humanoid")
  65. main = Instance.new("Part")
  66. prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
  67. mme = Instance.new("SpecialMesh")
  68. mesh(mme,main,1,1,1,"Head")
  69. part1 = Instance.new("Part")
  70. prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  71. p1m = Instance.new("BlockMesh",part1)
  72. w1 = Instance.new("Weld")
  73. weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
  74. part2 = Instance.new("Part")
  75. prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  76. p2m = Instance.new("BlockMesh",part2)
  77. w2 = Instance.new("Weld")
  78. weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
  79. part3 = Instance.new("Part")
  80. prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  81. p3m = Instance.new("BlockMesh",part3)
  82. w3 = Instance.new("Weld")
  83. weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
  84. part4 = Instance.new("Part")
  85. prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  86. p4m = Instance.new("BlockMesh",part4)
  87. w4 = Instance.new("Weld")
  88. weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
  89. part5 = Instance.new("Part")
  90. prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  91. p5m = Instance.new("BlockMesh",part5)
  92. w5 = Instance.new("Weld")
  93. weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
  94. part6 = Instance.new("Part")
  95. prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
  96. p6m = Instance.new("SpecialMesh")
  97. mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
  98. w6 = Instance.new("Weld")
  99. weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
  100. blade1 = Instance.new("Part")
  101. prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
  102. b1m = Instance.new("SpecialMesh")
  103. mesh(b1m,blade1,1,1,1,"Torso")
  104. bw1 = Instance.new("Weld")
  105. weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
  106. uns = Instance.new("Sound",blade1)
  107. uns.Volume = 1
  108. uns.Pitch = 1
  109. uns.SoundId = "rbxasset://sounds\\unsheath.wav"
  110. slash = Instance.new("Sound",blade1)
  111. slash.Volume = 1
  112. slash.Pitch = 1
  113. slash.SoundId = "rbxasset://sounds\\swordslash.wav"
  114. shea = Instance.new("Sound",blade1)
  115. shea.Volume = 1
  116. shea.Pitch = -0.9
  117. shea.SoundId = "rbxasset://sounds\\unsheath.wav"
  118. spi = Instance.new("Sound",blade1)
  119. spi.Volume = 1
  120. spi.Pitch = 1
  121. spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
  122. charge = Instance.new("Sound",blade1)
  123. charge.Volume = 1
  124. charge.Pitch = 0.5
  125. charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
  126. boom = Instance.new("Sound",blade1)
  127. boom.Volume = 1
  128. boom.Pitch = 2.2
  129. boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  130. blade2 = Instance.new("Part")
  131. prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
  132. b2m = Instance.new("BlockMesh",blade2)
  133. bw2 = Instance.new("Weld")
  134. weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
  135. blade3 = Instance.new("Part")
  136. prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  137. b3m = Instance.new("SpecialMesh")
  138. mesh(b3m,blade3,1,1,1,"Wedge")
  139. bw3 = Instance.new("Weld")
  140. weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
  141. blade4 = Instance.new("Part")
  142. prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  143. b4m = Instance.new("SpecialMesh")
  144. mesh(b4m,blade4,1,1,1,"Wedge")
  145. bw4 = Instance.new("Weld")
  146. weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
  147. blade5 = Instance.new("Part")
  148. prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
  149. b5m = Instance.new("BlockMesh",blade5)
  150. bw5 = Instance.new("Weld")
  151. weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
  152. part7 = Instance.new("Part")
  153. prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
  154. p7m = Instance.new("SpecialMesh")
  155. mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
  156. w7 = Instance.new("Weld")
  157. weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
  158. tup1 = Instance.new("Part")
  159. prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
  160. tw1 = Instance.new("Weld")
  161. weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
  162. holdpart = Instance.new("Part")
  163. prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
  164. hu = Instance.new("Weld")
  165. weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
  166. holdweld = Instance.new("Weld")
  167. weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
  168. weaponweld = Instance.new("Weld")
  169. weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
  170. --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
  171. rb = Instance.new("Part")
  172. prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  173. rh = Instance.new("Weld")
  174. weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
  175. lb = Instance.new("Part")
  176. prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  177. lh = Instance.new("Weld")
  178. weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
  179. rw = Instance.new("Weld")
  180. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  181. lw = Instance.new("Weld")
  182. weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
  183. neck = torso.Neck
  184. neor = neck.C1
  185. rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
  186. leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
  187. function selectmotion()
  188. weaponweld.C0 = CFrame.new(0,0,0)
  189. rw.C0 = CFrame.new(0,0,0)
  190. lw.C0 = CFrame.new(0,0,0)
  191. rw.Part1 = rarm
  192. lw.Part1 = larm
  193. for i=1, 15 do
  194. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  195. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
  196. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
  197. wait()
  198. end
  199. weaponweld.Part1 = main
  200. holdweld.Part1 = nil
  201. wait(0.14)
  202. uns:play()
  203. for i=1, 4 do
  204. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
  205. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
  206. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
  207. wait()
  208. end
  209. for i=1, 10 do
  210. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
  211. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
  212. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
  213. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
  214. wait()
  215. end
  216. wait(0.1)
  217. for i=1, 6 do
  218. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
  219. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
  220. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
  221. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
  222. wait()
  223. end
  224. rw.C0 = rightfight
  225. lw.C0 = leftfight
  226. neck.C1 = neor
  227. weaponweld.C0 = CFrame.new(0,0,0)
  228. selected = true
  229. end
  230. function deselmotion()
  231. for i=1, 12 do
  232. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  233. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
  234. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
  235. wait()
  236. end
  237. shea:play()
  238. weaponweld.Part1 = nil
  239. holdweld.Part1 = tup1
  240. wait(0.1)
  241. for i=1, 8 do
  242. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
  243. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
  244. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
  245. wait()
  246. end
  247. rw.Part1 = nil
  248. lw.Part1 = nil
  249. rw.C0 = CFrame.new(0,0,0)
  250. lw.C0 = CFrame.new(0,0,0)
  251. neck.C1 = neor
  252. weaponweld.C0 = CFrame.new(0,0,0)
  253. selected = false
  254. end
  255. ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
  256. function fade(brick,mesh,scale,tran,speed)
  257. coroutine.resume(coroutine.create(function()
  258. for i=tran,1,speed do
  259. wait()
  260. brick.Transparency = i
  261. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  262. end
  263. brick:remove()
  264. end))
  265. end
  266. function block(part,avg,cols)
  267. for i=1, math.random(1,3) do
  268. local s = (avg*1.4)*100
  269. local s2 = (avg/5)*100
  270. local size = math.random(s2,s)/100
  271. local p = Instance.new("Part",me.Character)
  272. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  273. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  274. coroutine.resume(coroutine.create(function()
  275. for i=p.Transparency, 1, 0.2 do
  276. wait(0.15)
  277. p.Transparency = i
  278. local cf = p.CFrame
  279. p.Size = Vector3.new(size,size,size)
  280. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  281. size = size - 0.2
  282. end
  283. p:remove()
  284. end))
  285. end
  286. end
  287. function blocks(part,avg,cols)
  288. for i=1, math.random(1,3) do
  289. local s = (avg*1.4)*100
  290. local s2 = (avg/5)*100
  291. local size = math.random(s2,s)/100
  292. local p = Instance.new("Part",me.Character)
  293. local pos = p.CFrame
  294. local pos2 = pos * CFrame.new(0,12,-15)
  295. local pos3 = pos2 * CFrame.new(0,-12,-12)
  296. local bv = Instance.new("BodyPosition",p)
  297. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  298. bv.position = pos2.p
  299. local bg = Instance.new("BodyGyro",p)
  300. bg.cframe = CFrame.new(pos.p,pos3.p)
  301. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  302. bg.P = 30000
  303. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  304. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  305. coroutine.resume(coroutine.create(function()
  306. for i=p.Transparency, 1, 0.2 do
  307. wait(0.15)
  308. p.Transparency = i
  309. local cf = p.CFrame
  310. p.Size = Vector3.new(size,size,size)
  311. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  312. size = size - 0.2
  313. end
  314. p:remove()
  315. end))
  316. end
  317. end
  318. function blading(part,color)
  319. local p = Instance.new("Part",me.Character)
  320. prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
  321. p.CFrame = part.CFrame
  322. coroutine.resume(coroutine.create(function()
  323. for i=p.Transparency, 1, 0.04 do
  324. wait()
  325. p.Transparency = i
  326. end
  327. p:remove()
  328. end))
  329. end
  330. function spikes(part,color)
  331. local p = Instance.new("Part",me.Character)
  332. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  333. p.CFrame = part.CFrame * CFrame.new(0,-3,0)
  334. local mww = Instance.new("SpecialMesh")
  335. mesh(mww,p,6,5,6,"FileMesh")
  336. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  337. fade(p,mww,0.55,p.Transparency,0.08)
  338. end
  339. function spikes2(part,color)
  340. local p = Instance.new("Part",me.Character)
  341. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  342. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  343. local mww = Instance.new("SpecialMesh")
  344. mesh(mww,p,8,7,8,"FileMesh")
  345. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  346. fade(p,mww,0.55,p.Transparency,0.06)
  347. end
  348. function bal(part,color,dist)
  349. local p = Instance.new("Part",me.Character)
  350. prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
  351. p.CFrame = part.CFrame
  352. local mww = Instance.new("SpecialMesh")
  353. mesh(mww,p,dist,dist,dist,"Sphere")
  354. fade(p,mww,3,p.Transparency,0.06)
  355. end
  356. --Kill function----------------------Kill function----------------------Kill function--------------------
  357. function blast(dmg,part,crit)
  358. local randomposx = math.random(-30,30)
  359. local randomposy = math.random(-50,-10)
  360. local bil = Instance.new("BillboardGui",part)
  361. bil.Adornee = bil.Parent
  362. bil.Size = UDim2.new(0,110,0,70)
  363. local img = Instance.new("ImageLabel",bil)
  364. img.Size = UDim2.new(1,0,1,0)
  365. img.Image = "http://www.roblox.com/asset/?id=42621332"
  366. img.Position = UDim2.new(0,randomposx,0,randomposy)
  367. img.BackgroundTransparency = 1
  368. local txt = Instance.new("TextLabel",img)
  369. txt.Size = UDim2.new(1,0,1,0)
  370. txt.BackgroundTransparency = 1
  371. txt.Text = dmg
  372. txt.TextColor3 = Color3.new(0,0,0)
  373. txt.FontSize = "Size18"
  374. if crit then
  375. img.Image = "http://www.roblox.com/asset/?id=42621315"
  376. txt.FontSize = "Size24"
  377. txt.TextColor3 = Color3.new(0.6,0,0)
  378. end
  379. coroutine.resume(coroutine.create(function()
  380. wait(0.2)
  381. for i=1, math.random(30,50) do
  382. img.Position = UDim2.new(0,randomposx,0,randomposy)
  383. randomposy = randomposy - 4
  384. wait()
  385. end
  386. bil:remove()
  387. end))
  388. end
  389. deb = true
  390. function kill(hit,mod)
  391. if deb and attack and hit.Parent.Name ~= name then
  392. local ch = hit.Parent
  393. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  394. deb = false
  395. local dm = math.random(0,avgdmg*2)
  396. local cri = false
  397. local cripro = math.random(1,criticalchance)
  398. if cripro == 1 then
  399. cri = true
  400. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  401. end
  402. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  403. blast(dm,ch.Head,cri)
  404. if cri then
  405. coroutine.resume(coroutine.create(function()
  406. local lol = math.random(1,plat)
  407. if lol == 1 then
  408. ch["Humanoid"].PlatformStand = true
  409. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  410. wait(0.9)
  411. ch["Humanoid"].PlatformStand = false
  412. if mod == true then
  413. ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  414. ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
  415. end
  416. end
  417. end))
  418. end
  419. wait(dela)
  420. deb = true
  421. end
  422. end
  423. end
  424. function ris(hit,mod)
  425. if deb and attack and hit.Parent.Name ~= name then
  426. local ch = hit.Parent
  427. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  428. deb = false
  429. local dm = math.random(0,avgdmg*2)
  430. local cri = false
  431. local cripro = math.random(1,criticalchance)
  432. if cripro == 1 then
  433. cri = true
  434. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  435. end
  436. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  437. blast(dm,ch.Head,cri)
  438. if cri then
  439. coroutine.resume(coroutine.create(function()
  440. local lol = math.random(1,plat)
  441. if lol == 1 then
  442. ch["Humanoid"].PlatformStand = true
  443. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  444. wait(0.9)
  445. ch["Humanoid"].PlatformStand = false
  446. if mod == true then
  447. ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  448. ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
  449. end
  450. end
  451. end))
  452. end
  453. wait(dela)
  454. deb = true
  455. end
  456. end
  457. end
  458. blade3.Touched:connect(kill)
  459. blade4.Touched:connect(kill)
  460. blade2.Touched:connect(kill)
  461. blade1.Touched:connect(kill)
  462. blade5.Touched:connect(kill)
  463. blade5.Touched:connect(ris)
  464. ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
  465. -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  466. -- blading(blade2,"Bright red")
  467. function att()
  468. attacking = true
  469. for i=1,8 do
  470. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  471. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  472. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  473. wait()
  474. end
  475. slash:play()
  476. wait(0.13)
  477. attack = true
  478. for i=1,6 do
  479. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  480. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  481. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  482. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  483. wait()
  484. end
  485. attack = false
  486. wait(0.08)
  487. for i=1,3 do
  488. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  489. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  490. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  491. wait()
  492. end
  493. rw.C0 = rightfight
  494. lw.C0 = leftfight
  495. neck.C1 = neor
  496. weaponweld.C0 = CFrame.new(0,0,0)
  497. attacking = false
  498. end
  499. function stab()
  500. attacking = true
  501. for i=1,8 do
  502. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  503. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  504. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  505. wait()
  506. end
  507. slash:play()
  508. avgdmg = 15
  509. criticalchance = 95
  510. wait(0.13)
  511. attack = true
  512. for i=1,6 do
  513. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
  514. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  515. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  516. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  517. bal(blade5,"Tr. Blue",25)
  518. wait()
  519. end
  520. attack = false
  521. wait(0.08)
  522. for i=1,3 do
  523. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  524. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  525. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  526. blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  527. bal(blade5,"Tr. Blue",25)
  528. wait()
  529. end
  530. rw.C0 = rightfight
  531. lw.C0 = leftfight
  532. neck.C1 = neor
  533. weaponweld.C0 = CFrame.new(0,0,0)
  534. attacking = false
  535. end
  536. function attas()
  537. attacking = true
  538. local pos = torso.CFrame
  539. local pos2 = pos * CFrame.new(0,12,-15)
  540. local pos3 = pos2 * CFrame.new(0,-12,-12)
  541. for i=1,6 do
  542. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  543. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  544. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  545. spikes(torso,"Light blue")
  546. spikes2(torso,"Bright blue")
  547. bal(torso,"Tr. Blue",25)
  548. wait()
  549. end
  550. slash:play()
  551. avgdmg = 15
  552. criticalchance = 65
  553. wait(0.13)
  554. attack = true
  555. local bv = Instance.new("BodyPosition",torso)
  556. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  557. bv.position = pos2.p
  558. local bg = Instance.new("BodyGyro",torso)
  559. bg.cframe = CFrame.new(pos.p,pos3.p)
  560. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  561. bg.P = 30000
  562. for i=1,6 do
  563. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
  564. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
  565. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
  566. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  567. wait()
  568. end
  569. attack = false
  570. wait(0.08)
  571. for i=1,3 do
  572. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  573. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  574. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  575. wait()
  576. end
  577. rw.C0 = rightfight
  578. lw.C0 = leftfight
  579. bv:remove()
  580. bg:remove()
  581. neck.C1 = neor
  582. weaponweld.C0 = CFrame.new(0,0,0)
  583. attacking = false
  584. end
  585. function spin()
  586. attacking = true
  587. hum.WalkSpeed = 0
  588. for i=1,7 do
  589. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  590. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  591. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  592. wait()
  593. end
  594. spi:play()
  595. wait(0.3)
  596. spi:play()
  597. dela = 0.1
  598. avgdmg = 6
  599. criticalchance = 12
  600. local bv = Instance.new("BodyVelocity",torso)
  601. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  602. bv.velocity = torso.CFrame.lookVector * 22
  603. local bav = Instance.new("BodyAngularVelocity",torso)
  604. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  605. bav.angularvelocity = Vector3.new(0,36,0)
  606. bav.P = 15000
  607. attack = true
  608. for i=1, 30 do
  609. wait()
  610. spikes(torso,"Medium blue")
  611. end
  612. bv:remove()
  613. bav:remove()
  614. hum.WalkSpeed = normal
  615. attack = false
  616. avgdmg = normdmg
  617. for i=1,5 do
  618. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  619. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  620. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  621. wait()
  622. end
  623. dela = 0.4
  624. rw.C0 = rightfight
  625. lw.C0 = leftfight
  626. neck.C1 = neor
  627. weaponweld.C0 = CFrame.new(0,0,0)
  628. attacking = false
  629. criticalchance = normchance
  630. end
  631. function spins()
  632. attacking = true
  633. hum.WalkSpeed = 0
  634. for i=1,7 do
  635. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  636. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  637. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  638. bal(torso,"Tr. Blue",25)
  639. wait()
  640. end
  641. spi:play()
  642. wait(0.3)
  643. spi:play()
  644. dela = 0.1
  645. avgdmg = 6
  646. criticalchance = 12
  647. local bv = Instance.new("BodyVelocity",torso)
  648. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  649. bv.velocity = torso.CFrame.lookVector * 22
  650. local bav = Instance.new("BodyAngularVelocity",torso)
  651. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  652. bav.angularvelocity = Vector3.new(0,36,0)
  653. bav.P = 15000
  654. attack = true
  655. for i=1, 30 do
  656. wait()
  657. spikes(torso,"Medium blue")
  658. end
  659. bv:remove()
  660. bav:remove()
  661. hum.WalkSpeed = normal
  662. attack = false
  663. avgdmg = normdmg
  664. for i=1,5 do
  665. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  666. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  667. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  668. wait()
  669. end
  670. dela = 0.4
  671. rw.C0 = rightfight
  672. lw.C0 = leftfight
  673. neck.C1 = neor
  674. weaponweld.C0 = CFrame.new(0,0,0)
  675. attacking = false
  676. criticalchance = normchance
  677. end
  678. function rise()
  679. attacking = true
  680. local pos = torso.CFrame
  681. local pos2 = pos * CFrame.new(0,5,-15)
  682. local pos3 = pos2 * CFrame.new(0,-3,-12)
  683. hum.WalkSpeed = 0
  684. for i=1,7 do
  685. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  686. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  687. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  688. bal(torso,"Tr. Blue",25)
  689. wait()
  690. end
  691. spi:play()
  692. wait(0.3)
  693. spi:play()
  694. dela = 0.1
  695. avgdmg = 6
  696. criticalchance = 12
  697. local bv = Instance.new("BodyPosition",torso)
  698. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  699. bv.position = pos2.p
  700. local bg = Instance.new("BodyGyro",torso)
  701. bg.cframe = CFrame.new(pos.p,pos3.p)
  702. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  703. bg.P = 30000
  704. attack = true
  705. for i=1, 30 do
  706. wait()
  707. spikes2(torso,"Medium blue")
  708. end
  709. bv:remove()
  710. bg:remove()
  711. hum.WalkSpeed = normal
  712. attack = false
  713. avgdmg = normdmg
  714. for i=1,5 do
  715. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  716. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  717. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  718. wait()
  719. end
  720. dela = 0.4
  721. rw.C0 = rightfight
  722. lw.C0 = leftfight
  723. neck.C1 = neor
  724. weaponweld.C0 = CFrame.new(0,0,0)
  725. attacking = false
  726. criticalchance = normchance
  727. end
  728. function sprint()
  729. attacking = true
  730. hum.WalkSpeed = 0
  731. local pos = torso.CFrame
  732. local pos2 = pos * CFrame.new(0,12,-15)
  733. local pos3 = pos2 * CFrame.new(0,-12,-12)
  734. for i=1,6 do
  735. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  736. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  737. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  738. wait()
  739. end
  740. avgdmg = 14
  741. local bv = Instance.new("BodyPosition",torso)
  742. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  743. bv.position = pos2.p
  744. local bg = Instance.new("BodyGyro",torso)
  745. bg.cframe = CFrame.new(pos.p,pos3.p)
  746. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  747. bg.P = 30000
  748. for i=1, 7 do
  749. wait()
  750. spikes2(torso,"Medium blue")
  751. end
  752. wait(0.1)
  753. coroutine.resume(coroutine.create(function()
  754. for i=1, 17 do
  755. wait()
  756. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  757. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  758. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  759. end
  760. end))
  761. coroutine.resume(coroutine.create(function()
  762. for i=0.4, 5.3,0.07 do
  763. wait(0.04)
  764. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  765. end
  766. end))
  767. charge:play()
  768. coroutine.resume(coroutine.create(function()
  769. wait(2.5)
  770. for i=1, 11 do
  771. wait()
  772. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  773. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  774. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  775. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  776. end
  777. end))
  778. criticalchance = 1
  779. plat = 1
  780. dela = 0
  781. wait(3.8)
  782. boom:play()
  783. attack = true
  784. coroutine.resume(coroutine.create(function()
  785. for i=1, 5 do
  786. wait()
  787. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  788. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  789. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  790. end
  791. end))
  792. bv.position = pos3.p
  793. for i=1, 7 do
  794. wait()
  795. spikes2(torso,"Medium blue")
  796. end
  797. coroutine.resume(coroutine.create(function()
  798. for i=1, 12 do
  799. wait()
  800. bal(blade5,"Medium blue",splashdist*2)
  801. end
  802. end))
  803. local parts = getcharparts(workspace)
  804. for _,v in pairs(parts) do
  805. if (v.Position - blade5.Position).magnitude < 14 then
  806. kill(v,true)
  807. end
  808. end
  809. wait(0.3)
  810. attack = false
  811. bv:remove()
  812. bg:remove()
  813. hum.WalkSpeed = normal
  814. avgdmg = normdmg
  815. rw.C0 = rightfight
  816. lw.C0 = leftfight
  817. neck.C1 = neor
  818. weaponweld.C0 = CFrame.new(0,0,0)
  819. attacking = false
  820. criticalchance = normchance
  821. plat = 2
  822. end
  823. function sprint2()
  824. attacking = true
  825. hum.WalkSpeed = 0
  826. local pos = torso.CFrame
  827. local pos2 = pos * CFrame.new(0,15,-15)
  828. local pos3 = pos2 * CFrame.new(0,-13,-12)
  829. for i=1,6 do
  830. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  831. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  832. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  833. wait()
  834. end
  835. avgdmg = 14
  836. local bv = Instance.new("BodyPosition",torso)
  837. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  838. bv.position = pos2.p
  839. local bg = Instance.new("BodyGyro",torso)
  840. bg.cframe = CFrame.new(pos.p,pos3.p)
  841. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  842. bg.P = 30000
  843. for i=1, 4 do
  844. wait()
  845. spikes2(torso,"Medium blue")
  846. spikes2(torso,"Light blue")
  847. spikes2(torso,"Bright blue")
  848. end
  849. wait(0.1)
  850. coroutine.resume(coroutine.create(function()
  851. for i=1, 34 do
  852. wait()
  853. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  854. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  855. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  856. end
  857. end))
  858. coroutine.resume(coroutine.create(function()
  859. for i=0.4, 5.3,0.07 do
  860. wait(0.04)
  861. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  862. end
  863. end))
  864. charge:play()
  865. coroutine.resume(coroutine.create(function()
  866. wait(2.5)
  867. for i=1, 11 do
  868. wait()
  869. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  870. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  871. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  872. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  873. end
  874. end))
  875. criticalchance = 1
  876. plat = 1
  877. dela = 0
  878. wait(3.8)
  879. boom:play()
  880. attack = true
  881. coroutine.resume(coroutine.create(function()
  882. for i=1, 5 do
  883. wait()
  884. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  885. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  886. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  887. end
  888. end))
  889. bv.position = pos3.p
  890. for i=1, 7 do
  891. wait()
  892. spikes2(torso,"Medium blue")
  893. end
  894. coroutine.resume(coroutine.create(function()
  895. for i=1, 12 do
  896. wait()
  897. bal(blade5,"Medium blue",splashdist*2)
  898. end
  899. end))
  900. local parts = getcharparts(workspace)
  901. for _,v in pairs(parts) do
  902. if (v.Position - blade5.Position).magnitude < 14 then
  903. kill(v,true)
  904. end
  905. end
  906. wait(0.3)
  907. attack = false
  908. bv:remove()
  909. bg:remove()
  910. hum.WalkSpeed = normal
  911. avgdmg = normdmg
  912. rw.C0 = rightfight
  913. lw.C0 = leftfight
  914. neck.C1 = neor
  915. weaponweld.C0 = CFrame.new(0,0,0)
  916. attacking = false
  917. criticalchance = normchance
  918. plat = 2
  919. end
  920. function combo()
  921. att()
  922. attas()
  923. sprint()
  924. spin()
  925. end
  926. function run()
  927. spin()
  928. spin()
  929. spin()
  930. end
  931. function rush()
  932. attacking = true
  933. for i=1,8 do
  934. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  935. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  936. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  937. wait(0.1)
  938. end
  939. slash:play()
  940. wait(0.13)
  941. attack = true
  942. local bv = Instance.new("BodyVelocity",torso)
  943. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  944. bv.velocity = torso.CFrame.lookVector * 220
  945. local bav = Instance.new("BodyAngularVelocity",torso)
  946. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  947. bav.angularvelocity = Vector3.new(0,36,0)
  948. bav.P = 15000
  949. for i=1,6 do
  950. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  951. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  952. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  953. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  954. wait()
  955. end
  956. attack = false
  957. wait(0.08)
  958. for i=1,3 do
  959. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  960. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  961. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  962. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  963. wait()
  964. end
  965. rw.C0 = rightfight
  966. lw.C0 = leftfight
  967. bv:remove()
  968. bav:remove()
  969. neck.C1 = neor
  970. weaponweld.C0 = CFrame.new(0,0,0)
  971. attacking = false
  972. end
  973. function masta()
  974. attacking = true
  975. for i=1,8 do
  976. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  977. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  978. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  979. bal(torso,"Tr. Blue",25)
  980. spikes2(torso,"Medium blue")
  981. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  982. wait(0.1)
  983. end
  984. slash:play()
  985. avgdmg = 37
  986. criticalchance = 125
  987. wait(0.13)
  988. attack = true
  989. local bv = Instance.new("BodyVelocity",torso)
  990. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  991. bv.velocity = torso.CFrame.lookVector * 220
  992. local bav = Instance.new("BodyAngularVelocity",torso)
  993. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  994. bav.angularvelocity = Vector3.new(0,36,0)
  995. bav.P = 15000
  996. for i=1,6 do
  997. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  998. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  999. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  1000. bal(torso,"Tr. Blue",25)
  1001. spikes2(torso,"Medium blue")
  1002. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1003. wait()
  1004. end
  1005. attack = false
  1006. wait(0.08)
  1007. for i=1,3 do
  1008. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  1009. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  1010. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  1011. bal(torso,"Tr. Blue",25)
  1012. spikes2(torso,"Medium blue")
  1013. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1014. wait()
  1015. end
  1016. rw.C0 = rightfight
  1017. lw.C0 = leftfight
  1018. bv:remove()
  1019. bav:remove()
  1020. neck.C1 = neor
  1021. weaponweld.C0 = CFrame.new(0,0,0)
  1022. attacking = false
  1023. end
  1024. if script.Parent.className ~= "HopperBin" then
  1025. local h = Instance.new("HopperBin",me.Backpack)
  1026. h.Name = "SoulSword"
  1027. script.Parent = h
  1028. end
  1029. local bin = script.Parent
  1030. function sel(mouse)
  1031. neck.C1 = neor
  1032. if (selected == false) then
  1033. selectmotion()
  1034. end
  1035. mouse.Button1Down:connect(function()
  1036. if (attacking == false) then
  1037. att()
  1038. end
  1039. end)
  1040. mouse.KeyDown:connect(function(kuu)
  1041. local kai = kuu:lower()
  1042. if attacking == false then
  1043. if (kai == "q") then
  1044. spin()
  1045. elseif (kai == "e") then
  1046. att()
  1047. elseif (kai == "r") then
  1048. sprint()
  1049. elseif (kai == "l") then
  1050. stab()
  1051. elseif (kai == "t") then
  1052. attas()
  1053. elseif (kai == "z") then
  1054. masta()
  1055. elseif (kai == "y") then
  1056. spins()
  1057. elseif (kai == "g") then
  1058. combo()
  1059. elseif (kai == "p") then
  1060. rise()
  1061. elseif (kai == "j") then
  1062. sprint2()
  1063. elseif (kai == "h") then
  1064. run()
  1065. elseif (kai == "f") then
  1066. rush()
  1067. end
  1068. end
  1069. end)
  1070. while selected do
  1071. wait(0.8)
  1072. local k = math.random(1,5)
  1073. if k == 1 then
  1074. if hum.Health < 50 then
  1075. for i=1, math.random(4,24) do
  1076. wait(0.1)
  1077. local col = healcols[math.random(1,#healcols)]
  1078. local sa = math.random(30,90)/100
  1079. local p = Instance.new("Part")
  1080. prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
  1081. p.CFrame = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) * CFrame.new(0,0,math.random(4,12))
  1082. local mes = Instance.new("SpecialMesh")
  1083. mesh(mes,p,sa,sa,sa,"Sphere")
  1084. local bg = Instance.new("BodyPosition",p)
  1085. bg.maxForce = Vector3.new(1000000,1000000,1000000)
  1086. bg.P = 100000
  1087. bg.position = torso.Position
  1088. coroutine.resume(coroutine.create(function()
  1089. repeat
  1090. bg.position = torso.Position
  1091. wait()
  1092. until (p.Position - torso.Position).magnitude < 1.8
  1093. hum.Health = hum.Health + 1.2
  1094. p:remove()
  1095. end))
  1096. end
  1097. end
  1098. end
  1099. end
  1100. end
  1101. function desel()
  1102. neck.C1 = neor
  1103. if selected then
  1104. deselmotion()
  1105. end
  1106. end
  1107. bin.Selected:connect(sel)
  1108. bin.Deselected:connect(desel)
  1109. --LEGOlocal name = "mogoon"
  1110. local me = game.Players.mogoon
  1111. local char = me.Character
  1112. selected = false
  1113. attacking = false
  1114. attack = false
  1115. dela = 0.4
  1116. normdmg = 9
  1117. avgdmg = normdmg
  1118. normal = 14
  1119. speed = 14
  1120. normchance = 9333333333333
  1121. criticalchance = normchance
  1122. splashdist = 14333333333333333333333333333333333333333333333333
  1123. plat = 1
  1124. healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
  1125. if char:findFirstChild("Sword",true) ~= nil then
  1126. char:findFirstChild("Sword",true).Parent = nil
  1127. end
  1128. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  1129. part.Parent = parent
  1130. part.formFactor = form
  1131. part.CanCollide = collide
  1132. part.Transparency = tran
  1133. part.Reflectance = ref
  1134. part.Size = Vector3.new(x,y,z)
  1135. part.BrickColor = BrickColor.new(color)
  1136. part.TopSurface = 0
  1137. part.BottomSurface = 0
  1138. part.Anchored = anchor
  1139. part.Locked = true
  1140. part:BreakJoints()
  1141. end
  1142. function weld(w, p, p1, a, b, c, x, y, z)
  1143. w.Parent = p
  1144. w.Part0 = p
  1145. w.Part1 = p1
  1146. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  1147. end
  1148. function mesh(mesh, parent, x, y, z, type)
  1149. mesh.Parent = parent
  1150. mesh.Scale = Vector3.new(x, y, z)
  1151. mesh.MeshType = type
  1152. end
  1153. function getcharparts(path)
  1154. local objs = {}
  1155. for _,v in pairs(path:children()) do
  1156. if v:IsA("Model") and v.Name ~= name then
  1157. for _,k in pairs(v:children()) do
  1158. if k.Name == "Torso" then
  1159. table.insert(objs,k)
  1160. end
  1161. end
  1162. end
  1163. end
  1164. return objs
  1165. end
  1166. sword = Instance.new("Model",me.Character)
  1167. sword.Name = "Sword"
  1168. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  1169. rarm = char:findFirstChild("Right Arm")
  1170. larm = char:findFirstChild("Left Arm")
  1171. torso = char:findFirstChild("Torso")
  1172. hum = char:findFirstChild("Humanoid")
  1173. main = Instance.new("Part")
  1174. prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
  1175. mme = Instance.new("SpecialMesh")
  1176. mesh(mme,main,1,1,1,"Head")
  1177. part1 = Instance.new("Part")
  1178. prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  1179. p1m = Instance.new("BlockMesh",part1)
  1180. w1 = Instance.new("Weld")
  1181. weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
  1182. part2 = Instance.new("Part")
  1183. prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  1184. p2m = Instance.new("BlockMesh",part2)
  1185. w2 = Instance.new("Weld")
  1186. weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
  1187. part3 = Instance.new("Part")
  1188. prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  1189. p3m = Instance.new("BlockMesh",part3)
  1190. w3 = Instance.new("Weld")
  1191. weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
  1192. part4 = Instance.new("Part")
  1193. prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  1194. p4m = Instance.new("BlockMesh",part4)
  1195. w4 = Instance.new("Weld")
  1196. weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
  1197. part5 = Instance.new("Part")
  1198. prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  1199. p5m = Instance.new("BlockMesh",part5)
  1200. w5 = Instance.new("Weld")
  1201. weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
  1202. part6 = Instance.new("Part")
  1203. prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
  1204. p6m = Instance.new("SpecialMesh")
  1205. mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
  1206. w6 = Instance.new("Weld")
  1207. weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
  1208. blade1 = Instance.new("Part")
  1209. prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
  1210. b1m = Instance.new("SpecialMesh")
  1211. mesh(b1m,blade1,1,1,1,"Torso")
  1212. bw1 = Instance.new("Weld")
  1213. weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
  1214. uns = Instance.new("Sound",blade1)
  1215. uns.Volume = 1
  1216. uns.Pitch = 1
  1217. uns.SoundId = "rbxasset://sounds\\unsheath.wav"
  1218. slash = Instance.new("Sound",blade1)
  1219. slash.Volume = 1
  1220. slash.Pitch = 1
  1221. slash.SoundId = "rbxasset://sounds\\swordslash.wav"
  1222. shea = Instance.new("Sound",blade1)
  1223. shea.Volume = 1
  1224. shea.Pitch = -0.9
  1225. shea.SoundId = "rbxasset://sounds\\unsheath.wav"
  1226. spi = Instance.new("Sound",blade1)
  1227. spi.Volume = 1
  1228. spi.Pitch = 1
  1229. spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
  1230. charge = Instance.new("Sound",blade1)
  1231. charge.Volume = 1
  1232. charge.Pitch = 0.5
  1233. charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
  1234. boom = Instance.new("Sound",blade1)
  1235. boom.Volume = 1
  1236. boom.Pitch = 2.2
  1237. boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  1238. blade2 = Instance.new("Part")
  1239. prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
  1240. b2m = Instance.new("BlockMesh",blade2)
  1241. bw2 = Instance.new("Weld")
  1242. weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
  1243. blade3 = Instance.new("Part")
  1244. prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  1245. b3m = Instance.new("SpecialMesh")
  1246. mesh(b3m,blade3,1,1,1,"Wedge")
  1247. bw3 = Instance.new("Weld")
  1248. weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
  1249. blade4 = Instance.new("Part")
  1250. prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  1251. b4m = Instance.new("SpecialMesh")
  1252. mesh(b4m,blade4,1,1,1,"Wedge")
  1253. bw4 = Instance.new("Weld")
  1254. weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
  1255. blade5 = Instance.new("Part")
  1256. prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
  1257. b5m = Instance.new("BlockMesh",blade5)
  1258. bw5 = Instance.new("Weld")
  1259. weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
  1260. part7 = Instance.new("Part")
  1261. prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
  1262. p7m = Instance.new("SpecialMesh")
  1263. mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
  1264. w7 = Instance.new("Weld")
  1265. weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
  1266. tup1 = Instance.new("Part")
  1267. prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
  1268. tw1 = Instance.new("Weld")
  1269. weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
  1270. holdpart = Instance.new("Part")
  1271. prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
  1272. hu = Instance.new("Weld")
  1273. weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
  1274. holdweld = Instance.new("Weld")
  1275. weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
  1276. weaponweld = Instance.new("Weld")
  1277. weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
  1278. --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
  1279. rb = Instance.new("Part")
  1280. prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  1281. rh = Instance.new("Weld")
  1282. weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
  1283. lb = Instance.new("Part")
  1284. prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  1285. lh = Instance.new("Weld")
  1286. weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
  1287. rw = Instance.new("Weld")
  1288. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  1289. lw = Instance.new("Weld")
  1290. weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
  1291. neck = torso.Neck
  1292. neor = neck.C1
  1293. rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
  1294. leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
  1295. function selectmotion()
  1296. weaponweld.C0 = CFrame.new(0,0,0)
  1297. rw.C0 = CFrame.new(0,0,0)
  1298. lw.C0 = CFrame.new(0,0,0)
  1299. rw.Part1 = rarm
  1300. lw.Part1 = larm
  1301. for i=1, 15 do
  1302. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  1303. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
  1304. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
  1305. wait()
  1306. end
  1307. weaponweld.Part1 = main
  1308. holdweld.Part1 = nil
  1309. wait(0.14)
  1310. uns:play()
  1311. for i=1, 4 do
  1312. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
  1313. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
  1314. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
  1315. wait()
  1316. end
  1317. for i=1, 10 do
  1318. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
  1319. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
  1320. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
  1321. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
  1322. wait()
  1323. end
  1324. wait(0.1)
  1325. for i=1, 6 do
  1326. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
  1327. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
  1328. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
  1329. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
  1330. wait()
  1331. end
  1332. rw.C0 = rightfight
  1333. lw.C0 = leftfight
  1334. neck.C1 = neor
  1335. weaponweld.C0 = CFrame.new(0,0,0)
  1336. selected = true
  1337. end
  1338. function deselmotion()
  1339. for i=1, 12 do
  1340. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  1341. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
  1342. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
  1343. wait()
  1344. end
  1345. shea:play()
  1346. weaponweld.Part1 = nil
  1347. holdweld.Part1 = tup1
  1348. wait(0.1)
  1349. for i=1, 8 do
  1350. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
  1351. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
  1352. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
  1353. wait()
  1354. end
  1355. rw.Part1 = nil
  1356. lw.Part1 = nil
  1357. rw.C0 = CFrame.new(0,0,0)
  1358. lw.C0 = CFrame.new(0,0,0)
  1359. neck.C1 = neor
  1360. weaponweld.C0 = CFrame.new(0,0,0)
  1361. selected = false
  1362. end
  1363. ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
  1364. function fade(brick,mesh,scale,tran,speed)
  1365. coroutine.resume(coroutine.create(function()
  1366. for i=tran,1,speed do
  1367. wait()
  1368. brick.Transparency = i
  1369. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  1370. end
  1371. brick:remove()
  1372. end))
  1373. end
  1374. function block(part,avg,cols)
  1375. for i=1, math.random(1,3) do
  1376. local s = (avg*1.4)*100
  1377. local s2 = (avg/5)*100
  1378. local size = math.random(s2,s)/100
  1379. local p = Instance.new("Part",me.Character)
  1380. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  1381. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  1382. coroutine.resume(coroutine.create(function()
  1383. for i=p.Transparency, 1, 0.2 do
  1384. wait(0.15)
  1385. p.Transparency = i
  1386. local cf = p.CFrame
  1387. p.Size = Vector3.new(size,size,size)
  1388. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  1389. size = size - 0.2
  1390. end
  1391. p:remove()
  1392. end))
  1393. end
  1394. end
  1395. function blocks(part,avg,cols)
  1396. for i=1, math.random(1,3) do
  1397. local s = (avg*1.4)*100
  1398. local s2 = (avg/5)*100
  1399. local size = math.random(s2,s)/100
  1400. local p = Instance.new("Part",me.Character)
  1401. local pos = p.CFrame
  1402. local pos2 = pos * CFrame.new(0,12,-15)
  1403. local pos3 = pos2 * CFrame.new(0,-12,-12)
  1404. local bv = Instance.new("BodyPosition",p)
  1405. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1406. bv.position = pos2.p
  1407. local bg = Instance.new("BodyGyro",p)
  1408. bg.cframe = CFrame.new(pos.p,pos3.p)
  1409. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1410. bg.P = 30000
  1411. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  1412. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  1413. coroutine.resume(coroutine.create(function()
  1414. for i=p.Transparency, 1, 0.2 do
  1415. wait(0.15)
  1416. p.Transparency = i
  1417. local cf = p.CFrame
  1418. p.Size = Vector3.new(size,size,size)
  1419. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  1420. size = size - 0.2
  1421. end
  1422. p:remove()
  1423. end))
  1424. end
  1425. end
  1426. function blading(part,color)
  1427. local p = Instance.new("Part",me.Character)
  1428. prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
  1429. p.CFrame = part.CFrame
  1430. coroutine.resume(coroutine.create(function()
  1431. for i=p.Transparency, 1, 0.04 do
  1432. wait()
  1433. p.Transparency = i
  1434. end
  1435. p:remove()
  1436. end))
  1437. end
  1438. function spikes(part,color)
  1439. local p = Instance.new("Part",me.Character)
  1440. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  1441. p.CFrame = part.CFrame * CFrame.new(0,-3,0)
  1442. local mww = Instance.new("SpecialMesh")
  1443. mesh(mww,p,6,5,6,"FileMesh")
  1444. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1445. fade(p,mww,0.55,p.Transparency,0.08)
  1446. end
  1447. function spikes2(part,color)
  1448. local p = Instance.new("Part",me.Character)
  1449. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  1450. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  1451. local mww = Instance.new("SpecialMesh")
  1452. mesh(mww,p,8,7,8,"FileMesh")
  1453. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1454. fade(p,mww,0.55,p.Transparency,0.06)
  1455. end
  1456. function bal(part,color,dist)
  1457. local p = Instance.new("Part",me.Character)
  1458. prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
  1459. p.CFrame = part.CFrame
  1460. local mww = Instance.new("SpecialMesh")
  1461. mesh(mww,p,dist,dist,dist,"Sphere")
  1462. fade(p,mww,3,p.Transparency,0.06)
  1463. end
  1464. --Kill function----------------------Kill function----------------------Kill function--------------------
  1465. function blast(dmg,part,crit)
  1466. local randomposx = math.random(-30,30)
  1467. local randomposy = math.random(-50,-10)
  1468. local bil = Instance.new("BillboardGui",part)
  1469. bil.Adornee = bil.Parent
  1470. bil.Size = UDim2.new(0,110,0,70)
  1471. local img = Instance.new("ImageLabel",bil)
  1472. img.Size = UDim2.new(1,0,1,0)
  1473. img.Image = "http://www.roblox.com/asset/?id=42621332"
  1474. img.Position = UDim2.new(0,randomposx,0,randomposy)
  1475. img.BackgroundTransparency = 1
  1476. local txt = Instance.new("TextLabel",img)
  1477. txt.Size = UDim2.new(1,0,1,0)
  1478. txt.BackgroundTransparency = 1
  1479. txt.Text = dmg
  1480. txt.TextColor3 = Color3.new(0,0,0)
  1481. txt.FontSize = "Size18"
  1482. if crit then
  1483. img.Image = "http://www.roblox.com/asset/?id=42621315"
  1484. txt.FontSize = "Size24"
  1485. txt.TextColor3 = Color3.new(0.6,0,0)
  1486. end
  1487. coroutine.resume(coroutine.create(function()
  1488. wait(0.2)
  1489. for i=1, math.random(30,50) do
  1490. img.Position = UDim2.new(0,randomposx,0,randomposy)
  1491. randomposy = randomposy - 4
  1492. wait()
  1493. end
  1494. bil:remove()
  1495. end))
  1496. end
  1497. deb = true
  1498. function kill(hit,mod)
  1499. if deb and attack and hit.Parent.Name ~= name then
  1500. local ch = hit.Parent
  1501. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  1502. deb = false
  1503. local dm = math.random(0,avgdmg*2)
  1504. local cri = false
  1505. local cripro = math.random(1,criticalchance)
  1506. if cripro == 1 then
  1507. cri = true
  1508. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  1509. end
  1510. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  1511. blast(dm,ch.Head,cri)
  1512. if cri then
  1513. coroutine.resume(coroutine.create(function()
  1514. local lol = math.random(1,plat)
  1515. if lol == 1 then
  1516. ch["Humanoid"].PlatformStand = true
  1517. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1518. wait(0.9)
  1519. ch["Humanoid"].PlatformStand = false
  1520. if mod == true then
  1521. ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1522. ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
  1523. end
  1524. end
  1525. end))
  1526. end
  1527. wait(dela)
  1528. deb = true
  1529. end
  1530. end
  1531. end
  1532. function ris(hit,mod)
  1533. if deb and attack and hit.Parent.Name ~= name then
  1534. local ch = hit.Parent
  1535. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  1536. deb = false
  1537. local dm = math.random(0,avgdmg*2)
  1538. local cri = false
  1539. local cripro = math.random(1,criticalchance)
  1540. if cripro == 1 then
  1541. cri = true
  1542. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  1543. end
  1544. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  1545. blast(dm,ch.Head,cri)
  1546. if cri then
  1547. coroutine.resume(coroutine.create(function()
  1548. local lol = math.random(1,plat)
  1549. if lol == 1 then
  1550. ch["Humanoid"].PlatformStand = true
  1551. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1552. wait(0.9)
  1553. ch["Humanoid"].PlatformStand = false
  1554. if mod == true then
  1555. ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  1556. ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
  1557. end
  1558. end
  1559. end))
  1560. end
  1561. wait(dela)
  1562. deb = true
  1563. end
  1564. end
  1565. end
  1566. blade3.Touched:connect(kill)
  1567. blade4.Touched:connect(kill)
  1568. blade2.Touched:connect(kill)
  1569. blade1.Touched:connect(kill)
  1570. blade5.Touched:connect(kill)
  1571. blade5.Touched:connect(ris)
  1572. ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
  1573. -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1574. -- blading(blade2,"Bright red")
  1575. function att()
  1576. attacking = true
  1577. for i=1,8 do
  1578. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  1579. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  1580. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  1581. wait()
  1582. end
  1583. slash:play()
  1584. wait(0.13)
  1585. attack = true
  1586. for i=1,6 do
  1587. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  1588. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  1589. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  1590. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1591. wait()
  1592. end
  1593. attack = false
  1594. wait(0.08)
  1595. for i=1,3 do
  1596. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  1597. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  1598. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  1599. wait()
  1600. end
  1601. rw.C0 = rightfight
  1602. lw.C0 = leftfight
  1603. neck.C1 = neor
  1604. weaponweld.C0 = CFrame.new(0,0,0)
  1605. attacking = false
  1606. end
  1607. function stab()
  1608. attacking = true
  1609. for i=1,8 do
  1610. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  1611. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  1612. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  1613. wait()
  1614. end
  1615. slash:play()
  1616. avgdmg = 15
  1617. criticalchance = 95
  1618. wait(0.13)
  1619. attack = true
  1620. for i=1,6 do
  1621. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
  1622. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  1623. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  1624. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1625. bal(blade5,"Tr. Blue",25)
  1626. wait()
  1627. end
  1628. attack = false
  1629. wait(0.08)
  1630. for i=1,3 do
  1631. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  1632. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  1633. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  1634. blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1635. bal(blade5,"Tr. Blue",25)
  1636. wait()
  1637. end
  1638. rw.C0 = rightfight
  1639. lw.C0 = leftfight
  1640. neck.C1 = neor
  1641. weaponweld.C0 = CFrame.new(0,0,0)
  1642. attacking = false
  1643. end
  1644. function attas()
  1645. attacking = true
  1646. local pos = torso.CFrame
  1647. local pos2 = pos * CFrame.new(0,12,-15)
  1648. local pos3 = pos2 * CFrame.new(0,-12,-12)
  1649. for i=1,6 do
  1650. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  1651. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  1652. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  1653. spikes(torso,"Light blue")
  1654. spikes2(torso,"Bright blue")
  1655. bal(torso,"Tr. Blue",25)
  1656. wait()
  1657. end
  1658. slash:play()
  1659. avgdmg = 15
  1660. criticalchance = 65
  1661. wait(0.13)
  1662. attack = true
  1663. local bv = Instance.new("BodyPosition",torso)
  1664. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1665. bv.position = pos2.p
  1666. local bg = Instance.new("BodyGyro",torso)
  1667. bg.cframe = CFrame.new(pos.p,pos3.p)
  1668. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1669. bg.P = 30000
  1670. for i=1,6 do
  1671. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
  1672. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
  1673. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
  1674. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1675. wait()
  1676. end
  1677. attack = false
  1678. wait(0.08)
  1679. for i=1,3 do
  1680. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  1681. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  1682. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  1683. wait()
  1684. end
  1685. rw.C0 = rightfight
  1686. lw.C0 = leftfight
  1687. bv:remove()
  1688. bg:remove()
  1689. neck.C1 = neor
  1690. weaponweld.C0 = CFrame.new(0,0,0)
  1691. attacking = false
  1692. end
  1693. function spin()
  1694. attacking = true
  1695. hum.WalkSpeed = 0
  1696. for i=1,7 do
  1697. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  1698. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  1699. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1700. wait()
  1701. end
  1702. spi:play()
  1703. wait(0.3)
  1704. spi:play()
  1705. dela = 0.1
  1706. avgdmg = 6
  1707. criticalchance = 12
  1708. local bv = Instance.new("BodyVelocity",torso)
  1709. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1710. bv.velocity = torso.CFrame.lookVector * 22
  1711. local bav = Instance.new("BodyAngularVelocity",torso)
  1712. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1713. bav.angularvelocity = Vector3.new(0,36,0)
  1714. bav.P = 15000
  1715. attack = true
  1716. for i=1, 30 do
  1717. wait()
  1718. spikes(torso,"Medium blue")
  1719. end
  1720. bv:remove()
  1721. bav:remove()
  1722. hum.WalkSpeed = normal
  1723. attack = false
  1724. avgdmg = normdmg
  1725. for i=1,5 do
  1726. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  1727. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  1728. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1729. wait()
  1730. end
  1731. dela = 0.4
  1732. rw.C0 = rightfight
  1733. lw.C0 = leftfight
  1734. neck.C1 = neor
  1735. weaponweld.C0 = CFrame.new(0,0,0)
  1736. attacking = false
  1737. criticalchance = normchance
  1738. end
  1739. function spins()
  1740. attacking = true
  1741. hum.WalkSpeed = 0
  1742. for i=1,7 do
  1743. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  1744. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  1745. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1746. bal(torso,"Tr. Blue",25)
  1747. wait()
  1748. end
  1749. spi:play()
  1750. wait(0.3)
  1751. spi:play()
  1752. dela = 0.1
  1753. avgdmg = 6
  1754. criticalchance = 12
  1755. local bv = Instance.new("BodyVelocity",torso)
  1756. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1757. bv.velocity = torso.CFrame.lookVector * 22
  1758. local bav = Instance.new("BodyAngularVelocity",torso)
  1759. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1760. bav.angularvelocity = Vector3.new(0,36,0)
  1761. bav.P = 15000
  1762. attack = true
  1763. for i=1, 30 do
  1764. wait()
  1765. spikes(torso,"Medium blue")
  1766. end
  1767. bv:remove()
  1768. bav:remove()
  1769. hum.WalkSpeed = normal
  1770. attack = false
  1771. avgdmg = normdmg
  1772. for i=1,5 do
  1773. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  1774. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  1775. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1776. wait()
  1777. end
  1778. dela = 0.4
  1779. rw.C0 = rightfight
  1780. lw.C0 = leftfight
  1781. neck.C1 = neor
  1782. weaponweld.C0 = CFrame.new(0,0,0)
  1783. attacking = false
  1784. criticalchance = normchance
  1785. end
  1786. function rise()
  1787. attacking = true
  1788. local pos = torso.CFrame
  1789. local pos2 = pos * CFrame.new(0,5,-15)
  1790. local pos3 = pos2 * CFrame.new(0,-3,-12)
  1791. hum.WalkSpeed = 0
  1792. for i=1,7 do
  1793. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  1794. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  1795. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1796. bal(torso,"Tr. Blue",25)
  1797. wait()
  1798. end
  1799. spi:play()
  1800. wait(0.3)
  1801. spi:play()
  1802. dela = 0.1
  1803. avgdmg = 6
  1804. criticalchance = 12
  1805. local bv = Instance.new("BodyPosition",torso)
  1806. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1807. bv.position = pos2.p
  1808. local bg = Instance.new("BodyGyro",torso)
  1809. bg.cframe = CFrame.new(pos.p,pos3.p)
  1810. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1811. bg.P = 30000
  1812. attack = true
  1813. for i=1, 30 do
  1814. wait()
  1815. spikes2(torso,"Medium blue")
  1816. end
  1817. bv:remove()
  1818. bg:remove()
  1819. hum.WalkSpeed = normal
  1820. attack = false
  1821. avgdmg = normdmg
  1822. for i=1,5 do
  1823. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  1824. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  1825. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  1826. wait()
  1827. end
  1828. dela = 0.4
  1829. rw.C0 = rightfight
  1830. lw.C0 = leftfight
  1831. neck.C1 = neor
  1832. weaponweld.C0 = CFrame.new(0,0,0)
  1833. attacking = false
  1834. criticalchance = normchance
  1835. end
  1836. function sprint()
  1837. attacking = true
  1838. hum.WalkSpeed = 0
  1839. local pos = torso.CFrame
  1840. local pos2 = pos * CFrame.new(0,12,-15)
  1841. local pos3 = pos2 * CFrame.new(0,-12,-12)
  1842. for i=1,6 do
  1843. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  1844. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  1845. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  1846. wait()
  1847. end
  1848. avgdmg = 14
  1849. local bv = Instance.new("BodyPosition",torso)
  1850. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1851. bv.position = pos2.p
  1852. local bg = Instance.new("BodyGyro",torso)
  1853. bg.cframe = CFrame.new(pos.p,pos3.p)
  1854. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1855. bg.P = 30000
  1856. for i=1, 7 do
  1857. wait()
  1858. spikes2(torso,"Medium blue")
  1859. end
  1860. wait(0.1)
  1861. coroutine.resume(coroutine.create(function()
  1862. for i=1, 17 do
  1863. wait()
  1864. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  1865. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  1866. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  1867. end
  1868. end))
  1869. coroutine.resume(coroutine.create(function()
  1870. for i=0.4, 5.3,0.07 do
  1871. wait(0.04)
  1872. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1873. end
  1874. end))
  1875. charge:play()
  1876. coroutine.resume(coroutine.create(function()
  1877. wait(2.5)
  1878. for i=1, 11 do
  1879. wait()
  1880. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  1881. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  1882. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  1883. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  1884. end
  1885. end))
  1886. criticalchance = 1
  1887. plat = 1
  1888. dela = 0
  1889. wait(3.8)
  1890. boom:play()
  1891. attack = true
  1892. coroutine.resume(coroutine.create(function()
  1893. for i=1, 5 do
  1894. wait()
  1895. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  1896. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  1897. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  1898. end
  1899. end))
  1900. bv.position = pos3.p
  1901. for i=1, 7 do
  1902. wait()
  1903. spikes2(torso,"Medium blue")
  1904. end
  1905. coroutine.resume(coroutine.create(function()
  1906. for i=1, 12 do
  1907. wait()
  1908. bal(blade5,"Medium blue",splashdist*2)
  1909. end
  1910. end))
  1911. local parts = getcharparts(workspace)
  1912. for _,v in pairs(parts) do
  1913. if (v.Position - blade5.Position).magnitude < 14 then
  1914. kill(v,true)
  1915. end
  1916. end
  1917. wait(0.3)
  1918. attack = false
  1919. bv:remove()
  1920. bg:remove()
  1921. hum.WalkSpeed = normal
  1922. avgdmg = normdmg
  1923. rw.C0 = rightfight
  1924. lw.C0 = leftfight
  1925. neck.C1 = neor
  1926. weaponweld.C0 = CFrame.new(0,0,0)
  1927. attacking = false
  1928. criticalchance = normchance
  1929. plat = 2
  1930. end
  1931. function sprint2()
  1932. attacking = true
  1933. hum.WalkSpeed = 0
  1934. local pos = torso.CFrame
  1935. local pos2 = pos * CFrame.new(0,15,-15)
  1936. local pos3 = pos2 * CFrame.new(0,-13,-12)
  1937. for i=1,6 do
  1938. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  1939. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  1940. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  1941. wait()
  1942. end
  1943. avgdmg = 14
  1944. local bv = Instance.new("BodyPosition",torso)
  1945. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1946. bv.position = pos2.p
  1947. local bg = Instance.new("BodyGyro",torso)
  1948. bg.cframe = CFrame.new(pos.p,pos3.p)
  1949. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1950. bg.P = 30000
  1951. for i=1, 4 do
  1952. wait()
  1953. spikes2(torso,"Medium blue")
  1954. spikes2(torso,"Light blue")
  1955. spikes2(torso,"Bright blue")
  1956. end
  1957. wait(0.1)
  1958. coroutine.resume(coroutine.create(function()
  1959. for i=1, 34 do
  1960. wait()
  1961. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  1962. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  1963. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  1964. end
  1965. end))
  1966. coroutine.resume(coroutine.create(function()
  1967. for i=0.4, 5.3,0.07 do
  1968. wait(0.04)
  1969. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1970. end
  1971. end))
  1972. charge:play()
  1973. coroutine.resume(coroutine.create(function()
  1974. wait(2.5)
  1975. for i=1, 11 do
  1976. wait()
  1977. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  1978. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  1979. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  1980. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  1981. end
  1982. end))
  1983. criticalchance = 1
  1984. plat = 1
  1985. dela = 0
  1986. wait(3.8)
  1987. boom:play()
  1988. attack = true
  1989. coroutine.resume(coroutine.create(function()
  1990. for i=1, 5 do
  1991. wait()
  1992. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  1993. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  1994. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  1995. end
  1996. end))
  1997. bv.position = pos3.p
  1998. for i=1, 7 do
  1999. wait()
  2000. spikes2(torso,"Medium blue")
  2001. end
  2002. coroutine.resume(coroutine.create(function()
  2003. for i=1, 12 do
  2004. wait()
  2005. bal(blade5,"Medium blue",splashdist*2)
  2006. end
  2007. end))
  2008. local parts = getcharparts(workspace)
  2009. for _,v in pairs(parts) do
  2010. if (v.Position - blade5.Position).magnitude < 14 then
  2011. kill(v,true)
  2012. end
  2013. end
  2014. wait(0.3)
  2015. attack = false
  2016. bv:remove()
  2017. bg:remove()
  2018. hum.WalkSpeed = normal
  2019. avgdmg = normdmg
  2020. rw.C0 = rightfight
  2021. lw.C0 = leftfight
  2022. neck.C1 = neor
  2023. weaponweld.C0 = CFrame.new(0,0,0)
  2024. attacking = false
  2025. criticalchance = normchance
  2026. plat = 2
  2027. end
  2028. function combo()
  2029. att()
  2030. attas()
  2031. sprint()
  2032. spin()
  2033. end
  2034. function run()
  2035. spin()
  2036. spin()
  2037. spin()
  2038. end
  2039. function rush()
  2040. attacking = true
  2041. for i=1,8 do
  2042. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  2043. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  2044. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  2045. wait(0.1)
  2046. end
  2047. slash:play()
  2048. wait(0.13)
  2049. attack = true
  2050. local bv = Instance.new("BodyVelocity",torso)
  2051. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2052. bv.velocity = torso.CFrame.lookVector * 220
  2053. local bav = Instance.new("BodyAngularVelocity",torso)
  2054. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2055. bav.angularvelocity = Vector3.new(0,36,0)
  2056. bav.P = 15000
  2057. for i=1,6 do
  2058. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  2059. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  2060. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  2061. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2062. wait()
  2063. end
  2064. attack = false
  2065. wait(0.08)
  2066. for i=1,3 do
  2067. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  2068. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  2069. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  2070. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2071. wait()
  2072. end
  2073. rw.C0 = rightfight
  2074. lw.C0 = leftfight
  2075. bv:remove()
  2076. bav:remove()
  2077. neck.C1 = neor
  2078. weaponweld.C0 = CFrame.new(0,0,0)
  2079. attacking = false
  2080. end
  2081. function masta()
  2082. attacking = true
  2083. for i=1,8 do
  2084. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  2085. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  2086. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  2087. bal(torso,"Tr. Blue",25)
  2088. spikes2(torso,"Medium blue")
  2089. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2090. wait(0.1)
  2091. end
  2092. slash:play()
  2093. avgdmg = 37
  2094. criticalchance = 125
  2095. wait(0.13)
  2096. attack = true
  2097. local bv = Instance.new("BodyVelocity",torso)
  2098. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2099. bv.velocity = torso.CFrame.lookVector * 220
  2100. local bav = Instance.new("BodyAngularVelocity",torso)
  2101. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2102. bav.angularvelocity = Vector3.new(0,36,0)
  2103. bav.P = 15000
  2104. for i=1,6 do
  2105. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  2106. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  2107. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  2108. bal(torso,"Tr. Blue",25)
  2109. spikes2(torso,"Medium blue")
  2110. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2111. wait()
  2112. end
  2113. attack = false
  2114. wait(0.08)
  2115. for i=1,3 do
  2116. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  2117. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  2118. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  2119. bal(torso,"Tr. Blue",25)
  2120. spikes2(torso,"Medium blue")
  2121. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2122. wait()
  2123. end
  2124. rw.C0 = rightfight
  2125. lw.C0 = leftfight
  2126. bv:remove()
  2127. bav:remove()
  2128. neck.C1 = neor
  2129. weaponweld.C0 = CFrame.new(0,0,0)
  2130. attacking = false
  2131. end
  2132. if script.Parent.className ~= "HopperBin" then
  2133. local h = Instance.new("HopperBin",me.Backpack)
  2134. h.Name = "SoulSword"
  2135. script.Parent = h
  2136. end
  2137. local bin = script.Parent
  2138. function sel(mouse)
  2139. neck.C1 = neor
  2140. if (selected == false) then
  2141. selectmotion()
  2142. end
  2143. mouse.Button1Down:connect(function()
  2144. if (attacking == false) then
  2145. att()
  2146. end
  2147. end)
  2148. mouse.KeyDown:connect(function(kuu)
  2149. local kai = kuu:lower()
  2150. if attacking == false then
  2151. if (kai == "q") then
  2152. spin()
  2153. elseif (kai == "e") then
  2154. att()
  2155. elseif (kai == "r") then
  2156. sprint()
  2157. elseif (kai == "l") then
  2158. stab()
  2159. elseif (kai == "t") then
  2160. attas()
  2161. elseif (kai == "z") then
  2162. masta()
  2163. elseif (kai == "y") then
  2164. spins()
  2165. elseif (kai == "g") then
  2166. combo()
  2167. elseif (kai == "p") then
  2168. rise()
  2169. elseif (kai == "j") then
  2170. sprint2()
  2171. elseif (kai == "h") then
  2172. run()
  2173. elseif (kai == "f") then
  2174. rush()
  2175. end
  2176. end
  2177. end)
  2178. while selected do
  2179. wait(0.8)
  2180. local k = math.random(1,5)
  2181. if k == 1 then
  2182. if hum.Health < 50 then
  2183. for i=1, math.random(4,24) do
  2184. wait(0.1)
  2185. local col = healcols[math.random(1,#healcols)]
  2186. local sa = math.random(30,90)/100
  2187. local p = Instance.new("Part")
  2188. prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
  2189. p.CFrame = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) * CFrame.new(0,0,math.random(4,12))
  2190. local mes = Instance.new("SpecialMesh")
  2191. mesh(mes,p,sa,sa,sa,"Sphere")
  2192. local bg = Instance.new("BodyPosition",p)
  2193. bg.maxForce = Vector3.new(1000000,1000000,1000000)
  2194. bg.P = 100000
  2195. bg.position = torso.Position
  2196. coroutine.resume(coroutine.create(function()
  2197. repeat
  2198. bg.position = torso.Position
  2199. wait()
  2200. until (p.Position - torso.Position).magnitude < 1.8
  2201. hum.Health = hum.Health + 1.2
  2202. p:remove()
  2203. end))
  2204. end
  2205. end
  2206. end
  2207. end
  2208. end
  2209. function desel()
  2210. neck.C1 = neor
  2211. if selected then
  2212. deselmotion()
  2213. end
  2214. end
  2215. bin.Selected:connect(sel)
  2216. bin.Deselected:connect(desel)
  2217. --LEGOlocal name = "mogoon"
  2218. local me = game.Players.mogoon
  2219. local char = me.Character
  2220. selected = false
  2221. attacking = false
  2222. attack = false
  2223. dela = 0.4
  2224. normdmg = 9
  2225. avgdmg = normdmg
  2226. normal = 14
  2227. speed = 14
  2228. normchance = 9333333333333
  2229. criticalchance = normchance
  2230. splashdist = 14333333333333333333333333333333333333333333333333
  2231. plat = 1
  2232. healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
  2233. if char:findFirstChild("Sword",true) ~= nil then
  2234. char:findFirstChild("Sword",true).Parent = nil
  2235. end
  2236. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  2237. part.Parent = parent
  2238. part.formFactor = form
  2239. part.CanCollide = collide
  2240. part.Transparency = tran
  2241. part.Reflectance = ref
  2242. part.Size = Vector3.new(x,y,z)
  2243. part.BrickColor = BrickColor.new(color)
  2244. part.TopSurface = 0
  2245. part.BottomSurface = 0
  2246. part.Anchored = anchor
  2247. part.Locked = true
  2248. part:BreakJoints()
  2249. end
  2250. function weld(w, p, p1, a, b, c, x, y, z)
  2251. w.Parent = p
  2252. w.Part0 = p
  2253. w.Part1 = p1
  2254. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  2255. end
  2256. function mesh(mesh, parent, x, y, z, type)
  2257. mesh.Parent = parent
  2258. mesh.Scale = Vector3.new(x, y, z)
  2259. mesh.MeshType = type
  2260. end
  2261. function getcharparts(path)
  2262. local objs = {}
  2263. for _,v in pairs(path:children()) do
  2264. if v:IsA("Model") and v.Name ~= name then
  2265. for _,k in pairs(v:children()) do
  2266. if k.Name == "Torso" then
  2267. table.insert(objs,k)
  2268. end
  2269. end
  2270. end
  2271. end
  2272. return objs
  2273. end
  2274. sword = Instance.new("Model",me.Character)
  2275. sword.Name = "Sword"
  2276. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  2277. rarm = char:findFirstChild("Right Arm")
  2278. larm = char:findFirstChild("Left Arm")
  2279. torso = char:findFirstChild("Torso")
  2280. hum = char:findFirstChild("Humanoid")
  2281. main = Instance.new("Part")
  2282. prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
  2283. mme = Instance.new("SpecialMesh")
  2284. mesh(mme,main,1,1,1,"Head")
  2285. part1 = Instance.new("Part")
  2286. prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  2287. p1m = Instance.new("BlockMesh",part1)
  2288. w1 = Instance.new("Weld")
  2289. weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
  2290. part2 = Instance.new("Part")
  2291. prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  2292. p2m = Instance.new("BlockMesh",part2)
  2293. w2 = Instance.new("Weld")
  2294. weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
  2295. part3 = Instance.new("Part")
  2296. prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  2297. p3m = Instance.new("BlockMesh",part3)
  2298. w3 = Instance.new("Weld")
  2299. weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
  2300. part4 = Instance.new("Part")
  2301. prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  2302. p4m = Instance.new("BlockMesh",part4)
  2303. w4 = Instance.new("Weld")
  2304. weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
  2305. part5 = Instance.new("Part")
  2306. prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  2307. p5m = Instance.new("BlockMesh",part5)
  2308. w5 = Instance.new("Weld")
  2309. weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
  2310. part6 = Instance.new("Part")
  2311. prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
  2312. p6m = Instance.new("SpecialMesh")
  2313. mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
  2314. w6 = Instance.new("Weld")
  2315. weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
  2316. blade1 = Instance.new("Part")
  2317. prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
  2318. b1m = Instance.new("SpecialMesh")
  2319. mesh(b1m,blade1,1,1,1,"Torso")
  2320. bw1 = Instance.new("Weld")
  2321. weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
  2322. uns = Instance.new("Sound",blade1)
  2323. uns.Volume = 1
  2324. uns.Pitch = 1
  2325. uns.SoundId = "rbxasset://sounds\\unsheath.wav"
  2326. slash = Instance.new("Sound",blade1)
  2327. slash.Volume = 1
  2328. slash.Pitch = 1
  2329. slash.SoundId = "rbxasset://sounds\\swordslash.wav"
  2330. shea = Instance.new("Sound",blade1)
  2331. shea.Volume = 1
  2332. shea.Pitch = -0.9
  2333. shea.SoundId = "rbxasset://sounds\\unsheath.wav"
  2334. spi = Instance.new("Sound",blade1)
  2335. spi.Volume = 1
  2336. spi.Pitch = 1
  2337. spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
  2338. charge = Instance.new("Sound",blade1)
  2339. charge.Volume = 1
  2340. charge.Pitch = 0.5
  2341. charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
  2342. boom = Instance.new("Sound",blade1)
  2343. boom.Volume = 1
  2344. boom.Pitch = 2.2
  2345. boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  2346. blade2 = Instance.new("Part")
  2347. prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
  2348. b2m = Instance.new("BlockMesh",blade2)
  2349. bw2 = Instance.new("Weld")
  2350. weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
  2351. blade3 = Instance.new("Part")
  2352. prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  2353. b3m = Instance.new("SpecialMesh")
  2354. mesh(b3m,blade3,1,1,1,"Wedge")
  2355. bw3 = Instance.new("Weld")
  2356. weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
  2357. blade4 = Instance.new("Part")
  2358. prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  2359. b4m = Instance.new("SpecialMesh")
  2360. mesh(b4m,blade4,1,1,1,"Wedge")
  2361. bw4 = Instance.new("Weld")
  2362. weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
  2363. blade5 = Instance.new("Part")
  2364. prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
  2365. b5m = Instance.new("BlockMesh",blade5)
  2366. bw5 = Instance.new("Weld")
  2367. weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
  2368. part7 = Instance.new("Part")
  2369. prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
  2370. p7m = Instance.new("SpecialMesh")
  2371. mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
  2372. w7 = Instance.new("Weld")
  2373. weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
  2374. tup1 = Instance.new("Part")
  2375. prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
  2376. tw1 = Instance.new("Weld")
  2377. weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
  2378. holdpart = Instance.new("Part")
  2379. prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
  2380. hu = Instance.new("Weld")
  2381. weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
  2382. holdweld = Instance.new("Weld")
  2383. weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
  2384. weaponweld = Instance.new("Weld")
  2385. weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
  2386. --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
  2387. rb = Instance.new("Part")
  2388. prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  2389. rh = Instance.new("Weld")
  2390. weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
  2391. lb = Instance.new("Part")
  2392. prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  2393. lh = Instance.new("Weld")
  2394. weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
  2395. rw = Instance.new("Weld")
  2396. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  2397. lw = Instance.new("Weld")
  2398. weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
  2399. neck = torso.Neck
  2400. neor = neck.C1
  2401. rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
  2402. leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
  2403. function selectmotion()
  2404. weaponweld.C0 = CFrame.new(0,0,0)
  2405. rw.C0 = CFrame.new(0,0,0)
  2406. lw.C0 = CFrame.new(0,0,0)
  2407. rw.Part1 = rarm
  2408. lw.Part1 = larm
  2409. for i=1, 15 do
  2410. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  2411. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
  2412. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
  2413. wait()
  2414. end
  2415. weaponweld.Part1 = main
  2416. holdweld.Part1 = nil
  2417. wait(0.14)
  2418. uns:play()
  2419. for i=1, 4 do
  2420. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
  2421. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
  2422. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
  2423. wait()
  2424. end
  2425. for i=1, 10 do
  2426. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
  2427. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
  2428. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
  2429. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
  2430. wait()
  2431. end
  2432. wait(0.1)
  2433. for i=1, 6 do
  2434. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
  2435. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
  2436. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
  2437. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
  2438. wait()
  2439. end
  2440. rw.C0 = rightfight
  2441. lw.C0 = leftfight
  2442. neck.C1 = neor
  2443. weaponweld.C0 = CFrame.new(0,0,0)
  2444. selected = true
  2445. end
  2446. function deselmotion()
  2447. for i=1, 12 do
  2448. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  2449. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
  2450. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
  2451. wait()
  2452. end
  2453. shea:play()
  2454. weaponweld.Part1 = nil
  2455. holdweld.Part1 = tup1
  2456. wait(0.1)
  2457. for i=1, 8 do
  2458. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
  2459. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
  2460. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
  2461. wait()
  2462. end
  2463. rw.Part1 = nil
  2464. lw.Part1 = nil
  2465. rw.C0 = CFrame.new(0,0,0)
  2466. lw.C0 = CFrame.new(0,0,0)
  2467. neck.C1 = neor
  2468. weaponweld.C0 = CFrame.new(0,0,0)
  2469. selected = false
  2470. end
  2471. ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
  2472. function fade(brick,mesh,scale,tran,speed)
  2473. coroutine.resume(coroutine.create(function()
  2474. for i=tran,1,speed do
  2475. wait()
  2476. brick.Transparency = i
  2477. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  2478. end
  2479. brick:remove()
  2480. end))
  2481. end
  2482. function block(part,avg,cols)
  2483. for i=1, math.random(1,3) do
  2484. local s = (avg*1.4)*100
  2485. local s2 = (avg/5)*100
  2486. local size = math.random(s2,s)/100
  2487. local p = Instance.new("Part",me.Character)
  2488. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  2489. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  2490. coroutine.resume(coroutine.create(function()
  2491. for i=p.Transparency, 1, 0.2 do
  2492. wait(0.15)
  2493. p.Transparency = i
  2494. local cf = p.CFrame
  2495. p.Size = Vector3.new(size,size,size)
  2496. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  2497. size = size - 0.2
  2498. end
  2499. p:remove()
  2500. end))
  2501. end
  2502. end
  2503. function blocks(part,avg,cols)
  2504. for i=1, math.random(1,3) do
  2505. local s = (avg*1.4)*100
  2506. local s2 = (avg/5)*100
  2507. local size = math.random(s2,s)/100
  2508. local p = Instance.new("Part",me.Character)
  2509. local pos = p.CFrame
  2510. local pos2 = pos * CFrame.new(0,12,-15)
  2511. local pos3 = pos2 * CFrame.new(0,-12,-12)
  2512. local bv = Instance.new("BodyPosition",p)
  2513. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2514. bv.position = pos2.p
  2515. local bg = Instance.new("BodyGyro",p)
  2516. bg.cframe = CFrame.new(pos.p,pos3.p)
  2517. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2518. bg.P = 30000
  2519. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  2520. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  2521. coroutine.resume(coroutine.create(function()
  2522. for i=p.Transparency, 1, 0.2 do
  2523. wait(0.15)
  2524. p.Transparency = i
  2525. local cf = p.CFrame
  2526. p.Size = Vector3.new(size,size,size)
  2527. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  2528. size = size - 0.2
  2529. end
  2530. p:remove()
  2531. end))
  2532. end
  2533. end
  2534. function blading(part,color)
  2535. local p = Instance.new("Part",me.Character)
  2536. prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
  2537. p.CFrame = part.CFrame
  2538. coroutine.resume(coroutine.create(function()
  2539. for i=p.Transparency, 1, 0.04 do
  2540. wait()
  2541. p.Transparency = i
  2542. end
  2543. p:remove()
  2544. end))
  2545. end
  2546. function spikes(part,color)
  2547. local p = Instance.new("Part",me.Character)
  2548. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  2549. p.CFrame = part.CFrame * CFrame.new(0,-3,0)
  2550. local mww = Instance.new("SpecialMesh")
  2551. mesh(mww,p,6,5,6,"FileMesh")
  2552. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2553. fade(p,mww,0.55,p.Transparency,0.08)
  2554. end
  2555. function spikes2(part,color)
  2556. local p = Instance.new("Part",me.Character)
  2557. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  2558. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  2559. local mww = Instance.new("SpecialMesh")
  2560. mesh(mww,p,8,7,8,"FileMesh")
  2561. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2562. fade(p,mww,0.55,p.Transparency,0.06)
  2563. end
  2564. function bal(part,color,dist)
  2565. local p = Instance.new("Part",me.Character)
  2566. prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
  2567. p.CFrame = part.CFrame
  2568. local mww = Instance.new("SpecialMesh")
  2569. mesh(mww,p,dist,dist,dist,"Sphere")
  2570. fade(p,mww,3,p.Transparency,0.06)
  2571. end
  2572. --Kill function----------------------Kill function----------------------Kill function--------------------
  2573. function blast(dmg,part,crit)
  2574. local randomposx = math.random(-30,30)
  2575. local randomposy = math.random(-50,-10)
  2576. local bil = Instance.new("BillboardGui",part)
  2577. bil.Adornee = bil.Parent
  2578. bil.Size = UDim2.new(0,110,0,70)
  2579. local img = Instance.new("ImageLabel",bil)
  2580. img.Size = UDim2.new(1,0,1,0)
  2581. img.Image = "http://www.roblox.com/asset/?id=42621332"
  2582. img.Position = UDim2.new(0,randomposx,0,randomposy)
  2583. img.BackgroundTransparency = 1
  2584. local txt = Instance.new("TextLabel",img)
  2585. txt.Size = UDim2.new(1,0,1,0)
  2586. txt.BackgroundTransparency = 1
  2587. txt.Text = dmg
  2588. txt.TextColor3 = Color3.new(0,0,0)
  2589. txt.FontSize = "Size18"
  2590. if crit then
  2591. img.Image = "http://www.roblox.com/asset/?id=42621315"
  2592. txt.FontSize = "Size24"
  2593. txt.TextColor3 = Color3.new(0.6,0,0)
  2594. end
  2595. coroutine.resume(coroutine.create(function()
  2596. wait(0.2)
  2597. for i=1, math.random(30,50) do
  2598. img.Position = UDim2.new(0,randomposx,0,randomposy)
  2599. randomposy = randomposy - 4
  2600. wait()
  2601. end
  2602. bil:remove()
  2603. end))
  2604. end
  2605. deb = true
  2606. function kill(hit,mod)
  2607. if deb and attack and hit.Parent.Name ~= name then
  2608. local ch = hit.Parent
  2609. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  2610. deb = false
  2611. local dm = math.random(0,avgdmg*2)
  2612. local cri = false
  2613. local cripro = math.random(1,criticalchance)
  2614. if cripro == 1 then
  2615. cri = true
  2616. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  2617. end
  2618. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  2619. blast(dm,ch.Head,cri)
  2620. if cri then
  2621. coroutine.resume(coroutine.create(function()
  2622. local lol = math.random(1,plat)
  2623. if lol == 1 then
  2624. ch["Humanoid"].PlatformStand = true
  2625. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2626. wait(0.9)
  2627. ch["Humanoid"].PlatformStand = false
  2628. if mod == true then
  2629. ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  2630. ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
  2631. end
  2632. end
  2633. end))
  2634. end
  2635. wait(dela)
  2636. deb = true
  2637. end
  2638. end
  2639. end
  2640. function ris(hit,mod)
  2641. if deb and attack and hit.Parent.Name ~= name then
  2642. local ch = hit.Parent
  2643. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  2644. deb = false
  2645. local dm = math.random(0,avgdmg*2)
  2646. local cri = false
  2647. local cripro = math.random(1,criticalchance)
  2648. if cripro == 1 then
  2649. cri = true
  2650. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  2651. end
  2652. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  2653. blast(dm,ch.Head,cri)
  2654. if cri then
  2655. coroutine.resume(coroutine.create(function()
  2656. local lol = math.random(1,plat)
  2657. if lol == 1 then
  2658. ch["Humanoid"].PlatformStand = true
  2659. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2660. wait(0.9)
  2661. ch["Humanoid"].PlatformStand = false
  2662. if mod == true then
  2663. ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  2664. ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
  2665. end
  2666. end
  2667. end))
  2668. end
  2669. wait(dela)
  2670. deb = true
  2671. end
  2672. end
  2673. end
  2674. blade3.Touched:connect(kill)
  2675. blade4.Touched:connect(kill)
  2676. blade2.Touched:connect(kill)
  2677. blade1.Touched:connect(kill)
  2678. blade5.Touched:connect(kill)
  2679. blade5.Touched:connect(ris)
  2680. ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
  2681. -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2682. -- blading(blade2,"Bright red")
  2683. function att()
  2684. attacking = true
  2685. for i=1,8 do
  2686. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  2687. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  2688. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  2689. wait()
  2690. end
  2691. slash:play()
  2692. wait(0.13)
  2693. attack = true
  2694. for i=1,6 do
  2695. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  2696. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  2697. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  2698. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2699. wait()
  2700. end
  2701. attack = false
  2702. wait(0.08)
  2703. for i=1,3 do
  2704. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  2705. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  2706. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  2707. wait()
  2708. end
  2709. rw.C0 = rightfight
  2710. lw.C0 = leftfight
  2711. neck.C1 = neor
  2712. weaponweld.C0 = CFrame.new(0,0,0)
  2713. attacking = false
  2714. end
  2715. function stab()
  2716. attacking = true
  2717. for i=1,8 do
  2718. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  2719. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  2720. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  2721. wait()
  2722. end
  2723. slash:play()
  2724. avgdmg = 15
  2725. criticalchance = 95
  2726. wait(0.13)
  2727. attack = true
  2728. for i=1,6 do
  2729. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
  2730. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  2731. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  2732. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2733. bal(blade5,"Tr. Blue",25)
  2734. wait()
  2735. end
  2736. attack = false
  2737. wait(0.08)
  2738. for i=1,3 do
  2739. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  2740. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  2741. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  2742. blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2743. bal(blade5,"Tr. Blue",25)
  2744. wait()
  2745. end
  2746. rw.C0 = rightfight
  2747. lw.C0 = leftfight
  2748. neck.C1 = neor
  2749. weaponweld.C0 = CFrame.new(0,0,0)
  2750. attacking = false
  2751. end
  2752. function attas()
  2753. attacking = true
  2754. local pos = torso.CFrame
  2755. local pos2 = pos * CFrame.new(0,12,-15)
  2756. local pos3 = pos2 * CFrame.new(0,-12,-12)
  2757. for i=1,6 do
  2758. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  2759. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  2760. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  2761. spikes(torso,"Light blue")
  2762. spikes2(torso,"Bright blue")
  2763. bal(torso,"Tr. Blue",25)
  2764. wait()
  2765. end
  2766. slash:play()
  2767. avgdmg = 15
  2768. criticalchance = 65
  2769. wait(0.13)
  2770. attack = true
  2771. local bv = Instance.new("BodyPosition",torso)
  2772. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2773. bv.position = pos2.p
  2774. local bg = Instance.new("BodyGyro",torso)
  2775. bg.cframe = CFrame.new(pos.p,pos3.p)
  2776. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2777. bg.P = 30000
  2778. for i=1,6 do
  2779. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
  2780. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
  2781. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
  2782. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2783. wait()
  2784. end
  2785. attack = false
  2786. wait(0.08)
  2787. for i=1,3 do
  2788. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  2789. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  2790. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  2791. wait()
  2792. end
  2793. rw.C0 = rightfight
  2794. lw.C0 = leftfight
  2795. bv:remove()
  2796. bg:remove()
  2797. neck.C1 = neor
  2798. weaponweld.C0 = CFrame.new(0,0,0)
  2799. attacking = false
  2800. end
  2801. function spin()
  2802. attacking = true
  2803. hum.WalkSpeed = 0
  2804. for i=1,7 do
  2805. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  2806. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  2807. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  2808. wait()
  2809. end
  2810. spi:play()
  2811. wait(0.3)
  2812. spi:play()
  2813. dela = 0.1
  2814. avgdmg = 6
  2815. criticalchance = 12
  2816. local bv = Instance.new("BodyVelocity",torso)
  2817. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2818. bv.velocity = torso.CFrame.lookVector * 22
  2819. local bav = Instance.new("BodyAngularVelocity",torso)
  2820. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2821. bav.angularvelocity = Vector3.new(0,36,0)
  2822. bav.P = 15000
  2823. attack = true
  2824. for i=1, 30 do
  2825. wait()
  2826. spikes(torso,"Medium blue")
  2827. end
  2828. bv:remove()
  2829. bav:remove()
  2830. hum.WalkSpeed = normal
  2831. attack = false
  2832. avgdmg = normdmg
  2833. for i=1,5 do
  2834. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  2835. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  2836. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  2837. wait()
  2838. end
  2839. dela = 0.4
  2840. rw.C0 = rightfight
  2841. lw.C0 = leftfight
  2842. neck.C1 = neor
  2843. weaponweld.C0 = CFrame.new(0,0,0)
  2844. attacking = false
  2845. criticalchance = normchance
  2846. end
  2847. function spins()
  2848. attacking = true
  2849. hum.WalkSpeed = 0
  2850. for i=1,7 do
  2851. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  2852. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  2853. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  2854. bal(torso,"Tr. Blue",25)
  2855. wait()
  2856. end
  2857. spi:play()
  2858. wait(0.3)
  2859. spi:play()
  2860. dela = 0.1
  2861. avgdmg = 6
  2862. criticalchance = 12
  2863. local bv = Instance.new("BodyVelocity",torso)
  2864. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2865. bv.velocity = torso.CFrame.lookVector * 22
  2866. local bav = Instance.new("BodyAngularVelocity",torso)
  2867. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2868. bav.angularvelocity = Vector3.new(0,36,0)
  2869. bav.P = 15000
  2870. attack = true
  2871. for i=1, 30 do
  2872. wait()
  2873. spikes(torso,"Medium blue")
  2874. end
  2875. bv:remove()
  2876. bav:remove()
  2877. hum.WalkSpeed = normal
  2878. attack = false
  2879. avgdmg = normdmg
  2880. for i=1,5 do
  2881. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  2882. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  2883. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  2884. wait()
  2885. end
  2886. dela = 0.4
  2887. rw.C0 = rightfight
  2888. lw.C0 = leftfight
  2889. neck.C1 = neor
  2890. weaponweld.C0 = CFrame.new(0,0,0)
  2891. attacking = false
  2892. criticalchance = normchance
  2893. end
  2894. function rise()
  2895. attacking = true
  2896. local pos = torso.CFrame
  2897. local pos2 = pos * CFrame.new(0,5,-15)
  2898. local pos3 = pos2 * CFrame.new(0,-3,-12)
  2899. hum.WalkSpeed = 0
  2900. for i=1,7 do
  2901. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  2902. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  2903. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  2904. bal(torso,"Tr. Blue",25)
  2905. wait()
  2906. end
  2907. spi:play()
  2908. wait(0.3)
  2909. spi:play()
  2910. dela = 0.1
  2911. avgdmg = 6
  2912. criticalchance = 12
  2913. local bv = Instance.new("BodyPosition",torso)
  2914. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2915. bv.position = pos2.p
  2916. local bg = Instance.new("BodyGyro",torso)
  2917. bg.cframe = CFrame.new(pos.p,pos3.p)
  2918. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2919. bg.P = 30000
  2920. attack = true
  2921. for i=1, 30 do
  2922. wait()
  2923. spikes2(torso,"Medium blue")
  2924. end
  2925. bv:remove()
  2926. bg:remove()
  2927. hum.WalkSpeed = normal
  2928. attack = false
  2929. avgdmg = normdmg
  2930. for i=1,5 do
  2931. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  2932. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  2933. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  2934. wait()
  2935. end
  2936. dela = 0.4
  2937. rw.C0 = rightfight
  2938. lw.C0 = leftfight
  2939. neck.C1 = neor
  2940. weaponweld.C0 = CFrame.new(0,0,0)
  2941. attacking = false
  2942. criticalchance = normchance
  2943. end
  2944. function sprint()
  2945. attacking = true
  2946. hum.WalkSpeed = 0
  2947. local pos = torso.CFrame
  2948. local pos2 = pos * CFrame.new(0,12,-15)
  2949. local pos3 = pos2 * CFrame.new(0,-12,-12)
  2950. for i=1,6 do
  2951. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  2952. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  2953. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  2954. wait()
  2955. end
  2956. avgdmg = 14
  2957. local bv = Instance.new("BodyPosition",torso)
  2958. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2959. bv.position = pos2.p
  2960. local bg = Instance.new("BodyGyro",torso)
  2961. bg.cframe = CFrame.new(pos.p,pos3.p)
  2962. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2963. bg.P = 30000
  2964. for i=1, 7 do
  2965. wait()
  2966. spikes2(torso,"Medium blue")
  2967. end
  2968. wait(0.1)
  2969. coroutine.resume(coroutine.create(function()
  2970. for i=1, 17 do
  2971. wait()
  2972. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  2973. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  2974. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  2975. end
  2976. end))
  2977. coroutine.resume(coroutine.create(function()
  2978. for i=0.4, 5.3,0.07 do
  2979. wait(0.04)
  2980. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  2981. end
  2982. end))
  2983. charge:play()
  2984. coroutine.resume(coroutine.create(function()
  2985. wait(2.5)
  2986. for i=1, 11 do
  2987. wait()
  2988. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  2989. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  2990. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  2991. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  2992. end
  2993. end))
  2994. criticalchance = 1
  2995. plat = 1
  2996. dela = 0
  2997. wait(3.8)
  2998. boom:play()
  2999. attack = true
  3000. coroutine.resume(coroutine.create(function()
  3001. for i=1, 5 do
  3002. wait()
  3003. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  3004. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  3005. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  3006. end
  3007. end))
  3008. bv.position = pos3.p
  3009. for i=1, 7 do
  3010. wait()
  3011. spikes2(torso,"Medium blue")
  3012. end
  3013. coroutine.resume(coroutine.create(function()
  3014. for i=1, 12 do
  3015. wait()
  3016. bal(blade5,"Medium blue",splashdist*2)
  3017. end
  3018. end))
  3019. local parts = getcharparts(workspace)
  3020. for _,v in pairs(parts) do
  3021. if (v.Position - blade5.Position).magnitude < 14 then
  3022. kill(v,true)
  3023. end
  3024. end
  3025. wait(0.3)
  3026. attack = false
  3027. bv:remove()
  3028. bg:remove()
  3029. hum.WalkSpeed = normal
  3030. avgdmg = normdmg
  3031. rw.C0 = rightfight
  3032. lw.C0 = leftfight
  3033. neck.C1 = neor
  3034. weaponweld.C0 = CFrame.new(0,0,0)
  3035. attacking = false
  3036. criticalchance = normchance
  3037. plat = 2
  3038. end
  3039. function sprint2()
  3040. attacking = true
  3041. hum.WalkSpeed = 0
  3042. local pos = torso.CFrame
  3043. local pos2 = pos * CFrame.new(0,15,-15)
  3044. local pos3 = pos2 * CFrame.new(0,-13,-12)
  3045. for i=1,6 do
  3046. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  3047. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  3048. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  3049. wait()
  3050. end
  3051. avgdmg = 14
  3052. local bv = Instance.new("BodyPosition",torso)
  3053. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3054. bv.position = pos2.p
  3055. local bg = Instance.new("BodyGyro",torso)
  3056. bg.cframe = CFrame.new(pos.p,pos3.p)
  3057. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  3058. bg.P = 30000
  3059. for i=1, 4 do
  3060. wait()
  3061. spikes2(torso,"Medium blue")
  3062. spikes2(torso,"Light blue")
  3063. spikes2(torso,"Bright blue")
  3064. end
  3065. wait(0.1)
  3066. coroutine.resume(coroutine.create(function()
  3067. for i=1, 34 do
  3068. wait()
  3069. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  3070. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  3071. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  3072. end
  3073. end))
  3074. coroutine.resume(coroutine.create(function()
  3075. for i=0.4, 5.3,0.07 do
  3076. wait(0.04)
  3077. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3078. end
  3079. end))
  3080. charge:play()
  3081. coroutine.resume(coroutine.create(function()
  3082. wait(2.5)
  3083. for i=1, 11 do
  3084. wait()
  3085. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  3086. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  3087. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  3088. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  3089. end
  3090. end))
  3091. criticalchance = 1
  3092. plat = 1
  3093. dela = 0
  3094. wait(3.8)
  3095. boom:play()
  3096. attack = true
  3097. coroutine.resume(coroutine.create(function()
  3098. for i=1, 5 do
  3099. wait()
  3100. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  3101. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  3102. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  3103. end
  3104. end))
  3105. bv.position = pos3.p
  3106. for i=1, 7 do
  3107. wait()
  3108. spikes2(torso,"Medium blue")
  3109. end
  3110. coroutine.resume(coroutine.create(function()
  3111. for i=1, 12 do
  3112. wait()
  3113. bal(blade5,"Medium blue",splashdist*2)
  3114. end
  3115. end))
  3116. local parts = getcharparts(workspace)
  3117. for _,v in pairs(parts) do
  3118. if (v.Position - blade5.Position).magnitude < 14 then
  3119. kill(v,true)
  3120. end
  3121. end
  3122. wait(0.3)
  3123. attack = false
  3124. bv:remove()
  3125. bg:remove()
  3126. hum.WalkSpeed = normal
  3127. avgdmg = normdmg
  3128. rw.C0 = rightfight
  3129. lw.C0 = leftfight
  3130. neck.C1 = neor
  3131. weaponweld.C0 = CFrame.new(0,0,0)
  3132. attacking = false
  3133. criticalchance = normchance
  3134. plat = 2
  3135. end
  3136. function combo()
  3137. att()
  3138. attas()
  3139. sprint()
  3140. spin()
  3141. end
  3142. function run()
  3143. spin()
  3144. spin()
  3145. spin()
  3146. end
  3147. function rush()
  3148. attacking = true
  3149. for i=1,8 do
  3150. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  3151. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  3152. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  3153. wait(0.1)
  3154. end
  3155. slash:play()
  3156. wait(0.13)
  3157. attack = true
  3158. local bv = Instance.new("BodyVelocity",torso)
  3159. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3160. bv.velocity = torso.CFrame.lookVector * 220
  3161. local bav = Instance.new("BodyAngularVelocity",torso)
  3162. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  3163. bav.angularvelocity = Vector3.new(0,36,0)
  3164. bav.P = 15000
  3165. for i=1,6 do
  3166. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  3167. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  3168. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  3169. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3170. wait()
  3171. end
  3172. attack = false
  3173. wait(0.08)
  3174. for i=1,3 do
  3175. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  3176. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  3177. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  3178. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3179. wait()
  3180. end
  3181. rw.C0 = rightfight
  3182. lw.C0 = leftfight
  3183. bv:remove()
  3184. bav:remove()
  3185. neck.C1 = neor
  3186. weaponweld.C0 = CFrame.new(0,0,0)
  3187. attacking = false
  3188. end
  3189. function masta()
  3190. attacking = true
  3191. for i=1,8 do
  3192. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  3193. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  3194. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  3195. bal(torso,"Tr. Blue",25)
  3196. spikes2(torso,"Medium blue")
  3197. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3198. wait(0.1)
  3199. end
  3200. slash:play()
  3201. avgdmg = 37
  3202. criticalchance = 125
  3203. wait(0.13)
  3204. attack = true
  3205. local bv = Instance.new("BodyVelocity",torso)
  3206. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3207. bv.velocity = torso.CFrame.lookVector * 220
  3208. local bav = Instance.new("BodyAngularVelocity",torso)
  3209. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  3210. bav.angularvelocity = Vector3.new(0,36,0)
  3211. bav.P = 15000
  3212. for i=1,6 do
  3213. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  3214. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  3215. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  3216. bal(torso,"Tr. Blue",25)
  3217. spikes2(torso,"Medium blue")
  3218. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3219. wait()
  3220. end
  3221. attack = false
  3222. wait(0.08)
  3223. for i=1,3 do
  3224. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  3225. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  3226. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  3227. bal(torso,"Tr. Blue",25)
  3228. spikes2(torso,"Medium blue")
  3229. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3230. wait()
  3231. end
  3232. rw.C0 = rightfight
  3233. lw.C0 = leftfight
  3234. bv:remove()
  3235. bav:remove()
  3236. neck.C1 = neor
  3237. weaponweld.C0 = CFrame.new(0,0,0)
  3238. attacking = false
  3239. end
  3240. if script.Parent.className ~= "HopperBin" then
  3241. local h = Instance.new("HopperBin",me.Backpack)
  3242. h.Name = "SoulSword"
  3243. script.Parent = h
  3244. end
  3245. local bin = script.Parent
  3246. function sel(mouse)
  3247. neck.C1 = neor
  3248. if (selected == false) then
  3249. selectmotion()
  3250. end
  3251. mouse.Button1Down:connect(function()
  3252. if (attacking == false) then
  3253. att()
  3254. end
  3255. end)
  3256. mouse.KeyDown:connect(function(kuu)
  3257. local kai = kuu:lower()
  3258. if attacking == false then
  3259. if (kai == "q") then
  3260. spin()
  3261. elseif (kai == "e") then
  3262. att()
  3263. elseif (kai == "r") then
  3264. sprint()
  3265. elseif (kai == "l") then
  3266. stab()
  3267. elseif (kai == "t") then
  3268. attas()
  3269. elseif (kai == "z") then
  3270. masta()
  3271. elseif (kai == "y") then
  3272. spins()
  3273. elseif (kai == "g") then
  3274. combo()
  3275. elseif (kai == "p") then
  3276. rise()
  3277. elseif (kai == "j") then
  3278. sprint2()
  3279. elseif (kai == "h") then
  3280. run()
  3281. elseif (kai == "f") then
  3282. rush()
  3283. end
  3284. end
  3285. end)
  3286. while selected do
  3287. wait(0.8)
  3288. local k = math.random(1,5)
  3289. if k == 1 then
  3290. if hum.Health < 50 then
  3291. for i=1, math.random(4,24) do
  3292. wait(0.1)
  3293. local col = healcols[math.random(1,#healcols)]
  3294. local sa = math.random(30,90)/100
  3295. local p = Instance.new("Part")
  3296. prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
  3297. p.CFrame = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) * CFrame.new(0,0,math.random(4,12))
  3298. local mes = Instance.new("SpecialMesh")
  3299. mesh(mes,p,sa,sa,sa,"Sphere")
  3300. local bg = Instance.new("BodyPosition",p)
  3301. bg.maxForce = Vector3.new(1000000,1000000,1000000)
  3302. bg.P = 100000
  3303. bg.position = torso.Position
  3304. coroutine.resume(coroutine.create(function()
  3305. repeat
  3306. bg.position = torso.Position
  3307. wait()
  3308. until (p.Position - torso.Position).magnitude < 1.8
  3309. hum.Health = hum.Health + 1.2
  3310. p:remove()
  3311. end))
  3312. end
  3313. end
  3314. end
  3315. end
  3316. end
  3317. function desel()
  3318. neck.C1 = neor
  3319. if selected then
  3320. deselmotion()
  3321. end
  3322. end
  3323. bin.Selected:connect(sel)
  3324. bin.Deselected:connect(desel)
  3325. --LEGOlocal name = "mogoon"
  3326. local me = game.Players.mogoon
  3327. local char = me.Character
  3328. selected = false
  3329. attacking = false
  3330. attack = false
  3331. dela = 0.4
  3332. normdmg = 9
  3333. avgdmg = normdmg
  3334. normal = 14
  3335. speed = 14
  3336. normchance = 9333333333333
  3337. criticalchance = normchance
  3338. splashdist = 14333333333333333333333333333333333333333333333333
  3339. plat = 1
  3340. healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
  3341. if char:findFirstChild("Sword",true) ~= nil then
  3342. char:findFirstChild("Sword",true).Parent = nil
  3343. end
  3344. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  3345. part.Parent = parent
  3346. part.formFactor = form
  3347. part.CanCollide = collide
  3348. part.Transparency = tran
  3349. part.Reflectance = ref
  3350. part.Size = Vector3.new(x,y,z)
  3351. part.BrickColor = BrickColor.new(color)
  3352. part.TopSurface = 0
  3353. part.BottomSurface = 0
  3354. part.Anchored = anchor
  3355. part.Locked = true
  3356. part:BreakJoints()
  3357. end
  3358. function weld(w, p, p1, a, b, c, x, y, z)
  3359. w.Parent = p
  3360. w.Part0 = p
  3361. w.Part1 = p1
  3362. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  3363. end
  3364. function mesh(mesh, parent, x, y, z, type)
  3365. mesh.Parent = parent
  3366. mesh.Scale = Vector3.new(x, y, z)
  3367. mesh.MeshType = type
  3368. end
  3369. function getcharparts(path)
  3370. local objs = {}
  3371. for _,v in pairs(path:children()) do
  3372. if v:IsA("Model") and v.Name ~= name then
  3373. for _,k in pairs(v:children()) do
  3374. if k.Name == "Torso" then
  3375. table.insert(objs,k)
  3376. end
  3377. end
  3378. end
  3379. end
  3380. return objs
  3381. end
  3382. sword = Instance.new("Model",me.Character)
  3383. sword.Name = "Sword"
  3384. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  3385. rarm = char:findFirstChild("Right Arm")
  3386. larm = char:findFirstChild("Left Arm")
  3387. torso = char:findFirstChild("Torso")
  3388. hum = char:findFirstChild("Humanoid")
  3389. main = Instance.new("Part")
  3390. prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
  3391. mme = Instance.new("SpecialMesh")
  3392. mesh(mme,main,1,1,1,"Head")
  3393. part1 = Instance.new("Part")
  3394. prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  3395. p1m = Instance.new("BlockMesh",part1)
  3396. w1 = Instance.new("Weld")
  3397. weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
  3398. part2 = Instance.new("Part")
  3399. prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  3400. p2m = Instance.new("BlockMesh",part2)
  3401. w2 = Instance.new("Weld")
  3402. weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
  3403. part3 = Instance.new("Part")
  3404. prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  3405. p3m = Instance.new("BlockMesh",part3)
  3406. w3 = Instance.new("Weld")
  3407. weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
  3408. part4 = Instance.new("Part")
  3409. prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  3410. p4m = Instance.new("BlockMesh",part4)
  3411. w4 = Instance.new("Weld")
  3412. weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
  3413. part5 = Instance.new("Part")
  3414. prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  3415. p5m = Instance.new("BlockMesh",part5)
  3416. w5 = Instance.new("Weld")
  3417. weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
  3418. part6 = Instance.new("Part")
  3419. prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
  3420. p6m = Instance.new("SpecialMesh")
  3421. mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
  3422. w6 = Instance.new("Weld")
  3423. weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
  3424. blade1 = Instance.new("Part")
  3425. prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
  3426. b1m = Instance.new("SpecialMesh")
  3427. mesh(b1m,blade1,1,1,1,"Torso")
  3428. bw1 = Instance.new("Weld")
  3429. weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
  3430. uns = Instance.new("Sound",blade1)
  3431. uns.Volume = 1
  3432. uns.Pitch = 1
  3433. uns.SoundId = "rbxasset://sounds\\unsheath.wav"
  3434. slash = Instance.new("Sound",blade1)
  3435. slash.Volume = 1
  3436. slash.Pitch = 1
  3437. slash.SoundId = "rbxasset://sounds\\swordslash.wav"
  3438. shea = Instance.new("Sound",blade1)
  3439. shea.Volume = 1
  3440. shea.Pitch = -0.9
  3441. shea.SoundId = "rbxasset://sounds\\unsheath.wav"
  3442. spi = Instance.new("Sound",blade1)
  3443. spi.Volume = 1
  3444. spi.Pitch = 1
  3445. spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
  3446. charge = Instance.new("Sound",blade1)
  3447. charge.Volume = 1
  3448. charge.Pitch = 0.5
  3449. charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
  3450. boom = Instance.new("Sound",blade1)
  3451. boom.Volume = 1
  3452. boom.Pitch = 2.2
  3453. boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  3454. blade2 = Instance.new("Part")
  3455. prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
  3456. b2m = Instance.new("BlockMesh",blade2)
  3457. bw2 = Instance.new("Weld")
  3458. weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
  3459. blade3 = Instance.new("Part")
  3460. prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  3461. b3m = Instance.new("SpecialMesh")
  3462. mesh(b3m,blade3,1,1,1,"Wedge")
  3463. bw3 = Instance.new("Weld")
  3464. weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
  3465. blade4 = Instance.new("Part")
  3466. prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  3467. b4m = Instance.new("SpecialMesh")
  3468. mesh(b4m,blade4,1,1,1,"Wedge")
  3469. bw4 = Instance.new("Weld")
  3470. weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
  3471. blade5 = Instance.new("Part")
  3472. prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
  3473. b5m = Instance.new("BlockMesh",blade5)
  3474. bw5 = Instance.new("Weld")
  3475. weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
  3476. part7 = Instance.new("Part")
  3477. prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
  3478. p7m = Instance.new("SpecialMesh")
  3479. mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
  3480. w7 = Instance.new("Weld")
  3481. weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
  3482. tup1 = Instance.new("Part")
  3483. prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
  3484. tw1 = Instance.new("Weld")
  3485. weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
  3486. holdpart = Instance.new("Part")
  3487. prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
  3488. hu = Instance.new("Weld")
  3489. weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
  3490. holdweld = Instance.new("Weld")
  3491. weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
  3492. weaponweld = Instance.new("Weld")
  3493. weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
  3494. --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
  3495. rb = Instance.new("Part")
  3496. prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  3497. rh = Instance.new("Weld")
  3498. weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
  3499. lb = Instance.new("Part")
  3500. prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  3501. lh = Instance.new("Weld")
  3502. weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
  3503. rw = Instance.new("Weld")
  3504. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  3505. lw = Instance.new("Weld")
  3506. weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
  3507. neck = torso.Neck
  3508. neor = neck.C1
  3509. rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
  3510. leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
  3511. function selectmotion()
  3512. weaponweld.C0 = CFrame.new(0,0,0)
  3513. rw.C0 = CFrame.new(0,0,0)
  3514. lw.C0 = CFrame.new(0,0,0)
  3515. rw.Part1 = rarm
  3516. lw.Part1 = larm
  3517. for i=1, 15 do
  3518. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  3519. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
  3520. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
  3521. wait()
  3522. end
  3523. weaponweld.Part1 = main
  3524. holdweld.Part1 = nil
  3525. wait(0.14)
  3526. uns:play()
  3527. for i=1, 4 do
  3528. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
  3529. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
  3530. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
  3531. wait()
  3532. end
  3533. for i=1, 10 do
  3534. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
  3535. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
  3536. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
  3537. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
  3538. wait()
  3539. end
  3540. wait(0.1)
  3541. for i=1, 6 do
  3542. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
  3543. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
  3544. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
  3545. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
  3546. wait()
  3547. end
  3548. rw.C0 = rightfight
  3549. lw.C0 = leftfight
  3550. neck.C1 = neor
  3551. weaponweld.C0 = CFrame.new(0,0,0)
  3552. selected = true
  3553. end
  3554. function deselmotion()
  3555. for i=1, 12 do
  3556. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  3557. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
  3558. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
  3559. wait()
  3560. end
  3561. shea:play()
  3562. weaponweld.Part1 = nil
  3563. holdweld.Part1 = tup1
  3564. wait(0.1)
  3565. for i=1, 8 do
  3566. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
  3567. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
  3568. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
  3569. wait()
  3570. end
  3571. rw.Part1 = nil
  3572. lw.Part1 = nil
  3573. rw.C0 = CFrame.new(0,0,0)
  3574. lw.C0 = CFrame.new(0,0,0)
  3575. neck.C1 = neor
  3576. weaponweld.C0 = CFrame.new(0,0,0)
  3577. selected = false
  3578. end
  3579. ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
  3580. function fade(brick,mesh,scale,tran,speed)
  3581. coroutine.resume(coroutine.create(function()
  3582. for i=tran,1,speed do
  3583. wait()
  3584. brick.Transparency = i
  3585. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  3586. end
  3587. brick:remove()
  3588. end))
  3589. end
  3590. function block(part,avg,cols)
  3591. for i=1, math.random(1,3) do
  3592. local s = (avg*1.4)*100
  3593. local s2 = (avg/5)*100
  3594. local size = math.random(s2,s)/100
  3595. local p = Instance.new("Part",me.Character)
  3596. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  3597. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  3598. coroutine.resume(coroutine.create(function()
  3599. for i=p.Transparency, 1, 0.2 do
  3600. wait(0.15)
  3601. p.Transparency = i
  3602. local cf = p.CFrame
  3603. p.Size = Vector3.new(size,size,size)
  3604. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  3605. size = size - 0.2
  3606. end
  3607. p:remove()
  3608. end))
  3609. end
  3610. end
  3611. function blocks(part,avg,cols)
  3612. for i=1, math.random(1,3) do
  3613. local s = (avg*1.4)*100
  3614. local s2 = (avg/5)*100
  3615. local size = math.random(s2,s)/100
  3616. local p = Instance.new("Part",me.Character)
  3617. local pos = p.CFrame
  3618. local pos2 = pos * CFrame.new(0,12,-15)
  3619. local pos3 = pos2 * CFrame.new(0,-12,-12)
  3620. local bv = Instance.new("BodyPosition",p)
  3621. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3622. bv.position = pos2.p
  3623. local bg = Instance.new("BodyGyro",p)
  3624. bg.cframe = CFrame.new(pos.p,pos3.p)
  3625. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  3626. bg.P = 30000
  3627. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  3628. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  3629. coroutine.resume(coroutine.create(function()
  3630. for i=p.Transparency, 1, 0.2 do
  3631. wait(0.15)
  3632. p.Transparency = i
  3633. local cf = p.CFrame
  3634. p.Size = Vector3.new(size,size,size)
  3635. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  3636. size = size - 0.2
  3637. end
  3638. p:remove()
  3639. end))
  3640. end
  3641. end
  3642. function blading(part,color)
  3643. local p = Instance.new("Part",me.Character)
  3644. prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
  3645. p.CFrame = part.CFrame
  3646. coroutine.resume(coroutine.create(function()
  3647. for i=p.Transparency, 1, 0.04 do
  3648. wait()
  3649. p.Transparency = i
  3650. end
  3651. p:remove()
  3652. end))
  3653. end
  3654. function spikes(part,color)
  3655. local p = Instance.new("Part",me.Character)
  3656. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  3657. p.CFrame = part.CFrame * CFrame.new(0,-3,0)
  3658. local mww = Instance.new("SpecialMesh")
  3659. mesh(mww,p,6,5,6,"FileMesh")
  3660. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3661. fade(p,mww,0.55,p.Transparency,0.08)
  3662. end
  3663. function spikes2(part,color)
  3664. local p = Instance.new("Part",me.Character)
  3665. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  3666. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  3667. local mww = Instance.new("SpecialMesh")
  3668. mesh(mww,p,8,7,8,"FileMesh")
  3669. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  3670. fade(p,mww,0.55,p.Transparency,0.06)
  3671. end
  3672. function bal(part,color,dist)
  3673. local p = Instance.new("Part",me.Character)
  3674. prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
  3675. p.CFrame = part.CFrame
  3676. local mww = Instance.new("SpecialMesh")
  3677. mesh(mww,p,dist,dist,dist,"Sphere")
  3678. fade(p,mww,3,p.Transparency,0.06)
  3679. end
  3680. --Kill function----------------------Kill function----------------------Kill function--------------------
  3681. function blast(dmg,part,crit)
  3682. local randomposx = math.random(-30,30)
  3683. local randomposy = math.random(-50,-10)
  3684. local bil = Instance.new("BillboardGui",part)
  3685. bil.Adornee = bil.Parent
  3686. bil.Size = UDim2.new(0,110,0,70)
  3687. local img = Instance.new("ImageLabel",bil)
  3688. img.Size = UDim2.new(1,0,1,0)
  3689. img.Image = "http://www.roblox.com/asset/?id=42621332"
  3690. img.Position = UDim2.new(0,randomposx,0,randomposy)
  3691. img.BackgroundTransparency = 1
  3692. local txt = Instance.new("TextLabel",img)
  3693. txt.Size = UDim2.new(1,0,1,0)
  3694. txt.BackgroundTransparency = 1
  3695. txt.Text = dmg
  3696. txt.TextColor3 = Color3.new(0,0,0)
  3697. txt.FontSize = "Size18"
  3698. if crit then
  3699. img.Image = "http://www.roblox.com/asset/?id=42621315"
  3700. txt.FontSize = "Size24"
  3701. txt.TextColor3 = Color3.new(0.6,0,0)
  3702. end
  3703. coroutine.resume(coroutine.create(function()
  3704. wait(0.2)
  3705. for i=1, math.random(30,50) do
  3706. img.Position = UDim2.new(0,randomposx,0,randomposy)
  3707. randomposy = randomposy - 4
  3708. wait()
  3709. end
  3710. bil:remove()
  3711. end))
  3712. end
  3713. deb = true
  3714. function kill(hit,mod)
  3715. if deb and attack and hit.Parent.Name ~= name then
  3716. local ch = hit.Parent
  3717. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  3718. deb = false
  3719. local dm = math.random(0,avgdmg*2)
  3720. local cri = false
  3721. local cripro = math.random(1,criticalchance)
  3722. if cripro == 1 then
  3723. cri = true
  3724. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  3725. end
  3726. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  3727. blast(dm,ch.Head,cri)
  3728. if cri then
  3729. coroutine.resume(coroutine.create(function()
  3730. local lol = math.random(1,plat)
  3731. if lol == 1 then
  3732. ch["Humanoid"].PlatformStand = true
  3733. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3734. wait(0.9)
  3735. ch["Humanoid"].PlatformStand = false
  3736. if mod == true then
  3737. ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  3738. ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
  3739. end
  3740. end
  3741. end))
  3742. end
  3743. wait(dela)
  3744. deb = true
  3745. end
  3746. end
  3747. end
  3748. function ris(hit,mod)
  3749. if deb and attack and hit.Parent.Name ~= name then
  3750. local ch = hit.Parent
  3751. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  3752. deb = false
  3753. local dm = math.random(0,avgdmg*2)
  3754. local cri = false
  3755. local cripro = math.random(1,criticalchance)
  3756. if cripro == 1 then
  3757. cri = true
  3758. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  3759. end
  3760. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  3761. blast(dm,ch.Head,cri)
  3762. if cri then
  3763. coroutine.resume(coroutine.create(function()
  3764. local lol = math.random(1,plat)
  3765. if lol == 1 then
  3766. ch["Humanoid"].PlatformStand = true
  3767. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  3768. wait(0.9)
  3769. ch["Humanoid"].PlatformStand = false
  3770. if mod == true then
  3771. ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  3772. ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
  3773. end
  3774. end
  3775. end))
  3776. end
  3777. wait(dela)
  3778. deb = true
  3779. end
  3780. end
  3781. end
  3782. blade3.Touched:connect(kill)
  3783. blade4.Touched:connect(kill)
  3784. blade2.Touched:connect(kill)
  3785. blade1.Touched:connect(kill)
  3786. blade5.Touched:connect(kill)
  3787. blade5.Touched:connect(ris)
  3788. ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
  3789. -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3790. -- blading(blade2,"Bright red")
  3791. function att()
  3792. attacking = true
  3793. for i=1,8 do
  3794. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  3795. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  3796. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  3797. wait()
  3798. end
  3799. slash:play()
  3800. wait(0.13)
  3801. attack = true
  3802. for i=1,6 do
  3803. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  3804. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  3805. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  3806. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3807. wait()
  3808. end
  3809. attack = false
  3810. wait(0.08)
  3811. for i=1,3 do
  3812. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  3813. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  3814. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  3815. wait()
  3816. end
  3817. rw.C0 = rightfight
  3818. lw.C0 = leftfight
  3819. neck.C1 = neor
  3820. weaponweld.C0 = CFrame.new(0,0,0)
  3821. attacking = false
  3822. end
  3823. function stab()
  3824. attacking = true
  3825. for i=1,8 do
  3826. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  3827. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  3828. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  3829. wait()
  3830. end
  3831. slash:play()
  3832. avgdmg = 15
  3833. criticalchance = 95
  3834. wait(0.13)
  3835. attack = true
  3836. for i=1,6 do
  3837. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
  3838. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  3839. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  3840. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3841. bal(blade5,"Tr. Blue",25)
  3842. wait()
  3843. end
  3844. attack = false
  3845. wait(0.08)
  3846. for i=1,3 do
  3847. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  3848. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  3849. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  3850. blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3851. bal(blade5,"Tr. Blue",25)
  3852. wait()
  3853. end
  3854. rw.C0 = rightfight
  3855. lw.C0 = leftfight
  3856. neck.C1 = neor
  3857. weaponweld.C0 = CFrame.new(0,0,0)
  3858. attacking = false
  3859. end
  3860. function attas()
  3861. attacking = true
  3862. local pos = torso.CFrame
  3863. local pos2 = pos * CFrame.new(0,12,-15)
  3864. local pos3 = pos2 * CFrame.new(0,-12,-12)
  3865. for i=1,6 do
  3866. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  3867. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  3868. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  3869. spikes(torso,"Light blue")
  3870. spikes2(torso,"Bright blue")
  3871. bal(torso,"Tr. Blue",25)
  3872. wait()
  3873. end
  3874. slash:play()
  3875. avgdmg = 15
  3876. criticalchance = 65
  3877. wait(0.13)
  3878. attack = true
  3879. local bv = Instance.new("BodyPosition",torso)
  3880. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3881. bv.position = pos2.p
  3882. local bg = Instance.new("BodyGyro",torso)
  3883. bg.cframe = CFrame.new(pos.p,pos3.p)
  3884. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  3885. bg.P = 30000
  3886. for i=1,6 do
  3887. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
  3888. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
  3889. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
  3890. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  3891. wait()
  3892. end
  3893. attack = false
  3894. wait(0.08)
  3895. for i=1,3 do
  3896. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  3897. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  3898. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  3899. wait()
  3900. end
  3901. rw.C0 = rightfight
  3902. lw.C0 = leftfight
  3903. bv:remove()
  3904. bg:remove()
  3905. neck.C1 = neor
  3906. weaponweld.C0 = CFrame.new(0,0,0)
  3907. attacking = false
  3908. end
  3909. function spin()
  3910. attacking = true
  3911. hum.WalkSpeed = 0
  3912. for i=1,7 do
  3913. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  3914. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  3915. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  3916. wait()
  3917. end
  3918. spi:play()
  3919. wait(0.3)
  3920. spi:play()
  3921. dela = 0.1
  3922. avgdmg = 6
  3923. criticalchance = 12
  3924. local bv = Instance.new("BodyVelocity",torso)
  3925. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3926. bv.velocity = torso.CFrame.lookVector * 22
  3927. local bav = Instance.new("BodyAngularVelocity",torso)
  3928. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  3929. bav.angularvelocity = Vector3.new(0,36,0)
  3930. bav.P = 15000
  3931. attack = true
  3932. for i=1, 30 do
  3933. wait()
  3934. spikes(torso,"Medium blue")
  3935. end
  3936. bv:remove()
  3937. bav:remove()
  3938. hum.WalkSpeed = normal
  3939. attack = false
  3940. avgdmg = normdmg
  3941. for i=1,5 do
  3942. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  3943. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  3944. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  3945. wait()
  3946. end
  3947. dela = 0.4
  3948. rw.C0 = rightfight
  3949. lw.C0 = leftfight
  3950. neck.C1 = neor
  3951. weaponweld.C0 = CFrame.new(0,0,0)
  3952. attacking = false
  3953. criticalchance = normchance
  3954. end
  3955. function spins()
  3956. attacking = true
  3957. hum.WalkSpeed = 0
  3958. for i=1,7 do
  3959. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  3960. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  3961. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  3962. bal(torso,"Tr. Blue",25)
  3963. wait()
  3964. end
  3965. spi:play()
  3966. wait(0.3)
  3967. spi:play()
  3968. dela = 0.1
  3969. avgdmg = 6
  3970. criticalchance = 12
  3971. local bv = Instance.new("BodyVelocity",torso)
  3972. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  3973. bv.velocity = torso.CFrame.lookVector * 22
  3974. local bav = Instance.new("BodyAngularVelocity",torso)
  3975. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  3976. bav.angularvelocity = Vector3.new(0,36,0)
  3977. bav.P = 15000
  3978. attack = true
  3979. for i=1, 30 do
  3980. wait()
  3981. spikes(torso,"Medium blue")
  3982. end
  3983. bv:remove()
  3984. bav:remove()
  3985. hum.WalkSpeed = normal
  3986. attack = false
  3987. avgdmg = normdmg
  3988. for i=1,5 do
  3989. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  3990. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  3991. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  3992. wait()
  3993. end
  3994. dela = 0.4
  3995. rw.C0 = rightfight
  3996. lw.C0 = leftfight
  3997. neck.C1 = neor
  3998. weaponweld.C0 = CFrame.new(0,0,0)
  3999. attacking = false
  4000. criticalchance = normchance
  4001. end
  4002. function rise()
  4003. attacking = true
  4004. local pos = torso.CFrame
  4005. local pos2 = pos * CFrame.new(0,5,-15)
  4006. local pos3 = pos2 * CFrame.new(0,-3,-12)
  4007. hum.WalkSpeed = 0
  4008. for i=1,7 do
  4009. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  4010. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  4011. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  4012. bal(torso,"Tr. Blue",25)
  4013. wait()
  4014. end
  4015. spi:play()
  4016. wait(0.3)
  4017. spi:play()
  4018. dela = 0.1
  4019. avgdmg = 6
  4020. criticalchance = 12
  4021. local bv = Instance.new("BodyPosition",torso)
  4022. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  4023. bv.position = pos2.p
  4024. local bg = Instance.new("BodyGyro",torso)
  4025. bg.cframe = CFrame.new(pos.p,pos3.p)
  4026. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  4027. bg.P = 30000
  4028. attack = true
  4029. for i=1, 30 do
  4030. wait()
  4031. spikes2(torso,"Medium blue")
  4032. end
  4033. bv:remove()
  4034. bg:remove()
  4035. hum.WalkSpeed = normal
  4036. attack = false
  4037. avgdmg = normdmg
  4038. for i=1,5 do
  4039. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  4040. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  4041. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  4042. wait()
  4043. end
  4044. dela = 0.4
  4045. rw.C0 = rightfight
  4046. lw.C0 = leftfight
  4047. neck.C1 = neor
  4048. weaponweld.C0 = CFrame.new(0,0,0)
  4049. attacking = false
  4050. criticalchance = normchance
  4051. end
  4052. function sprint()
  4053. attacking = true
  4054. hum.WalkSpeed = 0
  4055. local pos = torso.CFrame
  4056. local pos2 = pos * CFrame.new(0,12,-15)
  4057. local pos3 = pos2 * CFrame.new(0,-12,-12)
  4058. for i=1,6 do
  4059. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  4060. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  4061. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  4062. wait()
  4063. end
  4064. avgdmg = 14
  4065. local bv = Instance.new("BodyPosition",torso)
  4066. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  4067. bv.position = pos2.p
  4068. local bg = Instance.new("BodyGyro",torso)
  4069. bg.cframe = CFrame.new(pos.p,pos3.p)
  4070. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  4071. bg.P = 30000
  4072. for i=1, 7 do
  4073. wait()
  4074. spikes2(torso,"Medium blue")
  4075. end
  4076. wait(0.1)
  4077. coroutine.resume(coroutine.create(function()
  4078. for i=1, 17 do
  4079. wait()
  4080. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  4081. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  4082. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  4083. end
  4084. end))
  4085. coroutine.resume(coroutine.create(function()
  4086. for i=0.4, 5.3,0.07 do
  4087. wait(0.04)
  4088. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  4089. end
  4090. end))
  4091. charge:play()
  4092. coroutine.resume(coroutine.create(function()
  4093. wait(2.5)
  4094. for i=1, 11 do
  4095. wait()
  4096. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  4097. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  4098. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  4099. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  4100. end
  4101. end))
  4102. criticalchance = 1
  4103. plat = 1
  4104. dela = 0
  4105. wait(3.8)
  4106. boom:play()
  4107. attack = true
  4108. coroutine.resume(coroutine.create(function()
  4109. for i=1, 5 do
  4110. wait()
  4111. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  4112. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  4113. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  4114. end
  4115. end))
  4116. bv.position = pos3.p
  4117. for i=1, 7 do
  4118. wait()
  4119. spikes2(torso,"Medium blue")
  4120. end
  4121. coroutine.resume(coroutine.create(function()
  4122. for i=1, 12 do
  4123. wait()
  4124. bal(blade5,"Medium blue",splashdist*2)
  4125. end
  4126. end))
  4127. local parts = getcharparts(workspace)
  4128. for _,v in pairs(parts) do
  4129. if (v.Position - blade5.Position).magnitude < 14 then
  4130. kill(v,true)
  4131. end
  4132. end
  4133. wait(0.3)
  4134. attack = false
  4135. bv:remove()
  4136. bg:remove()
  4137. hum.WalkSpeed = normal
  4138. avgdmg = normdmg
  4139. rw.C0 = rightfight
  4140. lw.C0 = leftfight
  4141. neck.C1 = neor
  4142. weaponweld.C0 = CFrame.new(0,0,0)
  4143. attacking = false
  4144. criticalchance = normchance
  4145. plat = 2
  4146. end
  4147. function sprint2()
  4148. attacking = true
  4149. hum.WalkSpeed = 0
  4150. local pos = torso.CFrame
  4151. local pos2 = pos * CFrame.new(0,15,-15)
  4152. local pos3 = pos2 * CFrame.new(0,-13,-12)
  4153. for i=1,6 do
  4154. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  4155. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  4156. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  4157. wait()
  4158. end
  4159. avgdmg = 14
  4160. local bv = Instance.new("BodyPosition",torso)
  4161. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  4162. bv.position = pos2.p
  4163. local bg = Instance.new("BodyGyro",torso)
  4164. bg.cframe = CFrame.new(pos.p,pos3.p)
  4165. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  4166. bg.P = 30000
  4167. for i=1, 4 do
  4168. wait()
  4169. spikes2(torso,"Medium blue")
  4170. spikes2(torso,"Light blue")
  4171. spikes2(torso,"Bright blue")
  4172. end
  4173. wait(0.1)
  4174. coroutine.resume(coroutine.create(function()
  4175. for i=1, 34 do
  4176. wait()
  4177. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  4178. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  4179. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  4180. end
  4181. end))
  4182. coroutine.resume(coroutine.create(function()
  4183. for i=0.4, 5.3,0.07 do
  4184. wait(0.04)
  4185. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  4186. end
  4187. end))
  4188. charge:play()
  4189. coroutine.resume(coroutine.create(function()
  4190. wait(2.5)
  4191. for i=1, 11 do
  4192. wait()
  4193. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  4194. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  4195. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  4196. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  4197. end
  4198. end))
  4199. criticalchance = 1
  4200. plat = 1
  4201. dela = 0
  4202. wait(3.8)
  4203. boom:play()
  4204. attack = true
  4205. coroutine.resume(coroutine.create(function()
  4206. for i=1, 5 do
  4207. wait()
  4208. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  4209. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  4210. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  4211. end
  4212. end))
  4213. bv.position = pos3.p
  4214. for i=1, 7 do
  4215. wait()
  4216. spikes2(torso,"Medium blue")
  4217. end
  4218. coroutine.resume(coroutine.create(function()
  4219. for i=1, 12 do
  4220. wait()
  4221. bal(blade5,"Medium blue",splashdist*2)
  4222. end
  4223. end))
  4224. local parts = getcharparts(workspace)
  4225. for _,v in pairs(parts) do
  4226. if (v.Position - blade5.Position).magnitude < 14 then
  4227. kill(v,true)
  4228. end
  4229. end
  4230. wait(0.3)
  4231. attack = false
  4232. bv:remove()
  4233. bg:remove()
  4234. hum.WalkSpeed = normal
  4235. avgdmg = normdmg
  4236. rw.C0 = rightfight
  4237. lw.C0 = leftfight
  4238. neck.C1 = neor
  4239. weaponweld.C0 = CFrame.new(0,0,0)
  4240. attacking = false
  4241. criticalchance = normchance
  4242. plat = 2
  4243. end
  4244. function combo()
  4245. att()
  4246. attas()
  4247. sprint()
  4248. spin()
  4249. end
  4250. function run()
  4251. spin()
  4252. spin()
  4253. spin()
  4254. end
  4255. function rush()
  4256. attacking = true
  4257. for i=1,8 do
  4258. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  4259. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  4260. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  4261. wait(0.1)
  4262. end
  4263. slash:play()
  4264. wait(0.13)
  4265. attack = true
  4266. local bv = Instance.new("BodyVelocity",torso)
  4267. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  4268. bv.velocity = torso.CFrame.lookVector * 220
  4269. local bav = Instance.new("BodyAngularVelocity",torso)
  4270. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  4271. bav.angularvelocity = Vector3.new(0,36,0)
  4272. bav.P = 15000
  4273. for i=1,6 do
  4274. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  4275. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  4276. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  4277. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  4278. wait()
  4279. end
  4280. attack = false
  4281. wait(0.08)
  4282. for i=1,3 do
  4283. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  4284. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  4285. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  4286. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  4287. wait()
  4288. end
  4289. rw.C0 = rightfight
  4290. lw.C0 = leftfight
  4291. bv:remove()
  4292. bav:remove()
  4293. neck.C1 = neor
  4294. weaponweld.C0 = CFrame.new(0,0,0)
  4295. attacking = false
  4296. end
  4297. function masta()
  4298. attacking = true
  4299. for i=1,8 do
  4300. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  4301. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  4302. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  4303. bal(torso,"Tr. Blue",25)
  4304. spikes2(torso,"Medium blue")
  4305. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  4306. wait(0.1)
  4307. end
  4308. slash:play()
  4309. avgdmg = 37
  4310. criticalchance = 125
  4311. wait(0.13)
  4312. attack = true
  4313. local bv = Instance.new("BodyVelocity",torso)
  4314. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  4315. bv.velocity = torso.CFrame.lookVector * 220
  4316. local bav = Instance.new("BodyAngularVelocity",torso)
  4317. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  4318. bav.angularvelocity = Vector3.new(0,36,0)
  4319. bav.P = 15000
  4320. for i=1,6 do
  4321. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  4322. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  4323. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  4324. bal(torso,"Tr. Blue",25)
  4325. spikes2(torso,"Medium blue")
  4326. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  4327. wait()
  4328. end
  4329. attack = false
  4330. wait(0.08)
  4331. for i=1,3 do
  4332. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  4333. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  4334. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  4335. bal(torso,"Tr. Blue",25)
  4336. spikes2(torso,"Medium blue")
  4337. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  4338. wait()
  4339. end
  4340. rw.C0 = rightfight
  4341. lw.C0 = leftfight
  4342. bv:remove()
  4343. bav:remove()
  4344. neck.C1 = neor
  4345. weaponweld.C0 = CFrame.new(0,0,0)
  4346. attacking = false
  4347. end
  4348. if script.Parent.className ~= "HopperBin" then
  4349. local h = Instance.new("HopperBin",me.Backpack)
  4350. h.Name = "SoulSword"
  4351. script.Parent = h
  4352. end
  4353. local bin = script.Parent
  4354. function sel(mouse)
  4355. neck.C1 = neor
  4356. if (selected == false) then
  4357. selectmotion()
  4358. end
  4359. mouse.Button1Down:connect(function()
  4360. if (attacking == false) then
  4361. att()
  4362. end
  4363. end)
  4364. mouse.KeyDown:connect(function(kuu)
  4365. local kai = kuu:lower()
  4366. if attacking == false then
  4367. if (kai == "q") then
  4368. spin()
  4369. elseif (kai == "e") then
  4370. att()
  4371. elseif (kai == "r") then
  4372. sprint()
  4373. elseif (kai == "l") then
  4374. stab()
  4375. elseif (kai == "t") then
  4376. attas()
  4377. elseif (kai == "z") then
  4378. masta()
  4379. elseif (kai == "y") then
  4380. spins()
  4381. elseif (kai == "g") then
  4382. combo()
  4383. elseif (kai == "p") then
  4384. rise()
  4385. elseif (kai == "j") then
  4386. sprint2()
  4387. elseif (kai == "h") then
  4388. run()
  4389. elseif (kai == "f") then
  4390. rush()
  4391. end
  4392. end
  4393. end)
  4394. while selected do
  4395. wait(0.8)
  4396. local k = math.random(1,5)
  4397. if k == 1 then
  4398. if hum.Health < 50 then
  4399. for i=1, math.random(4,24) do
  4400. wait(0.1)
  4401. local col = healcols[math.random(1,#healcols)]
  4402. local sa = math.random(30,90)/100
  4403. local p = Instance.new("Part")
  4404. prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
  4405. p.CFrame = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) * CFrame.new(0,0,math.random(4,12))
  4406. local mes = Instance.new("SpecialMesh")
  4407. mesh(mes,p,sa,sa,sa,"Sphere")
  4408. local bg = Instance.new("BodyPosition",p)
  4409. bg.maxForce = Vector3.new(1000000,1000000,1000000)
  4410. bg.P = 100000
  4411. bg.position = torso.Position
  4412. coroutine.resume(coroutine.create(function()
  4413. repeat
  4414. bg.position = torso.Position
  4415. wait()
  4416. until (p.Position - torso.Position).magnitude < 1.8
  4417. hum.Health = hum.Health + 1.2
  4418. p:remove()
  4419. end))
  4420. end
  4421. end
  4422. end
  4423. end
  4424. end
  4425. function desel()
  4426. neck.C1 = neor
  4427. if selected then
  4428. deselmotion()
  4429. end
  4430. end
  4431. bin.Selected:connect(sel)
  4432. bin.Deselected:connect(desel)
  4433. --LEGO
Advertisement
Add Comment
Please, Sign In to add comment