Advertisement
UltimateGate

Guardian [MINIBOSS] From Black Magic (Discontinued)

Aug 8th, 2017
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.80 KB | None | 0 0
  1. --[[
  2. Guardian MiniBoss ]]
  3.  
  4. ModelName = "Guardian"
  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 = 5
  15. maxdamage = 15
  16. crtmaxdamage = 20
  17. omindamage = mindamage
  18. omaxdamage = maxdamage
  19. ocrtmaxdamage = crtmaxdamage
  20. combo = 0
  21. omindamage = mindamage
  22. omaxdamage = maxdamage
  23. ocrtmaxdamage = crtmaxdamage
  24. bonusdmg = 20
  25. crtrate = 100/5
  26. HP = 1000
  27. WS = 16
  28. jump = 50
  29. --100%/critpercentage
  30.  
  31. oblkbrkr = 3
  32. blockbreaker = oblkbrkr
  33.  
  34.  
  35. handlecolor = BrickColor.new("Black")
  36. bcolor = BrickColor.new("White")
  37. gemcolor = BrickColor.new("Black")
  38.  
  39.  
  40.  
  41. -------------------------------------------------------------------------------------------------------------------------------------
  42.  
  43.  
  44.  
  45.  
  46.  
  47. if game.Workspace:findFirstChild(ModelName,true) ~= nil then
  48. game.Workspace:findFirstChild(ModelName,true).Parent = nil
  49. end
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. local bodyholder = Instance.new("Model")
  57. bodyholder.Name = ModelName
  58. bodyholder.Parent = game.Workspace
  59. Character = bodyholder
  60.  
  61. ev = Instance.new("BoolValue",bodyholder)
  62. ev.Name = "EquippedVal"
  63. ev.Value = false
  64. blk = Instance.new("BoolValue",bodyholder)
  65. blk.Name = "Block"
  66. blk.Value = false
  67. blkc = Instance.new("IntValue",blk)
  68. blkc.Name = "BlockPower"
  69. blkc.Value = blockpower
  70. SpawnPos = Instance.new("Vector3Value",script)
  71. SpawnPos.Name = "SpawnPos"
  72. SpawnPos.Value = game.Workspace[name].Head.Position--Vector3.new(20,10,0)
  73.  
  74. local Head = Instance.new("Part")
  75. Head.formFactor = 3
  76. Head.CanCollide = true
  77. Head.Name = "Head"
  78. Head.Locked = true
  79. Head.Size = Vector3.new(2,1,1)
  80. Head.Parent = bodyholder
  81. Head.BrickColor = BrickColor.new("Bright yellow")
  82. local smh = Instance.new("SpecialMesh",Head)
  83. smh.Scale = Vector3.new(1.25,1.25,1.25)
  84. local Torso = Instance.new("Part")
  85. Torso.formFactor = 3
  86. Torso.CanCollide = true
  87. Torso.Name = "Torso"
  88. Torso.Locked = true
  89. Torso.Size = Vector3.new(2,2,1)
  90. Torso.Parent = bodyholder
  91. Torso.BrickColor = BrickColor.new("Black")
  92. Torso.Reflectance = 0.1
  93. Torso.CFrame = CFrame.new(SpawnPos.Value)
  94. local RightArm = Instance.new("Part")
  95. RightArm.formFactor = 3
  96. RightArm.CanCollide = true
  97. RightArm.Name = "Right Arm"
  98. RightArm.Locked = true
  99. RightArm.Size = Vector3.new(1,2,1)
  100. RightArm.Parent = bodyholder
  101. RightArm.BrickColor = BrickColor.new("Black")
  102. local LeftArm = Instance.new("Part")
  103. LeftArm.formFactor = 3
  104. LeftArm.CanCollide = true
  105. LeftArm.Name = "Left Arm"
  106. LeftArm.Locked = true
  107. LeftArm.Size = Vector3.new(1,2,1)
  108. LeftArm.Parent = bodyholder
  109. LeftArm.BrickColor = BrickColor.new("Black")
  110. local RightLeg = Instance.new("Part")
  111. RightLeg.formFactor = 3
  112. RightLeg.CanCollide = true
  113. RightLeg.Name = "Right Leg"
  114. RightLeg.Locked = true
  115. RightLeg.Size = Vector3.new(1,2,1)
  116. RightLeg.Parent = bodyholder
  117. RightLeg.BrickColor = BrickColor.new("Black")
  118. local LeftLeg = Instance.new("Part")
  119. LeftLeg.formFactor = 3
  120. LeftLeg.CanCollide = true
  121. LeftLeg.Name = "Left Leg"
  122. LeftLeg.Locked = true
  123. LeftLeg.Size = Vector3.new(1,2,1)
  124. LeftLeg.Parent = bodyholder
  125. LeftLeg.BrickColor = BrickColor.new("Black")
  126.  
  127. local hair = Instance.new("Part")
  128. hair.formFactor = "Custom"
  129. hair.CanCollide = false
  130. hair.Locked = true
  131. hair.Size = Vector3.new(1.42,1.55,1.59)
  132. hair.Parent = bodyholder
  133. local hm = Instance.new("SpecialMesh")
  134. hm.Parent = hair
  135. hm.MeshType = "FileMesh"
  136. hm.MeshId = "http://www.roblox.com/asset/?id=101742035"
  137. hm.TextureId = "http://www.roblox.com/asset/?id=101740615"
  138. hm.Scale = Vector3.new(2, 2, 2)
  139. local wh = Instance.new("Weld")
  140. wh.Parent = hair
  141. wh.Part0 = hair
  142. wh.Part1 = Head
  143. wh.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, -0.25, -0.115)
  144. wh.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  145.  
  146. local LAmsh = Instance.new("CharacterMesh")
  147. LAmsh.MeshId = "101731090"
  148. LAmsh.OverlayTextureId = "101727937"
  149. LAmsh.BodyPart = "LeftArm"
  150. LAmsh.Parent = bodyholder
  151.  
  152. local LLmsh = Instance.new("CharacterMesh")
  153. LLmsh.MeshId = "101730942"
  154. LLmsh.OverlayTextureId = "101727937"
  155. LLmsh.BodyPart = "LeftLeg"
  156. LLmsh.Parent = bodyholder
  157.  
  158. local RAmsh = Instance.new("CharacterMesh")
  159. RAmsh.MeshId = "101730738"
  160. RAmsh.OverlayTextureId = "101727937"
  161. RAmsh.BodyPart = "RightArm"
  162. RAmsh.Parent = bodyholder
  163.  
  164. local RLmsh = Instance.new("CharacterMesh")
  165. RLmsh.MeshId = "101730623"
  166. RLmsh.OverlayTextureId = "101727937"
  167. RLmsh.BodyPart = "RightLeg"
  168. RLmsh.Parent = bodyholder
  169.  
  170. local Tmsh = Instance.new("CharacterMesh")
  171. Tmsh.MeshId = "101737660"
  172. Tmsh.OverlayTextureId = "101727937"
  173. Tmsh.BodyPart = "Torso"
  174. Tmsh.Parent = bodyholder
  175.  
  176. --player
  177. player = nil
  178. --welds
  179. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  180. --what anim
  181. anim = "none"
  182. --save shoulders
  183. AoETrue = {}
  184. Neck = Instance.new("Motor")
  185.  
  186.  
  187.  
  188.  
  189. --derp
  190. RW.Part0 = Character.Torso
  191. RW.Part1 = Character["Right Arm"]
  192. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  193. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  194. RW.Parent = bodyholder
  195. --
  196. LW.Part0 = Character.Torso
  197. LW.Part1 = Character["Left Arm"]
  198. LW.C0 = CFrame.new(-1.5, 0.5, 0)
  199. LW.C1 = CFrame.new(0, 0.5, 0)
  200. LW.Parent = bodyholder
  201. --
  202. RWL.Part0 = Character.Torso
  203. RWL.Part1 = Character["Right Leg"]
  204. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  205. RWL.C1 = CFrame.new(0.5, 1, 0)
  206. RWL.Parent = bodyholder
  207. --
  208. LWL.Part0 = Character.Torso
  209. LWL.Part1 = Character["Left Leg"]
  210. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  211. LWL.C1 = CFrame.new(-0.5, 1, 0)
  212. LWL.Parent = bodyholder
  213. --
  214. Neck.Part0 = Character.Torso
  215. Neck.Part1 = Character.Head
  216. Neck.C0 = CFrame.new(0, 1, 0) * CFrame.Angles(0, 0, 0)
  217. Neck.C1 = CFrame.new(0, -0.5, 0)
  218. Neck.Parent = bodyholder
  219.  
  220. ----
  221.  
  222. --
  223.  
  224. RAP = Instance.new("Part")
  225. RAP.formFactor = 0
  226. RAP.CanCollide = false
  227. RAP.Name = "RAPart"
  228. RAP.Locked = true
  229. RAP.Size = Vector3.new(1,1,1)
  230. RAP.Parent = bodyholder
  231. RAP.Transparency = 1
  232. w = Instance.new("Weld")
  233. w.Parent = RAP
  234. w.Part0 = RAP
  235. w.Part1 = RightArm
  236. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  237. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  238. LAP = Instance.new("Part")
  239. LAP.formFactor = 0
  240. LAP.CanCollide = false
  241. LAP.Name = "LAPart"
  242. LAP.Locked = true
  243. LAP.Size = Vector3.new(1,1,1)
  244. LAP.Parent = bodyholder
  245. LAP.Transparency = 1
  246. wl = Instance.new("Weld")
  247. wl.Parent = LAP
  248. wl.Part0 = LAP
  249. wl.Part1 = LeftArm
  250. wl.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  251. wl.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 2, 0)
  252.  
  253. handlecolor = BrickColor.new("Pastel light blue")
  254. bcolor = BrickColor.new("Pastel Blue")
  255. gemcolor = BrickColor.new("Bright blue")
  256.  
  257. swordholder = Instance.new("Model")
  258. swordholder.Name = "Weapon"
  259. swordholder.Parent = bodyholder
  260.  
  261. local msh1 = Instance.new("CylinderMesh")
  262. msh1.Scale = Vector3.new(1,1,1)
  263. local msh2 = Instance.new("CylinderMesh")
  264. msh2.Scale = Vector3.new(1.1,1,1.1)
  265. local msh3 = Instance.new("CylinderMesh")
  266. msh3.Scale = Vector3.new(0.5,1.075,0.5)
  267. local msh4 = Instance.new("SpecialMesh")
  268. msh4.Scale = Vector3.new(0.35,0.85,0.35)
  269. msh4.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  270. local msh5 = Instance.new("SpecialMesh")
  271. msh5.Scale = Vector3.new(0.35,0.85,0.35)
  272. msh5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  273. local msh6 = Instance.new("SpecialMesh")
  274. msh6.Scale = Vector3.new(0.35,1.5,0.35)
  275. msh6.MeshId = "http://www.roblox.com/asset/?id=1051557"
  276. local msh7 = Instance.new("SpecialMesh")
  277. msh7.Scale = Vector3.new(0.35,1.5,0.35)
  278. msh7.MeshId = "http://www.roblox.com/asset/?id=1051557"
  279. local msh8 = Instance.new("SpecialMesh")
  280. msh8.Scale = Vector3.new(0.2,0.3,0.2)
  281. msh8.MeshId = "http://www.roblox.com/asset/?id=20329976"
  282. local msh9 = Instance.new("SpecialMesh")
  283. msh9.Scale = Vector3.new(0.2,0.3,0.2)
  284. msh9.MeshId = "http://www.roblox.com/asset/?id=20329976"
  285. local msh10 = Instance.new("CylinderMesh")
  286. msh10.Scale = Vector3.new(1,0.1,1)
  287. local msh11 = Instance.new("CylinderMesh")
  288. msh11.Scale = Vector3.new(1,0.1,1)
  289.  
  290. local prt1 = Instance.new("Part")
  291. prt1.formFactor = 3
  292. prt1.CanCollide = false
  293. prt1.Name = "Handle"
  294. prt1.Locked = true
  295. prt1.Size = Vector3.new(0.2,6.5,0.2)
  296. prt1.Parent = swordholder
  297. msh1.Parent = prt1
  298. prt1.BrickColor = handlecolor
  299. local prt2 = Instance.new("Part")
  300. prt2.formFactor = 3
  301. prt2.CanCollide = false
  302. prt2.Name = "Handle2"
  303. prt2.Locked = true
  304. prt2.Size = Vector3.new(0.2,1,0.2)
  305. prt2.Parent = swordholder
  306. msh2.Parent = prt2
  307. prt2.BrickColor = bcolor
  308. local prt3 = Instance.new("Part")
  309. prt3.formFactor = 3
  310. prt3.CanCollide = false
  311. prt3.Name = "HandleDesign1"
  312. prt3.Locked = true
  313. prt3.Size = Vector3.new(0.2,0.2,0.2)
  314. prt3.Parent = swordholder
  315. msh3.Parent = prt3
  316. prt3.BrickColor = handlecolor
  317. local prt3a = prt3:clone()
  318. prt3a.Parent = swordholder
  319. local prt4 = Instance.new("Part")
  320. prt4.formFactor = 3
  321. prt4.CanCollide = false
  322. prt4.Name = "Tip1"
  323. prt4.Locked = true
  324. prt4.Size = Vector3.new(0.2,msh4.Scale.Y,0.2)
  325. prt4.Parent = swordholder
  326. prt4.Reflectance = 0.25
  327. msh4.Parent = prt4
  328. prt4.BrickColor = handlecolor
  329. local prt5 = Instance.new("Part")
  330. prt5.formFactor = 3
  331. prt5.CanCollide = false
  332. prt5.Name = "Tip2"
  333. prt5.Locked = true
  334. prt5.Size = Vector3.new(0.2,msh5.Scale.Y,0.2)
  335. prt5.Parent = swordholder
  336. prt5.Reflectance = 0.25
  337. msh5.Parent = prt5
  338. prt5.BrickColor = handlecolor
  339. local prt6 = Instance.new("Part")
  340. prt6.formFactor = 3
  341. prt6.CanCollide = false
  342. prt6.Name = "TipDesign1"
  343. prt6.Locked = true
  344. prt6.Size = Vector3.new(0.2,0.2,0.2)
  345. prt6.Parent = swordholder
  346. prt6.Transparency = 0.2
  347. msh6.Parent = prt6
  348. prt6.BrickColor = bcolor
  349. local prt7 = Instance.new("Part")
  350. prt7.formFactor = 3
  351. prt7.CanCollide = false
  352. prt7.Name = "TipDesign2"
  353. prt7.Locked = true
  354. prt7.Size = Vector3.new(0.2,0.2,0.2)
  355. prt7.Parent = swordholder
  356. prt7.Transparency = 0.2
  357. msh7.Parent = prt7
  358. prt7.BrickColor = bcolor
  359. local prt8 = Instance.new("Part")
  360. prt8.formFactor = 3
  361. prt8.CanCollide = false
  362. prt8.Name = "TipDesign3"
  363. prt8.Locked = true
  364. prt8.Size = Vector3.new(0.2,0.2,0.2)
  365. prt8.Parent = swordholder
  366. msh8.Parent = prt8
  367. prt8.BrickColor = gemcolor
  368. local prt9 = Instance.new("Part")
  369. prt9.formFactor = 3
  370. prt9.CanCollide = false
  371. prt9.Name = "TipDesign4"
  372. prt9.Locked = true
  373. prt9.Size = Vector3.new(0.2,0.2,0.2)
  374. prt9.Parent = swordholder
  375. msh9.Parent = prt9
  376. prt9.BrickColor = gemcolor
  377. local prt10 = Instance.new("Part")
  378. prt10.formFactor = 3
  379. prt10.CanCollide = false
  380. prt10.Name = "TipDesign5"
  381. prt10.Locked = true
  382. prt10.Size = Vector3.new(0.3,0.2,0.3)
  383. prt10.Parent = swordholder
  384. msh10.Parent = prt10
  385. prt10.BrickColor = gemcolor
  386. local prt11 = Instance.new("Part")
  387. prt11.formFactor = 3
  388. prt11.CanCollide = false
  389. prt11.Name = "TipDesign6"
  390. prt11.Locked = true
  391. prt11.Size = Vector3.new(0.3,0.2,0.3)
  392. prt11.Parent = swordholder
  393. msh11.Parent = prt11
  394. prt11.BrickColor = gemcolor
  395.  
  396.  
  397. local w1 = Instance.new("Weld")
  398. w1.Parent = prt1
  399. w1.Part0 = prt1
  400. local w2 = Instance.new("Weld")
  401. w2.Parent = prt2
  402. w2.Part0 = prt2
  403. w2.Part1 = prt1
  404. w2.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  405. w2.C0 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  406. local w3 = Instance.new("Weld")
  407. w3.Parent = prt3
  408. w3.Part0 = prt3
  409. w3.Part1 = prt1
  410. w3.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  411. w3.C0 = CFrame.new(0, 0,0) * CFrame.Angles(math.rad(90), 0, 0)
  412. local w3a = Instance.new("Weld")
  413. w3a.Parent = prt3a
  414. w3a.Part0 = prt3a
  415. w3a.Part1 = prt1
  416. w3a.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  417. w3a.C0 = CFrame.new(0, 0,0) * CFrame.Angles(math.rad(90), math.rad(90), 0)
  418. local w4 = Instance.new("Weld")
  419. w4.Parent = prt4
  420. w4.Part0 = prt4
  421. w4.Part1 = prt1
  422. w4.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  423. w4.C0 = CFrame.new(0, 3.25,0) * CFrame.Angles(0, 0, 0)
  424. local w5 = Instance.new("Weld")
  425. w5.Parent = prt5
  426. w5.Part0 = prt5
  427. w5.Part1 = prt1
  428. w5.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  429. w5.C0 = CFrame.new(0, -3.25,0) * CFrame.Angles(0, 0, 0)
  430. local w6 = Instance.new("Weld")
  431. w6.Parent = prt6
  432. w6.Part0 = prt6
  433. w6.Part1 = prt1
  434. w6.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  435. w6.C0 = CFrame.new(0, 2.3 ,0) * CFrame.Angles(0, 0, 0)
  436. local w7 = Instance.new("Weld")
  437. w7.Parent = prt7
  438. w7.Part0 = prt7
  439. w7.Part1 = prt1
  440. w7.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  441. w7.C0 = CFrame.new(0, 2.3 ,0) * CFrame.Angles(math.rad(180), 0, 0)
  442. local w8 = Instance.new("Weld")
  443. w8.Parent = prt8
  444. w8.Part0 = prt8
  445. w8.Part1 = prt1
  446. w8.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  447. w8.C0 = CFrame.new(0, 2.8 ,0) * CFrame.Angles(0, 0, 0)
  448. local w9 = Instance.new("Weld")
  449. w9.Parent = prt9
  450. w9.Part0 = prt9
  451. w9.Part1 = prt1
  452. w9.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  453. w9.C0 = CFrame.new(0, 2.8 ,0) * CFrame.Angles(math.rad(180), 0, 0)
  454. local w10 = Instance.new("Weld")
  455. w10.Parent = prt10
  456. w10.Part0 = prt10
  457. w10.Part1 = prt1
  458. w10.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  459. w10.C0 = CFrame.new(0, 2.95 ,0) * CFrame.Angles(0, 0, 0)
  460. local w11 = Instance.new("Weld")
  461. w11.Parent = prt11
  462. w11.Part0 = prt11
  463. w11.Part1 = prt1
  464. w11.C1 = CFrame.new(0, 0,0) * CFrame.Angles(0, 0, 0)
  465. w11.C0 = CFrame.new(0, -2.95 ,0) * CFrame.Angles(0, 0, 0)
  466.  
  467. local RAP = Instance.new("Part")
  468. RAP.formFactor = 0
  469. RAP.CanCollide = false
  470. RAP.Name = "RAPart"
  471. RAP.Locked = true
  472. RAP.Size = Vector3.new(1,1,1)
  473. RAP.Parent = swordholder
  474. RAP.Transparency = 1
  475. local w = Instance.new("Weld")
  476. w.Parent = RAP
  477. w.Part0 = RAP
  478. w.Part1 = RightArm
  479. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  480. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  481.  
  482.  
  483.  
  484.  
  485. function unequipweld()
  486.  
  487. end
  488.  
  489. unequipweld()
  490.  
  491.  
  492.  
  493. function equipweld()
  494.  
  495.  
  496. end
  497.  
  498.  
  499. function ss(parent,p) --Slash
  500.  
  501. local SlashSound = Instance.new("Sound")
  502. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  503. SlashSound.Parent = parent
  504. SlashSound.Volume = .7
  505. SlashSound.Pitch = p
  506. SlashSound.PlayOnRemove = true
  507. coroutine.resume(coroutine.create(function()
  508. wait()
  509. SlashSound.Parent = nil
  510. end))
  511. end
  512. function uss(parent,p) --unsheath
  513.  
  514. local SlashSound = Instance.new("Sound")
  515. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  516. SlashSound.Parent = parent
  517. SlashSound.Volume = .7
  518. SlashSound.Pitch = p
  519. SlashSound.PlayOnRemove = true
  520. coroutine.resume(coroutine.create(function()
  521. wait()
  522. SlashSound.Parent = nil
  523. end))
  524. end
  525. function ms(parent,p) --Metal Cling Sound
  526.  
  527. local SlashSound = Instance.new("Sound")
  528. SlashSound.SoundId = "rbxasset://sounds\\metal.ogg"
  529. SlashSound.Parent = parent
  530. SlashSound.Volume = 1
  531. SlashSound.Pitch = p
  532. SlashSound.PlayOnRemove = true
  533. coroutine.resume(coroutine.create(function()
  534. wait()
  535. SlashSound.Parent = nil
  536. end))
  537. end
  538.  
  539. --
  540. --
  541.  
  542. function returndmg()
  543. mindamage = omindamage
  544. maxdamage = omaxdamage
  545. crtmaxdamage = ocrtmaxdamage
  546. end
  547.  
  548. function subdmg(sub)
  549. mindamage = omindamage - sub
  550. maxdamage = omaxdamage - sub
  551. crtmaxdamage = ocrtmaxdamage - sub
  552. end
  553.  
  554. function prcntdmg(sub)
  555. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  556. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  557. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  558. end
  559.  
  560. function tagHumanoid(humanoid, player)
  561. local creator_tag = Instance.new("ObjectValue")
  562. creator_tag.Value = player
  563. creator_tag.Name = "creator"
  564. creator_tag.Parent = humanoid
  565. end
  566.  
  567. function untagHumanoid(humanoid)
  568. if humanoid ~= nil then
  569. local tag = humanoid:findFirstChild("creator")
  570. if tag ~= nil then
  571. tag.Parent = nil
  572. end
  573. end
  574. end
  575.  
  576. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  577. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  578. end
  579.  
  580.  
  581.  
  582. function equipanim()
  583. attack = true
  584. for i = 0.1 , 1 , 0.1 do
  585. wait()
  586. w1.Part1 = RAP
  587. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  588. w1.C0 = CFrame.Angles(math.rad(-90+45), math.rad(0), math.rad(90-90))
  589. RW.C0 = CFrame.new(1.5-0.5, 0.5, -0.5) * CFrame.Angles(math.rad(180-90), 0, math.rad(-45))
  590. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  591. LW.C0 = CFrame.new(-1.5+0.5, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
  592. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  593. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  594. RWL.C1 = CFrame.new(0.5, 1, 0)
  595. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, math.rad(0))
  596. LWL.C1 = CFrame.new(-0.5, 1, 0)
  597. end
  598. attack = false
  599. end
  600.  
  601.  
  602. function damagesplat(dmg,hit,crit,blocked)
  603. local mo = Instance.new("Model")
  604. mo.Name = dmg
  605. local pa = Instance.new("Part",mo)
  606. pa.formFactor = 3
  607. pa.Size = Vector3.new(0.8,0.3,0.8)
  608. if crit then
  609. pa.BrickColor = BrickColor.new("Bright yellow")
  610. elseif not crit then
  611. pa.BrickColor = BrickColor.new("Bright red")
  612. end
  613. if blocked then pa.BrickColor = BrickColor.new("Bright blue") end
  614. pa.CFrame = CFrame.new(hit.Position) * CFrame.new(0, 3, 0)
  615. pa.Name = "Head"
  616. local hah = Instance.new("Humanoid")
  617. hah.Parent = mo
  618. hah.MaxHealth = 0
  619. hah.Health = 0
  620. local bp = Instance.new("BodyPosition")
  621. bp.P = 14000
  622. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  623. bp.position = hit.Position + Vector3.new(0, 5, 0)
  624. coroutine.resume(coroutine.create(function()
  625. wait()
  626. mo.Parent = Character
  627. bp.Parent = pa
  628. wait(1.4)
  629. mo:remove()
  630. end))
  631. return pa
  632. end
  633.  
  634. function damage(hum,dmg,critornot)
  635. local pa = damagesplat(dmg,hum.Torso,critornot)
  636. hum:TakeDamage(dmg)
  637. coroutine.resume(coroutine.create(function()
  638. tagHumanoid(hum,Player)
  639. wait(1)
  640. untagHumanoid(hum)
  641. end))
  642. return pa
  643.  
  644. end
  645.  
  646. function AddRage(add)
  647. Rage = Rage + add
  648. if Rage > MaxRage then
  649. Rage = MaxRage
  650. end
  651. end
  652.  
  653. function OT(hit) --Normal Damage
  654. if Hitdeb == 1 then return end
  655. if hit.Parent == nil then return end
  656. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  657. local critrandomizer = math.random(crtrate)
  658. if critrandomizer ~= 1 then
  659. local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg
  660. damage(hum,rndmdamage,false)
  661. elseif critrandomizer == 1 then
  662. local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg
  663. damage(hum,rndmdamage,true)
  664. end
  665. Hitdeb = 1
  666. end
  667. end
  668.  
  669. function OT2(hit) --Flip Damage
  670. if Hitdeb == 1 then return end
  671. if hit.Parent == nil then return end
  672. local hum = hit.Parent:findFirstChild("Humanoid") if hum ~= nil and hum ~= Character.Humanoid then
  673. local critrandomizer = math.random(crtrate)
  674. if critrandomizer ~= 1 then
  675. local rndmdamage = math.random(mindamage,maxdamage) + bonusdmg
  676. damage(hum,rndmdamage,false)
  677. hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.Angles(-0.5*math.random(),0,0)
  678. elseif critrandomizer == 1 then
  679. local rndmdamage = math.random(maxdamage,crtmaxdamage) + bonusdmg
  680. damage(hum,rndmdamage,true)
  681. hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.Angles(-0.5*math.random(),0,0)
  682. end
  683. Hitdeb = 1
  684. end
  685. end
  686.  
  687.  
  688. function AoE(p,magnitude)
  689. local c = game.Workspace:GetChildren();
  690. for i = 1, #c do
  691. local hum = c[i]:findFirstChild("Humanoid")
  692. if hum ~= nil and hum.Health ~= 0 then
  693. local head = c[i]:findFirstChild("Head");
  694. if head ~= nil then
  695. local mag = (head.Position - p).magnitude;
  696. if mag <= magnitude and c[i].Name ~= Character.Name then
  697. local foundd = false
  698. for ii = 1 , #AoETrue do
  699. if AoETrue[ii] == c[i].Name then
  700.  
  701. foundd = true
  702. end
  703. end
  704. if foundd then
  705.  
  706. end
  707. --
  708. if not foundd then
  709. local critrandomizer = math.random(crtrate)
  710. if critrandomizer ~= 1 then
  711. local rndmdamage = math.random(mindamage,maxdamage)
  712. damage(hum,rndmdamage,false)
  713. elseif critrandomizer == 1 then
  714. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  715. damage(hum,rndmdamage,true)
  716. end
  717. table.insert(AoETrue,c[i].Name)
  718. end
  719. end
  720. end
  721. end
  722. end
  723. for ii = 1 , #AoETrue do
  724. table.remove(AoETrue,#AoETrue)
  725. end
  726. end
  727.  
  728. --
  729.  
  730.  
  731. --
  732.  
  733. function effect(Color,Ref,LP,P1)
  734. local effectsmsh = Instance.new("BlockMesh")
  735. effectsmsh.Scale = Vector3.new(1,1,1)
  736. effectsmsh.Name = "Mesh"
  737. local effectsg = Instance.new("Part")
  738. effectsg.formFactor = 3
  739. effectsg.CanCollide = false
  740. effectsg.Name = "Eff"
  741. effectsg.Locked = true
  742. effectsg.Anchored = true
  743. effectsg.Size = Vector3.new(0.2,1,0.2)
  744. effectsg.Parent = bodyholder
  745. effectsmsh.Parent = effectsg
  746. effectsg.BrickColor = BrickColor.new(Color)
  747. effectsg.Reflectance = Ref
  748. local point1 = P1
  749. local mg = (LP.p - point1.p).magnitude
  750. effectsg.Size = Vector3.new(0.2,mg,0.2)
  751. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  752. coroutine.resume(coroutine.create(function()
  753. for i = 0 , 1 , 0.1 do
  754. wait()
  755. effectsg.Transparency = 1*i
  756. effectsmsh.Scale = Vector3.new(1-1*i,1,1-1*i)
  757. end
  758. wait()
  759. effectsg.Parent = nil
  760. end))
  761. end
  762. --
  763.  
  764.  
  765. con,con2,con3 = nil,nil,nil
  766. conn,conn2,conn3 = nil,nil,nil
  767.  
  768. function dmgcnnct()
  769. if con ~= nil then
  770. con:disconnect()
  771. Hitdeb = 0
  772. end
  773. con = prt1.Touched:connect(OT)
  774. end
  775.  
  776. function dmgdc()
  777. if con ~= nil then
  778. con:disconnect()
  779. Hitdeb = 0
  780. end
  781. end
  782.  
  783. function dmgflipcnnct()
  784. if con ~= nil then
  785. con:disconnect()
  786. Hitdeb = 0
  787. end
  788. con = prt1.Touched:connect(OT2)
  789. end
  790.  
  791. function rptddmg(value,des,inc)
  792. coroutine.resume(coroutine.create(function()
  793. repeat
  794. wait(inc)
  795. Hitdeb = 0
  796. until value == des
  797. end))
  798. end
  799.  
  800. function atktype(s,e)
  801. coroutine.resume(coroutine.create(function ()
  802. attacktype = e
  803. wait(0.25)
  804. attacktype = s
  805. end))
  806. end
  807.  
  808. walking = false
  809. jumping = false
  810. Target = nil
  811.  
  812. function Walk()
  813. if walking then return end
  814. for i = 0.1 , 1 , 0.1 do
  815. if jumping then return end
  816. wait()
  817. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  818. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  819. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5*i,0,0)
  820. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  821. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45*i), 0, math.rad(0))
  822. RWL.C1 = CFrame.new(0.5, 1, 0)
  823. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45*i), 0, math.rad(0))
  824. LWL.C1 = CFrame.new(-0.5, 1, 0)
  825. end
  826. repeat
  827. for i = 0.1 , 1 , 0.1 do
  828. if jumping then return end
  829. wait()
  830. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  831. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  832. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  833. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  834. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(0))
  835. RWL.C1 = CFrame.new(0.5, 1, 0)
  836. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(0))
  837. LWL.C1 = CFrame.new(-0.5, 1, 0)
  838. end
  839. for i = 0.1 , 1 , 0.1 do
  840. if jumping then return end
  841. wait()
  842. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  843. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  844. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5,0,0)
  845. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  846. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(0))
  847. RWL.C1 = CFrame.new(0.5, 1, 0)
  848. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(0))
  849. LWL.C1 = CFrame.new(-0.5, 1, 0)
  850. end
  851. until not walking or jumping
  852. for i = 0.1 , 1 , 0.1 do
  853. wait()
  854. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  855. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  856. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(-0.5+0.5*i,0,0)
  857. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  858. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(45-45*i), 0, math.rad(0))
  859. RWL.C1 = CFrame.new(0.5, 1, 0)
  860. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-45+45*i), 0, math.rad(0))
  861. LWL.C1 = CFrame.new(-0.5, 1, 0)
  862. end
  863. end
  864.  
  865. function prcntdmg(sub)
  866. mindamage = math.floor(omindamage - (omindamage*(sub/100)))
  867. maxdamage = math.floor(omaxdamage - (omaxdamage*(sub/100)))
  868. crtmaxdamage = math.floor(ocrtmaxdamage - (ocrtmaxdamage*(sub/100)))
  869. end
  870.  
  871. function returndmg()
  872. mindamage = omindamage
  873. maxdamage = omaxdamage
  874. crtmaxdamage = ocrtmaxdamage
  875. end
  876.  
  877. function Jump()
  878. if jumping then return end
  879. jumping = true
  880. attack=true
  881. local vel = Instance.new("BodyVelocity")
  882. vel.maxForce = Vector3.new(0,math.huge,0)
  883. vel.P = vel.P * 2
  884. vel.velocity = Vector3.new(0,80,0)
  885. vel.Parent = Torso
  886. wait(0.1)
  887. vel.Parent = nil
  888. local floor = false
  889. coroutine.resume(coroutine.create(function()
  890. repeat
  891. wait(0.05)
  892. hit,pos = rayCast(Torso.Position, (CFrame.new(Torso.Position,Torso.Position - Vector3.new(0,6,0))).lookVector, 6, Character)
  893. if hit ~= nil then
  894. floor = true
  895. end
  896. until floor
  897. end))
  898. local spinval = 0
  899. coroutine.resume(coroutine.create(function()
  900. for i = 0 , 1 , 0.1 do
  901. if floor then return end
  902. wait()
  903. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-45))
  904. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  905. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
  906. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  907. w1.C0 = CFrame.new(0,-1*i,0) * CFrame.Angles(math.rad(-45-90*i), 0, math.rad(-45*i))
  908. end
  909. end))
  910. repeat
  911. wait(0.05)
  912. spinval = spinval + 0.1
  913. local mesh = Instance.new("SpecialMesh")
  914. mesh.Scale = Vector3.new(5.1,5,5.1)
  915. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  916. local shell = Instance.new("Part")
  917. mesh.Parent = shell
  918. shell.Anchored = true
  919. shell.formFactor = 3
  920. shell.Size = Vector3.new(0.2,0.2,0.2)
  921. shell.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
  922. shell.Parent = swordholder
  923. shell.Transparency = 1
  924. shell.BrickColor = handlecolor
  925. shell.CanCollide = false
  926. local mesh2 = Instance.new("SpecialMesh")
  927. mesh2.Scale = Vector3.new(8,8,8)
  928. mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557"
  929. local shell2 = Instance.new("Part")
  930. mesh2.Parent = shell2
  931. shell2.Anchored = true
  932. shell2.formFactor = 3
  933. shell2.Size = Vector3.new(0.2,0.2,0.2)
  934. shell2.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
  935. shell2.Parent = swordholder
  936. shell2.Transparency = 1
  937. shell2.BrickColor = bcolor
  938. shell2.CanCollide = false
  939. coroutine.resume(coroutine.create(function()
  940. for i = 0 ,1,0.2 do
  941. wait()
  942. shell.Transparency = 1-1*i
  943. shell2.Transparency = 1-1*i
  944. end
  945. for i = 0 ,1,0.2 do
  946. wait()
  947. shell.Transparency = 1*i
  948. shell2.Transparency = 1*i
  949. end
  950. shell.Parent = nil
  951. shell2.Parent = nil
  952. end))
  953. until floor
  954. local ps = Instance.new("BodyPosition")
  955. ps.Parent = Torso
  956. ps.position = Torso.Position
  957. ps.maxForce = Vector3.new(1,1,1) * math.huge
  958. ps.P = ps.P * 2
  959. coroutine.resume(coroutine.create(function() wait(0.05) ps.Parent = nil end))
  960. for rep = 1,3 do
  961. end
  962. local meshb = Instance.new("SpecialMesh")
  963. meshb.Scale = Vector3.new(0,0,0)
  964. meshb.MeshId = "http://www.roblox.com/asset/?id=1038653"
  965. local shellb = Instance.new("Part")
  966. meshb.Parent = shellb
  967. shellb.Anchored = true
  968. shellb.formFactor = 3
  969. shellb.Size = Vector3.new(1,1,1)
  970. shellb.CFrame = CFrame.new(Torso.Position)
  971. shellb.Parent = swordholder
  972. shellb.Transparency = 1
  973. shellb.Reflectance = 0.25
  974. shellb.BrickColor = bcolor
  975. shellb.CanCollide = false
  976. local meshb2 = Instance.new("SpecialMesh")
  977. meshb2.Scale = Vector3.new(0,0,0)
  978. meshb2.MeshType = "Sphere"
  979. local shellb2 = Instance.new("Part")
  980. meshb2.Parent = shellb2
  981. shellb2.Anchored = true
  982. shellb2.formFactor = 3
  983. shellb2.Size = Vector3.new(1,1,1)
  984. shellb2.CFrame = CFrame.new(Torso.Position)
  985. shellb2.Parent = swordholder
  986. shellb2.Transparency = 1
  987. shellb2.Reflectance = 0.25
  988. shellb2.BrickColor = bcolor
  989. shellb2.CanCollide = false
  990. local meshb3 = Instance.new("SpecialMesh")
  991. meshb3.Scale = Vector3.new(0,0,0)
  992. meshb3.MeshId = "http://www.roblox.com/asset/?id=1051557"
  993. local shellb3 = Instance.new("Part")
  994. meshb3.Parent = shellb3
  995. shellb3.Anchored = true
  996. shellb3.formFactor = 3
  997. shellb3.Size = Vector3.new(1,1,1)
  998. shellb3.CFrame = CFrame.new(Torso.Position+Vector3.new(0,10,0)) * CFrame.Angles(math.rad(180),0,0)
  999. shellb3.Parent = swordholder
  1000. shellb3.Transparency = 1
  1001. shellb3.Reflectance = 0.25
  1002. shellb3.BrickColor = bcolor
  1003. shellb3.CanCollide = false
  1004. coroutine.resume(coroutine.create(function()
  1005. local spinv = 0
  1006. for i = 0 ,1,0.05 do
  1007. wait()
  1008. spinv = spinv+0.5
  1009. shellb.Transparency = 1-1*i
  1010. meshb.Scale = Vector3.new(25*i,25*i,25*i)
  1011. shellb2.Transparency = 1-1*i
  1012. meshb2.Scale = Vector3.new(50*i,5*i,50*i)
  1013. shellb3.Transparency = 1-1*i
  1014. meshb3.Scale = Vector3.new(40*i,40,40*i)
  1015. shellb3.CFrame = shellb3.CFrame * CFrame.Angles(0,spinval,0)
  1016. end
  1017. prcntdmg(-50)
  1018. AoE(Torso.Position,25)
  1019. for i = 0 ,1,0.05 do
  1020. wait()
  1021. spinv = spinv+0.5
  1022. shellb.Transparency = 1*i
  1023. meshb.Scale = Vector3.new(25+25*i,25+25*i,25+25*i)
  1024. shellb2.Transparency = 1*i
  1025. meshb2.Scale = Vector3.new(50+25*i,5-5*i,50+25*i)
  1026. shellb3.Transparency = 1*i
  1027. meshb3.Scale = Vector3.new(40+40*i,40,40+40*i)
  1028. shellb3.CFrame = shellb3.CFrame * CFrame.Angles(0,spinval,0)
  1029. end
  1030. AoE(Torso.Position,35)
  1031. returndmg()
  1032. shellb3.Parent = nil
  1033. shellb2.Parent = nil
  1034. shellb.Parent = nil
  1035. end))
  1036. for i = 0 , 1 , 0.1 do
  1037. wait()
  1038. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-45))
  1039. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1040. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
  1041. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1042. w1.C0 = CFrame.new(0,-1+1*i,0) * CFrame.Angles(math.rad(-135+90*i), 0, math.rad(-45+45*i))
  1043. end
  1044. jumping = false
  1045. attack=false
  1046. end
  1047.  
  1048.  
  1049.  
  1050. function returnwelds()
  1051. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45))
  1052. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1053. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(45), 0, math.rad(45))
  1054. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1055. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1056. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(0, 0, 0)
  1057. RWL.C1 = CFrame.new(0.5, 1, 0)
  1058. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(0, 0, 0)
  1059. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1060. end
  1061.  
  1062. function Combo1()
  1063. attack = true
  1064. LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1065. dmgcnnct()
  1066. for i = 0 , 1 , 0.1 do
  1067. wait()
  1068. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+90*i),math.rad(-45*i), math.rad(-45+90*i))
  1069. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1070. LW.C0 = CFrame.new(-1+1*i, 0.5, -0.5-0.5*i) * CFrame.Angles(math.rad(45+90*i), 0, math.rad(45+45*i))
  1071. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1072. w1.C0 = CFrame.Angles(math.rad(-45-270*i), math.rad(0), math.rad(0))
  1073. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1074. effect("White",0.5,LastPoint,Point)
  1075. LastPoint = Point
  1076. end
  1077. Hitdeb=0
  1078. for i = 0 , 1 , 0.2 do
  1079. wait()
  1080. RW.C0 = CFrame.new(1.5-0.8*i, 0.5, -1*i) * CFrame.Angles(math.rad(180-145*i),math.rad(-45), math.rad(45-90*i))
  1081. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1082. LW.C0 = CFrame.new(-1*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(135-45*i), 0, math.rad(90-80*i))
  1083. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1084. w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0))
  1085. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1086. effect("White",0.5,LastPoint,Point)
  1087. LastPoint = Point
  1088. end
  1089. dmgdc()
  1090. atktype(1,2)
  1091. attack = false
  1092. combo = 1
  1093. for i = 0 , 1 , 0.1 do
  1094. if attack then return end
  1095. wait()
  1096. RW.C0 = CFrame.new(0.7-0.2*i, 0.5, -1) * CFrame.Angles(math.rad(35-20*i),math.rad(-45), math.rad(-45-20*i))
  1097. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1098. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(10))
  1099. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1100. w1.C0 = CFrame.Angles(math.rad(-315), math.rad(0), math.rad(0))
  1101. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1102. effect("White",0.5,LastPoint,Point)
  1103. LastPoint = Point
  1104. end
  1105. for i = 0 , 1 , 0.1 do
  1106. if attack then return end
  1107. wait()
  1108. RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(15+75*i),math.rad(-45+45*i), math.rad(-65+20*i))
  1109. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1110. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(10+35*i))
  1111. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1112. w1.C0 = CFrame.Angles(math.rad(-315-90*i), math.rad(0), math.rad(0))
  1113. end
  1114. end
  1115.  
  1116. function Combo2()
  1117. attack = true
  1118. for i = 0 , 1 ,0.1 do
  1119. wait()
  1120. RW.C0 = CFrame.new(0.7, 0.5, -1) * CFrame.Angles(math.rad(35+55*i),math.rad(-45+135*i), math.rad(-45+45*i))
  1121. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60*i), 0, 0)
  1122. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(10))
  1123. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1124. w1.C0 = CFrame.Angles(math.rad(-315-90*i), math.rad(0), math.rad(0))
  1125. end
  1126. dmgflipcnnct()
  1127. LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1128. for i = 0 , 1 ,0.2 do
  1129. wait()
  1130. RW.C0 = CFrame.new(0.7-0.8*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
  1131. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-60+195*i), 0, 0)
  1132. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -1*i) * CFrame.Angles(math.rad(90), 0, math.rad(10+80*i))
  1133. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1134. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1135. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1136. effect("White",0.5,LastPoint,Point)
  1137. LastPoint = Point
  1138. end
  1139. dmgdc()
  1140. local TorsCF = Torso.CFrame
  1141. local bg = Instance.new("BodyGyro")
  1142. bg.Parent = Torso
  1143. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1144. bg.P = 100000
  1145. bg.cframe = TorsCF
  1146. dmgflipcnnct()
  1147. for i = 0 , 1 ,0.15 do
  1148. wait()
  1149. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
  1150. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135-180*i), 0, 0)
  1151. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -1+1*i) * CFrame.Angles(math.rad(90), 0, math.rad(90-180*i))
  1152. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1153. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1154. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(-90*i),0)
  1155. end
  1156. LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1157. for i = 0 , 1 ,0.1 do
  1158. wait()
  1159. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
  1160. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-45+180*i), 0, 0)
  1161. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
  1162. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1163. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1164. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(-90-270*i),0)
  1165. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1166. effect("White",0.5,LastPoint,Point)
  1167. LastPoint = Point
  1168. end
  1169. dmgdc()
  1170. bg.Parent = nil
  1171. attack = false
  1172. combo = 2
  1173. atktype(1,3)
  1174. for i = 0 , 1 ,0.2 do
  1175. if attack then break end
  1176. wait()
  1177. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(90), math.rad(0))
  1178. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135+20*i), 0, 0)
  1179. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
  1180. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1181. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1182. end
  1183. for i = 0 , 1 ,0.1 do
  1184. if attack then break end
  1185. wait()
  1186. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(90-90*i), math.rad(-45*i))
  1187. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(155-155*i), 0, 0)
  1188. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-90+135*i))
  1189. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1190. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1191. end
  1192.  
  1193. end
  1194.  
  1195. function Combo3()
  1196. attack=true
  1197. wait(0.1)
  1198. local TorsCF = Torso.CFrame
  1199. local bg = Instance.new("BodyGyro",Torso)
  1200. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1201. bg.P = 100000
  1202. bg.cframe = TorsCF
  1203. for i = 0 , 1 ,0.1 do
  1204. wait()
  1205. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(90-90*i), math.rad(90*i))
  1206. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(135-90*i), 0, 0)
  1207. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
  1208. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1209. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1210. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90*i),0)
  1211. end
  1212. local P1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1213. local hitt = nil
  1214. local TorsPos = P1.p
  1215. local bp = Instance.new("BodyPosition")
  1216. bp.maxForce = Vector3.new(math.huge, math.huge,math.huge)
  1217. bp.P = 14000
  1218. bp.position = TorsPos+Vector3.new(0,5,0)
  1219. local connection = prt1.Touched:connect(function(hit)
  1220. if hitt ~= nil then
  1221. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1222. hitt = hit.Parent.Torso
  1223. bp.Parent=hitt
  1224. wait(2)
  1225. bp.Parent = nil
  1226. end
  1227. end
  1228. end)
  1229. subdmg(-10)
  1230. dmgflipcnnct()
  1231. for i = 0 , 1 ,0.2 do
  1232. wait()
  1233. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(90))
  1234. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(45-135*i), 0, 0)
  1235. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-90))
  1236. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1237. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1238. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90),0)
  1239. end
  1240. returndmg()
  1241. dmgdc()
  1242. local P2 = CFrame.new(P1.p) * CFrame.new(0,15,0) * CFrame.Angles(math.rad(-10),0,0)
  1243. local effectsmsh = Instance.new("SpecialMesh")
  1244. effectsmsh.MeshType = "Sphere"
  1245. local effectsg = Instance.new("Part")
  1246. effectsg.formFactor = 3
  1247. effectsg.CanCollide = false
  1248. effectsg.Name = "Eff"
  1249. effectsg.Locked = true
  1250. effectsg.Anchored = true
  1251. effectsg.Size = Vector3.new(1,1,1)
  1252. effectsg.Parent = swordholder
  1253. effectsmsh.Parent = effectsg
  1254. effectsg.BrickColor = bcolor
  1255. effectsg.Reflectance = 0.25
  1256. local point1 = P2
  1257. local LP = P1
  1258. local mg = (LP.p - point1.p).magnitude
  1259. effectsmsh.Scale = Vector3.new(mg/5,mg*2,mg/5)
  1260. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) + Vector3.new(0,-mg,0)
  1261. coroutine.resume(coroutine.create(function()
  1262. for i = 0 , 1 , 0.1 do
  1263. wait()
  1264. effectsg.Transparency = 1*i
  1265. end
  1266. wait()
  1267. effectsg.Parent = nil
  1268. end))
  1269. connection:disconnect()
  1270. for i = 0 , 1 ,0.2 do
  1271. wait()
  1272. RW.C0 = CFrame.new(1.5-0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90),math.rad(0), math.rad(90-135*i))
  1273. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(-90+90*i), 0, 0)
  1274. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(-90+135*i))
  1275. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1276. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1277. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(90-90*i),0)
  1278. end
  1279. bg.Parent = nil
  1280. attack=false
  1281. combo = 0
  1282. end
  1283.  
  1284. function Slash1()
  1285. attack = true
  1286. local LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1287. local LastPoint2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
  1288. for i = 0 , 1 , 0.2 do
  1289. wait()
  1290. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1291. local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
  1292. effect("White",0.5,LastPoint,Point)
  1293. effect("White",0.5,LastPoint2,Point2)
  1294. LastPoint = Point
  1295. LastPoint2 = Point2
  1296. RW.C0 = CFrame.new(1, 0.5+1*i, -0.5) * CFrame.Angles(math.rad(90+90*i), 0, math.rad(-45))
  1297. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1298. LW.C0 = CFrame.new(-1, 0.5+1*i, -0.5) * CFrame.Angles(math.rad(45+135*i), 0, math.rad(45))
  1299. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1300. w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(135*i))
  1301. end
  1302. local TorsPos = Torso.Position
  1303. local bp = Instance.new("BodyPosition",Torso)
  1304. bp.maxForce = Vector3.new(0, math.huge,0)
  1305. bp.P = 14000
  1306. bp.position = TorsPos + Vector3.new(0,2,0)
  1307. local mesh = Instance.new("CylinderMesh")
  1308. mesh.Scale = Vector3.new(5.1,0.1,5.1)
  1309. local shell = Instance.new("Part")
  1310. mesh.Parent = shell
  1311. shell.Anchored = true
  1312. shell.formFactor = 3
  1313. shell.Size = Vector3.new(1,0.5,1)
  1314. shell.CFrame = CFrame.new() + prt1.Position
  1315. shell.Parent = swordholder
  1316. shell.Transparency = 0.5
  1317. shell.BrickColor = BrickColor.new("White")
  1318. shell.CanCollide = false
  1319. local mesh2 = Instance.new("SpecialMesh")
  1320. mesh2.Scale = Vector3.new(5.5,1,5.5)
  1321. mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1322. local shell2 = Instance.new("Part")
  1323. shell2.Anchored = true
  1324. mesh2.Parent = shell2
  1325. shell2.formFactor = 3
  1326. shell2.Size = Vector3.new(0.2,0.2,0.2)
  1327. shell2.CFrame = shell.CFrame * CFrame.Angles(math.rad(180),0,0)
  1328. shell2.Parent = swordholder
  1329. shell2.Transparency = 0.5
  1330. shell2.BrickColor = BrickColor.new("Pastel Blue")
  1331. shell2.CanCollide = false
  1332.  
  1333. local derp = false
  1334.  
  1335. coroutine.resume(coroutine.create(function()
  1336. for i = 0 , 1 , 0.2 do
  1337. wait()
  1338. shell.Transparency = 1-0.5*i
  1339. shell2.Transparency = 1-0.5*i
  1340. end
  1341. end))
  1342. coroutine.resume(coroutine.create(function()
  1343. local ii = 0
  1344. local yy = 1
  1345. repeat
  1346. wait()
  1347. ii = ii + 50
  1348. yy = yy + 0.25
  1349. shell.CFrame = CFrame.Angles(0,math.rad(ii),0) + prt1.Position
  1350. shell2.CFrame = shell.CFrame * CFrame.Angles(math.rad(180),0,0)
  1351. mesh2.Scale = Vector3.new(5.5,yy,5.5)
  1352. until derp
  1353. for i = 0 , 1 , 0.1 do
  1354. wait()
  1355. yy = yy + 0.5
  1356. shell.Transparency = 0.5+0.5*i
  1357. shell2.Transparency = 0.5+0.5*i
  1358. mesh2.Scale = Vector3.new(5.5-2*i,yy,5.5-2*i)
  1359. end
  1360. shell.Parent = nil
  1361. shell2.Parent = nil
  1362. end))
  1363.  
  1364. dmgcnnct()
  1365. prcntdmg(50)
  1366. rptddmg(derp,true,0.75)
  1367. for rep = 1 , 2 do
  1368. for i = 0 , 1 , 0.2 do
  1369. wait()
  1370. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1371. local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
  1372. effect("White",0.5,LastPoint,Point)
  1373. effect("White",0.5,LastPoint2,Point2)
  1374. LastPoint = Point
  1375. LastPoint2 = Point2
  1376. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(180*i), math.rad(135))
  1377. end
  1378. for i = 0 , 1 , 0.2 do
  1379. wait()
  1380. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1381. local Point2 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/2,0)
  1382. effect("White",0.5,LastPoint,Point)
  1383. effect("White",0.5,LastPoint2,Point2)
  1384. LastPoint = Point
  1385. LastPoint2 = Point2
  1386. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(180+180*i), math.rad(135))
  1387. end
  1388. end
  1389. returndmg()
  1390. dmgdc()
  1391. derp = true
  1392. local done = false
  1393. local hit,pos = nil,nil
  1394. for i = 0 , 1 , 0.2 do
  1395. wait()
  1396. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1397. effect("White",0.5,LastPoint,Point)
  1398. LastPoint = Point
  1399. RW.C0 = CFrame.new(1+0.5*i, 1.5-1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(180-45*i), 0, math.rad(-45+90*i))
  1400. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1401. LW.C0 = CFrame.new(-1-0.5*i, 1.5-1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(180-45*i), 0, math.rad(45-90*i))
  1402. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1403. w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(135-135*i))
  1404. w1.C1 = CFrame.new(0,0,0)
  1405. if i > 0.5 and not done then
  1406. hit,pos = rayCast(Torso.Position, (Torso.CFrame * CFrame.Angles(math.rad(-90),0,0)).lookVector, 100, Character)
  1407. bp.position = pos + Vector3.new(0,1,0)
  1408. bp.P = 5000
  1409. done = true
  1410. end
  1411. end
  1412. dmgcnnct()
  1413.  
  1414. local p1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1415. for i = 0 , 1 , 0.2 do
  1416. wait()
  1417. RW.C0 = CFrame.new(1.5-1*i, 0.5, -1*i) * CFrame.Angles(math.rad(135-90*i), 0, math.rad(45-90*i))
  1418. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1419. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(135-180*i), 0, math.rad(-45))
  1420. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1421. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1422. w1.C1 = CFrame.new(0,0,0)
  1423. end
  1424. bp.Parent = nil
  1425. for i = 0 , 1 , 0.2 do
  1426. wait()
  1427. RW.C0 = CFrame.new(0.5, 0.5, -1) * CFrame.Angles(math.rad(45-10*i), 0, math.rad(-45-10*i))
  1428. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1429. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-45), 0, math.rad(-45))
  1430. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1431. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1432. w1.C1 = CFrame.new(0,0,0)
  1433. end
  1434. local effectsmsh = Instance.new("SpecialMesh")
  1435. effectsmsh.Scale = Vector3.new(0.5,1,0.5)
  1436. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=13425802"
  1437. local effectsg = Instance.new("Part")
  1438. effectsg.formFactor = 3
  1439. effectsg.CanCollide = false
  1440. effectsg.Name = "Eff"
  1441. effectsg.Locked = true
  1442. effectsg.Anchored = true
  1443. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  1444. effectsg.Parent = swordholder
  1445. effectsmsh.Parent = effectsg
  1446. effectsg.BrickColor = bcolor
  1447. effectsg.Reflectance = 0.25
  1448. local point1 = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1449. local LP = p1
  1450. local mg = (LP.p - point1.p).magnitude
  1451. effectsmsh.Scale = Vector3.new(mg/3,1,0.2)
  1452. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,math.rad(-90))
  1453. coroutine.resume(coroutine.create(function()
  1454. for i = 0 , 1 , 0.1 do
  1455. wait()
  1456. effectsg.Transparency = 1*i
  1457. end
  1458. wait()
  1459. effectsg.Parent = nil
  1460. end))
  1461. wait(0.2)
  1462. dmgdc()
  1463. for i = 0 , 1 , 0.1 do
  1464. wait()
  1465. RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(35+55*i), 0, math.rad(-55+10*i))
  1466. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1467. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(-45+90*i))
  1468. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1469. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1470. end
  1471. attack = false
  1472. end
  1473.  
  1474. function RWFunc()
  1475. RW.Part1 = ch["Right Arm"]
  1476. RSH.Part1 = nil
  1477. end
  1478. function LWFunc()
  1479. LW.Part1 = ch["Left Arm"]
  1480. LSH.Part1 = nil
  1481. end
  1482. function RWLFunc()
  1483. RWL.Part1 = ch["Right Leg"]
  1484. RHL.Part1 = nil
  1485. ch["Right Leg"].Name = "RightLeg"
  1486. RightLeg.CanCollide = false
  1487. end
  1488.  
  1489. function LWLFunc()
  1490. LWL.Part1 = ch["Left Leg"]
  1491. LHL.Part1 = nil
  1492. ch["Left Leg"].Name = "LeftLeg"
  1493. LeftLeg.CanCollide = true
  1494. end
  1495.  
  1496. function RWLRem()
  1497. RightLeg.Name = "Right Leg"
  1498. RWL.Part1 = nil
  1499. RHL.Part1 = ch["Right Leg"]
  1500. RightLeg.CanCollide = false
  1501. end
  1502. function LWLRem()
  1503. LeftLeg.Name = "Left Leg"
  1504. LWL.Part1 = nil
  1505. LHL.Part1 = ch["Left Leg"]
  1506. LeftLeg.CanCollide = false
  1507. end
  1508. function RWRem()
  1509. RW.Part1 = nil
  1510. RSH.Part1 = ch["Right Arm"]
  1511. end
  1512. function LWRem()
  1513. LW.Part1 = nil
  1514. LSH.Part1 = ch["Left Arm"]
  1515. end
  1516.  
  1517. function RoundSlash()
  1518. attack = true
  1519. local TorsCF = Torso.CFrame
  1520. local bg = Instance.new("BodyGyro",Torso)
  1521. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1522. bg.P = bg.p * 25
  1523. bg.cframe = TorsCF
  1524. for i = 0 , 1 , 0.2 do
  1525. wait()
  1526. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90+45*i), 0, math.rad(-45+90*i))
  1527. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1528. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(45+25*i), 0, math.rad(45-90*i))
  1529. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1530. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(0))
  1531. end
  1532. dmgcnnct()
  1533. LastPoint = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1534. for i = 0 , 1 , 0.2 do
  1535. wait()
  1536. RW.C0 = CFrame.new(1.5-1*i, 0.5, -1*i) * CFrame.Angles(math.rad(135-90*i), 0, math.rad(45-90*i))
  1537. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1538. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(70-90*i), 0, math.rad(-45))
  1539. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1540. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45*i))
  1541. w1.C1 = CFrame.Angles(math.rad(-25*i),0,0)
  1542. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180*i),0)
  1543. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1544. effect("White",0.5,LastPoint,Point)
  1545. LastPoint = Point
  1546. end
  1547. Hitdeb=0
  1548. for i = 0 , 1 , 0.1 do
  1549. wait()
  1550. RW.C0 = CFrame.new(0.5, 0.5, -1) * CFrame.Angles(math.rad(45), 0, math.rad(-45-25*i))
  1551. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1552. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-20), 0, math.rad(-45))
  1553. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1554. RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.Angles(0, 0, 0)
  1555. RWL.C1 = CFrame.new(0.5, 1, 0)
  1556. LWL.C0 = CFrame.new(-1, -1-0.5*i, -0.5*i) * CFrame.Angles(math.rad(-90*i), 0, 0)
  1557. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1558. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45))
  1559. w1.C1 = CFrame.Angles(math.rad(-25),0,0)
  1560. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(180+180*i),0)
  1561. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1562. effect("White",0.5,LastPoint,Point)
  1563. LastPoint = Point
  1564. end
  1565. dmgdc()
  1566. for i = 0 , 1 , 0.1 do
  1567. wait()
  1568. RW.C0 = CFrame.new(0.5+0.5*i, 0.5, -1+0.5*i) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-70+25*i))
  1569. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1570. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-20+65*i), 0, math.rad(-45+90*i))
  1571. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1572. RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.Angles(0, 0, 0)
  1573. RWL.C1 = CFrame.new(0.5, 1, 0)
  1574. LWL.C0 = CFrame.new(-1, -1.5+0.5*i, -0.5+0.5*i) * CFrame.Angles(math.rad(-90+90*i), 0, 0)
  1575. LWL.C1 = CFrame.new(-0.5, 1, 0)
  1576. w1.C0 = CFrame.Angles(math.rad(-45), math.rad(0), math.rad(45-45*i))
  1577. w1.C1 = CFrame.Angles(math.rad(-25+25*i),0,0)
  1578. bg.cframe = TorsCF * CFrame.Angles(0,math.rad(360*i),0)
  1579. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1580. effect("White",0.5,LastPoint,Point)
  1581. LastPoint = Point
  1582. end
  1583. wait(0.1)
  1584. local Point = prt1.CFrame * CFrame.new(0,prt1.Size.Y/-2,0)
  1585. effect("White",0.5,LastPoint,Point)
  1586. LastPoint = Point
  1587. bg.Parent = nil
  1588. wait(0.1)
  1589. attack = false
  1590. end
  1591.  
  1592. local helm = Instance.new("Part")
  1593. helm.formFactor = 3
  1594. helm.CanCollide = false
  1595. helm.Name = "LancerHelm"
  1596. helm.Locked = true
  1597. helm.Size = Vector3.new(0.2,0.2,0.2)
  1598. helm.BrickColor = bcolor
  1599. local helmm = Instance.new("SpecialMesh")
  1600. helmm.MeshId = "http://www.roblox.com/asset/?id=27719952"
  1601. helmm.Parent = helm
  1602. local helmw = Instance.new("Weld")
  1603. local LancerM = false
  1604.  
  1605. function LancerMode()
  1606. attack=true
  1607. if not LancerM then
  1608. for i = 0,1,0.2 do
  1609. wait()
  1610. RW.C0 = CFrame.new(1+0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(-45+135*i))
  1611. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1612. LW.C0 = CFrame.new(-1-0.5*i, 0.5, -0.5+0.5*i) * CFrame.Angles(math.rad(45-45*i), 0, math.rad(45-45*i))
  1613. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1614. w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0))
  1615. end
  1616. for i = 0,1,0.1 do
  1617. wait()
  1618. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90))
  1619. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1620. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, 0) * CFrame.Angles(math.rad(-45*i), 0, math.rad(45*i))
  1621. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1622. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1623. end
  1624.  
  1625. helm.Parent = swordholder
  1626. helmw.Parent = helm
  1627. helmw.Part0 = helm
  1628. helmw.Part1 = LeftArm
  1629. helmw.C0 = CFrame.Angles(math.rad(90),0,math.rad(90))
  1630. helmw.C1 = CFrame.new(0,-1.5,0)
  1631. bonusdmg = 10
  1632. LancerM = true
  1633. wait()
  1634. for i = 0,1,0.1 do
  1635. wait()
  1636. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90))
  1637. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0)
  1638. LW.C0 = CFrame.new(-1-0.5*i, 0.5, 0) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(45-90*i))
  1639. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1640. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1641. end
  1642. for i = 0,1,0.1 do
  1643. wait()
  1644. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.Angles(math.rad(90), 0, math.rad(90))
  1645. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0)
  1646. LW.C0 = CFrame.new(-1.5-0.5*i, 0.5+1*i, 0) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(-45+135*i))
  1647. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1648. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1649. end
  1650. helmw.Part1 = Head
  1651. helmw.C0 = CFrame.new(0,-0.25,0)
  1652. helmw.C1 = CFrame.new()
  1653. coroutine.resume(coroutine.create(function()
  1654. local meshb = Instance.new("SpecialMesh")
  1655. meshb.Scale = Vector3.new(0,0,0)
  1656. meshb.MeshType = "Sphere"
  1657. local shellb = Instance.new("Part")
  1658. meshb.Parent = shellb
  1659. shellb.Anchored = true
  1660. shellb.formFactor = 3
  1661. shellb.Size = Vector3.new(1,1,1)
  1662. shellb.CFrame = Torso.CFrame
  1663. shellb.Parent = swordholder
  1664. shellb.Transparency = 0
  1665. shellb.BrickColor = bcolor
  1666. shellb.CanCollide = false
  1667. coroutine.resume(coroutine.create(function()
  1668. for i = 0 ,1,0.05 do
  1669. wait()
  1670. shellb.Transparency = 1*i
  1671. meshb.Scale = Vector3.new(20*i,20*i,20*i)
  1672. end
  1673. shellb.Parent = nil
  1674. end))
  1675. local spinval = 0
  1676. local SlashSound = Instance.new("Sound")
  1677. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  1678. SlashSound.Parent = Head
  1679. SlashSound.Volume = 0.25
  1680. SlashSound.Pitch = 0.1
  1681. SlashSound.PlayOnRemove = true
  1682. SlashSound.Looped = true
  1683. coroutine.resume(coroutine.create(function()
  1684. wait()
  1685. SlashSound.Parent = nil
  1686. end))
  1687. local SlashSound2 = Instance.new("Sound")
  1688. SlashSound2.SoundId = "http://www.roblox.com/asset?id=1369158"
  1689. SlashSound2.Parent = Head
  1690. SlashSound2.Volume = 1
  1691. SlashSound2.Pitch = 0.05
  1692. SlashSound2.PlayOnRemove = true
  1693. SlashSound2.Looped = true
  1694. coroutine.resume(coroutine.create(function()
  1695. wait()
  1696. SlashSound2.Parent = nil
  1697. end))
  1698. local ws = Character.Humanoid.WalkSpeed
  1699. repeat
  1700. wait(0.05)
  1701. Character.Humanoid.WalkSpeed = ws * 2
  1702. spinval = spinval + 0.1
  1703. local mesh = Instance.new("SpecialMesh")
  1704. mesh.Scale = Vector3.new(5.1,5,5.1)
  1705. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1706. local shell = Instance.new("Part")
  1707. mesh.Parent = shell
  1708. shell.Anchored = true
  1709. shell.formFactor = 3
  1710. shell.Size = Vector3.new(0.2,0.2,0.2)
  1711. shell.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
  1712. shell.Parent = swordholder
  1713. shell.Transparency = 1
  1714. shell.BrickColor = handlecolor
  1715. shell.CanCollide = false
  1716. local mesh2 = Instance.new("SpecialMesh")
  1717. mesh2.Scale = Vector3.new(8,8,8)
  1718. mesh2.MeshId = "http://www.roblox.com/asset/?id=1051557"
  1719. local shell2 = Instance.new("Part")
  1720. mesh2.Parent = shell2
  1721. shell2.Anchored = true
  1722. shell2.formFactor = 3
  1723. shell2.Size = Vector3.new(0.2,0.2,0.2)
  1724. shell2.CFrame = Torso.CFrame * CFrame.Angles(0,spinval,0) + Vector3.new(0,-2.5,0)
  1725. shell2.Parent = swordholder
  1726. shell2.Transparency = 1
  1727. shell2.BrickColor = bcolor
  1728. shell2.CanCollide = false
  1729. local mesh3 = Instance.new("BlockMesh")
  1730. mesh3.Scale = Vector3.new(5,5,5)
  1731. local shell3 = Instance.new("Part")
  1732. mesh3.Parent = shell3
  1733. shell3.Anchored = true
  1734. shell3.formFactor = 3
  1735. shell3.Size = Vector3.new(1,1,1)
  1736. shell3.CFrame = Torso.CFrame * CFrame.Angles(math.random(),math.random(),math.random())
  1737. shell3.Parent = swordholder
  1738. shell3.Transparency = 0.5
  1739. shell3.BrickColor = bcolor
  1740. shell3.CanCollide = false
  1741. coroutine.resume(coroutine.create(function()
  1742. for i = 0 ,1,0.2 do
  1743. wait()
  1744. shell.Transparency = 1-1*i
  1745. shell2.Transparency = 1-1*i
  1746. shell3.Transparency = 0.5+0.25*i
  1747. end
  1748. for i = 0 ,1,0.2 do
  1749. wait()
  1750. shell.Transparency = 1*i
  1751. shell2.Transparency = 1*i
  1752. shell3.Transparency = 0.75+0.25*i
  1753. end
  1754. shell.Parent = nil
  1755. shell2.Parent = nil
  1756. shell3.Parent = nil
  1757. end))
  1758. until not LancerM
  1759. Character.Humanoid.WalkSpeed = ws
  1760. end))
  1761. for i = 0,1,0.1 do
  1762. wait()
  1763. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.Angles(math.rad(90), 0, math.rad(90-135*i))
  1764. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0 , 0)
  1765. LW.C0 = CFrame.new(-1, 1.5-1*i, -0.5*i) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(90-45*i))
  1766. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1767. w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(0))
  1768. end
  1769. elseif LancerM then
  1770. LancerM = false
  1771. local meshb = Instance.new("SpecialMesh")
  1772. meshb.Scale = Vector3.new(0,0,0)
  1773. meshb.MeshId = "http://www.roblox.com/asset/?id=1038653"
  1774. local shellb = Instance.new("Part")
  1775. meshb.Parent = shellb
  1776. shellb.Anchored = true
  1777. shellb.formFactor = 3
  1778. shellb.Size = Vector3.new(1,1,1)
  1779. shellb.CFrame = Torso.CFrame
  1780. shellb.Parent = swordholder
  1781. shellb.Transparency = 1
  1782. shellb.Reflectance = 0.25
  1783. shellb.BrickColor = bcolor
  1784. shellb.CanCollide = false
  1785. local meshb2 = Instance.new("SpecialMesh")
  1786. meshb2.Scale = Vector3.new(0,0,0)
  1787. meshb2.MeshType = "Sphere"
  1788. local shellb2 = Instance.new("Part")
  1789. meshb2.Parent = shellb2
  1790. shellb2.Anchored = true
  1791. shellb2.formFactor = 3
  1792. shellb2.Size = Vector3.new(1,1,1)
  1793. shellb2.CFrame = Torso.CFrame
  1794. shellb2.Parent = swordholder
  1795. shellb2.Transparency = 1
  1796. shellb2.Reflectance = 0.25
  1797. shellb2.BrickColor = bcolor
  1798. shellb2.CanCollide = false
  1799. coroutine.resume(coroutine.create(function()
  1800. for i = 0 ,1,0.05 do
  1801. wait()
  1802. shellb.Transparency = 1-1*i
  1803. meshb.Scale = Vector3.new(30*i,30*i,30*i)
  1804. shellb2.Transparency = 1-1*i
  1805. meshb2.Scale = Vector3.new(15*i,100*i,15*i)
  1806. end
  1807. for i = 0 ,1,0.05 do
  1808. wait()
  1809. shellb.Transparency = 1*i
  1810. meshb.Scale = Vector3.new(30+50*i,30+50*i,30+50*i)
  1811. shellb2.Transparency = 1*i
  1812. meshb2.Scale = Vector3.new(15-15*i,100+100*i,15-15*i)
  1813. end
  1814. shellb2.Parent = nil
  1815. shellb.Parent = nil
  1816. end))
  1817. for i = 0 , 1 , 0.1 do
  1818. wait()
  1819. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45+45*i))
  1820. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1821. LW.C0 = CFrame.new(-1, 0.5+1*i, -0.5+0.5*i) * CFrame.Angles(math.rad(45+45*i), 0, math.rad(45+45*i))
  1822. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1823. w1.C0 = CFrame.Angles(math.rad(-45-45*i), math.rad(0), math.rad(0))
  1824. end
  1825. helmw.Part1 = LeftArm
  1826. helmw.C0 = CFrame.Angles(math.rad(90),0,math.rad(90))
  1827. helmw.C1 = CFrame.new(0,-1.5,0)
  1828. for i = 0 , 1 , 0.1 do
  1829. wait()
  1830. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(0))
  1831. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1832. LW.C0 = CFrame.new(-1-0.5*i, 1.5-1*i, 0) * CFrame.Angles(math.rad(90-45*i), 0, math.rad(90-135*i))
  1833. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1834. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1835. end
  1836. for i = 0 , 1 , 0.2 do
  1837. wait()
  1838. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(0))
  1839. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1840. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45-90*i), 0, math.rad(-45+90*i))
  1841. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1842. w1.C0 = CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
  1843. end
  1844. helm.Parent = nil
  1845. helmw.Parent = nil
  1846. for i = 0 , 1 , 0.1 do
  1847. wait()
  1848. RW.C0 = CFrame.new(1, 0.5, -0.5) * CFrame.Angles(math.rad(90), 0, math.rad(-45*i))
  1849. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1850. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5, -0.5*i) * CFrame.Angles(math.rad(-45+90*i), 0, math.rad(45))
  1851. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  1852. w1.C0 = CFrame.Angles(math.rad(-90+45*i), math.rad(0), math.rad(0))
  1853. end
  1854. end
  1855. attack=false
  1856. end
  1857.  
  1858. function Attackk(mag)
  1859. if attack then return end
  1860. if Character.Humanoid.Health <= Character.Humanoid.MaxHealth/2 and LancerM == false then
  1861. LancerMode()
  1862. end
  1863. if mag <= 6 then
  1864. local rndm = math.random(1,3)
  1865. if rndm == 1 then
  1866. coroutine.resume(coroutine.create(function()
  1867. if combo == 0 then
  1868. Combo1()
  1869. elseif combo == 1 then
  1870. Combo2()
  1871. elseif combo == 2 then
  1872. Combo3()
  1873. end
  1874. end))
  1875. elseif rndm == 2 and combo == 0 then
  1876. coroutine.resume(coroutine.create(function()
  1877. Slash1()
  1878. end))
  1879. elseif rndm == 3 and combo == 0 then
  1880. coroutine.resume(coroutine.create(function()
  1881. RoundSlash()
  1882. end))
  1883. end
  1884. end
  1885. end
  1886.  
  1887. local BG = Instance.new("BodyGyro",Torso)
  1888. BG.cframe = Torso.CFrame
  1889. BG.maxTorque = Vector3.new(0, math.huge,0)
  1890. BGSpin = 0
  1891.  
  1892. function FindTarget()
  1893. local c = game.Workspace:GetChildren();
  1894. local nearestmag = 1500
  1895. local nearestprsn = nil
  1896. for i = 1, #c do
  1897. local hum = c[i]:findFirstChild("Humanoid")
  1898. if hum ~= nil and hum.Health ~= 0 then
  1899. local head = c[i]:findFirstChild("Head");
  1900. if head ~= nil then
  1901. local mag = (head.Position - Torso.Position).magnitude;
  1902. if mag <= 1500 and c[i].Name ~= Character.Name then
  1903. if mag < nearestmag then
  1904. nearestmag = mag
  1905. nearestprsn = c[i]
  1906. end
  1907. end
  1908. end
  1909. end
  1910. end
  1911. Target = nearestprsn
  1912. end
  1913.  
  1914.  
  1915.  
  1916.  
  1917. local Humanoid = Instance.new("Humanoid",bodyholder)
  1918. Humanoid.MaxHealth = HP
  1919.  
  1920. equipanim()
  1921. wait(1)
  1922. bodyholder:MakeJoints()
  1923. Humanoid.Health = HP
  1924. Humanoid.WalkSpeed = WS
  1925. wait(1)
  1926. bodyholder.Torso.CFrame = CFrame.new(SpawnPos.Value)
  1927. Humanoid.Health = HP
  1928. script.Parent = Character
  1929.  
  1930.  
  1931.  
  1932. repeat
  1933. wait(0.1)
  1934. FindTarget()
  1935. if Target ~= nil then
  1936. BG.cframe = CFrame.new(Torso.Position,Target.Torso.Position) * CFrame.Angles(0,math.rad(BGSpin),0)
  1937. local mag = (Torso.Position-Target.Torso.Position).magnitude
  1938. if mag <= 40 then
  1939. Attackk(mag)
  1940. end
  1941. --
  1942. pcall(function()
  1943. Humanoid:MoveTo(Target.Torso.Position + CFrame.new(Torso.Position,Target.Torso.Position).lookVector * -1,Target.Torso)
  1944. end)
  1945. if Target.Torso.Position.y > Torso.Position.y+5 then
  1946. coroutine.resume(coroutine.create(Jump))
  1947. end
  1948. --
  1949. else
  1950. BG.cframe = Torso.cframe
  1951. Humanoid:MoveTo(Torso.Position,Torso)
  1952. end
  1953. if true then
  1954. if (Torso.Velocity * Vector3.new(1,0,1)).magnitude > 2 then
  1955. walking = true
  1956. elseif (Torso.Velocity * Vector3.new(1,0,1)).magnitude < 2 then
  1957. walking = false
  1958. end
  1959. else
  1960. walking = false
  1961. end
  1962. until Humanoid.Health <= 0
  1963.  
  1964. wait(5)
  1965. Character.Parent = nil
  1966.  
  1967. --mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement