Advertisement
Xenias

Soul Sword Script

Jul 31st, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.99 KB | None | 0 0
  1.  
  2. local name = "HySt3R1cA1"
  3. local me = game.Players.HySt3R1cA1
  4. local char = me.Character
  5. selected = false
  6. attacking = false
  7. attack = false
  8. dela = 0.4
  9. normdmg = 9
  10. avgdmg = normdmg
  11. normal = 14
  12. speed = 14
  13. normchance = 9333333333333
  14. criticalchance = normchance
  15. splashdist = 14333333333333333333333333333333333333333333333333
  16. plat = 1
  17. healcols = {"Bright blue", "Light blue", "Medium blue", "White"}
  18. if char:findFirstChild("Sword",true) ~= nil then
  19. char:findFirstChild("Sword",true).Parent = nil
  20. end
  21. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  22. part.Parent = parent
  23. part.formFactor = form
  24. part.CanCollide = collide
  25. part.Transparency = tran
  26. part.Reflectance = ref
  27. part.Size = Vector3.new(x,y,z)
  28. part.BrickColor = BrickColor.new(color)
  29. part.TopSurface = 0
  30. part.BottomSurface = 0
  31. part.Anchored = anchor
  32. part.Locked = true
  33. part:BreakJoints()
  34. end
  35. function weld(w, p, p1, a, b, c, x, y, z)
  36. w.Parent = p
  37. w.Part0 = p
  38. w.Part1 = p1
  39. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  40. end
  41. function mesh(mesh, parent, x, y, z, type)
  42. mesh.Parent = parent
  43. mesh.Scale = Vector3.new(x, y, z)
  44. mesh.MeshType = type
  45. end
  46. function getcharparts(path)
  47. local objs = {}
  48. for _,v in pairs(path:children()) do
  49. if v:IsA("Model") and v.Name ~= name then
  50. for _,k in pairs(v:children()) do
  51. if k.Name == "Torso" then
  52. table.insert(objs,k)
  53. end
  54. end
  55. end
  56. end
  57. return objs
  58. end
  59. sword = Instance.new("Model",me.Character)
  60. sword.Name = "Sword"
  61. --Parts-------------------------Parts-------------------------Parts-------------------------Parts----------------------
  62. rarm = char:findFirstChild("Right Arm")
  63. larm = char:findFirstChild("Left Arm")
  64. torso = char:findFirstChild("Torso")
  65. hum = char:findFirstChild("Humanoid")
  66. main = Instance.new("Part")
  67. prop(main, sword, false, 0, 0, 0.38, 2.2, 0.38, "White", false, "Custom")
  68. mme = Instance.new("SpecialMesh")
  69. mesh(mme,main,1,1,1,"Head")
  70. part1 = Instance.new("Part")
  71. prop(part1, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  72. p1m = Instance.new("BlockMesh",part1)
  73. w1 = Instance.new("Weld")
  74. weld(w1, main, part1, 0, 0, 0, 0, 0.9, 0)
  75. part2 = Instance.new("Part")
  76. prop(part2, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  77. p2m = Instance.new("BlockMesh",part2)
  78. w2 = Instance.new("Weld")
  79. weld(w2, main, part2, 0, 0, 0.8, 0.5, 0.85, 0)
  80. part3 = Instance.new("Part")
  81. prop(part3, sword, false, 0, 0, 0.7, 0.45, 0.4, "Medium blue", false, "Custom")
  82. p3m = Instance.new("BlockMesh",part3)
  83. w3 = Instance.new("Weld")
  84. weld(w3, main, part3, 0, 0, -0.8, -0.5, 0.85, 0)
  85. part4 = Instance.new("Part")
  86. prop(part4, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  87. p4m = Instance.new("BlockMesh",part4)
  88. w4 = Instance.new("Weld")
  89. weld(w4, main, part4, 0, 0, -1.25, 0.8, 1, 0)
  90. part5 = Instance.new("Part")
  91. prop(part5, sword, false, 0, 0, 1.3, 0.45, 0.4, "Medium blue", false, "Custom")
  92. p5m = Instance.new("BlockMesh",part5)
  93. w5 = Instance.new("Weld")
  94. weld(w5, main, part5, 0, 0, 1.25, -0.8, 1, 0)
  95. part6 = Instance.new("Part")
  96. prop(part6, sword, false, 0, 0, 0.45, 0.6, 0.45, "Light blue", false, "Custom")
  97. p6m = Instance.new("SpecialMesh")
  98. mesh(p6m,part6,1.3,1.2,1.3,"Sphere")
  99. w6 = Instance.new("Weld")
  100. weld(w6, main, part6, 0, 0, 0, 0, -0.9, 0)
  101. blade1 = Instance.new("Part")
  102. prop(blade1, sword, false, 0, 0.2, 0.85, 2, 0.1, "Light blue", false, "Custom")
  103. b1m = Instance.new("SpecialMesh")
  104. mesh(b1m,blade1,1,1,1,"Torso")
  105. bw1 = Instance.new("Weld")
  106. weld(bw1, main, blade1, 0, 0, 0, 0, 2, 0)
  107. uns = Instance.new("Sound",blade1)
  108. uns.Volume = 1
  109. uns.Pitch = 1
  110. uns.SoundId = "rbxasset://sounds\\unsheath.wav"
  111. slash = Instance.new("Sound",blade1)
  112. slash.Volume = 1
  113. slash.Pitch = 1
  114. slash.SoundId = "rbxasset://sounds\\swordslash.wav"
  115. shea = Instance.new("Sound",blade1)
  116. shea.Volume = 1
  117. shea.Pitch = -0.9
  118. shea.SoundId = "rbxasset://sounds\\unsheath.wav"
  119. spi = Instance.new("Sound",blade1)
  120. spi.Volume = 1
  121. spi.Pitch = 1
  122. spi.SoundId = "http://www.roblox.com/asset/?id=28144268"
  123. charge = Instance.new("Sound",blade1)
  124. charge.Volume = 1
  125. charge.Pitch = 0.5
  126. charge.SoundId = "http://www.roblox.com/asset/?id=2692844"
  127. boom = Instance.new("Sound",blade1)
  128. boom.Volume = 1
  129. boom.Pitch = 2.2
  130. boom.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  131. blade2 = Instance.new("Part")
  132. prop(blade2, sword, false, 0, 0.2, 1.2, 1.2, 0.1, "Light blue", false, "Custom")
  133. b2m = Instance.new("BlockMesh",blade2)
  134. bw2 = Instance.new("Weld")
  135. weld(bw2, main, blade2, 0, 0, math.pi/4, 0, 3, 0)
  136. blade3 = Instance.new("Part")
  137. prop(blade3, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  138. b3m = Instance.new("SpecialMesh")
  139. mesh(b3m,blade3,1,1,1,"Wedge")
  140. bw3 = Instance.new("Weld")
  141. weld(bw3, main, blade3, math.pi, math.pi/2, 0, 0.3, 5.2, 0)
  142. blade4 = Instance.new("Part")
  143. prop(blade4, sword, false, 0, 0.2, 0.1, 4.5, 0.6, "Light blue", false, "Custom")
  144. b4m = Instance.new("SpecialMesh")
  145. mesh(b4m,blade4,1,1,1,"Wedge")
  146. bw4 = Instance.new("Weld")
  147. weld(bw4, main, blade4, math.pi, -math.pi/2, 0, -0.3, 5.2, 0)
  148. blade5 = Instance.new("Part")
  149. prop(blade5, sword, false, 0, 0.2, 0.6, 0.6, 0.1, "Light blue", false, "Custom")
  150. b5m = Instance.new("BlockMesh",blade5)
  151. bw5 = Instance.new("Weld")
  152. weld(bw5, main, blade5, 0, 0, math.pi/4, 0, 6.6, 0)
  153. part7 = Instance.new("Part")
  154. prop(part7, sword, false, 0.2, 0.2, 0.7, 1.6, 0.22, "Medium blue", false, "Custom")
  155. p7m = Instance.new("SpecialMesh")
  156. mesh(p7m,part7,1.3,1.2,1.3,"Sphere")
  157. w7 = Instance.new("Weld")
  158. weld(w7, main, part7, 0, 0, 0, 0, 3, 0)
  159. tup1 = Instance.new("Part")
  160. prop(tup1, sword, false, 0, 0.4, 1.2, 0.7, 0.4, "Bright blue", false, "Custom")
  161. tw1 = Instance.new("Weld")
  162. weld(tw1, torso, tup1, -0.3+(math.pi/2), -0.3, 0.2+(math.pi/2), 1.1, 1.2, 0)
  163. holdpart = Instance.new("Part")
  164. prop(holdpart, char, false, 1, 0, 0.5, 0.5, 0.5, "White", false, "Custom")
  165. hu = Instance.new("Weld")
  166. weld(hu, rarm, holdpart, 0, 0, 0, 0, 1, 0)
  167. holdweld = Instance.new("Weld")
  168. weld(holdweld, main, tup1, 0, 0, 0, 0, 1.5, 0)
  169. weaponweld = Instance.new("Weld")
  170. weld(weaponweld, holdpart, nil, -(math.pi/2), 0, (math.pi/2), 0, 0, 0)
  171. --Arm connections----------Arm connections----------Arm connections----------Arm connections--------
  172. rb = Instance.new("Part")
  173. prop(rb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  174. rh = Instance.new("Weld")
  175. weld(rh, rb, torso, 0, 0, 0, 1.5, 0.5, 0)
  176. lb = Instance.new("Part")
  177. prop(lb, char, false, 1, 0, 1, 1, 1, "White", false, "Symmetric")
  178. lh = Instance.new("Weld")
  179. weld(lh, lb, torso, 0, 0, 0, -1.5, 0.5, 0)
  180. rw = Instance.new("Weld")
  181. weld(rw, rb, nil, 0, 0, 0, 0, 0.5, 0)
  182. lw = Instance.new("Weld")
  183. weld(lw, lb, nil, 0, 0, 0, 0, 0.5 ,0)
  184. neck = torso.Neck
  185. neor = neck.C1
  186. rightfight = CFrame.fromEulerAnglesXYZ(0.85,0.7,0) * CFrame.new(-0.23,-0.25,-0.1)
  187. leftfight = CFrame.fromEulerAnglesXYZ(0.3,0,0.4) * CFrame.new(0.2,-0.4,0.1)
  188. function selectmotion()
  189. weaponweld.C0 = CFrame.new(0,0,0)
  190. rw.C0 = CFrame.new(0,0,0)
  191. lw.C0 = CFrame.new(0,0,0)
  192. rw.Part1 = rarm
  193. lw.Part1 = larm
  194. for i=1, 15 do
  195. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  196. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(-0.01,-0.05,-0.04)
  197. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.04,0.08,0.01) * CFrame.new(0,0,0)
  198. wait()
  199. end
  200. weaponweld.Part1 = main
  201. holdweld.Part1 = nil
  202. wait(0.14)
  203. uns:play()
  204. for i=1, 4 do
  205. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03) * CFrame.new(0,0,0)
  206. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0.12,-0.03,0.26)
  207. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0.04,0.03) * CFrame.new(0,0,0)
  208. wait()
  209. end
  210. for i=1, 10 do
  211. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0.15) * CFrame.new(0,0,0)
  212. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.15,-0.22,0.1) * CFrame.new(0.05,0.1,0.05)
  213. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0.07,0)
  214. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.06,0.03) * CFrame.new(0,0,0)
  215. wait()
  216. end
  217. wait(0.1)
  218. for i=1, 6 do
  219. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,-0.04,-0.09) * CFrame.new(0,0,0)
  220. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0.18,-0.14) * CFrame.new(-0.08,0.05,0.05)
  221. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.2,0,0) * CFrame.new(0,0,0)
  222. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0,0,-0.12) * CFrame.new(0,-0.04,0)
  223. wait()
  224. end
  225. rw.C0 = rightfight
  226. lw.C0 = leftfight
  227. neck.C1 = neor
  228. weaponweld.C0 = CFrame.new(0,0,0)
  229. selected = true
  230. end
  231. function deselmotion()
  232. for i=1, 12 do
  233. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.04,0,-0.07) * CFrame.new(0,0,0)
  234. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.07,0.16,0.04) * CFrame.new(0.02,-0.05,-0.04)
  235. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,-0.05) * CFrame.new(-0.02,0.03,0)
  236. wait()
  237. end
  238. shea:play()
  239. weaponweld.Part1 = nil
  240. holdweld.Part1 = tup1
  241. wait(0.1)
  242. for i=1, 8 do
  243. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.09) * CFrame.new(0,0,0)
  244. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,-0.12) * CFrame.new(-0.07,0.11,0)
  245. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0.04) * CFrame.new(0,0,0)
  246. wait()
  247. end
  248. rw.Part1 = nil
  249. lw.Part1 = nil
  250. rw.C0 = CFrame.new(0,0,0)
  251. lw.C0 = CFrame.new(0,0,0)
  252. neck.C1 = neor
  253. weaponweld.C0 = CFrame.new(0,0,0)
  254. selected = false
  255. end
  256. ----Effects--------------------------Effects--------------------------Effects--------------------------Effects----------------------
  257. function fade(brick,mesh,scale,tran,speed)
  258. coroutine.resume(coroutine.create(function()
  259. for i=tran,1,speed do
  260. wait()
  261. brick.Transparency = i
  262. mesh.Scale = mesh.Scale - Vector3.new(scale,scale,scale)
  263. end
  264. brick:remove()
  265. end))
  266. end
  267. function block(part,avg,cols)
  268. for i=1, math.random(1,3) do
  269. local s = (avg*1.4)*100
  270. local s2 = (avg/5)*100
  271. local size = math.random(s2,s)/100
  272. local p = Instance.new("Part",me.Character)
  273. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  274. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  275. coroutine.resume(coroutine.create(function()
  276. for i=p.Transparency, 1, 0.2 do
  277. wait(0.15)
  278. p.Transparency = i
  279. local cf = p.CFrame
  280. p.Size = Vector3.new(size,size,size)
  281. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  282. size = size - 0.2
  283. end
  284. p:remove()
  285. end))
  286. end
  287. end
  288. function blocks(part,avg,cols)
  289. for i=1, math.random(1,3) do
  290. local s = (avg*1.4)*100
  291. local s2 = (avg/5)*100
  292. local size = math.random(s2,s)/100
  293. local p = Instance.new("Part",me.Character)
  294. local pos = p.CFrame
  295. local pos2 = pos * CFrame.new(0,12,-15)
  296. local pos3 = pos2 * CFrame.new(0,-12,-12)
  297. local bv = Instance.new("BodyPosition",p)
  298. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  299. bv.position = pos2.p
  300. local bg = Instance.new("BodyGyro",p)
  301. bg.cframe = CFrame.new(pos.p,pos3.p)
  302. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  303. bg.P = 30000
  304. prop(p,me.Character,false,math.random(15,50)/100,0,size,size,size,cols[math.random(1,#cols)],true,"Custom")
  305. p.CFrame = CFrame.new(part.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  306. coroutine.resume(coroutine.create(function()
  307. for i=p.Transparency, 1, 0.2 do
  308. wait(0.15)
  309. p.Transparency = i
  310. local cf = p.CFrame
  311. p.Size = Vector3.new(size,size,size)
  312. p.CFrame = cf * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100)
  313. size = size - 0.2
  314. end
  315. p:remove()
  316. end))
  317. end
  318. end
  319. function blading(part,color)
  320. local p = Instance.new("Part",me.Character)
  321. prop(p,me.Character,false,0.4,0,0.2,1.4,3.8,color,true,"Custom")
  322. p.CFrame = part.CFrame
  323. coroutine.resume(coroutine.create(function()
  324. for i=p.Transparency, 1, 0.04 do
  325. wait()
  326. p.Transparency = i
  327. end
  328. p:remove()
  329. end))
  330. end
  331. function spikes(part,color)
  332. local p = Instance.new("Part",me.Character)
  333. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  334. p.CFrame = part.CFrame * CFrame.new(0,-3,0)
  335. local mww = Instance.new("SpecialMesh")
  336. mesh(mww,p,6,5,6,"FileMesh")
  337. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  338. fade(p,mww,0.55,p.Transparency,0.08)
  339. end
  340. function spikes2(part,color)
  341. local p = Instance.new("Part",me.Character)
  342. prop(p,me.Character,false,0.4,0,0.2,0.2,0.2,color,true,"Custom")
  343. p.CFrame = part.CFrame * CFrame.new(0,0,6) * CFrame.Angles(math.pi/2,0,0)
  344. local mww = Instance.new("SpecialMesh")
  345. mesh(mww,p,8,7,8,"FileMesh")
  346. mww.MeshId = "http://www.roblox.com/asset/?id=20329976"
  347. fade(p,mww,0.55,p.Transparency,0.06)
  348. end
  349. function bal(part,color,dist)
  350. local p = Instance.new("Part",me.Character)
  351. prop(p,me.Character,false,0.4,0,1,1,1,color,true,"Custom")
  352. p.CFrame = part.CFrame
  353. local mww = Instance.new("SpecialMesh")
  354. mesh(mww,p,dist,dist,dist,"Sphere")
  355. fade(p,mww,3,p.Transparency,0.06)
  356. end
  357. --Kill function----------------------Kill function----------------------Kill function--------------------
  358. function blast(dmg,part,crit)
  359. local randomposx = math.random(-30,30)
  360. local randomposy = math.random(-50,-10)
  361. local bil = Instance.new("BillboardGui",part)
  362. bil.Adornee = bil.Parent
  363. bil.Size = UDim2.new(0,110,0,70)
  364. local img = Instance.new("ImageLabel",bil)
  365. img.Size = UDim2.new(1,0,1,0)
  366. img.Image = "http://www.roblox.com/asset/?id=42621332"
  367. img.Position = UDim2.new(0,randomposx,0,randomposy)
  368. img.BackgroundTransparency = 1
  369. local txt = Instance.new("TextLabel",img)
  370. txt.Size = UDim2.new(1,0,1,0)
  371. txt.BackgroundTransparency = 1
  372. txt.Text = dmg
  373. txt.TextColor3 = Color3.new(0,0,0)
  374. txt.FontSize = "Size18"
  375. if crit then
  376. img.Image = "http://www.roblox.com/asset/?id=42621315"
  377. txt.FontSize = "Size24"
  378. txt.TextColor3 = Color3.new(0.6,0,0)
  379. end
  380. coroutine.resume(coroutine.create(function()
  381. wait(0.2)
  382. for i=1, math.random(30,50) do
  383. img.Position = UDim2.new(0,randomposx,0,randomposy)
  384. randomposy = randomposy - 4
  385. wait()
  386. end
  387. bil:remove()
  388. end))
  389. end
  390. deb = true
  391. function kill(hit,mod)
  392. if deb and attack and hit.Parent.Name ~= name then
  393. local ch = hit.Parent
  394. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  395. deb = false
  396. local dm = math.random(0,avgdmg*2)
  397. local cri = false
  398. local cripro = math.random(1,criticalchance)
  399. if cripro == 1 then
  400. cri = true
  401. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  402. end
  403. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  404. blast(dm,ch.Head,cri)
  405. if cri then
  406. coroutine.resume(coroutine.create(function()
  407. local lol = math.random(1,plat)
  408. if lol == 1 then
  409. ch["Humanoid"].PlatformStand = true
  410. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  411. wait(0.9)
  412. ch["Humanoid"].PlatformStand = false
  413. if mod == true then
  414. ch.Torso.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  415. ch.Torso.Velocity = Vector3.new(math.random(-30,30),math.random(15,70),math.random(-30,30))
  416. end
  417. end
  418. end))
  419. end
  420. wait(dela)
  421. deb = true
  422. end
  423. end
  424. end
  425. function ris(hit,mod)
  426. if deb and attack and hit.Parent.Name ~= name then
  427. local ch = hit.Parent
  428. if ch:findFirstChild("Humanoid") and ch:findFirstChild("Head") and ch:findFirstChild("Torso") then
  429. deb = false
  430. local dm = math.random(0,avgdmg*2)
  431. local cri = false
  432. local cripro = math.random(1,criticalchance)
  433. if cripro == 1 then
  434. cri = true
  435. dm = math.random(avgdmg*1.5,avgdmg*4.5)
  436. end
  437. ch["Humanoid"].Health = ch["Humanoid"].Health - dm
  438. blast(dm,ch.Head,cri)
  439. if cri then
  440. coroutine.resume(coroutine.create(function()
  441. local lol = math.random(1,plat)
  442. if lol == 1 then
  443. ch["Humanoid"].PlatformStand = true
  444. ch.Torso.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  445. wait(0.9)
  446. ch["Humanoid"].PlatformStand = false
  447. if mod == true then
  448. ch.Torso.RotVelocity = Vector3.new(math.random(-100,100),math.random(-100,100),math.random(-100,100))
  449. ch.Torso.Velocity = Vector3.new(math.random(-100,100),math.random(105,170),math.random(-100,100))
  450. end
  451. end
  452. end))
  453. end
  454. wait(dela)
  455. deb = true
  456. end
  457. end
  458. end
  459. blade3.Touched:connect(kill)
  460. blade4.Touched:connect(kill)
  461. blade2.Touched:connect(kill)
  462. blade1.Touched:connect(kill)
  463. blade5.Touched:connect(kill)
  464. blade5.Touched:connect(ris)
  465. ----Attacks----------------------Attacks----------------------Attacks----------------------Attacks------------------
  466. -- block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  467. -- blading(blade2,"Bright red")
  468. function att()
  469. attacking = true
  470. for i=1,8 do
  471. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  472. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  473. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  474. wait()
  475. end
  476. slash:play()
  477. wait(0.13)
  478. attack = true
  479. for i=1,6 do
  480. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  481. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  482. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  483. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  484. wait()
  485. end
  486. attack = false
  487. wait(0.08)
  488. for i=1,3 do
  489. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  490. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  491. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  492. wait()
  493. end
  494. rw.C0 = rightfight
  495. lw.C0 = leftfight
  496. neck.C1 = neor
  497. weaponweld.C0 = CFrame.new(0,0,0)
  498. attacking = false
  499. end
  500. function stab()
  501. attacking = true
  502. for i=1,8 do
  503. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  504. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  505. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  506. wait()
  507. end
  508. slash:play()
  509. avgdmg = 15
  510. criticalchance = 95
  511. wait(0.13)
  512. attack = true
  513. for i=1,6 do
  514. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,-0.44,-0.8) * CFrame.new(0,0,0)
  515. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  516. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  517. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  518. bal(blade5,"Tr. Blue",25)
  519. wait()
  520. end
  521. attack = false
  522. wait(0.08)
  523. for i=1,3 do
  524. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  525. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  526. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  527. blocks(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  528. bal(blade5,"Tr. Blue",25)
  529. wait()
  530. end
  531. rw.C0 = rightfight
  532. lw.C0 = leftfight
  533. neck.C1 = neor
  534. weaponweld.C0 = CFrame.new(0,0,0)
  535. attacking = false
  536. end
  537. function attas()
  538. attacking = true
  539. local pos = torso.CFrame
  540. local pos2 = pos * CFrame.new(0,12,-15)
  541. local pos3 = pos2 * CFrame.new(0,-12,-12)
  542. for i=1,6 do
  543. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.32,-0.06,0) * CFrame.new(0,0,0)
  544. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  545. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  546. spikes(torso,"Light blue")
  547. spikes2(torso,"Bright blue")
  548. bal(torso,"Tr. Blue",25)
  549. wait()
  550. end
  551. slash:play()
  552. avgdmg = 15
  553. criticalchance = 65
  554. wait(0.13)
  555. attack = true
  556. local bv = Instance.new("BodyPosition",torso)
  557. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  558. bv.position = pos2.p
  559. local bg = Instance.new("BodyGyro",torso)
  560. bg.cframe = CFrame.new(pos.p,pos3.p)
  561. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  562. bg.P = 30000
  563. for i=1,6 do
  564. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.54,0.08,0) * CFrame.new(0,0,0)
  565. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.05,0,0) * CFrame.new(0,0,0)
  566. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.24,0,0)
  567. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  568. wait()
  569. end
  570. attack = false
  571. wait(0.08)
  572. for i=1,3 do
  573. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  574. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  575. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  576. wait()
  577. end
  578. rw.C0 = rightfight
  579. lw.C0 = leftfight
  580. bv:remove()
  581. bg:remove()
  582. neck.C1 = neor
  583. weaponweld.C0 = CFrame.new(0,0,0)
  584. attacking = false
  585. end
  586. function spin()
  587. attacking = true
  588. hum.WalkSpeed = 0
  589. for i=1,7 do
  590. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  591. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  592. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  593. wait()
  594. end
  595. spi:play()
  596. wait(0.3)
  597. spi:play()
  598. dela = 0.1
  599. avgdmg = 6
  600. criticalchance = 12
  601. local bv = Instance.new("BodyVelocity",torso)
  602. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  603. bv.velocity = torso.CFrame.lookVector * 22
  604. local bav = Instance.new("BodyAngularVelocity",torso)
  605. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  606. bav.angularvelocity = Vector3.new(0,36,0)
  607. bav.P = 15000
  608. attack = true
  609. for i=1, 30 do
  610. wait()
  611. spikes(torso,"Medium blue")
  612. end
  613. bv:remove()
  614. bav:remove()
  615. hum.WalkSpeed = normal
  616. attack = false
  617. avgdmg = normdmg
  618. for i=1,5 do
  619. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  620. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  621. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  622. wait()
  623. end
  624. dela = 0.4
  625. rw.C0 = rightfight
  626. lw.C0 = leftfight
  627. neck.C1 = neor
  628. weaponweld.C0 = CFrame.new(0,0,0)
  629. attacking = false
  630. criticalchance = normchance
  631. end
  632. function spins()
  633. attacking = true
  634. hum.WalkSpeed = 0
  635. for i=1,7 do
  636. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  637. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  638. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  639. bal(torso,"Tr. Blue",25)
  640. wait()
  641. end
  642. spi:play()
  643. wait(0.3)
  644. spi:play()
  645. dela = 0.1
  646. avgdmg = 6
  647. criticalchance = 12
  648. local bv = Instance.new("BodyVelocity",torso)
  649. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  650. bv.velocity = torso.CFrame.lookVector * 22
  651. local bav = Instance.new("BodyAngularVelocity",torso)
  652. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  653. bav.angularvelocity = Vector3.new(0,36,0)
  654. bav.P = 15000
  655. attack = true
  656. for i=1, 30 do
  657. wait()
  658. spikes(torso,"Medium blue")
  659. end
  660. bv:remove()
  661. bav:remove()
  662. hum.WalkSpeed = normal
  663. attack = false
  664. avgdmg = normdmg
  665. for i=1,5 do
  666. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  667. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  668. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  669. wait()
  670. end
  671. dela = 0.4
  672. rw.C0 = rightfight
  673. lw.C0 = leftfight
  674. neck.C1 = neor
  675. weaponweld.C0 = CFrame.new(0,0,0)
  676. attacking = false
  677. criticalchance = normchance
  678. end
  679. function rise()
  680. attacking = true
  681. local pos = torso.CFrame
  682. local pos2 = pos * CFrame.new(0,5,-15)
  683. local pos3 = pos2 * CFrame.new(0,-3,-12)
  684. hum.WalkSpeed = 0
  685. for i=1,7 do
  686. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0.1,0.03) * CFrame.new(0,0,0)
  687. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0) * CFrame.new(0,0,0)
  688. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  689. bal(torso,"Tr. Blue",25)
  690. wait()
  691. end
  692. spi:play()
  693. wait(0.3)
  694. spi:play()
  695. dela = 0.1
  696. avgdmg = 6
  697. criticalchance = 12
  698. local bv = Instance.new("BodyPosition",torso)
  699. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  700. bv.position = pos2.p
  701. local bg = Instance.new("BodyGyro",torso)
  702. bg.cframe = CFrame.new(pos.p,pos3.p)
  703. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  704. bg.P = 30000
  705. attack = true
  706. for i=1, 30 do
  707. wait()
  708. spikes2(torso,"Medium blue")
  709. end
  710. bv:remove()
  711. bg:remove()
  712. hum.WalkSpeed = normal
  713. attack = false
  714. avgdmg = normdmg
  715. for i=1,5 do
  716. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.1,-0.12,-0.04) * CFrame.new(0,0,0)
  717. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.25,0,0) * CFrame.new(0,0,0)
  718. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  719. wait()
  720. end
  721. dela = 0.4
  722. rw.C0 = rightfight
  723. lw.C0 = leftfight
  724. neck.C1 = neor
  725. weaponweld.C0 = CFrame.new(0,0,0)
  726. attacking = false
  727. criticalchance = normchance
  728. end
  729. function sprint()
  730. attacking = true
  731. hum.WalkSpeed = 0
  732. local pos = torso.CFrame
  733. local pos2 = pos * CFrame.new(0,12,-15)
  734. local pos3 = pos2 * CFrame.new(0,-12,-12)
  735. for i=1,6 do
  736. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  737. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  738. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  739. wait()
  740. end
  741. avgdmg = 14
  742. local bv = Instance.new("BodyPosition",torso)
  743. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  744. bv.position = pos2.p
  745. local bg = Instance.new("BodyGyro",torso)
  746. bg.cframe = CFrame.new(pos.p,pos3.p)
  747. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  748. bg.P = 30000
  749. for i=1, 7 do
  750. wait()
  751. spikes2(torso,"Medium blue")
  752. end
  753. wait(0.1)
  754. coroutine.resume(coroutine.create(function()
  755. for i=1, 17 do
  756. wait()
  757. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  758. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  759. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  760. end
  761. end))
  762. coroutine.resume(coroutine.create(function()
  763. for i=0.4, 5.3,0.07 do
  764. wait(0.04)
  765. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  766. end
  767. end))
  768. charge:play()
  769. coroutine.resume(coroutine.create(function()
  770. wait(2.5)
  771. for i=1, 11 do
  772. wait()
  773. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  774. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  775. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  776. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  777. end
  778. end))
  779. criticalchance = 1
  780. plat = 1
  781. dela = 0
  782. wait(3.8)
  783. boom:play()
  784. attack = true
  785. coroutine.resume(coroutine.create(function()
  786. for i=1, 5 do
  787. wait()
  788. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  789. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  790. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  791. end
  792. end))
  793. bv.position = pos3.p
  794. for i=1, 7 do
  795. wait()
  796. spikes2(torso,"Medium blue")
  797. end
  798. coroutine.resume(coroutine.create(function()
  799. for i=1, 12 do
  800. wait()
  801. bal(blade5,"Medium blue",splashdist*2)
  802. end
  803. end))
  804. local parts = getcharparts(workspace)
  805. for _,v in pairs(parts) do
  806. if (v.Position - blade5.Position).magnitude < 14 then
  807. kill(v,true)
  808. end
  809. end
  810. wait(0.3)
  811. attack = false
  812. bv:remove()
  813. bg:remove()
  814. hum.WalkSpeed = normal
  815. avgdmg = normdmg
  816. rw.C0 = rightfight
  817. lw.C0 = leftfight
  818. neck.C1 = neor
  819. weaponweld.C0 = CFrame.new(0,0,0)
  820. attacking = false
  821. criticalchance = normchance
  822. plat = 2
  823. end
  824. function sprint2()
  825. attacking = true
  826. hum.WalkSpeed = 0
  827. local pos = torso.CFrame
  828. local pos2 = pos * CFrame.new(0,15,-15)
  829. local pos3 = pos2 * CFrame.new(0,-13,-12)
  830. for i=1,6 do
  831. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  832. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.2,0,0)
  833. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,0) * CFrame.new(0,0,0)
  834. wait()
  835. end
  836. avgdmg = 14
  837. local bv = Instance.new("BodyPosition",torso)
  838. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  839. bv.position = pos2.p
  840. local bg = Instance.new("BodyGyro",torso)
  841. bg.cframe = CFrame.new(pos.p,pos3.p)
  842. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  843. bg.P = 30000
  844. for i=1, 4 do
  845. wait()
  846. spikes2(torso,"Medium blue")
  847. spikes2(torso,"Light blue")
  848. spikes2(torso,"Bright blue")
  849. end
  850. wait(0.1)
  851. coroutine.resume(coroutine.create(function()
  852. for i=1, 34 do
  853. wait()
  854. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.15,0,-0.04)
  855. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.16,0,0.05)
  856. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.02,0,0) * CFrame.new(0,0,0)
  857. end
  858. end))
  859. coroutine.resume(coroutine.create(function()
  860. for i=0.4, 5.3,0.07 do
  861. wait(0.04)
  862. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  863. end
  864. end))
  865. charge:play()
  866. coroutine.resume(coroutine.create(function()
  867. wait(2.5)
  868. for i=1, 11 do
  869. wait()
  870. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  871. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(0.08,0,0)
  872. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0,-(math.pi/11),0)
  873. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.03,0,0) * CFrame.new(0,0,0)
  874. end
  875. end))
  876. criticalchance = 1
  877. plat = 1
  878. dela = 0
  879. wait(3.8)
  880. boom:play()
  881. attack = true
  882. coroutine.resume(coroutine.create(function()
  883. for i=1, 5 do
  884. wait()
  885. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  886. lw.C0 = lw.C0 * CFrame.fromEulerAnglesXYZ(-0.34,0,0)
  887. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.1,0,0) * CFrame.new(0,0,0)
  888. end
  889. end))
  890. bv.position = pos3.p
  891. for i=1, 7 do
  892. wait()
  893. spikes2(torso,"Medium blue")
  894. end
  895. coroutine.resume(coroutine.create(function()
  896. for i=1, 12 do
  897. wait()
  898. bal(blade5,"Medium blue",splashdist*2)
  899. end
  900. end))
  901. local parts = getcharparts(workspace)
  902. for _,v in pairs(parts) do
  903. if (v.Position - blade5.Position).magnitude < 14 then
  904. kill(v,true)
  905. end
  906. end
  907. wait(0.3)
  908. attack = false
  909. bv:remove()
  910. bg:remove()
  911. hum.WalkSpeed = normal
  912. avgdmg = normdmg
  913. rw.C0 = rightfight
  914. lw.C0 = leftfight
  915. neck.C1 = neor
  916. weaponweld.C0 = CFrame.new(0,0,0)
  917. attacking = false
  918. criticalchance = normchance
  919. plat = 2
  920. end
  921. function combo()
  922. att()
  923. attas()
  924. sprint()
  925. spin()
  926. end
  927. function run()
  928. spin()
  929. spin()
  930. spin()
  931. end
  932. function rush()
  933. attacking = true
  934. for i=1,8 do
  935. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  936. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  937. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  938. wait(0.1)
  939. end
  940. slash:play()
  941. wait(0.13)
  942. attack = true
  943. local bv = Instance.new("BodyVelocity",torso)
  944. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  945. bv.velocity = torso.CFrame.lookVector * 220
  946. local bav = Instance.new("BodyAngularVelocity",torso)
  947. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  948. bav.angularvelocity = Vector3.new(0,36,0)
  949. bav.P = 15000
  950. for i=1,6 do
  951. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  952. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  953. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  954. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  955. wait()
  956. end
  957. attack = false
  958. wait(0.08)
  959. for i=1,3 do
  960. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  961. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  962. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  963. block(blade5,2,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  964. wait()
  965. end
  966. rw.C0 = rightfight
  967. lw.C0 = leftfight
  968. bv:remove()
  969. bav:remove()
  970. neck.C1 = neor
  971. weaponweld.C0 = CFrame.new(0,0,0)
  972. attacking = false
  973. end
  974. function masta()
  975. attacking = true
  976. for i=1,8 do
  977. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.03,0.1,0) * CFrame.new(0,0,0)
  978. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-(math.pi/2)/12,0.03,0.07) * CFrame.new(0,0,0)
  979. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0.03)
  980. bal(torso,"Tr. Blue",25)
  981. spikes2(torso,"Medium blue")
  982. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  983. wait(0.1)
  984. end
  985. slash:play()
  986. avgdmg = 37
  987. criticalchance = 125
  988. wait(0.13)
  989. attack = true
  990. local bv = Instance.new("BodyVelocity",torso)
  991. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  992. bv.velocity = torso.CFrame.lookVector * 220
  993. local bav = Instance.new("BodyAngularVelocity",torso)
  994. bav.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  995. bav.angularvelocity = Vector3.new(0,36,0)
  996. bav.P = 15000
  997. for i=1,6 do
  998. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(-0.44,0.08,0) * CFrame.new(0,0,0)
  999. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(-0.04,0,0) * CFrame.new(0,0,0)
  1000. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(-0.14,0,0)
  1001. bal(torso,"Tr. Blue",25)
  1002. spikes2(torso,"Medium blue")
  1003. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1004. wait()
  1005. end
  1006. attack = false
  1007. wait(0.08)
  1008. for i=1,3 do
  1009. rw.C0 = rw.C0 * CFrame.fromEulerAnglesXYZ(0,0,0.08)
  1010. weaponweld.C0 = weaponweld.C0 * CFrame.fromEulerAnglesXYZ(0.23,0,0)
  1011. neck.C1 = neck.C1 * CFrame.fromEulerAnglesXYZ(0.1,0,-0.05)
  1012. bal(torso,"Tr. Blue",25)
  1013. spikes2(torso,"Medium blue")
  1014. block(blade5,i,{"Medium blue", "Light blue", "White", "Tr. Blue"})
  1015. wait()
  1016. end
  1017. rw.C0 = rightfight
  1018. lw.C0 = leftfight
  1019. bv:remove()
  1020. bav:remove()
  1021. neck.C1 = neor
  1022. weaponweld.C0 = CFrame.new(0,0,0)
  1023. attacking = false
  1024. end
  1025. if script.Parent.className ~= "HopperBin" then
  1026. local h = Instance.new("HopperBin",me.Backpack)
  1027. h.Name = "SoulSword"
  1028. script.Parent = h
  1029. end
  1030. local bin = script.Parent
  1031. function sel(mouse)
  1032. neck.C1 = neor
  1033. if (selected == false) then
  1034. selectmotion()
  1035. end
  1036. mouse.Button1Down:connect(function()
  1037. if (attacking == false) then
  1038. att()
  1039. end
  1040. end)
  1041. mouse.KeyDown:connect(function(kuu)
  1042. local kai = kuu:lower()
  1043. if attacking == false then
  1044. if (kai == "q") then
  1045. spin()
  1046. elseif (kai == "e") then
  1047. att()
  1048. elseif (kai == "r") then
  1049. sprint()
  1050. elseif (kai == "l") then
  1051. stab()
  1052. elseif (kai == "t") then
  1053. attas()
  1054. elseif (kai == "z") then
  1055. masta()
  1056. elseif (kai == "y") then
  1057. spins()
  1058. elseif (kai == "g") then
  1059. combo()
  1060. elseif (kai == "p") then
  1061. rise()
  1062. elseif (kai == "j") then
  1063. sprint2()
  1064. elseif (kai == "h") then
  1065. run()
  1066. elseif (kai == "f") then
  1067. rush()
  1068. end
  1069. end
  1070. end)
  1071. while selected do
  1072. wait(0.8)
  1073. local k = math.random(1,5)
  1074. if k == 1 then
  1075. if hum.Health < 50 then
  1076. for i=1, math.random(4,24) do
  1077. wait(0.1)
  1078. local col = healcols[math.random(1,#healcols)]
  1079. local sa = math.random(30,90)/100
  1080. local p = Instance.new("Part")
  1081. prop(p,me.Character,false,0.1,0.05,1,1,1,col,false,"Symmetric")
  1082. 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))
  1083. local mes = Instance.new("SpecialMesh")
  1084. mesh(mes,p,sa,sa,sa,"Sphere")
  1085. local bg = Instance.new("BodyPosition",p)
  1086. bg.maxForce = Vector3.new(1000000,1000000,1000000)
  1087. bg.P = 100000
  1088. bg.position = torso.Position
  1089. coroutine.resume(coroutine.create(function()
  1090. repeat
  1091. bg.position = torso.Position
  1092. wait()
  1093. until (p.Position - torso.Position).magnitude < 1.8
  1094. hum.Health = hum.Health + 1.2
  1095. p:remove()
  1096. end))
  1097. end
  1098. end
  1099. end
  1100. end
  1101. end
  1102. function desel()
  1103. neck.C1 = neor
  1104. if selected then
  1105. deselmotion()
  1106. end
  1107. end
  1108. bin.Selected:connect(sel)
  1109. bin.Deselected:connect(desel)
  1110. --LEGO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement