Advertisement
Guest User

Untitled

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