Advertisement
akungcastgamer

Untitled

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