Advertisement
UltimateGate

Ninja [MINIBOSS] From Black Magic (Discontinued)

Aug 8th, 2017
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.23 KB | None | 0 0
  1. --[[
  2. Ninja MiniBoss ]]
  3.  
  4. ModelName = "Ninja"
  5. attack = false
  6. attacktype = 1
  7. Hitdeb = 0
  8. Hitdeb2 = 0
  9. name = "UilmateGate"
  10. ----------------------------
  11. --Customize mediafire
  12. Rage = 0
  13. Rage = 200
  14. mindamage = 10
  15. maxdamage = 20
  16. crtmaxdamage = 40
  17. combo = 0
  18. omindamage = mindamage
  19. omaxdamage = maxdamage
  20. ocrtmaxdamage = crtmaxdamage
  21. crtrate = 100/5
  22. HP = 500
  23. WS = 16
  24. jump = 50
  25. --100%/critpercentage
  26.  
  27. oblkbrkr = 3
  28. blockbreaker = oblkbrkr
  29.  
  30.  
  31. handlecolor = BrickColor.new("Black")
  32. bcolor = BrickColor.new("White")
  33. gemcolor = BrickColor.new("Black")
  34.  
  35.  
  36.  
  37. -------------------------------------------------------------------------------------------------------------------------------------
  38.  
  39.  
  40.  
  41.  
  42.  
  43. if game.Workspace:findFirstChild(ModelName,true) ~= nil then
  44. game.Workspace:findFirstChild(ModelName,true).Parent = nil
  45. end
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. local bodyholder = Instance.new("Model")
  53. bodyholder.Name = ModelName
  54. bodyholder.Parent = game.Workspace
  55. Character = bodyholder
  56.  
  57. ev = Instance.new("BoolValue",bodyholder)
  58. ev.Name = "EquippedVal"
  59. ev.Value = false
  60. blk = Instance.new("BoolValue",bodyholder)
  61. blk.Name = "Block"
  62. blk.Value = false
  63. blkc = Instance.new("IntValue",blk)
  64. blkc.Name = "BlockPower"
  65. blkc.Value = blockpower
  66. SpawnPos = Instance.new("Vector3Value",script)
  67. SpawnPos.Name = "SpawnPos"
  68. SpawnPos.Value = game.Workspace[name].Head.Position--Vector3.new(20,10,0)
  69.  
  70. local Head = Instance.new("Part")
  71. Head.formFactor = 3
  72. Head.CanCollide = true
  73. Head.Name = "Head"
  74. Head.Locked = true
  75. Head.Size = Vector3.new(2,1,1)
  76. Head.Parent = bodyholder
  77. Head.BrickColor = BrickColor.new("Bright yellow")
  78. local smh = Instance.new("SpecialMesh",Head)
  79. smh.Scale = Vector3.new(1.25,1.25,1.25)
  80. local Torso = Instance.new("Part")
  81. Torso.formFactor = 3
  82. Torso.CanCollide = true
  83. Torso.Name = "Torso"
  84. Torso.Locked = true
  85. Torso.Size = Vector3.new(2,2,1)
  86. Torso.Parent = bodyholder
  87. Torso.BrickColor = BrickColor.new("Black")
  88. Torso.Reflectance = 0.1
  89. Torso.CFrame = CFrame.new(SpawnPos.Value)
  90. local RightArm = Instance.new("Part")
  91. RightArm.formFactor = 3
  92. RightArm.CanCollide = true
  93. RightArm.Name = "Right Arm"
  94. RightArm.Locked = true
  95. RightArm.Size = Vector3.new(1,2,1)
  96. RightArm.Parent = bodyholder
  97. RightArm.BrickColor = BrickColor.new("Black")
  98. local LeftArm = Instance.new("Part")
  99. LeftArm.formFactor = 3
  100. LeftArm.CanCollide = true
  101. LeftArm.Name = "Left Arm"
  102. LeftArm.Locked = true
  103. LeftArm.Size = Vector3.new(1,2,1)
  104. LeftArm.Parent = bodyholder
  105. LeftArm.BrickColor = BrickColor.new("Black")
  106. local RightLeg = Instance.new("Part")
  107. RightLeg.formFactor = 3
  108. RightLeg.CanCollide = true
  109. RightLeg.Name = "Right Leg"
  110. RightLeg.Locked = true
  111. RightLeg.Size = Vector3.new(1,2,1)
  112. RightLeg.Parent = bodyholder
  113. RightLeg.BrickColor = BrickColor.new("Black")
  114. local LeftLeg = Instance.new("Part")
  115. LeftLeg.formFactor = 3
  116. LeftLeg.CanCollide = true
  117. LeftLeg.Name = "Left Leg"
  118. LeftLeg.Locked = true
  119. LeftLeg.Size = Vector3.new(1,2,1)
  120. LeftLeg.Parent = bodyholder
  121. LeftLeg.BrickColor = BrickColor.new("Black")
  122.  
  123. local hair = Instance.new("Part")
  124. hair.formFactor = "Plate"
  125. hair.CanCollide = false
  126. hair.Locked = true
  127. hair.Size = Vector3.new(1,0.8,1)
  128. hair.Parent = bodyholder
  129. local hm = Instance.new("SpecialMesh")
  130. hm.Parent = hair
  131. hm.MeshType = "FileMesh"
  132. hm.MeshId = "http://www.roblox.com/asset/?id=1286427"
  133. hm.TextureId = "http://www.roblox.com/asset/?id=1309894"
  134. hm.Scale = Vector3.new(1.1, 1.1, 1.1)
  135. local wh = Instance.new("Weld")
  136. wh.Parent = hair
  137. wh.Part0 = hair
  138. wh.Part1 = Head
  139. wh.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0, 0)
  140. wh.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  141.  
  142. local shirt = Instance.new("Shirt")
  143. shirt.Parent = bodyholder
  144. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=14707726"
  145. local pants = Instance.new("Pants")
  146. pants.Parent = bodyholder
  147. pants.PantsTemplate = "http://www.roblox.com/asset/?id=14707085"
  148. --player
  149. player = nil
  150. --welds
  151. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  152. --what anim
  153. anim = "none"
  154. --save shoulders
  155. AoETrue = {}
  156. Neck = Instance.new("Motor")
  157.  
  158.  
  159.  
  160.  
  161. --derp
  162. RW.Part0 = Character.Torso
  163. RW.Part1 = Character["Right Arm"]
  164. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  165. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  166. RW.Parent = bodyholder
  167. --
  168. LW.Part0 = Character.Torso
  169. LW.Part1 = Character["Left Arm"]
  170. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  171. LW.C1 = CFrame.new(0, 0.5, 0)
  172. LW.Parent = bodyholder
  173. --
  174. RWL.Part0 = Character.Torso
  175. RWL.Part1 = Character["Right Leg"]
  176. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  177. RWL.C1 = CFrame.new(0.5, 1, 0)
  178. RWL.Parent = bodyholder
  179. --
  180. LWL.Part0 = Character.Torso
  181. LWL.Part1 = Character["Left Leg"]
  182. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  183. LWL.C1 = CFrame.new(-0.5, 1, 0)
  184. LWL.Parent = bodyholder
  185. --
  186. Neck.Part0 = Character.Torso
  187. Neck.Part1 = Character.Head
  188. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0)
  189. Neck.C1 = CFrame.new(0, -0.5, 0)
  190. Neck.Parent = bodyholder
  191.  
  192. ----
  193.  
  194. --
  195.  
  196. RAP = Instance.new("Part")
  197. RAP.formFactor = 0
  198. RAP.CanCollide = false
  199. RAP.Name = "RAPart"
  200. RAP.Locked = true
  201. RAP.Size = Vector3.new(1,1,1)
  202. RAP.Parent = bodyholder
  203. RAP.Transparency = 1
  204. w = Instance.new("Weld")
  205. w.Parent = RAP
  206. w.Part0 = RAP
  207. w.Part1 = RightArm
  208. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  209. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  210. LAP = Instance.new("Part")
  211. LAP.formFactor = 0
  212. LAP.CanCollide = false
  213. LAP.Name = "LAPart"
  214. LAP.Locked = true
  215. LAP.Size = Vector3.new(1,1,1)
  216. LAP.Parent = bodyholder
  217. LAP.Transparency = 1
  218. wl = Instance.new("Weld")
  219. wl.Parent = LAP
  220. wl.Part0 = LAP
  221. wl.Part1 = LeftArm
  222. wl.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  223. wl.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  224.  
  225. swordholder = Instance.new("Model")
  226. swordholder.Name = "Weapon"
  227. swordholder.Parent = bodyholder
  228.  
  229. local prt1 = Instance.new("Part")
  230. prt1.formFactor = 1
  231. prt1.Parent = swordholder
  232. prt1.CanCollide = false
  233. prt1.BrickColor = BrickColor.new("Pastel Blue")
  234. prt1.Name = "Handle"
  235. prt1.Transparency = 0
  236. prt1.Size = Vector3.new(1,1,1)
  237. prt1.CFrame = Torso.CFrame
  238. local prt2 = Instance.new("Part")
  239. prt2.formFactor = 1
  240. prt2.Parent = swordholder
  241. prt2.CanCollide = false
  242. prt2.BrickColor = BrickColor.new("Really black")
  243. prt2.Name = "Handle2"
  244. prt2.Transparency = 0
  245. prt2.Size = Vector3.new(1,1,1)
  246. prt2.CFrame = Torso.CFrame
  247. local prt3 = Instance.new("Part")
  248. prt3.formFactor = 1
  249. prt3.Parent = swordholder
  250. prt3.CanCollide = false
  251. prt3.BrickColor = BrickColor.new("Dark grey")
  252. prt3.Name = "Handle3"
  253. prt3.Transparency = 0
  254. prt3.Size = Vector3.new(1,1,1)
  255. prt3.CFrame = Torso.CFrame
  256. local prt4 = Instance.new("Part")
  257. prt4.formFactor = 1
  258. prt4.Parent = swordholder
  259. prt4.CanCollide = false
  260. prt4.BrickColor = BrickColor.new("Grey")
  261. prt4.Name = "Blade1"
  262. prt4.Reflectance = 0.4
  263. prt4.Transparency = 0
  264. prt4.Size = Vector3.new(1,3,1)
  265. prt4.CFrame = Torso.CFrame
  266. local prt5 = Instance.new("Part")
  267. prt5.formFactor = 1
  268. prt5.Parent = swordholder
  269. prt5.CanCollide = false
  270. prt5.BrickColor = BrickColor.new("Really black")
  271. prt5.Name = "Blade2"
  272. prt5.Transparency = 0
  273. prt5.Size = Vector3.new(1,1,1)
  274. prt5.CFrame = Torso.CFrame
  275. local prt6 = Instance.new("Part")
  276. prt6.formFactor = 1
  277. prt6.Parent = swordholder
  278. prt6.CanCollide = false
  279. prt6.BrickColor = BrickColor.new("Grey")
  280. prt6.Name = "Blade3"
  281. prt6.Reflectance = 0.5
  282. prt6.Transparency = 0
  283. prt6.Size = Vector3.new(1,1,1)
  284. prt6.CFrame = Torso.CFrame
  285. local prt7 = Instance.new("Part")
  286. prt7.formFactor = 1
  287. prt7.Parent = swordholder
  288. prt7.CanCollide = false
  289. prt7.BrickColor = BrickColor.new("Pastel Blue")
  290. prt7.Name = "Handle3"
  291. prt7.Transparency = 0
  292. prt7.Size = Vector3.new(1,1,1)
  293. prt7.CFrame = Torso.CFrame
  294. local prt8 = Instance.new("Part")
  295. prt8.formFactor = 1
  296. prt8.Parent = swordholder
  297. prt8.CanCollide = false
  298. prt8.BrickColor = BrickColor.new("Really black")
  299. prt8.Name = "Handle4"
  300. prt8.Transparency = 0
  301. prt8.Size = Vector3.new(1,1,1)
  302. prt8.CFrame = Torso.CFrame
  303. local prt9 = Instance.new("Part")
  304. prt9.formFactor = 1
  305. prt9.Parent = swordholder
  306. prt9.CanCollide = false
  307. prt9.BrickColor = BrickColor.new("Really black")
  308. prt9.Name = "Handle5"
  309. prt9.Transparency = 0
  310. prt9.Size = Vector3.new(1,1,1)
  311. prt9.CFrame = Torso.CFrame
  312. local prt10 = Instance.new("Part")
  313. prt10.formFactor = 1
  314. prt10.Parent = swordholder
  315. prt10.CanCollide = false
  316. prt10.BrickColor = BrickColor.new("Pastel Blue")
  317. prt10.Name = "Handle6"
  318. prt10.Transparency = 0
  319. prt10.Size = Vector3.new(1,1,1)
  320. prt10.CFrame = Torso.CFrame
  321. local prt11 = Instance.new("Part")
  322. prt11.formFactor = 1
  323. prt11.Parent = swordholder
  324. prt11.CanCollide = false
  325. prt11.BrickColor = BrickColor.new("Pastel Blue")
  326. prt11.Name = "Handle7"
  327. prt11.Transparency = 0
  328. prt11.Size = Vector3.new(1,1,1)
  329. prt11.CFrame = Torso.CFrame
  330. local prt12 = Instance.new("Part")
  331. prt12.formFactor = 1
  332. prt12.Parent = swordholder
  333. prt12.CanCollide = false
  334. prt12.BrickColor = BrickColor.new("Dark grey")
  335. prt12.Name = "Handle8"
  336. prt12.Transparency = 0
  337. prt12.Size = Vector3.new(1,1,1)
  338. prt12.CFrame = Torso.CFrame
  339. local prt13 = Instance.new("Part")
  340. prt13.formFactor = 1
  341. prt13.Parent = swordholder
  342. prt13.CanCollide = false
  343. prt13.BrickColor = BrickColor.new("Grey")
  344. prt13.Name = "Blade4"
  345. prt13.Reflectance = 0.4
  346. prt13.Transparency = 0
  347. prt13.Size = Vector3.new(1,1,1)
  348. prt13.CFrame = Torso.CFrame
  349. local prt14 = Instance.new("Part")
  350. prt14.formFactor = 1
  351. prt14.Parent = swordholder
  352. prt14.CanCollide = false
  353. prt14.BrickColor = BrickColor.new("Grey")
  354. prt14.Name = "Blade5"
  355. prt14.Reflectance = 0.4
  356. prt14.Transparency = 0
  357. prt14.Size = Vector3.new(1,1,1)
  358. prt14.CFrame = Torso.CFrame
  359. local prt15 = Instance.new("Part")
  360. prt15.formFactor = 1
  361. prt15.Parent = swordholder
  362. prt15.CanCollide = false
  363. prt15.BrickColor = BrickColor.new("Grey")
  364. prt15.Name = "Blade6"
  365. prt15.Reflectance = 0.4
  366. prt15.Transparency = 0
  367. prt15.Size = Vector3.new(1,1,1)
  368. prt15.CFrame = Torso.CFrame
  369. local prt16 = Instance.new("Part")
  370. prt16.formFactor = 1
  371. prt16.Parent = swordholder
  372. prt16.CanCollide = false
  373. prt16.BrickColor = BrickColor.new("Grey")
  374. prt16.Name = "Blade7"
  375. prt16.Reflectance = 0.4
  376. prt16.Transparency = 0
  377. prt16.Size = Vector3.new(1,1,1)
  378. prt16.CFrame = Torso.CFrame
  379. swordholder:BreakJoints()
  380.  
  381. local msh1 = Instance.new("CylinderMesh")
  382. msh1.Parent = prt1
  383. msh1.Scale = Vector3.new(0.3,1,0.5)
  384. local msh2 = Instance.new("CylinderMesh")
  385. msh2.Parent = prt2
  386. msh2.Scale = Vector3.new(0.3,0.1,0.5)
  387. local msh3 = Instance.new("BlockMesh")
  388. msh3.Parent = prt3
  389. msh3.Scale = Vector3.new(0.4,0.3,0.4)
  390. local msh4 = Instance.new("BlockMesh")
  391. msh4.Parent = prt4
  392. msh4.Scale = Vector3.new(0.1,1,0.3)
  393. local msh5 = Instance.new("CylinderMesh")
  394. msh5.Parent = prt5
  395. msh5.Scale = Vector3.new(0.2,1,0.5)
  396. local msh6 = Instance.new("SpecialMesh")
  397. msh6.Parent = prt6
  398. msh6.MeshType = "Wedge"
  399. msh6.Scale = Vector3.new(0.1,0.7,0.3)
  400. local msh7 = Instance.new("CylinderMesh")
  401. msh7.Parent = prt7
  402. msh7.Scale = Vector3.new(0.2,0.1,0.5)
  403. local msh8 = Instance.new("CylinderMesh")
  404. msh8.Parent = prt8
  405. msh8.Scale = Vector3.new(0.2,0.1,0.5)
  406. local msh9 = Instance.new("CylinderMesh")
  407. msh9.Parent = prt9
  408. msh9.Scale = Vector3.new(0.2,0.1,0.5)
  409. local msh10 = Instance.new("CylinderMesh")
  410. msh10.Parent = prt10
  411. msh10.Scale = Vector3.new(0.2,0.1,0.5)
  412. local msh11 = Instance.new("CylinderMesh")
  413. msh11.Parent = prt11
  414. msh11.Scale = Vector3.new(0.2,0.1,0.5)
  415. local msh12 = Instance.new("BlockMesh")
  416. msh12.Parent = prt12
  417. msh12.Scale = Vector3.new(0.2,0.2,0.3)
  418. local msh13 = Instance.new("BlockMesh")
  419. msh13.Parent = prt13
  420. msh13.Scale = Vector3.new(0.1,0.5,0.3)
  421. local msh14 = Instance.new("BlockMesh")
  422. msh14.Parent = prt14
  423. msh14.Scale = Vector3.new(0.1,0.1,0.1)
  424. local msh15 = Instance.new("BlockMesh")
  425. msh15.Parent = prt15
  426. msh15.Scale = Vector3.new(0.1,0.3,0.3)
  427. local msh16 = Instance.new("SpecialMesh")
  428. msh16.Parent = prt16
  429. msh16.MeshType = "Wedge"
  430. msh16.Scale = Vector3.new(0.1,0.5,0.3)
  431.  
  432. local w1 = Instance.new("Weld")
  433. w1.Parent = prt1
  434. w1.Part0 = prt1
  435. w1.Part1 = RightArm
  436. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  437. w1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  438. local w2 = Instance.new("Weld")
  439. w2.Parent = prt2
  440. w2.Part0 = prt2
  441. w2.Part1 = prt1
  442. w2.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.66,0)
  443. w2.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  444. local w3 = Instance.new("Weld")
  445. w3.Parent = prt3
  446. w3.Part0 = prt3
  447. w3.Part1 = prt1
  448. w3.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.78,0)
  449. w3.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  450. local w4 = Instance.new("Weld")
  451. w4.Parent = prt4
  452. w4.Part0 = prt4
  453. w4.Part1 = prt3
  454. w4.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.35,0)
  455. w4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  456. local w5 = Instance.new("Weld")
  457. w5.Parent = prt5
  458. w5.Part0 = prt5
  459. w5.Part1 = prt3
  460. w5.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.77,0)
  461. w5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  462. local w6 = Instance.new("Weld")
  463. w6.Parent = prt6
  464. w6.Part0 = prt6
  465. w6.Part1 = prt4
  466. w6.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-1.61,0)
  467. w6.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  468. local w7 = Instance.new("Weld")
  469. w7.Parent = prt7
  470. w7.Part0 = prt7
  471. w7.Part1 = LeftArm
  472. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  473. w7.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  474. local w8 = Instance.new("Weld")
  475. w8.Parent = prt8
  476. w8.Part0 = prt8
  477. w8.Part1 = prt7
  478. w8.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.12,0)
  479. w8.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  480. local w9 = Instance.new("Weld")
  481. w9.Parent = prt9
  482. w9.Part0 = prt9
  483. w9.Part1 = prt7
  484. w9.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.12,0)
  485. w9.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  486. local w10 = Instance.new("Weld")
  487. w10.Parent = prt10
  488. w10.Part0 = prt10
  489. w10.Part1 = prt7
  490. w10.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,0)
  491. w10.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  492. local w11 = Instance.new("Weld")
  493. w11.Parent = prt11
  494. w11.Part0 = prt11
  495. w11.Part1 = prt7
  496. w11.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.24,0)
  497. w11.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  498. local w12 = Instance.new("Weld")
  499. w12.Parent = prt12
  500. w12.Part0 = prt12
  501. w12.Part1 = prt7
  502. w12.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.4,0)
  503. w12.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  504. local w13 = Instance.new("Weld")
  505. w13.Parent = prt13
  506. w13.Part0 = prt13
  507. w13.Part1 = prt12
  508. w13.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.42,0)
  509. w13.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  510. local w14 = Instance.new("Weld")
  511. w14.Parent = prt14
  512. w14.Part0 = prt14
  513. w14.Part1 = prt13
  514. w14.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.35,0.1)
  515. w14.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  516. local w15 = Instance.new("Weld")
  517. w15.Parent = prt15
  518. w15.Part0 = prt15
  519. w15.Part1 = prt14
  520. w15.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0.24,-0.1)
  521. w15.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  522. local w16 = Instance.new("Weld")
  523. w16.Parent = prt16
  524. w16.Part0 = prt16
  525. w16.Part1 = prt15
  526. w16.C0 = CFrame.fromEulerAnglesXYZ(3.14,0,0) * CFrame.new(0,0.48,0)
  527. w16.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  528.  
  529.  
  530.  
  531.  
  532. function unequipweld()
  533.  
  534. end
  535.  
  536. unequipweld()
  537.  
  538.  
  539.  
  540. function equipweld()
  541.  
  542.  
  543. end
  544.  
  545.  
  546. function ss(parent,p) --Slash
  547.  
  548. local SlashSound = Instance.new("Sound")
  549. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  550. SlashSound.Parent = parent
  551. SlashSound.Volume = .7
  552. SlashSound.Pitch = p
  553. SlashSound.PlayOnRemove = true
  554. coroutine.resume(coroutine.create(function()
  555. wait()
  556. SlashSound.Parent = nil
  557. end))
  558. end
  559. function uss(parent,p) --unsheath
  560.  
  561. local SlashSound = Instance.new("Sound")
  562. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  563. SlashSound.Parent = parent
  564. SlashSound.Volume = .7
  565. SlashSound.Pitch = p
  566. SlashSound.PlayOnRemove = true
  567. coroutine.resume(coroutine.create(function()
  568. wait()
  569. SlashSound.Parent = nil
  570. end))
  571. end
  572. function ms(parent,p) --Metal Cling Sound
  573.  
  574. local SlashSound = Instance.new("Sound")
  575. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  576. SlashSound.Parent = parent
  577. SlashSound.Volume = 1
  578. SlashSound.Pitch = p
  579. SlashSound.PlayOnRemove = true
  580. coroutine.resume(coroutine.create(function()
  581. wait()
  582. SlashSound.Parent = nil
  583. end))
  584. end
  585.  
  586. --
  587. --
  588.  
  589. function returndmg()
  590. mindamage = omindamage
  591. maxdamage = omaxdamage
  592. crtmaxdamage = ocrtmaxdamage
  593. end
  594.  
  595. function subdmg(sub)
  596. mindamage = omindamage - sub
  597. maxdamage = omaxdamage - sub
  598. crtmaxdamage = ocrtmaxdamage - sub
  599. end
  600.  
  601. function prcntdmg(sub)
  602. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  603. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  604. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  605. end
  606.  
  607. function tagHumanoid(humanoid, player)
  608. local creator_tag = Instance.new("ObjectValue")
  609. creator_tag.Value = player
  610. creator_tag.Name = "creator"
  611. creator_tag.Parent = humanoid
  612. end
  613.  
  614. function untagHumanoid(humanoid)
  615. if humanoid ~= nil then
  616. local tag = humanoid:findFirstChild("creator")
  617. if tag ~= nil then
  618. tag.Parent = nil
  619. end
  620. end
  621. end
  622.  
  623. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  624. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  625. end
  626.  
  627.  
  628.  
  629. function equipanim()
  630. attack = true
  631. for i = 0.1 , 1 , 0.1 do
  632. wait()
  633. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  634. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  635. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  636. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  637. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  638. RWL.C1 = CFrame.new(0.5, 1, 0)
  639. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  640. LWL.C1 = CFrame.new(-0.5, 1, 0)
  641. end
  642. attack = false
  643. end
  644.  
  645.  
  646. function damagesplat(dmg,hit,crit,blocked)
  647. local mo = Instance.new("Model")
  648. mo.Name = dmg
  649. local pa = Instance.new("Part",mo)
  650. pa.formFactor = 3
  651. pa.Size = Vector3.new(0.8,0.3,0.8)
  652. if crit then
  653. pa.BrickColor = BrickColor.new("Bright yellow")
  654. elseif not crit then
  655. pa.BrickColor = BrickColor.new("Bright red")
  656. end
  657. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  658. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  659. pa.Name = "Head"
  660. local hah = Instance.new("Humanoid")
  661. hah.Parent = mo
  662. hah.MaxHealth = 0
  663. hah.Health = 0
  664. local bp = Instance.new("BodyPosition")
  665. bp.P = 14000
  666. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  667. bp.position = hit.Position + Vector3.new(0, 5, 0)
  668. coroutine.resume(coroutine.create(function()
  669. wait()
  670. mo.Parent = Character
  671. bp.Parent = pa
  672. wait(1.4)
  673. mo:remove()
  674. end))
  675. return pa
  676. end
  677.  
  678. function damage(hum,dmg,critornot)
  679. local pa = damagesplat(dmg,hum.Torso,critornot)
  680. hum:TakeDamage(dmg)
  681. coroutine.resume(coroutine.create(function()
  682. tagHumanoid(hum,Player)
  683. wait(1)
  684. untagHumanoid(hum)
  685. end))
  686. return pa
  687.  
  688. end
  689.  
  690. function AddRage(add)
  691. Rage = Rage + add
  692. if Rage > MaxRage then
  693. Rage = MaxRage
  694. end
  695. end
  696.  
  697. function OT(hit) --Normal Damage
  698. if Hitdeb == 1 then return end
  699. if hit.Parent == nil then return end
  700. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  701. if hum.Health <= 0 then return end
  702. if hit.Parent:findFirstChild("Block") ~= nil then
  703. if hit.Parent.Block.Value then
  704. damagesplat(0,hum.Torso,false,true)
  705. Hitdeb = 1
  706. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  707. if hit.Parent.Block.BlockPower.Value <= 1 then
  708. hit.Parent.Block.Value = false
  709. elseif hit.Parent.Block.BlockPower.Value > 1 then
  710. local critrandomizer = math.random(crtrate)
  711. if critrandomizer ~= 1 then
  712. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  713. elseif critrandomizer == 1 then
  714. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  715. end
  716. end
  717. end
  718. return end end
  719. local critrandomizer = math.random(crtrate)
  720. if critrandomizer ~= 1 then
  721. local rndmdamage = math.random(mindamage,maxdamage)
  722. damage(hum,rndmdamage,false)
  723. elseif critrandomizer == 1 then
  724. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  725. damage(hum,rndmdamage,true)
  726. end
  727. Hitdeb = 1
  728. end
  729. end
  730.  
  731. function OT2(hit) --Normal Damage
  732. if Hitdeb2 == 1 then return end
  733. if hit.Parent == nil then return end
  734. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  735. if hum.Health <= 0 then return end
  736. if hit.Parent:findFirstChild("Block") ~= nil then
  737. if hit.Parent.Block.Value then
  738. damagesplat(0,hum.Torso,false,true)
  739. Hitdeb2 = 1
  740. if hit.Parent.Block:findFirstChild("BlockPower") ~= nil then
  741. if hit.Parent.Block.BlockPower.Value <= 1 then
  742. hit.Parent.Block.Value = false
  743. elseif hit.Parent.Block.BlockPower.Value > 1 then
  744. local critrandomizer = math.random(crtrate)
  745. if critrandomizer ~= 1 then
  746. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker
  747. elseif critrandomizer == 1 then
  748. hit.Parent.Block.BlockPower.Value = hit.Parent.Block.BlockPower.Value - blockbreaker + 2
  749. end
  750. end
  751. end
  752. return end end
  753. local critrandomizer = math.random(crtrate)
  754. if critrandomizer ~= 1 then
  755. local rndmdamage = math.random(mindamage,maxdamage)*2
  756. damage(hum,rndmdamage,false)
  757. elseif critrandomizer == 1 then
  758. local rndmdamage = math.random(maxdamage,crtmaxdamage)*2
  759. damage(hum,rndmdamage,true)
  760. end
  761. Hitdeb2 = 1
  762. end
  763. end
  764.  
  765.  
  766. function AoE(p,magnitude)
  767. local c = game.Workspace:GetChildren();
  768. for i = 1, #c do
  769. local hum = c[i]:findFirstChild("Humanoid")
  770. if hum ~= nil and hum.Health ~= 0 then
  771. local head = c[i]:findFirstChild("Head");
  772. if head ~= nil then
  773. local mag = (head.Position - p).magnitude;
  774. if mag <= magnitude and c[i].Name ~= Character.Name then
  775. local foundd = false
  776. for ii = 1 , #AoETrue do
  777. if AoETrue[ii] == c[i].Name then
  778.  
  779. foundd = true
  780. end
  781. end
  782. if foundd then
  783.  
  784. end
  785. --
  786. if not foundd then
  787. local critrandomizer = math.random(crtrate)
  788. if critrandomizer ~= 1 then
  789. local rndmdamage = math.random(mindamage,maxdamage)
  790. damage(hum,rndmdamage,false)
  791. elseif critrandomizer == 1 then
  792. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  793. damage(hum,rndmdamage,true)
  794. end
  795. table.insert(AoETrue,c[i].Name)
  796. end
  797. end
  798. end
  799. end
  800. end
  801. for ii = 1 , #AoETrue do
  802. table.remove(AoETrue,#AoETrue)
  803. end
  804. end
  805.  
  806. --
  807.  
  808.  
  809. --
  810.  
  811. function effect(Color,Ref,LP,P1)
  812. local effectsmsh = Instance.new("BlockMesh")
  813. effectsmsh.Scale = Vector3.new(1,1,1)
  814. effectsmsh.Name = "Mesh"
  815. local effectsg = Instance.new("Part")
  816. effectsg.formFactor = 3
  817. effectsg.CanCollide = false
  818. effectsg.Name = "Eff"
  819. effectsg.Locked = true
  820. effectsg.Anchored = true
  821. effectsg.Size = Vector3.new(0.2,1,0.2)
  822. effectsg.Parent = bodyholder
  823. effectsmsh.Parent = effectsg
  824. effectsg.BrickColor = BrickColor.new(Color)
  825. effectsg.Reflectance = Ref
  826. local point1 = P1
  827. local mg = (LP.p - point1.p).magnitude
  828. effectsg.Size = Vector3.new(0.2,mg,0.2)
  829. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  830. coroutine.resume(coroutine.create(function()
  831. for i = 0 , 1 , 0.1 do
  832. wait()
  833. effectsg.Transparency = 1*i
  834. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  835. end
  836. wait()
  837. effectsg.Parent = nil
  838. end))
  839. end
  840. --
  841.  
  842.  
  843. con,con2,con3 = nil,nil,nil
  844. conn,conn2,conn3 = nil,nil,nil
  845.  
  846. function dmg1cnnct()
  847. if con ~= nil then
  848. con:disconnect()
  849. Hitdeb = 0
  850. end
  851. con = prt4.Touched:connect(OT)
  852. con2 = prt5.Touched:connect(OT)
  853. end
  854.  
  855. function dmg1dc()
  856. if con ~= nil then
  857. con:disconnect()
  858. Hitdeb = 0
  859. end
  860. if con2 ~= nil then
  861. con2:disconnect()
  862. Hitdeb = 0
  863. end
  864. end
  865.  
  866. function dmg2cnnct()
  867. if con ~= nil then
  868. con:disconnect()
  869. Hitdeb = 0
  870. end
  871. conn = prt14.Touched:connect(OT2)
  872. conn2 = prt15.Touched:connect(OT2)
  873. conn3 = prt16.Touched:connect(OT2)
  874. end
  875.  
  876. function dmg2dc()
  877. if conn ~= nil then
  878. conn:disconnect()
  879. Hitdeb2 = 0
  880. end
  881. if conn2 ~= nil then
  882. conn2:disconnect()
  883. Hitdeb2 = 0
  884. end
  885. if conn3 ~= nil then
  886. conn3:disconnect()
  887. Hitdeb2 = 0
  888. end
  889. end
  890.  
  891. function rptddmg(value,des,inc)
  892. coroutine.resume(coroutine.create(function()
  893. repeat
  894. wait(inc)
  895. Hitdeb = 0
  896. until value == des
  897. end))
  898. end
  899.  
  900. function atktype(s,e)
  901. coroutine.resume(coroutine.create(function ()
  902. attacktype = e
  903. wait(0.25)
  904. attacktype = s
  905. end))
  906. end
  907.  
  908. walking = false
  909. jumping = false
  910. Target = nil
  911.  
  912. function Walk()
  913. if walking then return end
  914. for i = 0.1 , 1 , 0.1 do
  915. if jumping then return end
  916. wait()
  917. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  918. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  919. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  920. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  921. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45*i), 0, math.rad(0))
  922. RWL.C1 = CFrame.new(0.5, 1, 0)
  923. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45*i), 0, math.rad(0))
  924. LWL.C1 = CFrame.new(-0.5, 1, 0)
  925. end
  926. repeat
  927. for i = 0.1 , 1 , 0.1 do
  928. if jumping then return end
  929. wait()
  930. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  931. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  932. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  933. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  934. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(0))
  935. RWL.C1 = CFrame.new(0.5, 1, 0)
  936. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(0))
  937. LWL.C1 = CFrame.new(-0.5, 1, 0)
  938. end
  939. for i = 0.1 , 1 , 0.1 do
  940. if jumping then return end
  941. wait()
  942. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  943. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  944. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  945. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  946. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(0))
  947. RWL.C1 = CFrame.new(0.5, 1, 0)
  948. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(0))
  949. LWL.C1 = CFrame.new(-0.5, 1, 0)
  950. end
  951. until not walking or jumping
  952. for i = 0.1 , 1 , 0.1 do
  953. wait()
  954. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  955. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  956. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  957. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  958. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45-45*i), 0, math.rad(0))
  959. RWL.C1 = CFrame.new(0.5, 1, 0)
  960. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45+45*i), 0, math.rad(0))
  961. LWL.C1 = CFrame.new(-0.5, 1, 0)
  962. end
  963. end
  964.  
  965. function Jump()
  966. if jumping then return end
  967. jumping = true
  968. local vel = Instance.new("BodyVelocity",Torso)
  969. vel.maxForce = Vector3.new(0,1,0) * math.huge
  970. vel.P = vel.P * 5
  971. vel.velocity = Vector3.new(0,jump,0)
  972. coroutine.resume(coroutine.create(function()
  973. wait() wait() wait() wait()
  974. vel.Parent=nil
  975. end))
  976. for i = 0.1 , 1 , 0.1 do
  977. wait()
  978. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  979. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  980. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20+200*i), 0, math.rad(0))
  981. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  982. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  983. RWL.C1 = CFrame.new(0.5, 1, 0)
  984. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10*i), 0, math.rad(0))
  985. LWL.C1 = CFrame.new(-0.5, 1, 0)
  986. end
  987. wait(1)
  988. for i = 0.1 , 1 , 0.1 do
  989. wait()
  990. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  991. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  992. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(180-200*i), 0, math.rad(0))
  993. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  994. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  995. RWL.C1 = CFrame.new(0.5, 1, 0)
  996. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-10+10*i), 0, math.rad(0))
  997. LWL.C1 = CFrame.new(-0.5, 1, 0)
  998. end
  999. jumping = false
  1000. end
  1001.  
  1002. function onehit()
  1003. attack = true
  1004. for i = 0,1,0.1 do
  1005. wait()
  1006. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1007. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1008. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2*i,0,1*i)
  1009. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1*i,0)
  1010. end
  1011. dmg1cnnct()
  1012. for i = 0,1,0.2 do
  1013. wait()
  1014. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1015. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1016. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1017. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(2-1*i,0,1-2*i)
  1018. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1,0)
  1019. end
  1020. dmg1dc()
  1021. attack = false
  1022. combo = 1
  1023. end
  1024.  
  1025. function twohit()
  1026. attack = true
  1027. for i = 0,1,0.1 do
  1028. wait()
  1029. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1030. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1031. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1032. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(2-1+1.5*i,0,1-2+1*i)
  1033. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1-1*i,0)
  1034. end
  1035. dmg1cnnct()
  1036. for i = 0,1,0.2 do
  1037. wait()
  1038. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1039. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1040. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1041. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(2-1+1.5-2*i,0,0)
  1042. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1043. end
  1044. dmg1dc()
  1045. attack = false
  1046. combo = 2
  1047. end
  1048.  
  1049. function threehit()
  1050. attack = true
  1051. for i = 0,1,0.1 do
  1052. wait()
  1053. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1054. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1055. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1056. RW.C0 = CFrame.new(1.5-0.5*i,0.5+0.4*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07*i,0,-1.57*i)
  1057. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57*i,0)
  1058. end
  1059. dmg1cnnct()
  1060. for i = 0,1,0.2 do
  1061. wait()
  1062. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1063. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1064. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1065. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5+0.4-0.4*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5+1.07,0,-1.57+3.14*i)
  1066. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57,0)
  1067. end
  1068. dmg1dc()
  1069. attack = false
  1070. combo = 3
  1071. end
  1072.  
  1073. function fourhit()
  1074. attack = true
  1075. dmg1cnnct()
  1076. for i = 0,1,0.2 do
  1077. wait()
  1078. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90),0,0) * CFrame.new(0,1,0)
  1079. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,-0.5*i)
  1080. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1081. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57-1.2*i)
  1082. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,-1.57+1.57*i,0)
  1083. end
  1084. wait(0.1)
  1085. dmg1dc()
  1086. attack = false
  1087. combo = 4
  1088. end
  1089.  
  1090. function fivehit()
  1091. attack = true
  1092. for i = 0,1,0.1 do
  1093. wait()
  1094. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1095. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07*i,0,-0.5+1.5*i)
  1096. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57*i,0)
  1097. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-2.07*i,0,0.37-0.37*i)
  1098. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1099. end
  1100. dmg2cnnct()
  1101. for i = 0,1,0.2 do
  1102. wait()
  1103. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90)+math.rad(90)-math.rad(90),0,0) * CFrame.new(0,1,0)
  1104. LW.C0 = CFrame.new(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(-0.5+2.07,0,1-2.57*i)
  1105. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,1.57,0)
  1106. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  1107. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1108. end
  1109. wait(0.2)
  1110. dmg2dc()
  1111. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1112. attack = false
  1113. combo = 0
  1114. end
  1115.  
  1116. function WindCharge()
  1117. attack = true
  1118. for i = 0,1,0.1 do
  1119. wait()
  1120. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1121. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1122. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1123. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3*i,0,1*i)
  1124. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1125. end
  1126. dmg1cnnct()
  1127. lightning = true
  1128. coroutine.resume(coroutine.create(function()
  1129. Stun2(prt4,10,25,10)
  1130. --Stun2(prt4,10,25,10)
  1131. end))
  1132. for i = 0,1,0.2 do
  1133. wait()
  1134. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1135. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,-0.5*i)
  1136. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1137. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(3-1.43*i,0,1-0.5*i)
  1138. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1139. end
  1140. wait()
  1141. local vel = Instance.new("BodyVelocity")
  1142. vel.Parent = Character.Torso
  1143. vel.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  1144. vel.velocity = Character.Head.CFrame.lookVector * 100
  1145. wait(0.5)
  1146. vel.Parent = nil
  1147. lightning = false
  1148. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1149. dmg1dc()
  1150. attack = false
  1151. end
  1152.  
  1153. function Stab()
  1154. attack = true
  1155. dmg1cnnct()
  1156. for i = 0,1,0.2 do
  1157. wait()
  1158. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1159. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2*i,0,-0.2*i)
  1160. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1161. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,0.5*i)
  1162. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1163. end
  1164. wait(0.1)
  1165. dmg1dc()
  1166. for i = 0,1,0.2 do
  1167. wait()
  1168. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)-math.rad(90)*i,0,0) * CFrame.new(0,1,0)
  1169. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.2+0.2*i,0,-0.2+0.2*i)
  1170. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1171. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.57*i,0,0.5-0.5*i)
  1172. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1173. end
  1174. attack = false
  1175. end
  1176.  
  1177. local gairo = Instance.new("BodyGyro")
  1178. gairo.Parent = nil
  1179. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  1180. gairo.P = 20e+003
  1181.  
  1182. function WindKatanaWheelSpin()
  1183. attack = true
  1184. for i = 0,1,0.1 do
  1185. wait()
  1186. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0)
  1187. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90)*i,math.rad(90)*i,0) * CFrame.new(0,1,0)
  1188. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,-1.57*i)
  1189. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1190. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57*i,0,1.57*i)
  1191. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1192. end
  1193. lightning = true
  1194. coroutine.resume(coroutine.create(function()
  1195. Stun2(prt6,1,1,1)
  1196. end))
  1197. dmg1cnnct()
  1198. dmg2cnnct()
  1199. cf = Head.CFrame
  1200. gairo.Parent = Head
  1201. gairo.cframe = Head.CFrame * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
  1202. for i = 0,1,0.03 do
  1203. wait()
  1204. gairo.cframe = gairo.cframe * CFrame.fromEulerAnglesXYZ(0,0.8,0)
  1205. end
  1206. gairo.cframe = cf
  1207. dmg1dc()
  1208. dmg2dc()
  1209. lightning = false
  1210. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+math.rad(90),math.rad(90),0) * CFrame.new(0,1,0)
  1211. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)-math.rad(90),math.rad(90),0) * CFrame.new(0,1,0)
  1212. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57-0.5)
  1213. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1214. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57,0,1.57+0.5)
  1215. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1216. wait(3)
  1217. gairo.Parent = nil
  1218. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1219. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90),0,0) * CFrame.new(0,1,0)
  1220. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1221. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1222. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1223. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1224. attack = false
  1225. end
  1226.  
  1227. function SlashShockwave()
  1228. attack = true
  1229. for i = 0,1,0.1 do
  1230. wait()
  1231. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57*i,0,0) * CFrame.new(0,1,0)
  1232. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  1233. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1234. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5*i,0,0)
  1235. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1236. end
  1237. wait(0.1)
  1238. local slash = Instance.new("Part")
  1239. slash.Parent = swordholder
  1240. slash.Position = Torso.Position
  1241. slash.Anchored = true
  1242. slash.Transparency = 0.2
  1243. slash.CanCollide = false
  1244. slash.Size = Vector3.new(1,1,1)
  1245. slash.BrickColor = BrickColor.new("White")
  1246. slash.CFrame = Torso.CFrame * CFrame.new(1.5,-3,-4)
  1247. local testbrick = Instance.new("Part")
  1248. testbrick.Parent = swordholder
  1249. testbrick.Anchored = true
  1250. testbrick.Transparency = 1
  1251. testbrick.CFrame = Torso.CFrame * CFrame.new(1.5,0,-4)
  1252. coroutine.resume(coroutine.create(function()
  1253. wait(0.1)
  1254. local c = game.Workspace:GetChildren()
  1255. for i = 1, #c do
  1256. local hum = c[i]:findFirstChild("Humanoid")
  1257. if hum ~= nil and hum.Health ~= 0 then
  1258. local head = c[i]:findFirstChild("Head")
  1259. if head ~= nil then
  1260. local targ = head.Position - testbrick.Position
  1261. local mag = targ.magnitude
  1262. if mag <= 3 and c[i].Name ~= Character.Name then
  1263. coroutine.resume(coroutine.create(function(Part,BodPos)
  1264. Part.Parent.Humanoid.Health=Part.Parent.Humanoid.Health-20
  1265. coroutine.resume(coroutine.create(function()
  1266. wait(0.5)
  1267. bodyVelocity:Remove()
  1268. end))
  1269. coroutine.resume(coroutine.create(function()
  1270. wait(1)
  1271. Gyro:Remove()
  1272. end))
  1273. end),head,fb)
  1274. end
  1275. end
  1276. end
  1277. end
  1278. testbrick.Parent = nil
  1279. end))
  1280. local lolmesh = Instance.new("SpecialMesh")
  1281. lolmesh.Parent = slash
  1282. lolmesh.Scale = Vector3.new(0.6,1,0.6)
  1283. lolmesh.MeshType = "Sphere"
  1284. coroutine.resume(coroutine.create(function(Part,Mesh)
  1285. for i = 0, 1, 0.2 do
  1286. wait(0)
  1287. Mesh.Scale = Mesh.Scale + Vector3.new(0,0.7,0)
  1288. end
  1289. wait(0.5)
  1290. for i = 0,1,0.1 do
  1291. wait()
  1292. Part.Transparency = Part.Transparency + 0.1
  1293. end
  1294. Part.Parent = nil
  1295. end),slash,lolmesh)
  1296. coroutine.resume(coroutine.create(function()
  1297. CF = -4
  1298. scale = 0.6
  1299. scale2 = 0.7
  1300. for i = 0,10 do
  1301. wait(0.1)
  1302. CF = CF * 1.2
  1303. scale = scale + 0.1
  1304. scale2 = scale2 + 0.2
  1305. local slash = Instance.new("Part")
  1306. slash.Parent = swordholder
  1307. slash.Position = Torso.Position
  1308. slash.Anchored = true
  1309. slash.Transparency = 0.2
  1310. slash.CanCollide = false
  1311. slash.Size = Vector3.new(1,1,1)
  1312. slash.BrickColor = BrickColor.new("White")
  1313. slash.CFrame = Torso.CFrame * CFrame.new(1+math.random(),-3,CF)
  1314. local testbrick = Instance.new("Part")
  1315. testbrick.Parent = swordholder
  1316. testbrick.Anchored = true
  1317. testbrick.Transparency = 1
  1318. testbrick.CFrame = Torso.CFrame * CFrame.new(1+math.random(),0,CF)
  1319. coroutine.resume(coroutine.create(function()
  1320. wait(0.1)
  1321. local c = game.Workspace:GetChildren()
  1322. for i = 1, #c do
  1323. local hum = c[i]:findFirstChild("Humanoid")
  1324. if hum ~= nil and hum.Health ~= 0 then
  1325. local head = c[i]:findFirstChild("Head")
  1326. if head ~= nil then
  1327. local targ = head.Position - testbrick.Position
  1328. local mag = targ.magnitude
  1329. if mag <= 3 and c[i].Name ~= Character.Name then
  1330. coroutine.resume(coroutine.create(function(Part,BodPos)
  1331. Part.Parent.Humanoid.Health=Part.Parent.Humanoid.Health-20
  1332. coroutine.resume(coroutine.create(function()
  1333. wait(0.5)
  1334. bodyVelocity:Remove()
  1335. end))
  1336. coroutine.resume(coroutine.create(function()
  1337. wait(1)
  1338. Gyro:Remove()
  1339. end))
  1340. end),head,fb)
  1341. end
  1342. end
  1343. end
  1344. end
  1345. testbrick.Parent = nil
  1346. end))
  1347. local lolmesh = Instance.new("SpecialMesh")
  1348. lolmesh.Parent = slash
  1349. lolmesh.Scale = Vector3.new(scale,1,scale)
  1350. lolmesh.MeshType = "Sphere"
  1351. coroutine.resume(coroutine.create(function(Part,Mesh)
  1352. Part.CFrame = Part.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1353. for i = 0, 1, 0.2 do
  1354. wait(0)
  1355. Mesh.Scale = Mesh.Scale + Vector3.new(0,scale2,0)
  1356. end
  1357. wait(0.5)
  1358. for i = 0,1,0.1 do
  1359. wait()
  1360. Part.Transparency = Part.Transparency + 0.1
  1361. end
  1362. Part.Parent = nil
  1363. end),slash,lolmesh)
  1364. end
  1365. end))
  1366. for i = 0,1,0.2 do
  1367. wait()
  1368. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90)+1.57-1.57*i,0,0) * CFrame.new(0,1,0)
  1369. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+1*i,0,0)
  1370. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1371. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0.5+2*i,0,0)
  1372. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1373. end
  1374. attack = false
  1375. end
  1376.  
  1377. function returnwelds()
  1378. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1379. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1380. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  1381. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1382. end
  1383.  
  1384. Stun2=function(Feh,x,y,z)
  1385. coroutine.resume(coroutine.create(function(part)
  1386. --[[ if part.Parent:FindFirstChild("Torso")==nil then
  1387. return
  1388. end]]
  1389. Torsoh2=part
  1390. End2=Torsoh2.CFrame+Vector3.new(math.random(-20,20)/10,math.random(-30,30)/10,math.random(-20,20)/10)
  1391. ST2=Torsoh2.Position
  1392. --[[ p=Instance.new("BodyPosition")
  1393. p.P=3000
  1394. p.D=100
  1395. p.maxForce=Vector3.new(math.huge,0,math.huge)
  1396. p.position=Torsoh2.Position
  1397. p.Parent=Torsoh2]]
  1398. while part.Parent ~= nil and lightning == true do
  1399. -- f1:Play()
  1400. -- p.position=ST2+Vector3.new(math.random(-50,50)/50,0,math.random(-50,50)/50)
  1401. Start2=End2
  1402. End2=Torsoh2.CFrame*CFrame.new(math.random(-x,x)/10,math.random(-y,y)/10,math.random(-z,z)/10)
  1403. e=Instance.new("Part")
  1404. e.TopSurface=0
  1405. e.BottomSurface=0
  1406. e.CanCollide=false
  1407. e.Anchored=true
  1408. e.formFactor="Symmetric"
  1409. e.Size=Vector3.new(1,1,1)
  1410. Look2=(End2.p-Start2.p).unit
  1411. m=Instance.new("BlockMesh")
  1412. m.Scale=Vector3.new(.2,.2,(Start2.p-End2.p).magnitude)
  1413. m.Parent=e
  1414. e.CFrame=CFrame.new(Start2.p+Look2*(m.Scale.z/2),Start2.p+Look2*99)
  1415. e.Reflectance=.3
  1416. e.Name="Zap"
  1417. e.BrickColor=BrickColor.new("White")
  1418. e.Parent=part.Parent
  1419. coroutine.resume(coroutine.create(function(PAR) for i=1, 25 do PAR.Transparency=i/25 wait() end PAR.Parent=nil end),e)
  1420. wait()
  1421. end
  1422. wait(.25)
  1423. -- p.Parent=nil
  1424. end),Feh)
  1425. end
  1426.  
  1427. function Attackk(mag)
  1428. if attack then return end
  1429. if mag <= 6 then
  1430. local rndm = math.random(1,2)
  1431. if rndm == 1 then
  1432. coroutine.resume(coroutine.create(function()
  1433. if combo == 0 then
  1434. onehit()
  1435. elseif combo == 1 then
  1436. twohit()
  1437. elseif combo == 2 then
  1438. threehit()
  1439. elseif combo == 3 then
  1440. fourhit()
  1441. elseif combo == 4 then
  1442. fivehit()
  1443. end
  1444. end))
  1445. elseif rndm == 2 and combo == 0 then
  1446. coroutine.resume(coroutine.create(function()
  1447. Stab()
  1448. end))
  1449. end
  1450. elseif mag > 10 then
  1451. local rndm = math.random(1,3)
  1452. if rndm == 1 then
  1453. coroutine.resume(coroutine.create(function()
  1454. WindKatanaWheelSpin()
  1455. end))
  1456. elseif rndm == 2 then
  1457. coroutine.resume(coroutine.create(function()
  1458. WindCharge()
  1459. end))
  1460. elseif rndm == 3 then
  1461. coroutine.resume(coroutine.create(function()
  1462. SlashShockwave()
  1463. end))
  1464. end
  1465. end
  1466. end
  1467.  
  1468. local BG = Instance.new("BodyGyro",Torso)
  1469. BG.cframe = Torso.CFrame
  1470. BG.maxTorque = Vector3.new(0, math.huge,0)
  1471. BGSpin = 0
  1472.  
  1473. function FindTarget()
  1474. local c = game.Workspace:GetChildren();
  1475. local nearestmag = 1500
  1476. local nearestprsn = nil
  1477. for i = 1, #c do
  1478. local hum = c[i]:findFirstChild("Humanoid")
  1479. if hum ~= nil and hum.Health ~= 0 then
  1480. local head = c[i]:findFirstChild("Head");
  1481. if head ~= nil then
  1482. local mag = (head.Position - Torso.Position).magnitude;
  1483. if mag <= 1500 and c[i].Name ~= Character.Name then
  1484. if mag < nearestmag then
  1485. nearestmag = mag
  1486. nearestprsn = c[i]
  1487. end
  1488. end
  1489. end
  1490. end
  1491. end
  1492. Target = nearestprsn
  1493. end
  1494.  
  1495.  
  1496.  
  1497.  
  1498. local Humanoid = Instance.new("Humanoid",bodyholder)
  1499. Humanoid.MaxHealth = HP
  1500.  
  1501. equipanim()
  1502. wait(1)
  1503. bodyholder:MakeJoints()
  1504. Humanoid.Health = HP
  1505. Humanoid.WalkSpeed = WS
  1506. wait(1)
  1507. bodyholder.Torso.CFrame = CFrame.new(SpawnPos.Value)
  1508. Humanoid.Health = HP
  1509. script.Parent = Character
  1510.  
  1511.  
  1512.  
  1513. repeat
  1514. wait(0.1)
  1515. FindTarget()
  1516. if Target ~= nil then
  1517. BG.cframe = CFrame.new(Torso.Position,Target.Torso.Position) * CFrame.Angles(0,math.rad(BGSpin),0)
  1518. local mag = (Torso.Position-Target.Torso.Position).magnitude
  1519. if mag <= 40 then
  1520. Attackk(mag)
  1521. end
  1522. --
  1523. pcall(function()
  1524. Humanoid:MoveTo(Target.Torso.Position + CFrame.new(Torso.Position,Target.Torso.Position).lookVector * -1,Target.Torso)
  1525. end)
  1526. if Target.Torso.Position.y > Torso.Position.y+5 then
  1527. coroutine.resume(coroutine.create(Jump))
  1528. end
  1529. --
  1530. else
  1531. BG.cframe = Torso.cframe
  1532. Humanoid:MoveTo(Torso.Position,Torso)
  1533. end
  1534. if true then
  1535. if (Torso.Velocity * Vector3.new(1,0,1)).magnitude > 2 then
  1536. coroutine.resume(coroutine.create(Walk))
  1537. walking = true
  1538. elseif (Torso.Velocity * Vector3.new(1,0,1)).magnitude < 2 then
  1539. walking = false
  1540. end
  1541. else
  1542. walking = false
  1543. end
  1544. until Humanoid.Health <= 0
  1545.  
  1546. wait(5)
  1547. Character.Parent = nil
  1548.  
  1549. --mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement