Advertisement
KyleRocks123

Untitled

Feb 25th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.19 KB | None | 0 0
  1. Player = game:GetService("Players").kyle1234567890k
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. attacktype = 1
  17. mindamage = 5
  18. maxdamage = 30
  19. crtmaxdamage = 60
  20. omindamage = 5
  21. omaxdamage = 30
  22. ocrtmaxdamage = 60
  23. crtrate = 12
  24. ssh = false
  25. atktypez = 1
  26. Hitdeb = 0
  27. --player
  28. player = nil
  29. --save shoulders
  30. RSH, LSH , RHL, LHL = nil, nil , nil , nil
  31. --welds
  32. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  33. --what anim
  34. anim = "none"
  35. --other var
  36. player = Player
  37. ch = Character
  38. aa = false
  39. AoETrue = {}
  40. function RWFunc()
  41.  
  42. RSH = ch.Torso["Right Shoulder"]
  43. RW.Part0 = ch.Torso
  44. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  45. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  46. RW.Part1 = ch["Right Arm"]
  47. RW.Parent = ch.Torso
  48.  
  49. end
  50. function LWFunc()
  51. LSH = ch.Torso["Left Shoulder"]
  52. LW.Part0 = ch.Torso
  53. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  54. LW.C1 = CFrame.new(0, 0.5, 0)
  55. LW.Part1 = ch["Left Arm"]
  56. LW.Parent = ch.Torso
  57. end
  58. function RWLFunc()
  59.  
  60. RHL = ch.Torso["Right Hip"]
  61. RWL.Part0 = ch.Torso
  62. RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  63. RWL.C1 = CFrame.new(0.5, 1, 0)
  64. RWL.Part1 = ch["Right Leg"]
  65. RWL.Parent = ch.Torso
  66.  
  67. end
  68. function LWLFunc()
  69. LHL = ch.Torso["Left Hip"]
  70. LWL.Part0 = ch.Torso
  71. LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  72. LWL.C1 = CFrame.new(-0.5, 1, 0)
  73. LWL.Part1 = ch["Left Leg"]
  74. LWL.Parent = ch.Torso
  75. end
  76. function RWLRem()
  77. RWL.Parent = nil
  78. RHL.Parent = player.Character.Torso
  79. end
  80. function LWLRem()
  81. LWL.Parent = nil
  82. LHL.Parent = player.Character.Torso
  83. end
  84. function LegsFix()
  85. coroutine.resume(coroutine.create(function()
  86. wait(0.2)
  87. RWL.Parent = nil
  88. LWL.Parent = nil
  89. wait()
  90. LHL.Parent = player.Character.Torso
  91. RHL.Parent = player.Character.Torso
  92. end))
  93. end
  94. function RWRem()
  95. RW.Parent = nil
  96. RSH.Parent = player.Character.Torso
  97. end
  98. function LWRem()
  99. LW.Parent = nil
  100. LSH.Parent = player.Character.Torso
  101. end
  102. if Character:findFirstChild("SoulEater",true) ~= nil then
  103. Character:findFirstChild("SoulEater",true).Parent = nil
  104. end
  105. if Character:findFirstChild("Weapon",true) ~= nil then
  106. Character:findFirstChild("Weapon",true).Parent = nil
  107. end
  108. local swordholder = Instance.new("Model")
  109. swordholder.Name = "SoulEater"
  110. swordholder.Parent = Character
  111. bladecolor = BrickColor.new("Bright red")
  112. handlecolor = BrickColor.new("Really red")
  113. local msh1 = Instance.new("CylinderMesh")
  114. msh1.Scale = Vector3.new(0.2,3,0.2)
  115. msh1.Offset = Vector3.new(0,0.5,0)
  116. local msh2 = Instance.new("BlockMesh")
  117. msh2.Scale = Vector3.new(0.1,0.9125,0.5)
  118. msh2.Offset = Vector3.new(0,-0.2,0)
  119. local msh3 = Instance.new("SpecialMesh")
  120. msh3.Scale = Vector3.new(0.1,0.25,0.25)
  121. msh3.MeshType = "Wedge"
  122. local msh4 = Instance.new("SpecialMesh")
  123. msh4.Scale = Vector3.new(0.1,0.25,0.25)
  124. msh4.MeshType = "Wedge"
  125. local msh5 = Instance.new("SpecialMesh")
  126. msh5.Scale = Vector3.new(0.251,0.75,0.5)
  127. msh5.MeshType = "Sphere"
  128. local msh6 = Instance.new("SpecialMesh")
  129. msh6.Scale = Vector3.new(0.275,0.65,0.45)
  130. msh6.MeshType = "Sphere"
  131. local msh7 = Instance.new("SpecialMesh")
  132. msh7.Scale = Vector3.new(0.1,0.25,0.1)
  133. msh7.MeshType = "Wedge"
  134. local msh8 = Instance.new("SpecialMesh")
  135. msh8.Scale = Vector3.new(0.1,0.25,0.1)
  136. msh8.MeshType = "Wedge"
  137. local msh9 = Instance.new("SpecialMesh")
  138. msh9.Scale = Vector3.new(0.1,0.125,0.1)
  139. msh9.MeshType = "Wedge"
  140. local msh10 = Instance.new("SpecialMesh")
  141. msh10.Scale = Vector3.new(0.1,0.125,0.1)
  142. msh10.MeshType = "Wedge"
  143. local msh11 = Instance.new("SpecialMesh")
  144. msh11.Scale = Vector3.new(0.1,0.125,0.1)
  145. msh11.MeshType = "Wedge"
  146. local msh12 = Instance.new("SpecialMesh")
  147. msh12.Scale = Vector3.new(0.1,0.125,0.1)
  148. msh12.MeshType = "Wedge"
  149. local msh13 = Instance.new("SpecialMesh")
  150. msh13.Scale = Vector3.new(0.1,0.125,0.1)
  151. msh13.MeshType = "Wedge"
  152. local msh14 = Instance.new("SpecialMesh")
  153. msh14.Scale = Vector3.new(0.1,0.125,0.1)
  154. msh14.MeshType = "Wedge"
  155. local msh15 = Instance.new("SpecialMesh")
  156. msh15.Scale = Vector3.new(0.1,0.125,0.1)
  157. msh15.MeshType = "Wedge"
  158. local msh16 = Instance.new("SpecialMesh")
  159. msh16.Scale = Vector3.new(0.1,0.125,0.1)
  160. msh16.MeshType = "Wedge"
  161. local msh17 = Instance.new("SpecialMesh")
  162. msh17.Scale = Vector3.new(0.1,0.5,0.1)
  163. msh17.MeshType = "Wedge"
  164. local msh18 = Instance.new("SpecialMesh")
  165. msh18.Scale = Vector3.new(0.1,0.5,0.1)
  166. msh18.MeshType = "Wedge"
  167. local msh19 = Instance.new("SpecialMesh")
  168. msh19.Scale = Vector3.new(0.1,0.25,0.1)
  169. msh19.MeshType = "Wedge"
  170. local msh20 = Instance.new("SpecialMesh")
  171. msh20.Scale = Vector3.new(0.1,0.25,0.1)
  172. msh20.MeshType = "Wedge"
  173. local msh21 = Instance.new("SpecialMesh")
  174. msh21.Scale = Vector3.new(0.1,0.125,0.1)
  175. msh21.MeshType = "Wedge"
  176. local msh22 = Instance.new("SpecialMesh")
  177. msh22.Scale = Vector3.new(0.1,0.125,0.1)
  178. msh22.MeshType = "Wedge"
  179. local msh23 = Instance.new("SpecialMesh")
  180. msh23.Scale = Vector3.new(0.1,0.375,0.2)
  181. msh23.MeshType = "Wedge"
  182. local msh24 = Instance.new("SpecialMesh")
  183. msh24.Scale = Vector3.new(0.1,0.375,0.2)
  184. msh24.MeshType = "Wedge"
  185. local msh25 = Instance.new("SpecialMesh")
  186. msh25.Scale = Vector3.new(0.1,0.0625,0.2)
  187. msh25.MeshType = "Wedge"
  188. local msh26 = Instance.new("SpecialMesh")
  189. msh26.Scale = Vector3.new(0.1,0.0625,0.2)
  190. msh26.MeshType = "Wedge"
  191. local msh27 = Instance.new("SpecialMesh")
  192. msh27.Scale = Vector3.new(0.1,0.5,0.3)
  193. msh27.MeshType = "Wedge"
  194. local msh28 = Instance.new("SpecialMesh")
  195. msh28.Scale = Vector3.new(0.1,0.5,0.3)
  196. msh28.MeshType = "Wedge"
  197. local msh29 = Instance.new("CylinderMesh")
  198. msh29.Scale = Vector3.new(0.2,0.5,0.2)
  199. local msh30 = Instance.new("CylinderMesh")
  200. msh30.Scale = Vector3.new(0.2,0.5,0.2)
  201. local msh31 = Instance.new("SpecialMesh")
  202. msh31.Scale = Vector3.new(0.2,0.25,0.2)
  203. msh31.MeshType = "Wedge"
  204. local msh32 = Instance.new("SpecialMesh")
  205. msh32.Scale = Vector3.new(0.2,0.25,0.2)
  206. msh32.MeshType = "Wedge"
  207. local prt1 = Instance.new("Part")
  208. prt1.formFactor = 1
  209. prt1.CanCollide = false
  210. prt1.Name = "Handle"
  211. prt1.Locked = true
  212. prt1.Size = Vector3.new(1,1,1)
  213. prt1.Parent = swordholder
  214. msh1.Parent = prt1
  215. prt1.BrickColor = handlecolor
  216. local prt2 = Instance.new("Part")
  217. prt2.formFactor = 1
  218. prt2.CanCollide = false
  219. prt2.Name = "Blade"
  220. prt2.Locked = true
  221. prt2.Size = Vector3.new(1,4,1)
  222. prt2.Parent = swordholder
  223. prt2.Reflectance = 0.25
  224. msh2.Parent = prt2
  225. prt2.BrickColor = bladecolor
  226. local prt3 = Instance.new("Part")
  227. prt3.formFactor = 1
  228. prt3.CanCollide = false
  229. prt3.Name = "BladeTip1"
  230. prt3.Locked = true
  231. prt3.Size = Vector3.new(1,1,1)
  232. prt3.Parent = swordholder
  233. prt3.Reflectance = 0.25
  234. msh3.Parent = prt3
  235. prt3.BrickColor = bladecolor
  236. local prt4 = Instance.new("Part")
  237. prt4.formFactor = 1
  238. prt4.CanCollide = false
  239. prt4.Name = "BladeTip2"
  240. prt4.Locked = true
  241. prt4.Size = Vector3.new(1,1,1)
  242. prt4.Parent = swordholder
  243. prt4.Reflectance = 0.25
  244. msh4.Parent = prt4
  245. prt4.BrickColor = bladecolor
  246. local prt5 = Instance.new("Part")
  247. prt5.formFactor = 1
  248. prt5.CanCollide = false
  249. prt5.Name = "BladeP1"
  250. prt5.Locked = true
  251. prt5.Size = Vector3.new(1,1,1)
  252. prt5.Parent = swordholder
  253. prt5.Reflectance = 0
  254. msh5.Parent = prt5
  255. prt5.BrickColor = handlecolor
  256. local prt6 = Instance.new("Part")
  257. prt6.formFactor = 1
  258. prt6.CanCollide = false
  259. prt6.Name = "BladeP2"
  260. prt6.Locked = true
  261. prt6.Size = Vector3.new(1,1,1)
  262. prt6.Parent = swordholder
  263. prt6.Reflectance = 0.2
  264. msh6.Parent = prt6
  265. prt6.BrickColor = bladecolor
  266. local prt7 = Instance.new("Part")
  267. prt7.formFactor = 1
  268. prt7.CanCollide = false
  269. prt7.Name = "BladeP3"
  270. prt7.Locked = true
  271. prt7.Size = Vector3.new(1,1,1)
  272. prt7.Parent = swordholder
  273. prt7.Reflectance = 0.25
  274. msh7.Parent = prt7
  275. prt7.BrickColor = bladecolor
  276. local prt8 = Instance.new("Part")
  277. prt8.formFactor = 1
  278. prt8.CanCollide = false
  279. prt8.Name = "BladeP4"
  280. prt8.Locked = true
  281. prt8.Size = Vector3.new(1,1,1)
  282. prt8.Parent = swordholder
  283. prt8.Reflectance = 0.25
  284. msh8.Parent = prt8
  285. prt8.BrickColor = bladecolor
  286. local prt9 = Instance.new("Part")
  287. prt9.formFactor = 1
  288. prt9.CanCollide = false
  289. prt9.Name = "BladeP5"
  290. prt9.Locked = true
  291. prt9.Size = Vector3.new(1,1,1)
  292. prt9.Parent = swordholder
  293. prt9.Reflectance = 0.25
  294. msh9.Parent = prt9
  295. prt9.BrickColor = bladecolor
  296. local prt10 = Instance.new("Part")
  297. prt10.formFactor = 1
  298. prt10.CanCollide = false
  299. prt10.Name = "BladeP6"
  300. prt10.Locked = true
  301. prt10.Size = Vector3.new(1,1,1)
  302. prt10.Parent = swordholder
  303. prt10.Reflectance = 0.25
  304. msh10.Parent = prt10
  305. prt10.BrickColor = bladecolor
  306. local prt11 = Instance.new("Part")
  307. prt11.formFactor = 1
  308. prt11.CanCollide = false
  309. prt11.Name = "BladeP7"
  310. prt11.Locked = true
  311. prt11.Size = Vector3.new(1,1,1)
  312. prt11.Parent = swordholder
  313. prt11.Reflectance = 0.25
  314. msh11.Parent = prt11
  315. prt11.BrickColor = bladecolor
  316. local prt12 = Instance.new("Part")
  317. prt12.formFactor = 1
  318. prt12.CanCollide = false
  319. prt12.Name = "BladeP8"
  320. prt12.Locked = true
  321. prt12.Size = Vector3.new(1,1,1)
  322. prt12.Parent = swordholder
  323. prt12.Reflectance = 0.25
  324. msh12.Parent = prt12
  325. prt12.BrickColor = bladecolor
  326. local prt13 = Instance.new("Part")
  327. prt13.formFactor = 1
  328. prt13.CanCollide = false
  329. prt13.Name = "BladeP9"
  330. prt13.Locked = true
  331. prt13.Size = Vector3.new(1,1,1)
  332. prt13.Parent = swordholder
  333. prt13.Reflectance = 0.25
  334. msh13.Parent = prt13
  335. prt13.BrickColor = bladecolor
  336. local prt14 = Instance.new("Part")
  337. prt14.formFactor = 1
  338. prt14.CanCollide = false
  339. prt14.Name = "BladeP10"
  340. prt14.Locked = true
  341. prt14.Size = Vector3.new(1,1,1)
  342. prt14.Parent = swordholder
  343. prt14.Reflectance = 0.25
  344. msh14.Parent = prt14
  345. prt14.BrickColor = bladecolor
  346. local prt15 = Instance.new("Part")
  347. prt15.formFactor = 1
  348. prt15.CanCollide = false
  349. prt15.Name = "BladeP11"
  350. prt15.Locked = true
  351. prt15.Size = Vector3.new(1,1,1)
  352. prt15.Parent = swordholder
  353. prt15.Reflectance = 0.25
  354. msh15.Parent = prt15
  355. prt15.BrickColor = bladecolor
  356. local prt16 = Instance.new("Part")
  357. prt16.formFactor = 1
  358. prt16.CanCollide = false
  359. prt16.Name = "BladeP12"
  360. prt16.Locked = true
  361. prt16.Size = Vector3.new(1,1,1)
  362. prt16.Parent = swordholder
  363. prt16.Reflectance = 0.25
  364. msh16.Parent = prt16
  365. prt16.BrickColor = bladecolor
  366. local prt17 = Instance.new("Part")
  367. prt17.formFactor = 1
  368. prt17.CanCollide = false
  369. prt17.Name = "BladeP13"
  370. prt17.Locked = true
  371. prt17.Size = Vector3.new(1,1,1)
  372. prt17.Parent = swordholder
  373. prt17.Reflectance = 0.25
  374. msh17.Parent = prt17
  375. prt17.BrickColor = bladecolor
  376. local prt18 = Instance.new("Part")
  377. prt18.formFactor = 1
  378. prt18.CanCollide = false
  379. prt18.Name = "BladeP14"
  380. prt18.Locked = true
  381. prt18.Size = Vector3.new(1,1,1)
  382. prt18.Parent = swordholder
  383. prt18.Reflectance = 0.25
  384. msh18.Parent = prt18
  385. prt18.BrickColor = bladecolor
  386. local prt19 = Instance.new("Part")
  387. prt19.formFactor = 1
  388. prt19.CanCollide = false
  389. prt19.Name = "BladeP15"
  390. prt19.Locked = true
  391. prt19.Size = Vector3.new(1,1,1)
  392. prt19.Parent = swordholder
  393. prt19.Reflectance = 0.25
  394. msh19.Parent = prt19
  395. prt19.BrickColor = bladecolor
  396. local prt20 = Instance.new("Part")
  397. prt20.formFactor = 1
  398. prt20.CanCollide = false
  399. prt20.Name = "BladeP16"
  400. prt20.Locked = true
  401. prt20.Size = Vector3.new(1,1,1)
  402. prt20.Parent = swordholder
  403. prt20.Reflectance = 0.25
  404. msh20.Parent = prt20
  405. prt20.BrickColor = bladecolor
  406. local prt21 = Instance.new("Part")
  407. prt21.formFactor = 1
  408. prt21.CanCollide = false
  409. prt21.Name = "BladeP17"
  410. prt21.Locked = true
  411. prt21.Size = Vector3.new(1,1,1)
  412. prt21.Parent = swordholder
  413. prt21.Reflectance = 0.25
  414. msh21.Parent = prt21
  415. prt21.BrickColor = bladecolor
  416. local prt22 = Instance.new("Part")
  417. prt22.formFactor = 1
  418. prt22.CanCollide = false
  419. prt22.Name = "BladeP18"
  420. prt22.Locked = true
  421. prt22.Size = Vector3.new(1,1,1)
  422. prt22.Parent = swordholder
  423. prt22.Reflectance = 0.25
  424. msh22.Parent = prt22
  425. prt22.BrickColor = bladecolor
  426. local prt23 = Instance.new("Part")
  427. prt23.formFactor = 1
  428. prt23.CanCollide = false
  429. prt23.Name = "BladeP19"
  430. prt23.Locked = true
  431. prt23.Size = Vector3.new(1,1,1)
  432. prt23.Parent = swordholder
  433. prt23.Reflectance = 0.25
  434. msh23.Parent = prt23
  435. prt23.BrickColor = bladecolor
  436. local prt24 = Instance.new("Part")
  437. prt24.formFactor = 1
  438. prt24.CanCollide = false
  439. prt24.Name = "BladeP20"
  440. prt24.Locked = true
  441. prt24.Size = Vector3.new(1,1,1)
  442. prt24.Parent = swordholder
  443. prt24.Reflectance = 0.25
  444. msh24.Parent = prt24
  445. prt24.BrickColor = bladecolor
  446. local prt25 = Instance.new("Part")
  447. prt25.formFactor = 1
  448. prt25.CanCollide = false
  449. prt25.Name = "BladeP21"
  450. prt25.Locked = true
  451. prt25.Size = Vector3.new(1,1,1)
  452. prt25.Parent = swordholder
  453. prt25.Reflectance = 0.25
  454. msh25.Parent = prt25
  455. prt25.BrickColor = bladecolor
  456. local prt26 = Instance.new("Part")
  457. prt26.formFactor = 1
  458. prt26.CanCollide = false
  459. prt26.Name = "BladeP22"
  460. prt26.Locked = true
  461. prt26.Size = Vector3.new(1,1,1)
  462. prt26.Parent = swordholder
  463. prt26.Reflectance = 0.25
  464. msh26.Parent = prt26
  465. prt26.BrickColor = bladecolor
  466. local prt27 = Instance.new("Part")
  467. prt27.formFactor = 1
  468. prt27.CanCollide = false
  469. prt27.Name = "BladeP23"
  470. prt27.Locked = true
  471. prt27.Size = Vector3.new(1,1,1)
  472. prt27.Parent = swordholder
  473. prt27.Reflectance = 0.25
  474. msh27.Parent = prt27
  475. prt27.BrickColor = bladecolor
  476. local prt28 = Instance.new("Part")
  477. prt28.formFactor = 1
  478. prt28.CanCollide = false
  479. prt28.Name = "BladeP24"
  480. prt28.Locked = true
  481. prt28.Size = Vector3.new(1,1,1)
  482. prt28.Parent = swordholder
  483. prt28.Reflectance = 0.25
  484. msh28.Parent = prt28
  485. prt28.BrickColor = bladecolor
  486. local prt29 = Instance.new("Part")
  487. prt29.formFactor = 1
  488. prt29.CanCollide = false
  489. prt29.Name = "BladeP25"
  490. prt29.Locked = true
  491. prt29.Size = Vector3.new(1,1,1)
  492. prt29.Parent = swordholder
  493. prt29.Reflectance = 0
  494. msh29.Parent = prt29
  495. prt29.BrickColor = handlecolor
  496. local prt30 = Instance.new("Part")
  497. prt30.formFactor = 1
  498. prt30.CanCollide = false
  499. prt30.Name = "BladeP24"
  500. prt30.Locked = true
  501. prt30.Size = Vector3.new(1,1,1)
  502. prt30.Parent = swordholder
  503. prt30.Reflectance = 0
  504. msh30.Parent = prt30
  505. prt30.BrickColor = handlecolor
  506. local prt31 = Instance.new("Part")
  507. prt31.formFactor = 1
  508. prt31.CanCollide = false
  509. prt31.Name = "BladeP25"
  510. prt31.Locked = true
  511. prt31.Size = Vector3.new(1,1,1)
  512. prt31.Parent = swordholder
  513. prt31.Reflectance = 0
  514. msh31.Parent = prt31
  515. prt31.BrickColor = handlecolor
  516. local prt32 = Instance.new("Part")
  517. prt32.formFactor = 1
  518. prt32.CanCollide = false
  519. prt32.Name = "BladeP26"
  520. prt32.Locked = true
  521. prt32.Size = Vector3.new(1,1,1)
  522. prt32.Parent = swordholder
  523. prt32.Reflectance = 0
  524. msh32.Parent = prt32
  525. prt32.BrickColor = handlecolor
  526. local w1 = Instance.new("Weld")
  527. w1.Parent = prt1
  528. w1.Part0 = prt1
  529. local w2 = Instance.new("Weld")
  530. w2.Parent = prt2
  531. w2.Part0 = prt2
  532. w2.Part1 = prt1
  533. w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  534. w2.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, -2, 0)
  535. local w3 = Instance.new("Weld")
  536. w3.Parent = prt3
  537. w3.Part0 = prt3
  538. w3.Part1 = prt2
  539. w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  540. w3.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, (-1.950+0.36), 0.125)
  541. local w4 = Instance.new("Weld")
  542. w4.Parent = prt4
  543. w4.Part0 = prt4
  544. w4.Part1 = prt2
  545. w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  546. w4.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(180),0) * CFrame.new(0, (-1.95+0.36), -0.125)
  547. local w5 = Instance.new("Weld")
  548. w5.Parent = prt5
  549. w5.Part0 = prt5
  550. w5.Part1 = prt2
  551. w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  552. w5.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(0),0) * CFrame.new(0, 1.75, 0)
  553. local w6 = Instance.new("Weld")
  554. w6.Parent = prt6
  555. w6.Part0 = prt6
  556. w6.Part1 = prt2
  557. w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  558. w6.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(0),0) * CFrame.new(0, 1.75, 0)
  559. local w7 = Instance.new("Weld")
  560. w7.Parent = prt7
  561. w7.Part0 = prt7
  562. w7.Part1 = prt2
  563. w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  564. w7.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(0, (-1.950+0.66), 0.3)
  565. local w8 = Instance.new("Weld")
  566. w8.Parent = prt8
  567. w8.Part0 = prt8
  568. w8.Part1 = prt2
  569. w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  570. w8.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(180),0) * CFrame.new(0, (-1.95+0.66), -0.3)
  571. local w9 = Instance.new("Weld")
  572. w9.Parent = prt9
  573. w9.Part0 = prt9
  574. w9.Part1 = prt2
  575. w9.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  576. w9.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(180)) * CFrame.new(0, (-1.950+0.885), 0.3)
  577. local w10 = Instance.new("Weld")
  578. w10.Parent = prt10
  579. w10.Part0 = prt10
  580. w10.Part1 = prt2
  581. w10.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  582. w10.C0 = CFrame.fromEulerAnglesXYZ(0, math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+0.885), -0.3)
  583. local w11 = Instance.new("Weld")
  584. w11.Parent = prt11
  585. w11.Part0 = prt11
  586. w11.Part1 = prt2
  587. w11.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  588. w11.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+1.01), 0.3)
  589. local w12 = Instance.new("Weld")
  590. w12.Parent = prt12
  591. w12.Part0 = prt12
  592. w12.Part1 = prt2
  593. w12.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  594. w12.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+1.01), -0.3)
  595. local w13 = Instance.new("Weld")
  596. w13.Parent = prt13
  597. w13.Part0 = prt13
  598. w13.Part1 = prt2
  599. w13.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  600. w13.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.950+1.16--[[1.685]]), 0.3)
  601. local w14 = Instance.new("Weld")
  602. w14.Parent = prt14
  603. w14.Part0 = prt14
  604. w14.Part1 = prt2
  605. w14.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  606. w14.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+1.16), -0.3)
  607. local w15 = Instance.new("Weld")
  608. w15.Parent = prt15
  609. w15.Part0 = prt15
  610. w15.Part1 = prt2
  611. w15.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  612. w15.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+1.285), 0.3)
  613. local w16 = Instance.new("Weld")
  614. w16.Parent = prt16
  615. w16.Part0 = prt16
  616. w16.Part1 = prt2
  617. w16.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  618. w16.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+1.285), -0.3)
  619. local w17 = Instance.new("Weld")
  620. w17.Parent = prt17
  621. w17.Part0 = prt17
  622. w17.Part1 = prt2
  623. w17.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  624. w17.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.950+(1.285+0.375)), 0.3)
  625. local w18 = Instance.new("Weld")
  626. w18.Parent = prt18
  627. w18.Part0 = prt18
  628. w18.Part1 = prt2
  629. w18.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  630. w18.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+(1.285+0.375)), -0.3)
  631. local w19 = Instance.new("Weld")
  632. w19.Parent = prt19
  633. w19.Part0 = prt19
  634. w19.Part1 = prt2
  635. w19.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  636. w19.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+(1.285+1.08)), 0.3)
  637. local w20 = Instance.new("Weld")
  638. w20.Parent = prt20
  639. w20.Part0 = prt20
  640. w20.Part1 = prt2
  641. w20.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  642. w20.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+(1.285+1.08)), -0.3)
  643. local w21 = Instance.new("Weld")
  644. w21.Parent = prt21
  645. w21.Part0 = prt21
  646. w21.Part1 = prt2
  647. w21.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  648. w21.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.950+(1.285+1.305)), 0.3)
  649. local w22 = Instance.new("Weld")
  650. w22.Parent = prt22
  651. w22.Part0 = prt22
  652. w22.Part1 = prt2
  653. w22.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  654. w22.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+(1.285+1.305)), -0.3)
  655. local w23 = Instance.new("Weld")
  656. w23.Parent = prt23
  657. w23.Part0 = prt23
  658. w23.Part1 = prt2
  659. w23.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  660. w23.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.950+(1.285+1.6)), 0.35)
  661. local w24 = Instance.new("Weld")
  662. w24.Parent = prt24
  663. w24.Part0 = prt24
  664. w24.Part1 = prt2
  665. w24.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  666. w24.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+(1.285+1.6)), -0.35)
  667. local w25 = Instance.new("Weld")
  668. w25.Parent = prt25
  669. w25.Part0 = prt25
  670. w25.Part1 = prt2
  671. w25.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  672. w25.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(180)) * CFrame.new(0, (-1.95+(1.285+1.8625)), 0.35)
  673. local w26 = Instance.new("Weld")
  674. w26.Parent = prt26
  675. w26.Part0 = prt26
  676. w26.Part1 = prt2
  677. w26.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  678. w26.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(180)) * CFrame.new(0, (-1.95+(1.285+1.8625)), -0.35)
  679. local w27 = Instance.new("Weld")
  680. w27.Parent = prt27
  681. w27.Part0 = prt27
  682. w27.Part1 = prt2
  683. w27.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  684. w27.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, (-1.95+(1.285+2.175)), 0.4)
  685. local w28 = Instance.new("Weld")
  686. w28.Parent = prt28
  687. w28.Part0 = prt28
  688. w28.Part1 = prt2
  689. w28.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  690. w28.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(180),math.rad(0)) * CFrame.new(0, (-1.95+(1.285+2.175)), -0.4)
  691. local w29 = Instance.new("Weld")
  692. w29.Parent = prt29
  693. w29.Part0 = prt29
  694. w29.Part1 = prt2
  695. w29.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  696. w29.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0,math.rad(0)) * CFrame.new(0, (1.95+(0)), 0.4)
  697. local w30 = Instance.new("Weld")
  698. w30.Parent = prt30
  699. w30.Part0 = prt30
  700. w30.Part1 = prt2
  701. w30.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  702. w30.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180),math.rad(0)) * CFrame.new(0, (1.95+(0)), -0.4)
  703. local w31 = Instance.new("Weld")
  704. w31.Parent = prt31
  705. w31.Part0 = prt31
  706. w31.Part1 = prt2
  707. w31.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  708. w31.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-135), 0,math.rad(0)) * CFrame.new(0, (2.05+(0)), -0.74)
  709. local w32 = Instance.new("Weld")
  710. w32.Parent = prt32
  711. w32.Part0 = prt32
  712. w32.Part1 = prt2
  713. w32.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  714. w32.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-135), math.rad(180),math.rad(0)) * CFrame.new(0, (2.05+(0)), 0.74)
  715.  
  716. local RAP = Instance.new("Part")
  717. RAP.formFactor = 0
  718. RAP.CanCollide = false
  719. RAP.Name = "RAPart"
  720. RAP.Locked = true
  721. RAP.Size = Vector3.new(1,1,1)
  722. RAP.Parent = swordholder
  723. RAP.Transparency = 1
  724. local w = Instance.new("Weld")
  725. w.Parent = RAP
  726. w.Part0 = RAP
  727. w.Part1 = RightArm
  728. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  729. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  730.  
  731. function unequipweld()
  732. w1.Part1 = Torso
  733. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  734. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-225),math.rad(-90), 0) * CFrame.new(-0.7, -1, -0.6)
  735. end
  736.  
  737. unequipweld()
  738.  
  739. function equipweld()
  740. w1.Part1 = RAP
  741. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  742. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), 0, 0) * CFrame.new(0, 0, 0)
  743. end
  744.  
  745. function ss(parent,p)
  746.  
  747. local SlashSound = Instance.new("Sound")
  748. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  749. SlashSound.Parent = parent
  750. SlashSound.Volume = .7
  751. SlashSound.Pitch = p
  752. SlashSound.PlayOnRemove = true
  753. coroutine.resume(coroutine.create(function()
  754. wait()
  755. SlashSound.Parent = nil
  756. end))
  757. end
  758. function uss(parent,p)
  759.  
  760. local SlashSound = Instance.new("Sound")
  761. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  762. SlashSound.Parent = parent
  763. SlashSound.Volume = .7
  764. SlashSound.Pitch = p
  765. SlashSound.PlayOnRemove = true
  766. coroutine.resume(coroutine.create(function()
  767. wait()
  768. SlashSound.Parent = nil
  769. end))
  770. end
  771. function cs(parent,p)
  772.  
  773. local SlashSound = Instance.new("Sound")
  774. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  775. SlashSound.Parent = parent
  776. SlashSound.Volume = .7
  777. SlashSound.Pitch = p
  778. SlashSound.PlayOnRemove = true
  779. coroutine.resume(coroutine.create(function()
  780. wait()
  781. SlashSound.Parent = nil
  782. end))
  783. end
  784. function ls(parent,p)
  785.  
  786. local SlashSound = Instance.new("Sound")
  787. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  788. SlashSound.Parent = parent
  789. SlashSound.Volume = .7
  790. SlashSound.Pitch = p
  791. SlashSound.PlayOnRemove = true
  792. coroutine.resume(coroutine.create(function()
  793. wait()
  794. SlashSound.Parent = nil
  795. end))
  796. end
  797. function rs(parent,p)
  798.  
  799. local SlashSound = Instance.new("Sound")
  800. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222084"
  801. SlashSound.Parent = parent
  802. SlashSound.Volume = .7
  803. SlashSound.Pitch = p
  804. SlashSound.PlayOnRemove = true
  805. coroutine.resume(coroutine.create(function()
  806. wait()
  807. SlashSound.Parent = nil
  808. end))
  809. end
  810. function b2s(parent,p)
  811.  
  812. local SlashSound = Instance.new("Sound")
  813. SlashSound.SoundId = "http://www.roblox.com/asset/?id=12222065"
  814. SlashSound.Parent = parent
  815. SlashSound.Volume = .7
  816. SlashSound.Pitch = p
  817. SlashSound.PlayOnRemove = true
  818. coroutine.resume(coroutine.create(function()
  819. wait(0.1)
  820. SlashSound.Parent = nil
  821. end))
  822. end
  823.  
  824. function hideanim()
  825. coroutine.resume(coroutine.create(function()
  826. for i = 1, 0 , -0.1 do
  827. wait()
  828. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)*i) * CFrame.new(0, 0, 0.75*i)
  829. end
  830. end))
  831. for i = 1 , 0 , -0.1 do
  832. wait()
  833. RW.C0 = CFrame.new(1.5-0.5*i,0.5-0.25*i,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(67.5-22.5*i), 0, math.rad(22.5-67.5*i))
  834. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  835. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45*i),0,math.rad(45*i))
  836. LW.C1 = CFrame.new(0, 0.5, 0)
  837. end
  838. LWRem()
  839. for i = 1 , 0 , -0.15 do
  840. wait()
  841. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(135)-math.rad(67.5)*i, 0, math.rad(45-22.5*i))
  842. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  843. LW.C0 = CFrame.new(-1.5, 0.5, -0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(0.5-0.5*i,0,1-1*i)
  844. LW.C1 = CFrame.new(0, 0.5, 0)
  845. end
  846. coroutine.resume(coroutine.create(function()
  847. for i = 1 , 0 , -0.1 do
  848. wait()
  849. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0,0.75)
  850. end
  851. end))
  852. for i = 1 , 0 , -0.1 do
  853. wait()
  854. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)-math.rad(135)*i, 1-1*i,-1+(1+math.rad(45))*i)
  855. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  856. LW.C0 = CFrame.new(-1.5, 0.5, -0.5*i) * CFrame.fromEulerAnglesXYZ(0.5*i,0,1*i)
  857. LW.C1 = CFrame.new(0, 0.5, 0)
  858. end
  859. unequipweld()
  860. for i = 1 , 0 , -0.2 do
  861. wait()
  862. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)*i, 1*i,-1*i)
  863. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  864. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  865. LW.C1 = CFrame.new(0, 0.5, 0)
  866. end
  867. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0)
  868. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  869. LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  870. LW.C1 = CFrame.new(0, 0.5, 0)
  871. end
  872.  
  873.  
  874. function equipanim()
  875. attack = true
  876. for i = 0 , 1 , 0.2 do
  877. wait()
  878. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)*i, 1*i,-1*i)
  879. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  880. end
  881. equipweld()
  882. coroutine.resume(coroutine.create(function()
  883. for i = 0 , 1 , 0.1 do
  884. wait()
  885. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, 0) * CFrame.new(0, 0, 0)
  886. end
  887. end))
  888. uss(game.Workspace,1)
  889. for i = 0 , 1 , 0.1 do
  890. wait()
  891. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(270)-math.rad(135)*i, 1-1*i,-1+(1+math.rad(45))*i)
  892. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  893.  
  894. end
  895.  
  896. for i = 0 , 1 , 0.15 do
  897. wait()
  898. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(135)-math.rad(67.5)*i, 0, math.rad(45-22.5*i))
  899. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  900.  
  901. end
  902. LWFunc()
  903. coroutine.resume(coroutine.create(function()
  904. for i = 0 , 1 , 0.1 do
  905. wait()
  906. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)*i) * CFrame.new(0, 0, 0.75*i)
  907. end
  908. end))
  909. for i = 0 , 1 , 0.1 do
  910. wait()
  911. RW.C0 = CFrame.new(1.5-0.5*i,0.5-0.25*i,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(67.5-42.5*i), 0, math.rad(22.5-67.5*i))
  912. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  913. LW.C0 = CFrame.new(-1.5+0.5*i, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25*i),0,math.rad(45*i))
  914. LW.C1 = CFrame.new(0, 0.5, 0)
  915. end
  916. attack = false
  917. end
  918.  
  919.  
  920. function blast(n,s,c,prt)
  921. local colors = {BrickColor.new(c)}
  922. local randomv = Vector3.new(n,n,n)
  923. local mesh = Instance.new("SpecialMesh")
  924. mesh.MeshType = "Sphere"
  925. mesh.Scale = randomv * Vector3.new(0.15,0.15,0.15)
  926. local shell = Instance.new("Part")
  927. mesh.Parent = shell
  928. shell.Anchored = true
  929. shell.formFactor = 1
  930. shell.Size = Vector3.new(1,1,1)
  931. shell.CFrame = prt.CFrame
  932. shell.Parent = swordholder
  933. shell.Transparency = 0
  934. shell.BrickColor = colors[math.random(1,#colors)]
  935. shell.CanCollide = false
  936. coroutine.resume(coroutine.create(function()
  937. for i = 0 , 1 , 0.15*s do
  938. wait()
  939. mesh.Scale = randomv * Vector3.new(i,i,i)
  940. shell.Transparency = 1*i
  941. end
  942. shell.Transparency = 1
  943. shell.Parent = nil
  944. end))
  945. end
  946.  
  947. function bubblyblast(n,s,c,prt,withwaitornot)
  948. local colors = {BrickColor.new(c)}
  949. local randomv = Vector3.new(n,n,n)
  950. for i = 1 , 5 do
  951. local C = prt.CFrame
  952. local mesh = Instance.new("SpecialMesh")
  953. mesh.MeshType = "Sphere"
  954. mesh.Scale = Vector3.new(0,0,0)
  955. local shell = Instance.new("Part")
  956. mesh.Parent = shell
  957. shell.Anchored = true
  958. shell.formFactor = 0
  959. shell.Size = Vector3.new(1,1,1)
  960. shell.CFrame = CFrame.new(C.p,C.p + Vector3.new(math.random(-360,360),math.random(-360,360),math.random(-360,360)))
  961. shell.CFrame = shell.CFrame
  962. shell.Parent = swordholder
  963. shell.Transparency = 0
  964. shell.BrickColor = colors[math.random(1,#colors)]
  965. shell.CanCollide = false
  966. coroutine.resume(coroutine.create(function()
  967. for i = 0 , 1 , 0.1*s do
  968. wait()
  969. shell.Transparency = 1*i
  970. shell.CFrame = shell.CFrame + (shell.CFrame.lookVector * 0.25)
  971. mesh.Scale = randomv * Vector3.new(i,i,i)
  972. end
  973. shell.Transparency = 1
  974. shell.Parent = nil
  975. end))
  976. if withwaitornot == true then
  977. wait()
  978. end
  979. end
  980. end
  981.  
  982. function ringblast(n,s,c,prt)
  983. local colors = {BrickColor.new(c)}
  984. local randomv = Vector3.new(n,n,n)
  985. local mesh = Instance.new("SpecialMesh")
  986. mesh.MeshType = "FileMesh"
  987. mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  988. mesh.Scale = randomv * Vector3.new(2,2,2)
  989. local shell = Instance.new("Part")
  990. mesh.Parent = shell
  991. shell.Anchored = true
  992. shell.formFactor = 1
  993. shell.Size = Vector3.new(1,1,1)
  994. shell.CFrame = prt.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  995. shell.Parent = swordholder
  996. shell.Transparency = 0
  997. shell.BrickColor = colors[math.random(1,#colors)]
  998. shell.CanCollide = false
  999. coroutine.resume(coroutine.create(function()
  1000. for i = 0 , 1 , 0.15*s do
  1001. wait()
  1002. mesh.Scale = (randomv * Vector3.new(2,2,2)) * Vector3.new(i,i,i)
  1003. shell.Transparency = 1*i
  1004. end
  1005. shell.Transparency = 1
  1006. shell.Parent = nil
  1007. end))
  1008. end
  1009. if (script.Parent.className ~= "HopperBin") then
  1010. Tool = Instance.new("HopperBin")
  1011. Tool.Parent = Backpack
  1012. Tool.Name = "Soul Eater"
  1013. script.Parent = Tool
  1014. end
  1015. Bin = script.Parent
  1016. function damagesplat(dmg,hit,critornot,healornot)
  1017. local OffsetX = -2.5
  1018. local OffsetY = 5
  1019. local OffsetZ = 0
  1020. local bill = Instance.new("BillboardGui")
  1021. bill.Size = UDim2.new(1,0,1,0)
  1022. bill.Adornee = hit
  1023. bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ)
  1024. bill.Parent = hit.Parent
  1025. bill.Name = "DamageSplat"
  1026. local tex = Instance.new("TextLabel")
  1027. tex.Size = UDim2.new(5,0,2.5,0)
  1028. tex.Parent = bill
  1029. tex.Text = dmg
  1030. tex.BackgroundTransparency = 1
  1031. tex.ZIndex = 4
  1032. tex.FontSize = "Size24"
  1033. local tex2 = Instance.new("ImageLabel")
  1034. tex2.Size = UDim2.new(1,0,1,0)
  1035. tex2.Parent = tex
  1036. tex2.BackgroundTransparency = 1
  1037. tex2.Image = "http://www.roblox.com/asset/?id=42611276"
  1038. if critornot == true then
  1039. tex.TextColor3 = Color3.new(1,0.2,0.2)
  1040. elseif critornot == false then
  1041. tex.TextColor3 = Color3.new(0,0,0)
  1042. end
  1043. if healornot == true then
  1044. tex.TextColor3 = Color3.new(0.2,0.5,0.5)
  1045. end
  1046. coroutine.resume(coroutine.create(function()
  1047. wait(0.25)
  1048. for i = 0 , 1 , 0.075 do
  1049. wait()
  1050. bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ)
  1051. tex.TextTransparency = 1*i
  1052. end
  1053. bill.Parent = nil
  1054. end))
  1055. end
  1056. function OT(hit)
  1057. if Hitdeb == 1 then return end
  1058. if hit.Parent == nil then return end
  1059. local hum = hit.Parent:findFirstChild("Humanoid")
  1060. if hum ~= nil and hum ~= Character.Humanoid then
  1061. local critrandomizer = math.random(1,crtrate)
  1062. if critrandomizer ~= 1 then
  1063. local rndmdamage = math.random(mindamage,maxdamage)
  1064. damagesplat(rndmdamage,hit,false)
  1065. hum:TakeDamage(rndmdamage)
  1066. elseif critrandomizer == 1 then
  1067. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1068. damagesplat(rndmdamage,hit,true)
  1069. hum:TakeDamage(rndmdamage)
  1070. end
  1071. Hitdeb = 1
  1072. end
  1073. end
  1074. function OT(hit)
  1075. if Hitdeb == 1 then return end
  1076. if hit.Parent == nil then return end
  1077. local hum = hit.Parent:findFirstChild("Humanoid")
  1078. if hum ~= nil and hum ~= Character.Humanoid then
  1079. local critrandomizer = math.random(1,crtrate)
  1080. if critrandomizer ~= 1 then
  1081. local rndmdamage = math.random(mindamage,maxdamage)
  1082. damagesplat(rndmdamage,hit,false)
  1083. hum:TakeDamage(rndmdamage)
  1084. elseif critrandomizer == 1 then
  1085. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1086. damagesplat(rndmdamage,hit,true)
  1087. hum:TakeDamage(rndmdamage)
  1088. end
  1089. Hitdeb = 1
  1090. end
  1091. end
  1092. function OT2(hit)
  1093. if Hitdeb == 1 then return end
  1094. if hit.Parent == nil then return end
  1095. local hum = hit.Parent:findFirstChild("Humanoid")
  1096. if hum ~= nil and hum ~= Character.Humanoid then
  1097. local critrandomizer = math.random(1,crtrate)
  1098. if critrandomizer ~= 1 then
  1099. local rndmdamage = math.random(mindamage,maxdamage)
  1100. damagesplat(rndmdamage,hit,false,false)
  1101. damagesplat(rndmdamage,Head,false,true)
  1102. hum:TakeDamage(rndmdamage)
  1103. Character.Humanoid:TakeDamage(-rndmdamage)
  1104. bubblyblast(2.5,0.5,"Bright green",hit)
  1105. elseif critrandomizer == 1 then
  1106. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1107. damagesplat(rndmdamage,hit,true)
  1108. damagesplat(rndmdamage,Head,false,true)
  1109. hum:TakeDamage(rndmdamage)
  1110. Character.Humanoid:TakeDamage(-rndmdamage)
  1111. bubblyblast(2.5,0.5,"Bright green",hit)
  1112. end
  1113. Hitdeb = 1
  1114. end
  1115. end
  1116. function OT3(hit)
  1117. if Hitdeb == 1 then return end
  1118. if hit.Parent == nil then return end
  1119. local hum = hit.Parent:findFirstChild("Humanoid")
  1120. if hum ~= nil and hum ~= Character.Humanoid then
  1121. local hitornotrandomizer = math.random(1,3)
  1122. if hitornotrandomizer ~= 1 then
  1123. damagesplat(0,hit,false)
  1124. end
  1125. if hitornotrandomizer == 1 then
  1126. local critrandomizer = math.random(1,crtrate)
  1127. if critrandomizer ~= 1 then
  1128. local rndmdamage = math.random(mindamage,maxdamage)
  1129. damagesplat(rndmdamage,hit,false)
  1130. hum:TakeDamage(rndmdamage)
  1131. elseif critrandomizer == 1 then
  1132. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  1133. damagesplat(rndmdamage,hit,true)
  1134. hum:TakeDamage(rndmdamage)
  1135. end
  1136. end
  1137. Hitdeb = 1
  1138. end
  1139. end
  1140. function AoE(p,magnitude,damage,critornot)
  1141. local c = game.Workspace:GetChildren();
  1142. for i = 1, #c do
  1143. local hum = c[i]:findFirstChild("Humanoid")
  1144. if hum ~= nil and hum.Health ~= 0 then
  1145. local head = c[i]:findFirstChild("Head");
  1146. if head ~= nil then
  1147. local targ = head.Position - p.Position;
  1148. local mag = targ.magnitude;
  1149. if mag <= magnitude and c[i].Name ~= Character.Name then
  1150. local foundd = false
  1151. for ii = 1 , #AoETrue do
  1152. if AoETrue[ii] == c[i].Name then
  1153. foundd = true
  1154. end
  1155. end
  1156. if foundd then
  1157. end
  1158. --
  1159. if not foundd then
  1160. hum:TakeDamage(damage)
  1161. damagesplat(damage,head,critornot)
  1162. table.insert(AoETrue,c[i].Name)
  1163. end
  1164. end
  1165. end
  1166. end
  1167. end
  1168. end
  1169.  
  1170. function AoETremor(p,magnitude,damage,critornot)
  1171. local c = game.Workspace:GetChildren();
  1172. local founded = {}
  1173. for o = 1, #c do
  1174. local hum = c[o]:findFirstChild("Humanoid")
  1175. if hum ~= nil and hum.Health ~= 0 then
  1176. local head = c[o]:findFirstChild("Head");
  1177. if head ~= nil then
  1178. local targ = head.Position - p.Position;
  1179. local mag = targ.magnitude;
  1180. if mag <= magnitude and c[o].Name ~= Character.Name then
  1181. table.insert(founded,c[o])
  1182. end
  1183. end
  1184. end
  1185. end
  1186.  
  1187. if #founded ~= 0 then
  1188. local foundd = false
  1189. local randommm = math.floor(math.random(1,#founded))
  1190. for i = 1, #founded do
  1191.  
  1192. if randommm == i then
  1193. local hum = founded[i].Humanoid
  1194. local c = founded[i]
  1195. local CF = c.Torso.CFrame * CFrame.new(0,-4,0) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0)
  1196. local F = CFrame.new(c.Torso.Position,Torso.Position)
  1197. local CF2 = F * CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + F.lookVector * 2
  1198. local earthm = Instance.new("BlockMesh")
  1199. earthm.Scale = Vector3.new(2.5,2.5,2.5)
  1200. local earth = Instance.new("Part")
  1201. earth.formFactor = 0
  1202. earth.CanCollide = false
  1203. earth.Name = "Earth1"
  1204. earth.Locked = true
  1205. earth.Anchored = true
  1206. earth.Size = Vector3.new(1,1,1)
  1207. earth.Parent = swordholder
  1208. earth.CFrame = CF
  1209. earthm.Parent = earth
  1210. earth.BrickColor = BrickColor.new("Brown")
  1211. earth.Transparency = 0
  1212. local earthm2 = Instance.new("BlockMesh")
  1213. earthm2.Scale = Vector3.new(1.5,5,1.5)
  1214. local earth2 = Instance.new("Part")
  1215. earth2.formFactor = 0
  1216. earth2.CanCollide = false
  1217. earth2.Name = "Earth2"
  1218. earth2.Locked = true
  1219. earth2.Anchored = true
  1220. earth2.Size = Vector3.new(1,1,1)
  1221. earth2.Parent = swordholder
  1222. earth2.CFrame = CF2
  1223. earthm2.Parent = earth2
  1224. earth2.BrickColor = BrickColor.new("Brown")
  1225. earth2.Transparency = 0
  1226. local earthm3 = Instance.new("SpecialMesh")
  1227. earthm3.Scale = Vector3.new(1.5,2.5,1.5)
  1228. earthm3.MeshType = "Wedge"
  1229. local earth3 = Instance.new("Part")
  1230. earth3.formFactor = 0
  1231. earth3.CanCollide = false
  1232. earth3.Name = "Earth3"
  1233. earth3.Locked = true
  1234. earth3.Anchored = true
  1235. earth3.Size = Vector3.new(1,1,1)
  1236. earth3.Parent = swordholder
  1237. earth3.CFrame = earth2.CFrame * CFrame.new(0,5,0)
  1238. earthm3.Parent = earth3
  1239. earth3.BrickColor = BrickColor.new("Brown")
  1240. earth3.Transparency = 0
  1241. hum:TakeDamage(damage)
  1242. damagesplat(damage,c.Head,critornot)
  1243. table.insert(AoETrue,founded[i].Name)
  1244. coroutine.resume(coroutine.create(function()
  1245. for i = 1 , 1 do
  1246. rs(game.Workspace,5)
  1247. end
  1248. for z = 0 , 1 , 0.2 do
  1249. wait()
  1250. earth.CFrame = CF + Vector3.new(0,1*z,0)
  1251. earth2.CFrame = CF2 + Vector3.new(0,1.5*z,0) + (F.lookVector * -2*z)
  1252. earth3.CFrame = earth2.CFrame * CFrame.new(0,3.75,0)
  1253. end
  1254. wait(2)
  1255. earth.Parent = nil
  1256. earth2.Parent = nil
  1257. earth3.Parent = nil
  1258. end))
  1259.  
  1260.  
  1261. end
  1262. end
  1263. end
  1264. end
  1265.  
  1266.  
  1267. function AoEQuake(p,magnitude,damage,critornot)
  1268. local c = game.Workspace:GetChildren();
  1269. local founded = {}
  1270. for o = 1, #c do
  1271. local hum = c[o]:findFirstChild("Humanoid")
  1272. if hum ~= nil and hum.Health ~= 0 then
  1273. local head = c[o]:findFirstChild("Head");
  1274. if head ~= nil then
  1275. local targ = head.Position - p.Position;
  1276. local mag = targ.magnitude;
  1277. if mag <= magnitude and c[o].Name ~= Character.Name then
  1278. table.insert(founded,c[o])
  1279. end
  1280. end
  1281. end
  1282. end
  1283.  
  1284. if #founded ~= 0 then
  1285. local foundd = false
  1286. local randommm = math.floor(math.random(1,#founded))
  1287. for i = 1, #founded do
  1288.  
  1289. if randommm == i then
  1290. local hum = founded[i].Humanoid
  1291. local c = founded[i]
  1292. local F = CFrame.new(c.Torso.Position,Torso.Position)
  1293. local CF = c.Torso.CFrame * CFrame.new(0,-4.5,1) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1)
  1294. local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1)
  1295. local CF3 = (c.Torso.CFrame) * CFrame.new(1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1)
  1296. local CF4 = (c.Torso.CFrame) * CFrame.new(-1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1)
  1297. local CF5 = (c.Torso.CFrame) * CFrame.new(0,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(0)) + (F.lookVector * 0)
  1298. local earthm = Instance.new("BlockMesh")
  1299. earthm.Scale = Vector3.new(1.5,4,1.5)
  1300. local earth = Instance.new("Part")
  1301. earth.formFactor = 0
  1302. earth.CanCollide = false
  1303. earth.Name = "Earth1"
  1304. earth.Locked = true
  1305. earth.Anchored = true
  1306. earth.Size = Vector3.new(1,1,1)
  1307. earth.Parent = swordholder
  1308. earth.CFrame = CF
  1309. earthm.Parent = earth
  1310. earth.BrickColor = BrickColor.new("Brown")
  1311. earth.Transparency = 0
  1312. local earthm2 = Instance.new("BlockMesh")
  1313. earthm2.Scale = Vector3.new(1.5,4,1.5)
  1314. local earth2 = Instance.new("Part")
  1315. earth2.formFactor = 0
  1316. earth2.CanCollide = false
  1317. earth2.Name = "Earth2"
  1318. earth2.Locked = true
  1319. earth2.Anchored = true
  1320. earth2.Size = Vector3.new(1,1,1)
  1321. earth2.Parent = swordholder
  1322. earth2.CFrame = CF2
  1323. earthm2.Parent = earth2
  1324. earth2.BrickColor = BrickColor.new("Brown")
  1325. earth2.Transparency = 0
  1326. local earthm3 = Instance.new("BlockMesh")
  1327. earthm3.Scale = Vector3.new(1.5,4,1.5)
  1328. local earth3 = Instance.new("Part")
  1329. earth3.formFactor = 0
  1330. earth3.CanCollide = false
  1331. earth3.Name = "Earth3"
  1332. earth3.Locked = true
  1333. earth3.Anchored = true
  1334. earth3.Size = Vector3.new(1,1,1)
  1335. earth3.Parent = swordholder
  1336. earth3.CFrame = CF3
  1337. earthm3.Parent = earth3
  1338. earth3.BrickColor = BrickColor.new("Brown")
  1339. earth3.Transparency = 0
  1340. local earthm4 = Instance.new("BlockMesh")
  1341. earthm4.Scale = Vector3.new(1.5,4,1.5)
  1342. local earth4 = Instance.new("Part")
  1343. earth4.formFactor = 0
  1344. earth4.CanCollide = false
  1345. earth4.Name = "Earth4"
  1346. earth4.Locked = true
  1347. earth4.Anchored = true
  1348. earth4.Size = Vector3.new(1,1,1)
  1349. earth4.Parent = swordholder
  1350. earth4.CFrame = CF4
  1351. earthm4.Parent = earth4
  1352. earth4.BrickColor = BrickColor.new("Brown")
  1353. earth4.Transparency = 0
  1354. local earthm5 = Instance.new("SpecialMesh")
  1355. earthm5.Scale = Vector3.new(3,5,3)
  1356. earthm5.MeshType = "FileMesh"
  1357. earthm5.MeshId = "http://www.roblox.com/asset/?id=1778999"
  1358. local earth5 = Instance.new("Part")
  1359. earth5.formFactor = 0
  1360. earth5.CanCollide = false
  1361. earth5.Name = "Earth5"
  1362. earth5.Locked = true
  1363. earth5.Anchored = true
  1364. earth5.Size = Vector3.new(1,1,1)
  1365. earth5.Parent = swordholder
  1366. earth5.CFrame = CF5
  1367. earthm5.Parent = earth5
  1368. earth5.BrickColor = BrickColor.new("Brown")
  1369. earth5.Transparency = 0
  1370. hum:TakeDamage(damage)
  1371. damagesplat(damage,c.Head,critornot)
  1372. table.insert(AoETrue,founded[i].Name)
  1373. coroutine.resume(coroutine.create(function()
  1374. for i = 1 , 3 do
  1375. rs(game.Workspace,3)
  1376. end
  1377. for z = 0 , 1 , 0.2 do
  1378. wait()
  1379. earth.CFrame = CF + Vector3.new(0,2*z,0)
  1380. earth2.CFrame = CF2 + Vector3.new(0,2*z,0)
  1381. earth3.CFrame = CF3 + Vector3.new(0,2*z,0)
  1382. earth4.CFrame = CF4 + Vector3.new(0,2*z,0)
  1383. earth5.CFrame = CF5 + Vector3.new(0,4*z,0)
  1384. end
  1385. wait(2)
  1386. for z = 0 , 1 , 0.2 do
  1387. wait()
  1388. earth.CFrame = CF + Vector3.new(0,2-2*z,0)
  1389. earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0)
  1390. earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0)
  1391. earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0)
  1392. earth5.CFrame = CF5 + Vector3.new(0,4-7*z,0)
  1393. end
  1394. earth.Parent = nil
  1395. earth2.Parent = nil
  1396. earth3.Parent = nil
  1397. earth4.Parent = nil
  1398. earth5.Parent = nil
  1399. end))
  1400.  
  1401.  
  1402. end
  1403. end
  1404. end
  1405. end
  1406.  
  1407.  
  1408. function AoECataclysm(p,magnitude,damage,critornot)
  1409. local c = game.Workspace:GetChildren();
  1410. local founded = {}
  1411. for o = 1, #c do
  1412. local hum = c[o]:findFirstChild("Humanoid")
  1413. if hum ~= nil and hum.Health ~= 0 then
  1414. local head = c[o]:findFirstChild("Head");
  1415. if head ~= nil then
  1416. local targ = head.Position - p.Position;
  1417. local mag = targ.magnitude;
  1418. if mag <= magnitude and c[o].Name ~= Character.Name then
  1419. table.insert(founded,c[o])
  1420. --blast(2.5,0.5,"Bright red",prt2,false)
  1421. end
  1422. end
  1423. end
  1424. end
  1425.  
  1426. if #founded ~= 0 then
  1427. local foundd = false
  1428. local randommm = math.floor(math.random(1,#founded))
  1429. for i = 1, #founded do
  1430.  
  1431. if randommm == i then
  1432. local hum = founded[i].Humanoid
  1433. local c = founded[i]
  1434. local F = CFrame.new(c.Torso.Position,Torso.Position)
  1435. local CF = c.Torso.CFrame * CFrame.new(0,-4.5,2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1)
  1436. local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1)
  1437. local CF3 = (c.Torso.CFrame) * CFrame.new(3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1)
  1438. local CF4 = (c.Torso.CFrame) * CFrame.new(-3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1)
  1439. local CF5 = (c.Torso.CFrame) * CFrame.new(0,-20,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0)
  1440. local earthm = Instance.new("BlockMesh")
  1441. earthm.Scale = Vector3.new(1.5,4,1.5)
  1442. local earth = Instance.new("Part")
  1443. earth.formFactor = 0
  1444. earth.CanCollide = false
  1445. earth.Name = "Earth1"
  1446. earth.Locked = true
  1447. earth.Anchored = true
  1448. earth.Size = Vector3.new(1,1,1)
  1449. earth.Parent = swordholder
  1450. earth.CFrame = CF
  1451. earthm.Parent = earth
  1452. earth.BrickColor = BrickColor.new("Brown")
  1453. earth.Transparency = 0
  1454. local earthm2 = Instance.new("BlockMesh")
  1455. earthm2.Scale = Vector3.new(1.5,4,1.5)
  1456. local earth2 = Instance.new("Part")
  1457. earth2.formFactor = 0
  1458. earth2.CanCollide = false
  1459. earth2.Name = "Earth2"
  1460. earth2.Locked = true
  1461. earth2.Anchored = true
  1462. earth2.Size = Vector3.new(1,1,1)
  1463. earth2.Parent = swordholder
  1464. earth2.CFrame = CF2
  1465. earthm2.Parent = earth2
  1466. earth2.BrickColor = BrickColor.new("Brown")
  1467. earth2.Transparency = 0
  1468. local earthm3 = Instance.new("BlockMesh")
  1469. earthm3.Scale = Vector3.new(1.5,4,1.5)
  1470. local earth3 = Instance.new("Part")
  1471. earth3.formFactor = 0
  1472. earth3.CanCollide = false
  1473. earth3.Name = "Earth3"
  1474. earth3.Locked = true
  1475. earth3.Anchored = true
  1476. earth3.Size = Vector3.new(1,1,1)
  1477. earth3.Parent = swordholder
  1478. earth3.CFrame = CF3
  1479. earthm3.Parent = earth3
  1480. earth3.BrickColor = BrickColor.new("Brown")
  1481. earth3.Transparency = 0
  1482. local earthm4 = Instance.new("BlockMesh")
  1483. earthm4.Scale = Vector3.new(1.5,4,1.5)
  1484. local earth4 = Instance.new("Part")
  1485. earth4.formFactor = 0
  1486. earth4.CanCollide = false
  1487. earth4.Name = "Earth4"
  1488. earth4.Locked = true
  1489. earth4.Anchored = true
  1490. earth4.Size = Vector3.new(1,1,1)
  1491. earth4.Parent = swordholder
  1492. earth4.CFrame = CF4
  1493. earthm4.Parent = earth4
  1494. earth4.BrickColor = BrickColor.new("Brown")
  1495. earth4.Transparency = 0
  1496. local earthm5 = Instance.new("BlockMesh")
  1497. earthm5.Scale = Vector3.new(5,15,1)
  1498. local earth5 = Instance.new("Part")
  1499. earth5.formFactor = 0
  1500. earth5.CanCollide = false
  1501. earth5.Name = "Earth5"
  1502. earth5.Locked = true
  1503. earth5.Anchored = true
  1504. earth5.Size = Vector3.new(1,1,1)
  1505. earth5.Parent = swordholder
  1506. earth5.CFrame = CF5
  1507. earthm5.Parent = earth5
  1508. earth5.BrickColor = BrickColor.new("Brown")
  1509. earth5.Transparency = 0
  1510. local earthm6 = Instance.new("SpecialMesh")
  1511. earthm6.Scale = Vector3.new(1,2,2.5)
  1512. earthm6.MeshType = "Wedge"
  1513. local earth6 = Instance.new("Part")
  1514. earth6.formFactor = 0
  1515. earth6.CanCollide = false
  1516. earth6.Name = "EarthTip1"
  1517. earth6.Locked = true
  1518. earth6.Anchored = true
  1519. earth6.Size = Vector3.new(1,1,1)
  1520. earth6.Parent = swordholder
  1521. earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1522. earthm6.Parent = earth6
  1523. earth6.BrickColor = BrickColor.new("Brown")
  1524. earth6.Transparency = 0
  1525. local earthm7 = Instance.new("SpecialMesh")
  1526. earthm7.Scale = Vector3.new(1,2,2.5)
  1527. earthm7.MeshType = "Wedge"
  1528. local earth7 = Instance.new("Part")
  1529. earth7.formFactor = 0
  1530. earth7.CanCollide = false
  1531. earth7.Name = "EarthTip2"
  1532. earth7.Locked = true
  1533. earth7.Anchored = true
  1534. earth7.Size = Vector3.new(1,1,1)
  1535. earth7.Parent = swordholder
  1536. earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0)
  1537. earthm7.Parent = earth7
  1538. earth7.BrickColor = BrickColor.new("Brown")
  1539. earth7.Transparency = 0
  1540. hum:TakeDamage(damage)
  1541. damagesplat(damage,c.Head,critornot)
  1542. table.insert(AoETrue,founded[i].Name)
  1543. coroutine.resume(coroutine.create(function()
  1544. for i = 1 , 5 do
  1545. rs(game.Workspace,2)
  1546. end
  1547. for z = 0 , 1 , 0.1 do
  1548. wait()
  1549. earth.CFrame = CF + Vector3.new(0,2*z,0)
  1550. earth2.CFrame = CF2 + Vector3.new(0,2*z,0)
  1551. earth3.CFrame = CF3 + Vector3.new(0,2*z,0)
  1552. earth4.CFrame = CF4 + Vector3.new(0,2*z,0)
  1553. earth5.CFrame = CF5 + Vector3.new(0,22*z,0)
  1554. earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1555. earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0)
  1556. end
  1557. wait(2)
  1558. for z = 0 , 1 , 0.2 do
  1559. wait()
  1560. earth.CFrame = CF + Vector3.new(0,2-2*z,0)
  1561. earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0)
  1562. earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0)
  1563. earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0)
  1564. earth5.CFrame = CF5 + Vector3.new(0,22-30*z,0)
  1565. earth6.CFrame = CF5 * CFrame.new(-1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1566. earth7.CFrame = CF5 * CFrame.new(1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0)
  1567. end
  1568. earth.Parent = nil
  1569. earth2.Parent = nil
  1570. earth3.Parent = nil
  1571. earth4.Parent = nil
  1572. earth5.Parent = nil
  1573. earth6.Parent = nil
  1574. earth7.Parent = nil
  1575. end))
  1576.  
  1577.  
  1578. end
  1579. end
  1580. end
  1581. end
  1582.  
  1583.  
  1584. function AoETundra(p,magnitude,damage,critornot)
  1585. local c = game.Workspace:GetChildren();
  1586. local founded = {}
  1587. for o = 1, #c do
  1588. local hum = c[o]:findFirstChild("Humanoid")
  1589. if hum ~= nil and hum.Health ~= 0 then
  1590. local head = c[o]:findFirstChild("Head");
  1591. if head ~= nil then
  1592. local targ = head.Position - p.Position;
  1593. local mag = targ.magnitude;
  1594. if mag <= magnitude and c[o].Name ~= Character.Name then
  1595. table.insert(founded,c[o])
  1596. end
  1597. end
  1598. end
  1599. end
  1600.  
  1601. if #founded ~= 0 then
  1602. local foundd = false
  1603. local randommm = math.floor(math.random(1,#founded))
  1604. for i = 1, #founded do
  1605.  
  1606. if randommm == i then
  1607. local hum = founded[i].Humanoid
  1608. local c = founded[i]
  1609. local F = CFrame.new(c.Torso.Position,Torso.Position)
  1610. local CF = c.Torso.CFrame * CFrame.new(0,-4.5,1) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1)
  1611. local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1)
  1612. local CF3 = (c.Torso.CFrame) * CFrame.new(1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1)
  1613. local CF4 = (c.Torso.CFrame) * CFrame.new(-1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1)
  1614. local CF5 = (c.Torso.CFrame) * CFrame.new(0,-5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0)
  1615. local earthm = Instance.new("BlockMesh")
  1616. earthm.Scale = Vector3.new(1.5,4,1.5)
  1617. local earth = Instance.new("Part")
  1618. earth.formFactor = 0
  1619. earth.CanCollide = false
  1620. earth.Name = "Earth1"
  1621. earth.Locked = true
  1622. earth.Anchored = true
  1623. earth.Size = Vector3.new(1,1,1)
  1624. earth.Parent = swordholder
  1625. earth.CFrame = CF
  1626. earthm.Parent = earth
  1627. earth.BrickColor = BrickColor.new("Brown")
  1628. earth.Transparency = 0
  1629. local earthm2 = Instance.new("BlockMesh")
  1630. earthm2.Scale = Vector3.new(1.5,4,1.5)
  1631. local earth2 = Instance.new("Part")
  1632. earth2.formFactor = 0
  1633. earth2.CanCollide = false
  1634. earth2.Name = "Earth2"
  1635. earth2.Locked = true
  1636. earth2.Anchored = true
  1637. earth2.Size = Vector3.new(1,1,1)
  1638. earth2.Parent = swordholder
  1639. earth2.CFrame = CF2
  1640. earthm2.Parent = earth2
  1641. earth2.BrickColor = BrickColor.new("Brown")
  1642. earth2.Transparency = 0
  1643. local earthm3 = Instance.new("BlockMesh")
  1644. earthm3.Scale = Vector3.new(1.5,4,1.5)
  1645. local earth3 = Instance.new("Part")
  1646. earth3.formFactor = 0
  1647. earth3.CanCollide = false
  1648. earth3.Name = "Earth3"
  1649. earth3.Locked = true
  1650. earth3.Anchored = true
  1651. earth3.Size = Vector3.new(1,1,1)
  1652. earth3.Parent = swordholder
  1653. earth3.CFrame = CF3
  1654. earthm3.Parent = earth3
  1655. earth3.BrickColor = BrickColor.new("Brown")
  1656. earth3.Transparency = 0
  1657. local earthm4 = Instance.new("BlockMesh")
  1658. earthm4.Scale = Vector3.new(1.5,4,1.5)
  1659. local earth4 = Instance.new("Part")
  1660. earth4.formFactor = 0
  1661. earth4.CanCollide = false
  1662. earth4.Name = "Earth4"
  1663. earth4.Locked = true
  1664. earth4.Anchored = true
  1665. earth4.Size = Vector3.new(1,1,1)
  1666. earth4.Parent = swordholder
  1667. earth4.CFrame = CF4
  1668. earthm4.Parent = earth4
  1669. earth4.BrickColor = BrickColor.new("Brown")
  1670. earth4.Transparency = 0
  1671. local earthm5 = Instance.new("SpecialMesh")
  1672. earthm5.Scale = Vector3.new(3,5,3)
  1673. earthm5.MeshType = "Wedge"
  1674. local earth5 = Instance.new("Part")
  1675. earth5.formFactor = 0
  1676. earth5.CanCollide = false
  1677. earth5.Name = "Earth5"
  1678. earth5.Locked = true
  1679. earth5.Anchored = true
  1680. earth5.Size = Vector3.new(1,1,1)
  1681. earth5.Parent = swordholder
  1682. earth5.CFrame = CF5
  1683. earthm5.Parent = earth5
  1684. earth5.BrickColor = BrickColor.new("Bright blue")
  1685. earth5.Reflectance = 0.5
  1686. earth5.Transparency = 0.25
  1687. hum:TakeDamage(damage)
  1688. damagesplat(damage,c.Head,critornot)
  1689. table.insert(AoETrue,founded[i].Name)
  1690. coroutine.resume(coroutine.create(function()
  1691. for i = 1 , 3 do
  1692. rs(game.Workspace,3)
  1693. end
  1694. for z = 0 , 1 , 0.2 do
  1695. wait()
  1696. earth.CFrame = CF + Vector3.new(0,2*z,0)
  1697. earth2.CFrame = CF2 + Vector3.new(0,2*z,0)
  1698. earth3.CFrame = CF3 + Vector3.new(0,2*z,0)
  1699. earth4.CFrame = CF4 + Vector3.new(0,2*z,0)
  1700. earth5.CFrame = CF5 + Vector3.new(0,3*z,0)
  1701. end
  1702. wait(2)
  1703. for z = 0 , 1 , 0.2 do
  1704. wait()
  1705. earth.CFrame = CF + Vector3.new(0,2-2*z,0)
  1706. earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0)
  1707. earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0)
  1708. earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0)
  1709. earth5.CFrame = CF5 + Vector3.new(0,3-7*z,0)
  1710. end
  1711. earth.Parent = nil
  1712. earth2.Parent = nil
  1713. earth3.Parent = nil
  1714. earth4.Parent = nil
  1715. earth5.Parent = nil
  1716. end))
  1717.  
  1718.  
  1719. end
  1720. end
  1721. end
  1722. end
  1723.  
  1724.  
  1725. function AoEIceberg(p,magnitude,damage,critornot)
  1726. local c = game.Workspace:GetChildren();
  1727. local founded = {}
  1728. for o = 1, #c do
  1729. local hum = c[o]:findFirstChild("Humanoid")
  1730. if hum ~= nil and hum.Health ~= 0 then
  1731. local head = c[o]:findFirstChild("Head");
  1732. if head ~= nil then
  1733. local targ = head.Position - p.Position;
  1734. local mag = targ.magnitude;
  1735. if mag <= magnitude and c[o].Name ~= Character.Name then
  1736. table.insert(founded,c[o])
  1737. end
  1738. end
  1739. end
  1740. end
  1741.  
  1742. if #founded ~= 0 then
  1743. local foundd = false
  1744. local randommm = math.floor(math.random(1,#founded))
  1745. for i = 1, #founded do
  1746.  
  1747. if randommm == i then
  1748. local hum = founded[i].Humanoid
  1749. local c = founded[i]
  1750. local F = CFrame.new(c.Torso.Position,Torso.Position)
  1751. local CF = c.Torso.CFrame * CFrame.new(0,-4.5,2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1)
  1752. local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1)
  1753. local CF3 = (c.Torso.CFrame) * CFrame.new(3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1)
  1754. local CF4 = (c.Torso.CFrame) * CFrame.new(-3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1)
  1755. local CF5 = (c.Torso.CFrame) * CFrame.new(0,-20,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0)
  1756. local earthm = Instance.new("BlockMesh")
  1757. earthm.Scale = Vector3.new(1.5,4,1.5)
  1758. local earth = Instance.new("Part")
  1759. earth.formFactor = 0
  1760. earth.CanCollide = false
  1761. earth.Name = "Earth1"
  1762. earth.Locked = true
  1763. earth.Anchored = true
  1764. earth.Size = Vector3.new(1,1,1)
  1765. earth.Parent = swordholder
  1766. earth.CFrame = CF
  1767. earthm.Parent = earth
  1768. earth.BrickColor = BrickColor.new("Brown")
  1769. earth.Transparency = 0
  1770. local earthm2 = Instance.new("BlockMesh")
  1771. earthm2.Scale = Vector3.new(1.5,4,1.5)
  1772. local earth2 = Instance.new("Part")
  1773. earth2.formFactor = 0
  1774. earth2.CanCollide = false
  1775. earth2.Name = "Earth2"
  1776. earth2.Locked = true
  1777. earth2.Anchored = true
  1778. earth2.Size = Vector3.new(1,1,1)
  1779. earth2.Parent = swordholder
  1780. earth2.CFrame = CF2
  1781. earthm2.Parent = earth2
  1782. earth2.BrickColor = BrickColor.new("Brown")
  1783. earth2.Transparency = 0
  1784. local earthm3 = Instance.new("BlockMesh")
  1785. earthm3.Scale = Vector3.new(1.5,4,1.5)
  1786. local earth3 = Instance.new("Part")
  1787. earth3.formFactor = 0
  1788. earth3.CanCollide = false
  1789. earth3.Name = "Earth3"
  1790. earth3.Locked = true
  1791. earth3.Anchored = true
  1792. earth3.Size = Vector3.new(1,1,1)
  1793. earth3.Parent = swordholder
  1794. earth3.CFrame = CF3
  1795. earthm3.Parent = earth3
  1796. earth3.BrickColor = BrickColor.new("Brown")
  1797. earth3.Transparency = 0
  1798. local earthm4 = Instance.new("BlockMesh")
  1799. earthm4.Scale = Vector3.new(1.5,4,1.5)
  1800. local earth4 = Instance.new("Part")
  1801. earth4.formFactor = 0
  1802. earth4.CanCollide = false
  1803. earth4.Name = "Earth4"
  1804. earth4.Locked = true
  1805. earth4.Anchored = true
  1806. earth4.Size = Vector3.new(1,1,1)
  1807. earth4.Parent = swordholder
  1808. earth4.CFrame = CF4
  1809. earthm4.Parent = earth4
  1810. earth4.BrickColor = BrickColor.new("Brown")
  1811. earth4.Transparency = 0
  1812. local earthm5 = Instance.new("BlockMesh")
  1813. earthm5.Scale = Vector3.new(5,15,1)
  1814. local earth5 = Instance.new("Part")
  1815. earth5.formFactor = 0
  1816. earth5.CanCollide = false
  1817. earth5.Name = "Earth5"
  1818. earth5.Locked = true
  1819. earth5.Anchored = true
  1820. earth5.Size = Vector3.new(1,1,1)
  1821. earth5.Parent = swordholder
  1822. earth5.CFrame = CF5
  1823. earthm5.Parent = earth5
  1824. earth5.BrickColor = BrickColor.new("Bright blue")
  1825. earth5.Reflectance = 0.5
  1826. earth5.Transparency = 0.25
  1827. local earthm6 = Instance.new("SpecialMesh")
  1828. earthm6.Scale = Vector3.new(1,2,2.5)
  1829. earthm6.MeshType = "Wedge"
  1830. local earth6 = Instance.new("Part")
  1831. earth6.formFactor = 0
  1832. earth6.CanCollide = false
  1833. earth6.Name = "EarthTip1"
  1834. earth6.Locked = true
  1835. earth6.Anchored = true
  1836. earth6.Size = Vector3.new(1,1,1)
  1837. earth6.Parent = swordholder
  1838. earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1839. earthm6.Parent = earth6
  1840. earth6.BrickColor = BrickColor.new("Bright blue")
  1841. earth6.Reflectance = 0.5
  1842. earth6.Transparency = 0.25
  1843. local earthm7 = Instance.new("SpecialMesh")
  1844. earthm7.Scale = Vector3.new(1,2,2.5)
  1845. earthm7.MeshType = "Wedge"
  1846. local earth7 = Instance.new("Part")
  1847. earth7.formFactor = 0
  1848. earth7.CanCollide = false
  1849. earth7.Name = "EarthTip2"
  1850. earth7.Locked = true
  1851. earth7.Anchored = true
  1852. earth7.Size = Vector3.new(1,1,1)
  1853. earth7.Parent = swordholder
  1854. earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0)
  1855. earthm7.Parent = earth7
  1856. earth7.BrickColor = BrickColor.new("Bright blue")
  1857. earth7.Reflectance = 0.5
  1858. earth7.Transparency = 0.25
  1859. hum:TakeDamage(damage)
  1860. damagesplat(damage,c.Head,critornot)
  1861. table.insert(AoETrue,founded[i].Name)
  1862. coroutine.resume(coroutine.create(function()
  1863. for i = 1 , 5 do
  1864. rs(game.Workspace,2)
  1865. end
  1866. for z = 0 , 1 , 0.1 do
  1867. wait()
  1868. earth.CFrame = CF + Vector3.new(0,2*z,0)
  1869. earth2.CFrame = CF2 + Vector3.new(0,2*z,0)
  1870. earth3.CFrame = CF3 + Vector3.new(0,2*z,0)
  1871. earth4.CFrame = CF4 + Vector3.new(0,2*z,0)
  1872. earth5.CFrame = CF5 + Vector3.new(0,22*z,0)
  1873. earth6.CFrame = CF5 * CFrame.new(-1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1874. earth7.CFrame = CF5 * CFrame.new(1.25,8.5+22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0)
  1875. end
  1876. wait(2)
  1877. for z = 0 , 1 , 0.2 do
  1878. wait()
  1879. earth.CFrame = CF + Vector3.new(0,2-2*z,0)
  1880. earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0)
  1881. earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0)
  1882. earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0)
  1883. earth5.CFrame = CF5 + Vector3.new(0,22-30*z,0)
  1884. earth6.CFrame = CF5 * CFrame.new(-1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0)
  1885. earth7.CFrame = CF5 * CFrame.new(1.25,30.5-22*z,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(90+180),0)
  1886. end
  1887. earth.Parent = nil
  1888. earth2.Parent = nil
  1889. earth3.Parent = nil
  1890. earth4.Parent = nil
  1891. earth5.Parent = nil
  1892. earth6.Parent = nil
  1893. earth7.Parent = nil
  1894. end))
  1895.  
  1896.  
  1897. end
  1898. end
  1899. end
  1900. end
  1901.  
  1902. function AoEFume(p,magnitude,damage,critornot)
  1903. local c = game.Workspace:GetChildren();
  1904. local founded = {}
  1905. for o = 1, #c do
  1906. local hum = c[o]:findFirstChild("Humanoid")
  1907. if hum ~= nil and hum.Health ~= 0 then
  1908. local head = c[o]:findFirstChild("Head");
  1909. if head ~= nil then
  1910. local targ = head.Position - p.Position;
  1911. local mag = targ.magnitude;
  1912. if mag <= magnitude and c[o].Name ~= Character.Name then
  1913. table.insert(founded,c[o])
  1914. --blast(2.5,0.5,"Bright red",prt2,false)
  1915. end
  1916. end
  1917. end
  1918. end
  1919.  
  1920. if #founded ~= 0 then
  1921. local foundd = false
  1922. local randommm = math.floor(math.random(1,#founded))
  1923. for i = 1, #founded do
  1924.  
  1925. if randommm == i then
  1926. local hum = founded[i].Humanoid
  1927. local c = founded[i]
  1928. local F = CFrame.new(c.Torso.Position,Torso.Position)
  1929. local CF = c.Torso.CFrame * CFrame.new(0,-4.5,1) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1)
  1930. local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1)
  1931. local CF3 = (c.Torso.CFrame) * CFrame.new(1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1)
  1932. local CF4 = (c.Torso.CFrame) * CFrame.new(-1.5,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1)
  1933. local CF5 = (c.Torso.CFrame) * CFrame.new(0,1,0)
  1934.  
  1935. local earthm = Instance.new("BlockMesh")
  1936. earthm.Scale = Vector3.new(1.5,4,1.5)
  1937. local earth = Instance.new("Part")
  1938. earth.formFactor = 0
  1939. earth.CanCollide = false
  1940. earth.Name = "Earth1"
  1941. earth.Locked = true
  1942. earth.Anchored = true
  1943. earth.Size = Vector3.new(1,1,1)
  1944. earth.Parent = swordholder
  1945. earth.CFrame = CF
  1946. earthm.Parent = earth
  1947. earth.BrickColor = BrickColor.new("Brown")
  1948. earth.Transparency = 0
  1949. local earthm2 = Instance.new("BlockMesh")
  1950. earthm2.Scale = Vector3.new(1.5,4,1.5)
  1951. local earth2 = Instance.new("Part")
  1952. earth2.formFactor = 0
  1953. earth2.CanCollide = false
  1954. earth2.Name = "Earth2"
  1955. earth2.Locked = true
  1956. earth2.Anchored = true
  1957. earth2.Size = Vector3.new(1,1,1)
  1958. earth2.Parent = swordholder
  1959. earth2.CFrame = CF2
  1960. earthm2.Parent = earth2
  1961. earth2.BrickColor = BrickColor.new("Brown")
  1962. earth2.Transparency = 0
  1963. local earthm3 = Instance.new("BlockMesh")
  1964. earthm3.Scale = Vector3.new(1.5,4,1.5)
  1965. local earth3 = Instance.new("Part")
  1966. earth3.formFactor = 0
  1967. earth3.CanCollide = false
  1968. earth3.Name = "Earth3"
  1969. earth3.Locked = true
  1970. earth3.Anchored = true
  1971. earth3.Size = Vector3.new(1,1,1)
  1972. earth3.Parent = swordholder
  1973. earth3.CFrame = CF3
  1974. earthm3.Parent = earth3
  1975. earth3.BrickColor = BrickColor.new("Brown")
  1976. earth3.Transparency = 0
  1977. local earthm4 = Instance.new("BlockMesh")
  1978. earthm4.Scale = Vector3.new(1.5,4,1.5)
  1979. local earth4 = Instance.new("Part")
  1980. earth4.formFactor = 0
  1981. earth4.CanCollide = false
  1982. earth4.Name = "Earth4"
  1983. earth4.Locked = true
  1984. earth4.Anchored = true
  1985. earth4.Size = Vector3.new(1,1,1)
  1986. earth4.Parent = swordholder
  1987. earth4.CFrame = CF4
  1988. earthm4.Parent = earth4
  1989. earth4.BrickColor = BrickColor.new("Brown")
  1990. earth4.Transparency = 0
  1991.  
  1992. hum:TakeDamage(damage)
  1993. damagesplat(damage,c.Head,critornot)
  1994. table.insert(AoETrue,founded[i].Name)
  1995. coroutine.resume(coroutine.create(function()
  1996.  
  1997. for i = 1 , 3 do
  1998. b2s(game.Workspace,1)
  1999. end
  2000. for z = 0 , 1 , 0.2 do
  2001. wait()
  2002. earth.CFrame = CF + Vector3.new(0,2*z,0)
  2003. earth2.CFrame = CF2 + Vector3.new(0,2*z,0)
  2004. earth3.CFrame = CF3 + Vector3.new(0,2*z,0)
  2005. earth4.CFrame = CF4 + Vector3.new(0,2*z,0)
  2006. end
  2007. for i = 1 , 15 do
  2008. local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright orange")}
  2009. local rndm = math.random(1,5)
  2010. local randomv = Vector3.new(rndm,rndm,rndm)
  2011. local mesh = Instance.new("SpecialMesh")
  2012. mesh.MeshType = "Sphere"
  2013. mesh.Scale = Vector3.new(0,0,0)
  2014. local shell = Instance.new("Part")
  2015. mesh.Parent = shell
  2016. shell.Anchored = true
  2017. shell.formFactor = 0
  2018. shell.Size = Vector3.new(1,1,1)
  2019. local dir = CFrame.new(c.Torso.Position + Vector3.new(0,1,0),(c.Torso.Position + Vector3.new(0,1,0)) + Vector3.new(math.random(-2,2),3,math.random(-2,2)))
  2020. shell.CFrame = (c.Torso.CFrame * CFrame.new(0,0,0))
  2021. shell.CFrame = shell.CFrame
  2022. shell.Parent = swordholder
  2023. shell.Transparency = 0
  2024. shell.BrickColor = colors[math.random(1,#colors)]
  2025. shell.CanCollide = false
  2026. coroutine.resume(coroutine.create(function()
  2027. for i = 0 , 1 , 0.05 do
  2028. wait()
  2029. shell.Transparency = 1*i
  2030. shell.CFrame = shell.CFrame + (dir.lookVector * 1*i)
  2031. mesh.Scale = randomv * Vector3.new(i,i,i)
  2032. end
  2033. shell.Transparency = 1
  2034. shell.Parent = nil
  2035. end))
  2036. wait()
  2037. end
  2038. wait(2)
  2039. for z = 0 , 1 , 0.2 do
  2040. wait()
  2041. earth.CFrame = CF + Vector3.new(0,2-2*z,0)
  2042. earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0)
  2043. earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0)
  2044. earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0)
  2045. end
  2046. earth.Parent = nil
  2047. earth2.Parent = nil
  2048. earth3.Parent = nil
  2049. earth4.Parent = nil
  2050. end))
  2051.  
  2052.  
  2053. end
  2054.  
  2055. end
  2056. end
  2057. end
  2058.  
  2059. function AoEEruption(p,magnitude,damage,critornot)
  2060. local c = game.Workspace:GetChildren();
  2061. local founded = {}
  2062. for o = 1, #c do
  2063. local hum = c[o]:findFirstChild("Humanoid")
  2064. if hum ~= nil and hum.Health ~= 0 then
  2065. local head = c[o]:findFirstChild("Head");
  2066. if head ~= nil then
  2067. local targ = head.Position - p.Position;
  2068. local mag = targ.magnitude;
  2069. if mag <= magnitude and c[o].Name ~= Character.Name then
  2070. table.insert(founded,c[o])
  2071. end
  2072. end
  2073. end
  2074. end
  2075.  
  2076. if #founded ~= 0 then
  2077. local foundd = false
  2078. local randommm = math.floor(math.random(1,#founded))
  2079. for i = 1, #founded do
  2080.  
  2081. if randommm == i then
  2082. local hum = founded[i].Humanoid
  2083. local c = founded[i]
  2084. local F = CFrame.new(c.Torso.Position,Torso.Position)
  2085. local CF = c.Torso.CFrame * CFrame.new(0,-4.5,2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45),0,0) + (F.lookVector * 1)
  2086. local CF2 = (c.Torso.CFrame) * CFrame.new(0,-4.5,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(45+90),math.rad(0),0) + (F.lookVector * -1)
  2087. local CF3 = (c.Torso.CFrame) * CFrame.new(3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(-45)) + (F.lookVector * 1)
  2088. local CF4 = (c.Torso.CFrame) * CFrame.new(-3,-4.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(45)) + (F.lookVector * -1)
  2089. local CF5 = (c.Torso.CFrame) * CFrame.new(0,-20,0) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(math.random(-360,350)),math.rad(0)) + (F.lookVector * 0)
  2090. local earthm = Instance.new("BlockMesh")
  2091. earthm.Scale = Vector3.new(1.5,4,1.5)
  2092. local earth = Instance.new("Part")
  2093. earth.formFactor = 0
  2094. earth.CanCollide = false
  2095. earth.Name = "Earth1"
  2096. earth.Locked = true
  2097. earth.Anchored = true
  2098. earth.Size = Vector3.new(1,1,1)
  2099. earth.Parent = swordholder
  2100. earth.CFrame = CF
  2101. earthm.Parent = earth
  2102. earth.BrickColor = BrickColor.new("Brown")
  2103. earth.Transparency = 0
  2104. local earthm2 = Instance.new("BlockMesh")
  2105. earthm2.Scale = Vector3.new(1.5,4,1.5)
  2106. local earth2 = Instance.new("Part")
  2107. earth2.formFactor = 0
  2108. earth2.CanCollide = false
  2109. earth2.Name = "Earth2"
  2110. earth2.Locked = true
  2111. earth2.Anchored = true
  2112. earth2.Size = Vector3.new(1,1,1)
  2113. earth2.Parent = swordholder
  2114. earth2.CFrame = CF2
  2115. earthm2.Parent = earth2
  2116. earth2.BrickColor = BrickColor.new("Brown")
  2117. earth2.Transparency = 0
  2118. local earthm3 = Instance.new("BlockMesh")
  2119. earthm3.Scale = Vector3.new(1.5,4,1.5)
  2120. local earth3 = Instance.new("Part")
  2121. earth3.formFactor = 0
  2122. earth3.CanCollide = false
  2123. earth3.Name = "Earth3"
  2124. earth3.Locked = true
  2125. earth3.Anchored = true
  2126. earth3.Size = Vector3.new(1,1,1)
  2127. earth3.Parent = swordholder
  2128. earth3.CFrame = CF3
  2129. earthm3.Parent = earth3
  2130. earth3.BrickColor = BrickColor.new("Brown")
  2131. earth3.Transparency = 0
  2132. local earthm4 = Instance.new("BlockMesh")
  2133. earthm4.Scale = Vector3.new(1.5,4,1.5)
  2134. local earth4 = Instance.new("Part")
  2135. earth4.formFactor = 0
  2136. earth4.CanCollide = false
  2137. earth4.Name = "Earth4"
  2138. earth4.Locked = true
  2139. earth4.Anchored = true
  2140. earth4.Size = Vector3.new(1,1,1)
  2141. earth4.Parent = swordholder
  2142. earth4.CFrame = CF4
  2143. earthm4.Parent = earth4
  2144. earth4.BrickColor = BrickColor.new("Brown")
  2145. earth4.Transparency = 0
  2146. local earthm5 = Instance.new("CylinderMesh")
  2147. earthm5.Scale = Vector3.new(5,15,5)
  2148. local earth5 = Instance.new("Part")
  2149. earth5.formFactor = 0
  2150. earth5.CanCollide = false
  2151. earth5.Name = "Earth5"
  2152. earth5.Locked = true
  2153. earth5.Anchored = true
  2154. earth5.Size = Vector3.new(1,1,1)
  2155. earth5.Parent = swordholder
  2156. earth5.CFrame = CF5
  2157. earthm5.Parent = earth5
  2158. earth5.BrickColor = BrickColor.new("Bright red")
  2159. earth5.Transparency = 0.25
  2160. hum:TakeDamage(damage)
  2161. damagesplat(damage,c.Head,critornot)
  2162. table.insert(AoETrue,founded[i].Name)
  2163. coroutine.resume(coroutine.create(function()
  2164. for i = 1 , 5 do
  2165. rs(game.Workspace,2)
  2166. end
  2167. for z = 0 , 1 , 0.2 do
  2168. wait()
  2169. earth.CFrame = CF + Vector3.new(0,2*z,0)
  2170. earth2.CFrame = CF2 + Vector3.new(0,2*z,0)
  2171. earth3.CFrame = CF3 + Vector3.new(0,2*z,0)
  2172. earth4.CFrame = CF4 + Vector3.new(0,2*z,0)
  2173. earth5.CFrame = CF5 + Vector3.new(0,22*z,0)
  2174. end
  2175. for z = 0 , 1 , 0.1 do
  2176. wait()
  2177. earthm5.Scale = Vector3.new(5,15+500*z,5)
  2178. end
  2179. for i = 1 , 30 do
  2180. local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright orange")}
  2181. local rndm = math.random(1,5)
  2182. local randomv = Vector3.new(rndm,rndm,rndm)
  2183. local mesh = Instance.new("SpecialMesh")
  2184. mesh.MeshType = "Sphere"
  2185. mesh.Scale = Vector3.new(0,0,0)
  2186. local shell = Instance.new("Part")
  2187. mesh.Parent = shell
  2188. shell.Anchored = true
  2189. shell.formFactor = 0
  2190. shell.Size = Vector3.new(1,1,1)
  2191. local dir = CFrame.new(c.Torso.Position + Vector3.new(0,1,0),(c.Torso.Position + Vector3.new(0,1,0)) + Vector3.new(math.random(-2,2),3,math.random(-2,2)))
  2192. shell.CFrame = (c.Torso.CFrame * CFrame.new(0,0,0))
  2193. shell.CFrame = shell.CFrame
  2194. shell.Parent = swordholder
  2195. shell.Transparency = 0
  2196. shell.BrickColor = colors[math.random(1,#colors)]
  2197. shell.CanCollide = false
  2198. coroutine.resume(coroutine.create(function()
  2199. for i = 0 , 1 , 0.05 do
  2200. wait()
  2201. shell.Transparency = 1*i
  2202. shell.CFrame = shell.CFrame + (dir.lookVector * 1*i)
  2203. mesh.Scale = randomv * Vector3.new(i,i,i)
  2204. end
  2205. shell.Transparency = 1
  2206. shell.Parent = nil
  2207. end))
  2208. wait()
  2209. end
  2210. wait(1)
  2211. for z = 0 , 1 , 0.2 do
  2212. wait()
  2213. earth.CFrame = CF + Vector3.new(0,2-2*z,0)
  2214. earth2.CFrame = CF2 + Vector3.new(0,2-2*z,0)
  2215. earth3.CFrame = CF3 + Vector3.new(0,2-2*z,0)
  2216. earth4.CFrame = CF4 + Vector3.new(0,2-2*z,0)
  2217. earth5.CFrame = CF5 + Vector3.new(0,22-30*z,0)
  2218. earthm5.Scale = Vector3.new(5-5*z,515-500*z,5-5*z)
  2219. end
  2220. earth.Parent = nil
  2221. earth2.Parent = nil
  2222. earth3.Parent = nil
  2223. earth4.Parent = nil
  2224. earth5.Parent = nil
  2225. end))
  2226.  
  2227.  
  2228. end
  2229. end
  2230. end
  2231. end
  2232.  
  2233.  
  2234.  
  2235. function effect()
  2236. local clone = prt2:clone()
  2237. clone.Parent = Character
  2238. clone.Anchored = true
  2239. clone.Transparency = 0
  2240. clone.BrickColor = BrickColor.new("Bright red")
  2241. coroutine.resume(coroutine.create(function()
  2242. for i = 0 , 1 , 0.1 do
  2243. clone.Transparency = 1*i
  2244. wait()
  2245. end
  2246. clone.Parent = nil
  2247. end))
  2248. local clone = prt3:clone()
  2249. clone.Parent = Character
  2250. clone.Anchored = true
  2251. clone.Transparency = 0
  2252. clone.BrickColor = BrickColor.new("Bright red")
  2253. coroutine.resume(coroutine.create(function()
  2254. for i = 0 , 1 , 0.1 do
  2255. clone.Transparency = 1*i
  2256. wait()
  2257. end
  2258. clone.Parent = nil
  2259. end))
  2260. local clone = prt4:clone()
  2261. clone.Parent = Character
  2262. clone.Anchored = true
  2263. clone.Transparency = 0
  2264. clone.BrickColor = BrickColor.new("Bright red")
  2265. coroutine.resume(coroutine.create(function()
  2266. for i = 0 , 1 , 0.1 do
  2267. clone.Transparency = 1*i
  2268. wait()
  2269. end
  2270. clone.Parent = nil
  2271. end))
  2272. end
  2273.  
  2274. function walkspeed(value)
  2275. Character.Humanoid.WalkSpeed = value
  2276. end
  2277.  
  2278.  
  2279.  
  2280. function atktype(s,e)
  2281.  
  2282. coroutine.resume(coroutine.create(function ()
  2283. attacktype = e
  2284. wait(0.25)
  2285. if attack == false then
  2286. attacktype = s
  2287. end
  2288. end))
  2289.  
  2290. end
  2291.  
  2292.  
  2293. function slash()
  2294. attack = true
  2295. for i = 0 , 1 , 0.1 do
  2296. wait()
  2297. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45))
  2298. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2299. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i),0,math.rad(45))
  2300. LW.C1 = CFrame.new(0, 0.5, 0)
  2301. end
  2302. ss(game.Workspace,1)
  2303. local con = prt2.Touched:connect(OT)
  2304. local CF = Torso.CFrame
  2305. local bg = Instance.new("BodyGyro")
  2306. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2307. bg.P = bg.P + 10000
  2308. bg.cframe = CF
  2309. bg.Parent = Torso
  2310. local bv = Instance.new("BodyPosition")
  2311. bv.Parent = Torso
  2312. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2313. bv.position = CF.p + (Vector3.new(0,3,0) + (CF.lookVector * 5))
  2314. for i = 0 , 1 , 0.2 do
  2315. wait()
  2316. RW.C0 = CFrame.new(1,1-0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i), 0, math.rad(-45))
  2317. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2318. LW.C0 = CFrame.new(-1, 1-0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i),0,math.rad(45))
  2319. LW.C1 = CFrame.new(0, 0.5, 0)
  2320. effect()
  2321. if i == 0.8 then
  2322. bv.position = CF.p + (Vector3.new(0,-1,0) + (CF.lookVector * 12.5))
  2323. end
  2324. end
  2325. --RWLFunc()
  2326. --LWLFunc()
  2327. for i = 0 , 1 , 0.1 do
  2328. wait()
  2329. RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i), 0, math.rad(-45))
  2330. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2331. LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i),0,math.rad(45))
  2332. LW.C1 = CFrame.new(0, 0.5, 0)
  2333. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(45*i),0,0)
  2334. RWL.C1 = CFrame.new(0.5, 1, 0)
  2335. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i),0,0)
  2336. LWL.C1 = CFrame.new(-0.5, 1-1*i, 0.5*i)
  2337. if i == 0.2 then
  2338. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0))
  2339. ss(game.Workspace,1.25)
  2340. end
  2341. end
  2342. for i = 0 , 1 , 0.1 do
  2343. wait()
  2344. RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i), 0, math.rad(45-90))
  2345. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2346. LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),0,math.rad(-45+90))
  2347. LW.C1 = CFrame.new(0, 0.5, 0)
  2348. delay(0.1,function()
  2349. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(45-45*i),0,0)
  2350. RWL.C1 = CFrame.new(0.5, 1, 0)
  2351. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+45*i),0,0)
  2352. LWL.C1 = CFrame.new(-0.5, 1*i, 0.5-0.5*i)
  2353. end)
  2354. end
  2355. bg.Parent = nil
  2356. bv.Parent = nil
  2357. wait(0.125)
  2358. delay(0.2,function()
  2359. --RWLRem()
  2360. --LWLRem()
  2361.  
  2362. end)
  2363. con:disconnect()
  2364. Hitdeb = 0
  2365. wait(0.3)
  2366. --LegsFix()
  2367. attack = false
  2368. end
  2369.  
  2370. function revenge()
  2371. attack = true
  2372. for i = 0 , 1 , 0.1 do
  2373. wait()
  2374. RW.C0 = CFrame.new(1,0.25+1*i,-0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45))
  2375. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2376. LW.C0 = CFrame.new(-1, 0.25+1*i, -0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i),0,math.rad(45))
  2377. LW.C1 = CFrame.new(0, 0.5, 0)
  2378. end
  2379. cs(game.Workspace,1.25)
  2380. bubblyblast(2.5,0.5,"Bright red",prt2,false)
  2381. wait(0.1)
  2382. bubblyblast(2.5,0.5,"Bright red",prt2,false)
  2383. wait(0.1)
  2384. bubblyblast(2.5,0.5,"Bright red",prt2,false)
  2385. wait(0.1)
  2386. if Character.Humanoid.MaxHealth - Character.Humanoid.Health >= 10 then
  2387. mindamage = Character.Humanoid.MaxHealth - Character.Humanoid.Health - 10
  2388. elseif Character.Humanoid.MaxHealth - Character.Humanoid.Health < 10 then
  2389. mindamage = 0
  2390. end
  2391. maxdamage = Character.Humanoid.MaxHealth - Character.Humanoid.Health
  2392. crtmaxdamage = Character.Humanoid.MaxHealth - Character.Humanoid.Health + 25
  2393. ss(game.Workspace,1)
  2394. local con = prt2.Touched:connect(OT)
  2395. local bv = Instance.new("BodyPosition")
  2396. bv.Parent = Torso
  2397. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2398. local CF = Torso.CFrame
  2399. bv.position = CF.p + (Vector3.new(0,8,0) + (Torso.CFrame.lookVector * 5))
  2400. for i = 0 , 1 , 0.2 do
  2401. wait()
  2402. RW.C0 = CFrame.new(1,1.25-1*i,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i), 0, math.rad(-45))
  2403. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2404. LW.C0 = CFrame.new(-1, 1.25-1*i, -0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i),0,math.rad(45))
  2405. LW.C1 = CFrame.new(0, 0.5, 0)
  2406. effect()
  2407. if i == 0.4 then
  2408. bv.position = CF.p + (Vector3.new(0,-1,0) + (Torso.CFrame.lookVector * 12.5))
  2409. end
  2410. end
  2411. for i = 0 , 1 , 0.1 do
  2412. wait()
  2413. RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+90*i), 0, math.rad(-45))
  2414. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2415. LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+90*i),0,math.rad(45))
  2416. LW.C1 = CFrame.new(0, 0.5, 0)
  2417. end
  2418. bv.Parent = nil
  2419. wait(0.25)
  2420. mindamage = omindamage
  2421. maxdamage = omaxdamage
  2422. crtmaxdamage = ocrtmaxdamage
  2423. con:disconnect()
  2424. Hitdeb = 0
  2425. attack = false
  2426. end
  2427.  
  2428.  
  2429.  
  2430. function quickslash()
  2431. attack = true
  2432. local windeffect = true
  2433. for i = 0 , 1 , 0.2 do
  2434. wait()
  2435. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45))
  2436. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2437. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i),0,math.rad(45))
  2438. LW.C1 = CFrame.new(0, 0.5, 0)
  2439. end
  2440. coroutine.resume(coroutine.create(function()
  2441. repeat
  2442. wait()
  2443. local manaringm = Instance.new("SpecialMesh")
  2444. manaringm.Scale = Vector3.new(3,1,3)
  2445. manaringm.MeshType = "FileMesh"
  2446. manaringm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2447. local manaring = Instance.new("Part")
  2448. manaring.formFactor = 1
  2449. manaring.CanCollide = false
  2450. manaring.Name = "Handle"
  2451. manaring.Locked = true
  2452. manaring.Anchored = true
  2453. manaring.Size = Vector3.new(1,1,1)
  2454. manaring.Parent = swordholder
  2455. manaring.CFrame = Torso.CFrame * CFrame.new(0,-2.5,0)
  2456. manaringm.Parent = manaring
  2457. manaring.BrickColor = BrickColor.new("Institutional white")
  2458. manaring.Transparency = 0.5
  2459. delay(0.25,function()
  2460. for i = 0 , 1 , 0.1 do
  2461. wait()
  2462. manaring.Transparency = 0.5+0.5*i
  2463. end
  2464. manaring.Parent = nil
  2465. end)
  2466. until windeffect == false
  2467. end))
  2468. --RWLFunc()
  2469. --LWLFunc()
  2470. coroutine.resume(coroutine.create(function()
  2471. for i = 0 , 1 , 0.1 do
  2472. wait()
  2473. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i),0,0)
  2474. RWL.C1 = CFrame.new(0.5, 1, 0)
  2475. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i),0,0)
  2476. LWL.C1 = CFrame.new(-0.5, 1,0)
  2477. end end))
  2478. ss(game.Workspace,1.25)
  2479. local con = prt2.Touched:connect(OT)
  2480. local CF = Torso.CFrame
  2481. local bg = Instance.new("BodyGyro")
  2482. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2483. bg.P = bg.P + 10000
  2484. bg.cframe = CF
  2485. bg.Parent = Torso
  2486. local bv = Instance.new("BodyPosition")
  2487. bv.Parent = Torso
  2488. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2489. bv.P = bv.P + 10000
  2490. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 12.5))
  2491. for i = 0 , 1 , 0.2 do
  2492. wait()
  2493. RW.C0 = CFrame.new(1,1-0.75*i,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i), 0, math.rad(-45))
  2494. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2495. LW.C0 = CFrame.new(-1, 1-0.75*i, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(180-225*i),0,math.rad(45))
  2496. LW.C1 = CFrame.new(0, 0.5, 0)
  2497. effect()
  2498. end
  2499. for i = 0 , 1 , 0.2 do
  2500. wait()
  2501. RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i), 0, math.rad(-45))
  2502. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2503. LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(-45+150*i),0,math.rad(45))
  2504. LW.C1 = CFrame.new(0, 0.5, 0)
  2505. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+90*i),0,0)
  2506. RWL.C1 = CFrame.new(0.5, 1, 0)
  2507. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45),0,0)
  2508. LWL.C1 = CFrame.new(-0.5, 1-1*i,0.5*i)
  2509. if i == 0.2 then
  2510. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0))
  2511. ss(game.Workspace,1.75)
  2512. windeffect = false
  2513. end
  2514. end
  2515. for i = 0 , 1 , 0.1 do
  2516. wait()
  2517. RW.C0 = CFrame.new(1,0.25,-0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i), 0, math.rad(45-90))
  2518. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2519. LW.C0 = CFrame.new(-1, 0.25, -0.75) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),0,math.rad(-45+90))
  2520. LW.C1 = CFrame.new(0, 0.5, 0)
  2521. delay(0.1,function()
  2522. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(45-45*i),0,0)
  2523. RWL.C1 = CFrame.new(0.5, 1, 0)
  2524. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+45*i),0,0)
  2525. LWL.C1 = CFrame.new(-0.5, 1*i, 0.5-0.5*i)
  2526. end)
  2527. end
  2528. bv.Parent = nil
  2529. bg.Parent = nil
  2530. wait(0.125)
  2531. delay(0.15,function()
  2532. --RWLRem()
  2533. --LWLRem()
  2534. end)
  2535. con:disconnect()
  2536. Hitdeb = 0
  2537. wait(0.3)
  2538. attack = false
  2539. --LegsFix()
  2540. end
  2541.  
  2542.  
  2543. function windslash()
  2544. attack = true
  2545. local windeffect = true
  2546. for i = 0 , 1 , 0.2 do
  2547. wait()
  2548. RW.C0 = CFrame.new(1+0.5*i,0.25+0.25*i,-0.75+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+45*i), 0, math.rad(-45+45*i))
  2549. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2550. LW.C0 = CFrame.new(-1-0.5*i, 0.25+0.25*i, -0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45-90*i),0,math.rad(45-90*i))
  2551. LW.C1 = CFrame.new(0, 0.5, 0)
  2552. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45+45*i)) * CFrame.new(0, 0, 0.75-0.75*i)
  2553. end
  2554. coroutine.resume(coroutine.create(function()
  2555. repeat
  2556. wait(0.05)
  2557. local manaringm = Instance.new("SpecialMesh")
  2558. manaringm.Scale = Vector3.new(6,3,4)
  2559. manaringm.MeshType = "FileMesh"
  2560. manaringm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2561. local manaring = Instance.new("Part")
  2562. manaring.formFactor = 1
  2563. manaring.CanCollide = false
  2564. manaring.Name = "Handle"
  2565. manaring.Locked = true
  2566. manaring.Anchored = true
  2567. manaring.Size = Vector3.new(1,1,1)
  2568. manaring.Parent = swordholder
  2569. manaring.CFrame = Torso.CFrame * CFrame.new(0,0,-2.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  2570. manaringm.Parent = manaring
  2571. manaring.BrickColor = BrickColor.new("Institutional white")
  2572. manaring.Transparency = 0.5
  2573. local manaringm2 = Instance.new("SpecialMesh")
  2574. manaringm2.Scale = Vector3.new(6,5,4)
  2575. manaringm2.MeshType = "FileMesh"
  2576. manaringm2.MeshId = "http://www.roblox.com/asset/?id=1038653"
  2577. local manaring2 = Instance.new("Part")
  2578. manaring2.formFactor = 1
  2579. manaring2.CanCollide = false
  2580. manaring2.Name = "Handle2"
  2581. manaring2.Locked = true
  2582. manaring2.Anchored = true
  2583. manaring2.Size = Vector3.new(1,1,1)
  2584. manaring2.Parent = swordholder
  2585. manaring2.CFrame = Torso.CFrame * CFrame.new(0,-0.25,-4.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2586. manaringm2.Parent = manaring2
  2587. manaring2.BrickColor = BrickColor.new("Institutional white")
  2588. manaring2.Transparency = 0.5
  2589. delay(0.25,function()
  2590. for i = 0 , 1 , 0.1 do
  2591. wait()
  2592. manaring.Transparency = 0.5+0.5*i
  2593. manaring2.Transparency = 0.5+0.5*i
  2594. end
  2595. manaring.Parent = nil
  2596. manaring2.Parent = nil
  2597. end)
  2598. until windeffect == false
  2599. end))
  2600. ss(game.Workspace,0.5)
  2601. local bv = Instance.new("BodyPosition")
  2602. bv.Parent = Torso
  2603. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2604. bv.P = bv.P + 100
  2605. local CF = Torso.CFrame
  2606. local bg = Instance.new("BodyGyro")
  2607. bg.maxTorque = Vector3.new(math.huge,0,math.huge)
  2608. bg.P = bg.P + 10000
  2609. bg.cframe = CF
  2610. bg.Parent = Torso
  2611. bv.position = Torso.CFrame.p + (Vector3.new(0,0,0) + (Torso.CFrame.lookVector * 7.5))
  2612. for i = 0 , 25 do
  2613. wait()
  2614. bv.position = Torso.CFrame.p + (Vector3.new(0,0,0) + (Torso.CFrame.lookVector * 7.5))
  2615. local critrandomizer = math.random(1,crtrate)
  2616. if critrandomizer ~= 1 then
  2617. local rndmdamage = math.random(mindamage,maxdamage)
  2618. AoE(prt2,12.5,math.floor(rndmdamage*0.75),false)
  2619. elseif critrandomizer == 1 then
  2620. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2621. AoE(prt2,12.5,math.floor(rndmdamage*0.75),true)
  2622. end
  2623. end
  2624. windeffect = false
  2625. for ii = 1 , #AoETrue do
  2626. table.remove(AoETrue,#AoETrue)
  2627. end
  2628. for i = 0 , 1 , 0.1 do
  2629. wait()
  2630. RW.C0 = CFrame.new(1.5-0.5*i,0.5-0.25*i,0.25-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i), 0, math.rad(-45*i))
  2631. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2632. LW.C0 = CFrame.new(-1.5+0.5*i, 0.25-0.25*i, -0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i),0,math.rad(-45+90*i))
  2633. LW.C1 = CFrame.new(0, 0.5, 0)
  2634. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45*i)) * CFrame.new(0, 0, 0.75*i)
  2635. end
  2636. bv.Parent = nil
  2637. bg.Parent = nil
  2638. wait(0.125)
  2639. Hitdeb = 0
  2640. wait(0.3)
  2641. attack = false
  2642. end
  2643.  
  2644. function drain()
  2645. attack = true
  2646. for i = 0 , 1 , 0.1 do
  2647. wait()
  2648. RW.C0 = CFrame.new(1,0.25+0.25*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+25*i), 0, math.rad(-45))
  2649. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2650. LW.C0 = CFrame.new(-1, 0.25+0.25*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+25*i),0,math.rad(45))
  2651. LW.C1 = CFrame.new(0, 0.5, 0)
  2652. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  2653. end
  2654. ss(game.Workspace,1)
  2655. local con = prt2.Touched:connect(OT2)
  2656. local CF = Torso.CFrame
  2657. local bg = Instance.new("BodyGyro")
  2658. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2659. bg.P = bg.P + 10000
  2660. bg.cframe = CF
  2661. bg.Parent = Torso
  2662. local bv = Instance.new("BodyPosition")
  2663. bv.Parent = Torso
  2664. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2665. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0))
  2666. for i = 0 , 1 , 0.1 do
  2667. wait()
  2668. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(70+20*i), 0, math.rad(-45))
  2669. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2670. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(70+20*i),0,math.rad(45))
  2671. LW.C1 = CFrame.new(0, 0.5, 0)
  2672. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 15*i))
  2673. effect()
  2674. end
  2675.  
  2676. for i = 0 , 1 , 0.1 do
  2677. wait()
  2678. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i), 0, math.rad(-45))
  2679. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2680. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i),0,math.rad(45))
  2681. LW.C1 = CFrame.new(0, 0.5, 0)
  2682. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  2683. if i == 0.2 then
  2684. bv.position = CF.p + (Vector3.new(0,5,0) + (CF.lookVector * 0.5))
  2685. ss(game.Workspace,1.25)
  2686. end
  2687. if i == 0.5 then
  2688. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0))
  2689. end
  2690. end
  2691. bg.Parent = nil
  2692. bv.Parent = nil
  2693. wait(0.125)
  2694. con:disconnect()
  2695. Hitdeb = 0
  2696. wait(0.3)
  2697. attack = false
  2698. end
  2699.  
  2700.  
  2701. function unleash()
  2702. attack = true
  2703. local gg = swordholder:GetChildren()
  2704. local thing = 1
  2705. cs(game.Workspace,1.25)
  2706. for i = 0 , 1 , 0.1 do
  2707. wait()
  2708. RW.C0 = CFrame.new(1+0.5*i,0.25+0.25*i,-0.75+0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+135*i), 0, math.rad(-45+90*i))
  2709. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2710. LW.C0 = CFrame.new(-1, 0.25+0.25*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+25*i),0,math.rad(45))
  2711. LW.C1 = CFrame.new(0, 0.5, 0)
  2712. for l = 1 , #gg do
  2713. if gg[l].className == "Part" and gg[l].Name ~= "RAPart" then
  2714. gg[l].Transparency = 1*i
  2715. end
  2716. end
  2717. if thing == 2 then
  2718. thing = 1
  2719. end
  2720. if thing == 1 then
  2721. thing = thing + 1
  2722. bubblyblast(0.75,2,"Institutional white",prt2,false)
  2723. ringblast(2,0.5,"Institutional white",prt2)
  2724. end
  2725.  
  2726. end
  2727. ss(game.Workspace,1)
  2728. mindamage = 50
  2729. maxdamage = 95
  2730. crtmaxdamage = 150
  2731. local con = prt2.Touched:connect(OT3)
  2732. local CF = Torso.CFrame
  2733. local bg = Instance.new("BodyGyro")
  2734. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  2735. bg.P = bg.P + 10000
  2736. bg.cframe = CF
  2737. bg.Parent = Torso
  2738. local bv = Instance.new("BodyPosition")
  2739. bv.Parent = Torso
  2740. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  2741. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0))
  2742. for i = 0 , 1 , 0.1 do
  2743. wait()
  2744. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.75*i) * CFrame.fromEulerAnglesXYZ(math.rad(180-135*i), 0, math.rad(45-45*i))
  2745. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2746. LW.C0 = CFrame.new(-1, 0.5, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(70+20*i),0,math.rad(45))
  2747. LW.C1 = CFrame.new(0, 0.5, 0)
  2748. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 15*i))
  2749. if thing == 2 then
  2750. thing = 1
  2751. end
  2752. if thing == 1 then
  2753. thing = thing + 1
  2754. bubblyblast(0.5,2,"Institutional white",prt2,false)
  2755. ringblast(1.5,0.5,"Institutional white",prt2)
  2756. end
  2757.  
  2758. end
  2759. bv.P = bv.P + 10000
  2760. for i = 0 , 1 , 0.1 do
  2761. wait()
  2762. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i), 0, math.rad(-45))
  2763. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2764. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-45*i),0,math.rad(45))
  2765. LW.C1 = CFrame.new(0, 0.5, 0)
  2766. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  2767. for l = 1 , #gg do
  2768. if gg[l].className == "Part" and gg[l].Name ~= "RAPart" then
  2769. gg[l].Transparency = 1-1*i
  2770. end
  2771. end
  2772. if i == 0.2 then
  2773. bv.position = CF.p + (Vector3.new(0,5,0) + (CF.lookVector * 0.5))
  2774. ss(game.Workspace,1.25)
  2775. ls(game.Workspace,1.25)
  2776. end
  2777. if i == 0.5 then
  2778. bv.position = CF.p + (Vector3.new(0,0,0) + (CF.lookVector * 0))
  2779. end
  2780. end
  2781. bg.Parent = nil
  2782. bv.Parent = nil
  2783. wait(0.125)
  2784. mindamage = omindamage
  2785. maxdamage = omaxdamage
  2786. crtmaxdamage = ocrtmaxdamage
  2787. con:disconnect()
  2788. Hitdeb = 0
  2789. wait(0.3)
  2790. attack = false
  2791. end
  2792.  
  2793.  
  2794. function tremor()
  2795. attack = true
  2796. local thing = 1
  2797. for i = 0 , 1 , 0.1 do
  2798. wait()
  2799. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45))
  2800. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2801. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45))
  2802. LW.C1 = CFrame.new(0, 0.5, 0)
  2803. if thing == 2 then
  2804. thing = 1
  2805. end
  2806. if thing == 1 then
  2807. thing = thing + 1
  2808. ringblast(1,0.5,"Brown",prt2)
  2809. end
  2810. end
  2811. cs(game.Workspace,1.5)
  2812. for i = 0 , 1 , 0.2 do
  2813. wait()
  2814. RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45))
  2815. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2816. LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45))
  2817. LW.C1 = CFrame.new(0, 0.5, 0)
  2818. effect()
  2819. end
  2820. wait(0.1)
  2821. for i = 0 , 1 , 0.1 do
  2822. wait()
  2823. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45))
  2824. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2825. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45))
  2826. LW.C1 = CFrame.new(0, 0.5, 0)
  2827. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  2828. effect()
  2829. end
  2830. mindamage = 15
  2831. maxdamage = 35
  2832. crtmaxdamage = 50
  2833. local critrandomizer = math.random(1,crtrate)
  2834. if critrandomizer ~= 1 then
  2835. local rndmdamage = math.random(mindamage,maxdamage)
  2836. AoETremor(prt2,15,rndmdamage,false)
  2837. elseif critrandomizer == 1 then
  2838. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2839. AoETremor(prt2,15,rndmdamage,true)
  2840. end
  2841. local CFf = prt2.CFrame * CFrame.new(0,1.5,0)
  2842. local earthm = Instance.new("BlockMesh")
  2843. earthm.Scale = Vector3.new(1.5,1.5,1.5)
  2844. local earth = Instance.new("Part")
  2845. earth.formFactor = 0
  2846. earth.CanCollide = false
  2847. earth.Name = "Earth1"
  2848. earth.Locked = true
  2849. earth.Anchored = true
  2850. earth.Size = Vector3.new(1,1,1)
  2851. earth.Parent = swordholder
  2852. earth.CFrame = CFf
  2853. earthm.Parent = earth
  2854. earth.BrickColor = BrickColor.new("Brown")
  2855. earth.Transparency = 0
  2856. for i = 1 , 1 do
  2857. rs(game.Workspace,2.75)
  2858. end
  2859. for i = 0 , 1 , 0.1 do
  2860. wait()
  2861. earth.CFrame = CFf * CFrame.new(0,-0.25*i,0.15*i)
  2862. end
  2863. wait(0.25)
  2864. for i = 0 , 1 , 0.1 do
  2865. wait()
  2866. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45))
  2867. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2868. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45))
  2869. LW.C1 = CFrame.new(0, 0.5, 0)
  2870. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  2871. end
  2872. for ii = 1 , #AoETrue do
  2873. table.remove(AoETrue,#AoETrue)
  2874. end
  2875. for i = 0 , 1 , 0.1 do
  2876. wait()
  2877. earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i)
  2878. end
  2879. earth.Parent = nil
  2880. attack = false
  2881. mindamage = omindamage
  2882. maxdamage = omaxdamage
  2883. crtmaxdamage = ocrtmaxdamage
  2884. end
  2885.  
  2886.  
  2887. function quake()
  2888. attack = true
  2889. local thing = 1
  2890. for i = 0 , 1 , 0.1 do
  2891. wait()
  2892. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45))
  2893. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2894. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45))
  2895. LW.C1 = CFrame.new(0, 0.5, 0)
  2896. if thing == 2 then
  2897. thing = 1
  2898. end
  2899. if thing == 1 then
  2900. thing = thing + 1
  2901. ringblast(2,0.5,"Brown",prt2)
  2902. end
  2903. end
  2904. cs(game.Workspace,1.5)
  2905. for i = 0 , 1 , 0.2 do
  2906. wait()
  2907. RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45))
  2908. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2909. LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45))
  2910. LW.C1 = CFrame.new(0, 0.5, 0)
  2911. effect()
  2912. end
  2913. wait(0.1)
  2914. for i = 0 , 1 , 0.1 do
  2915. wait()
  2916. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45))
  2917. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2918. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45))
  2919. LW.C1 = CFrame.new(0, 0.5, 0)
  2920. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  2921. effect()
  2922. end
  2923. mindamage = 25
  2924. maxdamage = 45
  2925. crtmaxdamage = 55
  2926. local critrandomizer = math.random(1,crtrate)
  2927. if critrandomizer ~= 1 then
  2928. local rndmdamage = math.random(mindamage,maxdamage)
  2929. AoEQuake(prt2,15,rndmdamage,false)
  2930. elseif critrandomizer == 1 then
  2931. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  2932. AoEQuake(prt2,15,rndmdamage,true)
  2933. end
  2934. local CFf = prt2.CFrame * CFrame.new(0,1.5,0)
  2935. local earthm = Instance.new("BlockMesh")
  2936. earthm.Scale = Vector3.new(2,2,2)
  2937. local earth = Instance.new("Part")
  2938. earth.formFactor = 0
  2939. earth.CanCollide = false
  2940. earth.Name = "Earth1"
  2941. earth.Locked = true
  2942. earth.Anchored = true
  2943. earth.Size = Vector3.new(1,1,1)
  2944. earth.Parent = swordholder
  2945. earth.CFrame = CFf
  2946. earthm.Parent = earth
  2947. earth.BrickColor = BrickColor.new("Brown")
  2948. earth.Transparency = 0
  2949. for i = 1 , 1 do
  2950. rs(game.Workspace,2)
  2951. end
  2952. for i = 0 , 1 , 0.1 do
  2953. wait()
  2954. earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i)
  2955. end
  2956. wait(0.25)
  2957. for i = 0 , 1 , 0.1 do
  2958. wait()
  2959. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45))
  2960. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2961. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45))
  2962. LW.C1 = CFrame.new(0, 0.5, 0)
  2963. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  2964. end
  2965. for ii = 1 , #AoETrue do
  2966. table.remove(AoETrue,#AoETrue)
  2967. end
  2968. for i = 0 , 1 , 0.1 do
  2969. wait()
  2970. earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i)
  2971. end
  2972. earth.Parent = nil
  2973. attack = false
  2974. mindamage = omindamage
  2975. maxdamage = omaxdamage
  2976. crtmaxdamage = ocrtmaxdamage
  2977. end
  2978.  
  2979. function cataclysm()
  2980. attack = true
  2981. local thing = 1
  2982. for i = 0 , 1 , 0.1 do
  2983. wait()
  2984. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45))
  2985. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  2986. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45))
  2987. LW.C1 = CFrame.new(0, 0.5, 0)
  2988. if thing == 2 then
  2989. thing = 1
  2990. end
  2991. if thing == 1 then
  2992. thing = thing + 1
  2993. ringblast(3.5,1,"Brown",prt2)
  2994. end
  2995. end
  2996. cs(game.Workspace,1.5)
  2997. for i = 0 , 1 , 0.2 do
  2998. wait()
  2999. RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45))
  3000. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3001. LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45))
  3002. LW.C1 = CFrame.new(0, 0.5, 0)
  3003. effect()
  3004. end
  3005. wait(0.1)
  3006. for i = 0 , 1 , 0.1 do
  3007. wait()
  3008. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45))
  3009. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3010. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45))
  3011. LW.C1 = CFrame.new(0, 0.5, 0)
  3012. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  3013. effect()
  3014. end
  3015. mindamage = 35
  3016. maxdamage = 65
  3017. crtmaxdamage = 75
  3018. local critrandomizer = math.random(1,crtrate)
  3019. if critrandomizer ~= 1 then
  3020. local rndmdamage = math.random(mindamage,maxdamage)
  3021. AoECataclysm(prt2,15,rndmdamage,false)
  3022. elseif critrandomizer == 1 then
  3023. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  3024. AoECataclysm(prt2,15,rndmdamage,true)
  3025. end
  3026. local CFf = prt2.CFrame * CFrame.new(0,1.5,0)
  3027. local earthm = Instance.new("BlockMesh")
  3028. earthm.Scale = Vector3.new(2,2,2)
  3029. local earth = Instance.new("Part")
  3030. earth.formFactor = 0
  3031. earth.CanCollide = false
  3032. earth.Name = "Earth1"
  3033. earth.Locked = true
  3034. earth.Anchored = true
  3035. earth.Size = Vector3.new(1,1,1)
  3036. earth.Parent = swordholder
  3037. earth.CFrame = CFf
  3038. earthm.Parent = earth
  3039. earth.BrickColor = BrickColor.new("Brown")
  3040. earth.Transparency = 0
  3041. for i = 1 , 1 do
  3042. rs(game.Workspace,2)
  3043. end
  3044. for i = 0 , 1 , 0.1 do
  3045. wait()
  3046. earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i)
  3047. end
  3048. wait(0.25)
  3049. for i = 0 , 1 , 0.1 do
  3050. wait()
  3051. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45))
  3052. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3053. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45))
  3054. LW.C1 = CFrame.new(0, 0.5, 0)
  3055. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  3056. end
  3057. for ii = 1 , #AoETrue do
  3058. table.remove(AoETrue,#AoETrue)
  3059. end
  3060. for i = 0 , 1 , 0.1 do
  3061. wait()
  3062. earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i)
  3063. end
  3064. earth.Parent = nil
  3065. attack = false
  3066. mindamage = omindamage
  3067. maxdamage = omaxdamage
  3068. crtmaxdamage = ocrtmaxdamage
  3069. end
  3070.  
  3071. function fume()
  3072. attack = true
  3073. local thing = 1
  3074. for i = 0 , 1 , 0.1 do
  3075. wait()
  3076. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45))
  3077. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3078. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45))
  3079. LW.C1 = CFrame.new(0, 0.5, 0)
  3080. if thing == 2 then
  3081. thing = 1
  3082. end
  3083. if thing == 1 then
  3084. thing = thing + 1
  3085. ringblast(2,0.5,"Bright red",prt2)
  3086. end
  3087. end
  3088. cs(game.Workspace,1.5)
  3089. for i = 0 , 1 , 0.2 do
  3090. wait()
  3091. RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45))
  3092. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3093. LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45))
  3094. LW.C1 = CFrame.new(0, 0.5, 0)
  3095. effect()
  3096. end
  3097. wait(0.1)
  3098. for i = 0 , 1 , 0.1 do
  3099. wait()
  3100. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45))
  3101. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3102. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45))
  3103. LW.C1 = CFrame.new(0, 0.5, 0)
  3104. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  3105. effect()
  3106. end
  3107. mindamage = 25
  3108. maxdamage = 45
  3109. crtmaxdamage = 55
  3110. local critrandomizer = math.random(1,crtrate)
  3111. if critrandomizer ~= 1 then
  3112. local rndmdamage = math.random(mindamage,maxdamage)
  3113. AoEFume(prt2,15,rndmdamage,false)
  3114. elseif critrandomizer == 1 then
  3115. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  3116. AoEFume(prt2,15,rndmdamage,true)
  3117. end
  3118. local CFf = prt2.CFrame * CFrame.new(0,1.5,0)
  3119. local earthm = Instance.new("BlockMesh")
  3120. earthm.Scale = Vector3.new(2,2,2)
  3121. local earth = Instance.new("Part")
  3122. earth.formFactor = 0
  3123. earth.CanCollide = false
  3124. earth.Name = "Earth1"
  3125. earth.Locked = true
  3126. earth.Anchored = true
  3127. earth.Size = Vector3.new(1,1,1)
  3128. earth.Parent = swordholder
  3129. earth.CFrame = CFf
  3130. earthm.Parent = earth
  3131. earth.BrickColor = BrickColor.new("Brown")
  3132. earth.Transparency = 0
  3133. for i = 1 , 1 do
  3134. rs(game.Workspace,2)
  3135. end
  3136. for i = 0 , 1 , 0.1 do
  3137. wait()
  3138. earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i)
  3139. end
  3140. wait(0.25)
  3141. for i = 0 , 1 , 0.1 do
  3142. wait()
  3143. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45))
  3144. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3145. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45))
  3146. LW.C1 = CFrame.new(0, 0.5, 0)
  3147. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  3148. end
  3149. for ii = 1 , #AoETrue do
  3150. table.remove(AoETrue,#AoETrue)
  3151. end
  3152. for i = 0 , 1 , 0.1 do
  3153. wait()
  3154. earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i)
  3155. end
  3156. earth.Parent = nil
  3157. attack = false
  3158. mindamage = omindamage
  3159. maxdamage = omaxdamage
  3160. crtmaxdamage = ocrtmaxdamage
  3161. end
  3162. --Eruption
  3163.  
  3164. function eruption()
  3165. attack = true
  3166. local thing = 1
  3167. for i = 0 , 1 , 0.1 do
  3168. wait()
  3169. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45))
  3170. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3171. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45))
  3172. LW.C1 = CFrame.new(0, 0.5, 0)
  3173. if thing == 2 then
  3174. thing = 1
  3175. end
  3176. if thing == 1 then
  3177. thing = thing + 1
  3178. ringblast(3.5,1,"Bright red",prt2)
  3179. end
  3180. end
  3181. cs(game.Workspace,1.5)
  3182. for i = 0 , 1 , 0.2 do
  3183. wait()
  3184. RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45))
  3185. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3186. LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45))
  3187. LW.C1 = CFrame.new(0, 0.5, 0)
  3188. effect()
  3189. end
  3190. wait(0.1)
  3191. for i = 0 , 1 , 0.1 do
  3192. wait()
  3193. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45))
  3194. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3195. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45))
  3196. LW.C1 = CFrame.new(0, 0.5, 0)
  3197. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  3198. effect()
  3199. end
  3200. mindamage = 35
  3201. maxdamage = 65
  3202. crtmaxdamage = 75
  3203. local critrandomizer = math.random(1,crtrate)
  3204. if critrandomizer ~= 1 then
  3205. local rndmdamage = math.random(mindamage,maxdamage)
  3206. AoEEruption(prt2,15,rndmdamage,false)
  3207. elseif critrandomizer == 1 then
  3208. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  3209. AoEEruption(prt2,15,rndmdamage,true)
  3210. end
  3211. local CFf = prt2.CFrame * CFrame.new(0,1.5,0)
  3212. local earthm = Instance.new("BlockMesh")
  3213. earthm.Scale = Vector3.new(2,2,2)
  3214. local earth = Instance.new("Part")
  3215. earth.formFactor = 0
  3216. earth.CanCollide = false
  3217. earth.Name = "Earth1"
  3218. earth.Locked = true
  3219. earth.Anchored = true
  3220. earth.Size = Vector3.new(1,1,1)
  3221. earth.Parent = swordholder
  3222. earth.CFrame = CFf
  3223. earthm.Parent = earth
  3224. earth.BrickColor = BrickColor.new("Brown")
  3225. earth.Transparency = 0
  3226. for i = 1 , 1 do
  3227. rs(game.Workspace,2)
  3228. end
  3229. for i = 0 , 1 , 0.1 do
  3230. wait()
  3231. earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i)
  3232. end
  3233. wait(0.25)
  3234. for i = 0 , 1 , 0.1 do
  3235. wait()
  3236. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45))
  3237. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3238. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45))
  3239. LW.C1 = CFrame.new(0, 0.5, 0)
  3240. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  3241. end
  3242. for ii = 1 , #AoETrue do
  3243. table.remove(AoETrue,#AoETrue)
  3244. end
  3245. for i = 0 , 1 , 0.1 do
  3246. wait()
  3247. earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i)
  3248. end
  3249. earth.Parent = nil
  3250. attack = false
  3251. mindamage = omindamage
  3252. maxdamage = omaxdamage
  3253. crtmaxdamage = ocrtmaxdamage
  3254. end
  3255. function tundra()
  3256. attack = true
  3257. local thing = 1
  3258. for i = 0 , 1 , 0.1 do
  3259. wait()
  3260. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45))
  3261. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3262. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45))
  3263. LW.C1 = CFrame.new(0, 0.5, 0)
  3264. if thing == 2 then
  3265. thing = 1
  3266. end
  3267. if thing == 1 then
  3268. thing = thing + 1
  3269. ringblast(2,0.5,"Bright blue",prt2)
  3270. end
  3271. end
  3272. cs(game.Workspace,1.5)
  3273. for i = 0 , 1 , 0.2 do
  3274. wait()
  3275. RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45))
  3276. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3277. LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45))
  3278. LW.C1 = CFrame.new(0, 0.5, 0)
  3279. effect()
  3280. end
  3281. wait(0.1)
  3282. for i = 0 , 1 , 0.1 do
  3283. wait()
  3284. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45))
  3285. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3286. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45))
  3287. LW.C1 = CFrame.new(0, 0.5, 0)
  3288. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  3289. effect()
  3290. end
  3291. mindamage = 25
  3292. maxdamage = 45
  3293. crtmaxdamage = 55
  3294. local critrandomizer = math.random(1,crtrate)
  3295. if critrandomizer ~= 1 then
  3296. local rndmdamage = math.random(mindamage,maxdamage)
  3297. AoETundra(prt2,15,rndmdamage,false)
  3298. elseif critrandomizer == 1 then
  3299. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  3300. AoETundra(prt2,15,rndmdamage,true)
  3301. end
  3302. local CFf = prt2.CFrame * CFrame.new(0,1.5,0)
  3303. local earthm = Instance.new("BlockMesh")
  3304. earthm.Scale = Vector3.new(2,2,2)
  3305. local earth = Instance.new("Part")
  3306. earth.formFactor = 0
  3307. earth.CanCollide = false
  3308. earth.Name = "Earth1"
  3309. earth.Locked = true
  3310. earth.Anchored = true
  3311. earth.Size = Vector3.new(1,1,1)
  3312. earth.Parent = swordholder
  3313. earth.CFrame = CFf
  3314. earthm.Parent = earth
  3315. earth.BrickColor = BrickColor.new("Brown")
  3316. earth.Transparency = 0
  3317. for i = 1 , 1 do
  3318. rs(game.Workspace,2)
  3319. end
  3320. for i = 0 , 1 , 0.1 do
  3321. wait()
  3322. earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i)
  3323. end
  3324. wait(0.25)
  3325. for i = 0 , 1 , 0.1 do
  3326. wait()
  3327. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45))
  3328. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3329. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45))
  3330. LW.C1 = CFrame.new(0, 0.5, 0)
  3331. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  3332. end
  3333. for ii = 1 , #AoETrue do
  3334. table.remove(AoETrue,#AoETrue)
  3335. end
  3336. for i = 0 , 1 , 0.1 do
  3337. wait()
  3338. earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i)
  3339. end
  3340. earth.Parent = nil
  3341. attack = false
  3342. mindamage = omindamage
  3343. maxdamage = omaxdamage
  3344. crtmaxdamage = ocrtmaxdamage
  3345. end
  3346. function iceberg()
  3347. attack = true
  3348. local thing = 1
  3349. for i = 0 , 1 , 0.1 do
  3350. wait()
  3351. RW.C0 = CFrame.new(1,0.25+0.75*i,-0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i), 0, math.rad(-45))
  3352. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3353. LW.C0 = CFrame.new(-1, 0.25+0.75*i, -0.75+0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(45+100*i),0,math.rad(45))
  3354. LW.C1 = CFrame.new(0, 0.5, 0)
  3355. if thing == 2 then
  3356. thing = 1
  3357. end
  3358. if thing == 1 then
  3359. thing = thing + 1
  3360. ringblast(3.5,1,"Bright blue",prt2)
  3361. end
  3362. end
  3363. cs(game.Workspace,1.5)
  3364. for i = 0 , 1 , 0.2 do
  3365. wait()
  3366. RW.C0 = CFrame.new(1,1,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i), 0, math.rad(-45))
  3367. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3368. LW.C0 = CFrame.new(-1,1, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(145+25*i),0,math.rad(45))
  3369. LW.C1 = CFrame.new(0, 0.5, 0)
  3370. effect()
  3371. end
  3372. wait(0.1)
  3373. for i = 0 , 1 , 0.1 do
  3374. wait()
  3375. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i), 0, math.rad(-45))
  3376. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3377. LW.C0 = CFrame.new(-1, 1-0.5*i, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(170-145*i),0,math.rad(45))
  3378. LW.C1 = CFrame.new(0, 0.5, 0)
  3379. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90+90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75-0.75*i)
  3380. effect()
  3381. end
  3382. mindamage = 35
  3383. maxdamage = 65
  3384. crtmaxdamage = 75
  3385. local critrandomizer = math.random(1,crtrate)
  3386. if critrandomizer ~= 1 then
  3387. local rndmdamage = math.random(mindamage,maxdamage)
  3388. AoEIceberg(prt2,15,rndmdamage,false)
  3389. elseif critrandomizer == 1 then
  3390. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  3391. AoEIceberg(prt2,15,rndmdamage,true)
  3392. end
  3393. local CFf = prt2.CFrame * CFrame.new(0,1.5,0)
  3394. local earthm = Instance.new("BlockMesh")
  3395. earthm.Scale = Vector3.new(2,2,2)
  3396. local earth = Instance.new("Part")
  3397. earth.formFactor = 0
  3398. earth.CanCollide = false
  3399. earth.Name = "Earth1"
  3400. earth.Locked = true
  3401. earth.Anchored = true
  3402. earth.Size = Vector3.new(1,1,1)
  3403. earth.Parent = swordholder
  3404. earth.CFrame = CFf
  3405. earthm.Parent = earth
  3406. earth.BrickColor = BrickColor.new("Brown")
  3407. earth.Transparency = 0
  3408. for i = 1 , 1 do
  3409. rs(game.Workspace,2)
  3410. end
  3411. for i = 0 , 1 , 0.1 do
  3412. wait()
  3413. earth.CFrame = CFf * CFrame.new(0,-0.3*i,0.15*i)
  3414. end
  3415. wait(0.25)
  3416. for i = 0 , 1 , 0.1 do
  3417. wait()
  3418. RW.C0 = CFrame.new(1,0.5-0.25*i,-0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i), 0, math.rad(-45))
  3419. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  3420. LW.C0 = CFrame.new(-1, 0.5-0.25*i, -0.5-0.25*i) * CFrame.fromEulerAnglesXYZ(math.rad(25+20*i),0,math.rad(45))
  3421. LW.C1 = CFrame.new(0, 0.5, 0)
  3422. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(180-90*i), 0, math.rad(-45)) * CFrame.new(0, 0, 0.75*i)
  3423. end
  3424. for ii = 1 , #AoETrue do
  3425. table.remove(AoETrue,#AoETrue)
  3426. end
  3427. for i = 0 , 1 , 0.1 do
  3428. wait()
  3429. earth.CFrame = CFf * CFrame.new(0,-0.25+1*i,0.15-0.15*i)
  3430. end
  3431. earth.Parent = nil
  3432. attack = false
  3433. mindamage = omindamage
  3434. maxdamage = omaxdamage
  3435. crtmaxdamage = ocrtmaxdamage
  3436. end
  3437. hold = false
  3438. function ob1d(mouse)
  3439. hold = true
  3440. end
  3441. function ob1u(mouse)
  3442. hold = false
  3443. end
  3444. buttonhold = false
  3445. function key(key)
  3446. if attack == true then return end
  3447. if key == "q" then
  3448. slash()
  3449. end
  3450. if key == "e" then
  3451. revenge()
  3452. end
  3453. if key == "r" then
  3454. quickslash()
  3455. end
  3456. if key == "t" then
  3457. windslash()
  3458. end
  3459. if key == "y" then
  3460. drain()
  3461. end
  3462. if key == "f" then
  3463. unleash()
  3464. end
  3465. if key == "z" then
  3466. tremor()
  3467. end
  3468. if key == "x" then
  3469. quake()
  3470. end
  3471. if key == "c" then
  3472. cataclysm()
  3473. end
  3474. if key == "v" then
  3475. fume()
  3476. end
  3477. if key == "b" then
  3478. eruption()
  3479. end
  3480. if key == "n" then
  3481. tundra()
  3482. end
  3483. if key == "m" then
  3484. iceberg()
  3485. end
  3486. end
  3487. function key2(key)
  3488. end
  3489. function s(mouse)
  3490. mouse.Button1Down:connect(function() ob1d(mouse) end)
  3491. mouse.Button1Up:connect(function() ob1u(mouse) end)
  3492. mouse.KeyDown:connect(key)
  3493. mouse.KeyUp:connect(key2)
  3494. RWFunc()
  3495. equipanim()
  3496. end
  3497. function ds(mouse)
  3498. hideanim()
  3499. wait(0.1)
  3500. RWRem()
  3501. LWRem()
  3502. end
  3503. Bin.Selected:connect(s)
  3504. Bin.Deselected:connect(ds)
  3505. -- lego mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement