Advertisement
mathmasterphil

Epic sword

Jan 31st, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.62 KB | None | 0 0
  1.  
  2. Player = game:GetService("Players").mathmasterphil
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. ModelName = "Weapon"
  17. ToolName = "Yamato"
  18. attack = false
  19. attacktype = 1
  20. mindamage = 153333333333333333333333333333666666663333333333
  21. maxdamage = 253333333333333333333333336666666666666
  22. crtmaxdamage = 45333333333333333333333333333333
  23. omindamage = 15333333333333333333333333366666666666666666
  24. omaxdamage = 2533333333333333333366666666666666666666666
  25. ocrtmaxdamage = 4533333333333333333333333333333366666666
  26. crtrate = 1266666666666666666666666666666666666
  27. fireboost = 3333333333333333333333333333333333333333333332
  28. iceboost = 66666666666666666666666666666666666666666666666
  29. darkboost = 666666666666666666666666666666666666666666666666666
  30. Mode = "None"
  31. ssh = false
  32. atktypez = 1
  33. Hitdeb = 0
  34. ammo = 1
  35. MMouse = nil
  36. point = false
  37. offset = 0
  38. radv = 90
  39. ----------------------------
  40. --Customize
  41. DarkFire = true
  42. MaxFT = 40
  43.  
  44.  
  45.  
  46. ---------------------------------------------------------------------------------------------------------------------------------------
  47. if Character:findFirstChild("EquippedVal",true) ~= nil then
  48. Character:findFirstChild("EquippedVal",true).Parent = nil
  49. end
  50. ev = Instance.new("BoolValue")
  51. ev.Parent = Character
  52. ev.Name = "EquippedVal"
  53. ev.Value = false
  54. --player
  55. player = nil
  56. --welds
  57. RW, LW , RWL, LWL = Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
  58. --what anim
  59. anim = "none"
  60. --other var
  61. player = Player
  62. ch = Character
  63. --save shoulders
  64. AoETrue = {}
  65. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  66.  
  67. function RWFunc()
  68. RW.Part1 = ch["Right Arm"]
  69. RSH.Part1 = nil
  70. end
  71. function LWFunc()
  72. LW.Part1 = ch["Left Arm"]
  73. LSH.Part1 = nil
  74. end
  75. function RWLFunc()
  76. RWL.Part1 = ch["Right Leg"]
  77. RHL.Part1 = nil
  78. ch["Right Leg"].Name = "RightLeg"
  79. RightLeg.CanCollide = false
  80. end
  81. function LWLFunc()
  82. LWL.Part1 = ch["Left Leg"]
  83. LHL.Part1 = nil
  84. ch["Left Leg"].Name = "LeftLeg"
  85. LeftLeg.CanCollide = true
  86. end
  87. function RWLRem()
  88. RightLeg.Name = "Right Leg"
  89. RWL.Part1 = nil
  90. RHL.Part1 = ch["Right Leg"]
  91. RightLeg.CanCollide = false
  92. end
  93. function LWLRem()
  94. LeftLeg.Name = "Left Leg"
  95. LWL.Part1 = nil
  96. LHL.Part1 = ch["Left Leg"]
  97. LeftLeg.CanCollide = false
  98. end
  99. function RWRem()
  100. RW.Part1 = nil
  101. RSH.Part1 = ch["Right Arm"]
  102. end
  103. function LWRem()
  104. LW.Part1 = nil
  105. LSH.Part1 = ch["Left Arm"]
  106. end
  107.  
  108.  
  109. if Character:findFirstChild(ModelName,true) ~= nil then
  110. Character:findFirstChild(ModelName,true).Parent = nil
  111. RHL.Part1 = ch["Right Leg"]
  112. LHL.Part1 = ch["Left Leg"]
  113. RSH.Part1 = ch["Right Arm"]
  114. LSH.Part1 = ch["Left Arm"]
  115. end
  116.  
  117.  
  118.  
  119. local swordholder = Instance.new("Model")
  120. swordholder.Name = ModelName
  121. swordholder.Parent = Character
  122. --derp
  123. RW.Part0 = ch.Torso
  124. RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  125. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  126. RW.Parent = swordholder
  127. --
  128. LW.Part0 = ch.Torso
  129. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  130. LW.C1 = CFrame.new(0, 0.5, 0)
  131. LW.Parent = swordholder
  132. --
  133. RWL.Part0 = ch.Torso
  134. RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  135. RWL.C1 = CFrame.new(0.5, 1, 0)
  136. RWL.Parent = swordholder
  137. --
  138. LWL.Part0 = ch.Torso
  139. LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  140. LWL.C1 = CFrame.new(-0.5, 1, 0)
  141. LWL.Parent = swordholder
  142. handlecolor = BrickColor.new("Really black")
  143. scndryclr = BrickColor.new("Bright violet")
  144. firepri = BrickColor.new("Bright red")
  145. icepri = BrickColor.new("Bright blue")
  146. local msh1 = Instance.new("CylinderMesh")
  147. msh1.Scale = Vector3.new(1,1,1)
  148. local msh2 = Instance.new("BlockMesh")
  149. msh2.Scale = Vector3.new(1,1,1)
  150. --
  151. local msh3 = Instance.new("BlockMesh")
  152. msh3.Scale = Vector3.new(1,1,1)
  153. local msh3a = Instance.new("SpecialMesh")
  154. msh3a.Scale = Vector3.new(1,1,1)
  155. msh3a.MeshType = "Wedge"
  156. local msh4 = Instance.new("BlockMesh")
  157. msh4.Scale = Vector3.new(1,1,1)
  158. local msh4a = Instance.new("SpecialMesh")
  159. msh4a.Scale = Vector3.new(1,1,1)
  160. msh4a.MeshType = "Wedge"
  161. --
  162. local msh5 = Instance.new("SpecialMesh")
  163. msh5.Scale = Vector3.new(1,1,2)
  164. msh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
  165. local msh6 = Instance.new("BlockMesh")
  166. msh6.Scale = Vector3.new(1,1,0.5)
  167. local msh7 = Instance.new("BlockMesh")
  168. msh7.Scale = Vector3.new(1,1,1)
  169. local msh8 = Instance.new("BlockMesh")
  170. msh8.Scale = Vector3.new(0.5,1,1)
  171. local prt1 = Instance.new("Part")
  172. prt1.formFactor = 3
  173. prt1.CanCollide = false
  174. prt1.Name = "Handle"
  175. prt1.Locked = true
  176. prt1.Size = Vector3.new(0.2,1.5,0.2)
  177. prt1.Parent = swordholder
  178. msh1.Parent = prt1
  179. prt1.BrickColor = handlecolor
  180. local prt2 = Instance.new("Part")
  181. prt2.formFactor = 3
  182. prt2.CanCollide = false
  183. prt2.Name = "HandleTop"
  184. prt2.Locked = true
  185. prt2.Size = Vector3.new(1.6,0.2,0.5)
  186. prt2.Parent = swordholder
  187. msh2.Parent = prt2
  188. prt2.BrickColor = scndryclr
  189. ---
  190. local prt3 = Instance.new("Part")
  191. prt3.formFactor = 3
  192. prt3.CanCollide = false
  193. prt3.Name = "FlameBlade"
  194. prt3.Locked = true
  195. prt3.Size = Vector3.new(0.4,3,0.2)
  196. prt3.Parent = swordholder
  197. msh3.Parent = prt3
  198. prt3.BrickColor = firepri
  199. prt3.Reflectance = 0
  200. local prt3a = Instance.new("Part")
  201. prt3a.formFactor = 3
  202. prt3a.CanCollide = false
  203. prt3a.Name = "FlameBladeP1"
  204. prt3a.Locked = true
  205. prt3a.Size = Vector3.new(0.2,1,0.4)
  206. prt3a.Parent = swordholder
  207. msh3a.Parent = prt3a
  208. prt3a.BrickColor = firepri
  209. prt3a.Reflectance = 0
  210. --
  211. local prt4 = Instance.new("Part")
  212. prt4.formFactor = 3
  213. prt4.CanCollide = false
  214. prt4.Name = "FrostBlade"
  215. prt4.Locked = true
  216. prt4.Size = Vector3.new(0.4,3,0.2)
  217. prt4.Parent = swordholder
  218. msh4.Parent = prt4
  219. prt4.BrickColor = icepri
  220. prt4.Reflectance = 0.5
  221. local prt4a = Instance.new("Part")
  222. prt4a.formFactor = 3
  223. prt4a.CanCollide = false
  224. prt4a.Name = "FrostBladeP1"
  225. prt4a.Locked = true
  226. prt4a.Size = Vector3.new(0.2,1,0.4)
  227. prt4a.Parent = swordholder
  228. msh4a.Parent = prt4a
  229. prt4a.BrickColor = icepri
  230. prt4a.Reflectance = 0.5
  231. --
  232. local prt5 = Instance.new("Part")
  233. prt5.formFactor = 3
  234. prt5.CanCollide = false
  235. prt5.Name = "HandleRing"
  236. prt5.Locked = true
  237. prt5.Size = Vector3.new(1,1,0.2)
  238. prt5.Parent = swordholder
  239. msh5.Parent = prt5
  240. prt5.BrickColor = scndryclr
  241. prt5.Reflectance = 0
  242. local DFlame = Instance.new("Fire")
  243. DFlame.Parent = prt5
  244. DFlame.Color = Color3.new(0.5,0,0.5)
  245. DFlame.SecondaryColor = Color3.new(0.5,0,0.5)
  246. DFlame.Heat = 25
  247. DFlame.Size = 1
  248. DFlame.Enabled = DarkFire
  249. local prt6 = Instance.new("Part")
  250. prt6.formFactor = 3
  251. prt6.CanCollide = false
  252. prt6.Name = "HandleP1"
  253. prt6.Locked = true
  254. prt6.Size = Vector3.new(0.2,1.5,0.2)
  255. prt6.Parent = swordholder
  256. msh6.Parent = prt6
  257. prt6.BrickColor = scndryclr
  258. prt6.Reflectance = 0
  259. local prt7 = Instance.new("Part")
  260. prt7.formFactor = 3
  261. prt7.CanCollide = false
  262. prt7.Name = "HandleP2"
  263. prt7.Locked = true
  264. prt7.Size = Vector3.new(0.7,0.2,0.2)
  265. prt7.Parent = swordholder
  266. msh7.Parent = prt7
  267. prt7.BrickColor = scndryclr
  268. prt7.Reflectance = 0
  269. local prt8 = Instance.new("Part")
  270. prt8.formFactor = 3
  271. prt8.CanCollide = false
  272. prt8.Name = "DarkBlade"
  273. prt8.Locked = true
  274. prt8.Size = Vector3.new(0.2,4,0.2)
  275. prt8.Parent = swordholder
  276. msh8.Parent = prt8
  277. prt8.BrickColor = handlecolor
  278. prt8.Transparency = 1
  279. local hitbox = Instance.new("Part")
  280. hitbox.formFactor = 3
  281. hitbox.CanCollide = false
  282. hitbox.Name = "Hitbox"
  283. hitbox.Locked = true
  284. hitbox.Size = Vector3.new(1,4,0.2)
  285. hitbox.Parent = swordholder
  286. hitbox.Transparency = 1
  287. local hbw = Instance.new("Weld")
  288. hbw.Parent = hitbox
  289. hbw.Part0 = hitbox
  290. hbw.Part1 = prt1
  291. hbw.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  292. hbw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
  293.  
  294. local w1 = Instance.new("Weld")
  295. w1.Parent = prt1
  296. w1.Part0 = prt1
  297. local w2 = Instance.new("Weld")
  298. w2.Parent = prt2
  299. w2.Part0 = prt2
  300. w2.Part1 = prt1
  301. w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  302. w2.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -0.85, 0)
  303. --
  304. local w3 = Instance.new("Weld")
  305. w3.Parent = prt3
  306. w3.Part0 = prt3
  307. w3.Part1 = prt1
  308. w3.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  309. w3.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0.25, -2.45, 0)
  310. local w3a = Instance.new("Weld")
  311. w3a.Parent = prt3a
  312. w3a.Part0 = prt3a
  313. w3a.Part1 = prt1
  314. w3a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  315. w3a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(-90),0) * CFrame.new(0.25, -4.45, 0)
  316. local w4 = Instance.new("Weld")
  317. w4.Parent = prt4
  318. w4.Part0 = prt4
  319. w4.Part1 = prt1
  320. w4.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  321. w4.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, -2.45, 0)
  322. local w4a = Instance.new("Weld")
  323. w4a.Parent = prt4a
  324. w4a.Part0 = prt4a
  325. w4a.Part1 = prt1
  326. w4a.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  327. w4a.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90),0) * CFrame.new(-0.25, -4.45, 0)
  328. --
  329. local w5 = Instance.new("Weld")
  330. w5.Parent = prt5
  331. w5.Part0 = prt5
  332. w5.Part1 = prt1
  333. w5.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  334. w5.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0, -0.85, 0)
  335. local w6 = Instance.new("Weld")
  336. w6.Parent = prt6
  337. w6.Part0 = prt6
  338. w6.Part1 = prt1
  339. w6.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  340. w6.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.5, -0, 0)
  341. local w7 = Instance.new("Weld")
  342. w7.Parent = prt7
  343. w7.Part0 = prt7
  344. w7.Part1 = prt1
  345. w7.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  346. w7.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(-0.25, 0.75, 0)
  347. local w8 = Instance.new("Weld")
  348. w8.Parent = prt8
  349. w8.Part0 = prt8
  350. w8.Part1 = prt1
  351. w8.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0, 0)
  352. w8.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,0) * CFrame.new(0, -2.95, 0)
  353. for ringi = 0 , math.rad(350) , math.rad(50) do
  354. local ringm = Instance.new("BlockMesh")
  355. ringm.Scale = Vector3.new(1,1.5,1)
  356. local ringp = Instance.new("Part")
  357. ringp.formFactor = 3
  358. ringp.CanCollide = false
  359. ringp.Name = "HandleRingP"..ringi
  360. ringp.Locked = true
  361. ringp.Size = Vector3.new(0.2,0.2,0.2)
  362. ringp.Parent = swordholder
  363. ringm.Parent = ringp
  364. ringp.BrickColor = scndryclr
  365. ringp.Reflectance = 0.1
  366. local ringw = Instance.new("Weld")
  367. ringw.Parent = ringp
  368. ringw.Part0 = ringp
  369. ringw.Part1 = prt5
  370. ringw.C1 = CFrame.fromEulerAnglesXYZ(math.rad(90), -ringi, 0) * CFrame.new(0, 0 , 0)
  371. ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,0) * CFrame.new(-msh5.Scale.x/1.625, 0, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.z/3.25
  372. end
  373.  
  374. local Objects = {}
  375. function getAllObjects(obj)
  376. for a,v in pairs(obj:GetChildren()) do
  377. if v:IsA("BasePart") then
  378. table.insert(Objects,v)
  379. end
  380. if #v:GetChildren() > 0 then
  381. getAllObjects(v)
  382. end
  383. end
  384. end
  385. getAllObjects(Workspace)
  386. function Raycast(Start,End,Range)
  387. --
  388. for ii = 0 , #Objects do
  389. table.remove(Objects,ii)
  390. end
  391. getAllObjects(Workspace)
  392. local MA = math.abs
  393. local CF = CFrame.new(Start,End)
  394. local CP = Start
  395. for i = 1, Range do--(Start - End).magnitude do
  396. for b,v in pairs(Objects) do
  397. if v.Parent ~= nil then
  398. local pos = Start + (CF.lookVector*i)
  399. local dist = v.CFrame:pointToObjectSpace(pos)
  400. if MA(dist.x) < v.Size.x/2 and MA(dist.y) < v.Size.y/2 and MA(dist.z) < v.Size.z/2 then
  401. if v.Parent ~= Character or v.Parent ~= swordholder or v.Parent.Parent ~= Character then
  402. return v,Start,pos
  403. end
  404. end
  405. end
  406. end
  407. end
  408. return nil,Start,End
  409. end
  410. local RAP = Instance.new("Part")
  411. RAP.formFactor = 0
  412. RAP.CanCollide = false
  413. RAP.Name = "RAPart"
  414. RAP.Locked = true
  415. RAP.Size = Vector3.new(1,1,1)
  416. RAP.Parent = swordholder
  417. RAP.Transparency = 1
  418. local w = Instance.new("Weld")
  419. w.Parent = RAP
  420. w.Part0 = RAP
  421. w.Part1 = RightArm
  422. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  423. w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 1, 0)
  424.  
  425. function unequipweld()
  426. w1.Part1 = Torso
  427. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), math.rad(0)) * CFrame.new(0, 0,0)
  428. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(180), math.rad(-150)) * CFrame.new(-1, -1.5, -0.6)
  429. end
  430. unequipweld()
  431.  
  432. function equipweld()
  433. w1.Part1 = RAP
  434. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  435. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  436. end
  437.  
  438. function ss(parent,p) --Slash
  439. local SlashSound = Instance.new("Sound")
  440. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  441. SlashSound.Parent = parent
  442. SlashSound.Volume = .7
  443. SlashSound.Pitch = p
  444. SlashSound.PlayOnRemove = true
  445. coroutine.resume(coroutine.create(function()
  446. wait()
  447. SlashSound.Parent = nil
  448. end))
  449. end
  450. function uss(parent,p) --unsheath
  451. local SlashSound = Instance.new("Sound")
  452. SlashSound.SoundId = "rbxasset://sounds\\unsheath.wav"
  453. SlashSound.Parent = parent
  454. SlashSound.Volume = .7
  455. SlashSound.Pitch = p
  456. SlashSound.PlayOnRemove = true
  457. coroutine.resume(coroutine.create(function()
  458. wait()
  459. SlashSound.Parent = nil
  460. end))
  461. end
  462. function cs(parent,p) --Magic Charge
  463. local SlashSound = Instance.new("Sound")
  464. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  465. SlashSound.Parent = parent
  466. SlashSound.Volume = .7
  467. SlashSound.Pitch = p
  468. SlashSound.PlayOnRemove = true
  469. coroutine.resume(coroutine.create(function()
  470. wait()
  471. SlashSound.Parent = nil
  472. end))
  473. end
  474. function ls(parent,p) --Lazer Sound
  475. local SlashSound = Instance.new("Sound")
  476. SlashSound.SoundId = "http://www.roblox.com/asset?id=1369158"
  477. SlashSound.Parent = parent
  478. SlashSound.Volume = .7
  479. SlashSound.Pitch = p
  480. SlashSound.PlayOnRemove = true
  481. coroutine.resume(coroutine.create(function()
  482. wait()
  483. SlashSound.Parent = nil
  484. end))
  485. end
  486. function is(parent,p) --Ice Sound
  487. local SlashSound = Instance.new("Sound")
  488. local rndm = math.random(1,3)
  489. if rndm == 1 then
  490. SlashSound.SoundId = "rbxasset://sounds\\ice.ogg"
  491. elseif rndm == 2 then
  492. SlashSound.SoundId = "rbxasset://sounds\\ice2.ogg"
  493. elseif rndm == 3 then
  494. SlashSound.SoundId = "rbxasset://sounds\\ice3.ogg"
  495. end
  496. SlashSound.Parent = parent
  497. SlashSound.Volume = .7
  498. SlashSound.Pitch = p
  499. SlashSound.PlayOnRemove = true
  500. coroutine.resume(coroutine.create(function()
  501. wait()
  502. SlashSound.Parent = nil
  503. end))
  504. end
  505. function fs(parent,p) --Fire Sound
  506. local SlashSound = Instance.new("Sound")
  507. SlashSound.SoundId = "http://www.roblox.com/asset/?id=31758982"
  508. SlashSound.Parent = parent
  509. SlashSound.Volume = .7
  510. SlashSound.Pitch = p
  511. SlashSound.PlayOnRemove = true
  512. coroutine.resume(coroutine.create(function()
  513. wait()
  514. SlashSound.Parent = nil
  515. end))
  516. end
  517. function bs(parent,p) --Boom Sound
  518. local SlashSound = Instance.new("Sound")
  519. SlashSound.SoundId = "rbxasset://sounds/Rocket shot.wav"
  520. SlashSound.Parent = parent
  521. SlashSound.Volume = .7
  522. SlashSound.Pitch = p
  523. SlashSound.PlayOnRemove = true
  524. coroutine.resume(coroutine.create(function()
  525. wait()
  526. SlashSound.Parent = nil
  527. end))
  528. end
  529. --
  530.  
  531.  
  532. function hideanim()
  533. attack = true
  534. for i = 0 , 1 , 0.2 do
  535. wait()
  536. RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+67*i), math.rad(45), math.rad(-45+90*i))
  537. LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45-45*i))
  538. end
  539. LWRem()
  540. for i = 0 , 1 , 0.15 do
  541. wait()
  542. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147+103*i), math.rad(45), math.rad(45-35*i))
  543. end
  544. unequipweld()
  545. wait(0.1)
  546. for i = 0 , 1 , 0.1 do
  547. wait()
  548. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250-250*i), math.rad(45-45*i), math.rad(10-10*i))
  549. end
  550. RWRem()
  551. attack = false
  552. end
  553.  
  554. function equipanim()
  555. attack = true
  556. RWFunc()
  557. for i = 0 , 1 , 0.1 do
  558. wait()
  559. RW.C0 = CFrame.new(1.5,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(250*i), math.rad(45*i), math.rad(-10*i))
  560. end
  561. equipweld()
  562. uss(Head,1)
  563. for i = 0 , 1 , 0.2 do
  564. wait()
  565. RW.C0 = CFrame.new(1.5,0.5+0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(250-102.5*i), math.rad(45), math.rad(-10+27.5*i))
  566. end
  567. for i = 0 , 1 , 0.15 do
  568. wait()
  569. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(147-67*i), math.rad(45), math.rad(17.5+27.5*i))
  570. end
  571. LWFunc()
  572. for i = 0 , 1 , 0.1 do
  573. wait()
  574. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(45-90*i))
  575. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45*i))
  576. end
  577. attack = false
  578. end
  579.  
  580. if (script.Parent.className ~= "HopperBin") then
  581. Tool = Instance.new("HopperBin")
  582. Tool.Parent = Backpack
  583. Tool.Name = ToolName
  584. script.Parent = Tool
  585. end
  586. Bin = script.Parent
  587.  
  588. function damagesplat(dmg,hit,critornot,healornot)
  589. local OffsetX = -2.5
  590. local OffsetY = 5
  591. local OffsetZ = 0
  592. local bill = Instance.new("BillboardGui")
  593. bill.Size = UDim2.new(1,0,1,0)
  594. bill.Adornee = hit
  595. bill.StudsOffset = Vector3.new(OffsetX,OffsetY,OffsetZ)
  596. bill.Parent = hit.Parent
  597. bill.Name = "DamageSplat"
  598. local tex = Instance.new("TextLabel")
  599. tex.Size = UDim2.new(5,0,2.5,0)
  600. tex.Parent = bill
  601. tex.Text = dmg
  602. tex.BackgroundTransparency = 1
  603. tex.ZIndex = 4
  604. tex.FontSize = "Size24"
  605. local tex2 = Instance.new("ImageLabel")
  606. tex2.Size = UDim2.new(1,0,1,0)
  607. tex2.Parent = tex
  608. tex2.BackgroundTransparency = 1
  609. tex2.Image = "http://www.roblox.com/asset/?id=42611276"
  610. if critornot == true then
  611. tex.TextColor3 = Color3.new(1,0.2,0.2)
  612. elseif critornot == false then
  613. tex.TextColor3 = Color3.new(0,0,0)
  614. end
  615. if healornot == true then
  616. tex.TextColor3 = Color3.new(0.2,0.5,0.5)
  617. end
  618. coroutine.resume(coroutine.create(function()
  619. wait(0.25)
  620. for i = 0 , 1 , 0.075 do
  621. wait()
  622. bill.StudsOffset = Vector3.new(OffsetX,OffsetY+5*i,OffsetZ)
  623. tex.TextTransparency = 1*i
  624. end
  625. bill.Parent = nil
  626. end))
  627. end
  628. function FireEff(Part,Time,Color1,Color2,Color3)
  629. local Firee = Part
  630. local Spawn = Part
  631. local colors = {}
  632. if Color1 ~= nil then
  633. table.insert(colors,BrickColor.new(Color1))
  634. end
  635. if Color2 ~= nil then
  636. table.insert(colors,BrickColor.new(Color2))
  637. end
  638. if Color3 ~= nil then
  639. table.insert(colors,BrickColor.new(Color3))
  640. end
  641. if Color4 ~= nil then
  642. table.insert(colors,BrickColor.new(Color4))
  643. end
  644. local Embers = {}
  645. local modelz = Instance.new("Model",Firee)
  646. modelz.Name = "FireHolder"
  647. for X = 1, 3 do
  648. local f = Instance.new("Part")
  649. f.Parent = nil
  650. f.BrickColor = colors[math.random(1, # colors)]
  651. f.Size = Vector3.new(1,1,1)
  652. f.formFactor = 1
  653. f.Anchored = true
  654. f.Locked = true
  655. f.CanCollide = false
  656. f.Transparency = 0.5
  657. f.Name = "Fire"
  658. f.TopSurface = 0
  659. f.BottomSurface = 0
  660. table.insert(Embers, f)
  661. end
  662. local R = 0
  663. coroutine.resume(coroutine.create(function ()
  664. repeat
  665. wait()
  666. R = R + 1
  667. for X = 1, # Embers do
  668. Embers[X].Parent = modelz
  669. local FM = math.fmod(R + X, # Embers)
  670. if FM == 1 then
  671. RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10)
  672. RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100))
  673. Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, Spawn.Position + RandPos + RandDir)
  674. else
  675. Embers[X].CFrame = CFrame.new(Embers[X].Position + Vector3.new(0,0.5,0), Embers[X].Position + Vector3.new(0,0.5,0) + Embers[X].CFrame.lookVector)
  676. end
  677. end
  678. until R == Time
  679. for i = 0 ,1 , 0.1 do
  680. wait(0.2)
  681. for X = 1, # Embers do
  682. Embers[X].Transparency = 0.5+0.5*i
  683. end
  684. end
  685. for X = 1, # Embers do
  686. Embers[X].Parent = nil
  687. end
  688. end))
  689. end
  690.  
  691. function OT(hit) --Normal Damage
  692. if Hitdeb == 1 then return end
  693. if hit.Parent == nil then return end
  694. local hum = hit.Parent:findFirstChild("Humanoid")
  695. if hum ~= nil and hum ~= Character.Humanoid then
  696. local critrandomizer = math.random(1,crtrate)
  697. if critrandomizer ~= 1 then
  698. local rndmdamage = math.random(mindamage,maxdamage)
  699. damagesplat(rndmdamage,hit,false)
  700. hum:TakeDamage(rndmdamage)
  701. elseif critrandomizer == 1 then
  702. local rndmdamage = math.random(maxdamage,crtmaxdamage)
  703. damagesplat(rndmdamage,hit,true)
  704. hum:TakeDamage(rndmdamage)
  705. end
  706. Hitdeb = 1
  707. end
  708. end
  709.  
  710. function OTND(part) --No Debounce Damage
  711. coroutine.resume(coroutine.create(function()
  712. local dd = false
  713. while part.Parent ~= nil and not dd do
  714. wait()
  715. local c = game.Workspace:GetChildren();
  716. for i = 1, #c do
  717. local hum = c[i]:findFirstChild("Humanoid")
  718. if hum ~= nil and hum.Health ~= 0 then
  719. local head = c[i]:findFirstChild("Torso");
  720. if head ~= nil then
  721. local targ = head.Position - part.Position; ------------------------------------------------Local
  722. local mag = targ.magnitude;
  723. if mag <= 5 and c[i].Name ~= Player.Name then
  724. dd = true
  725. local rndmdamage = math.random(1,7+5*math.random()) + fireboost
  726. damagesplat(rndmdamage,head,false)
  727. hum:TakeDamage(rndmdamage)
  728. FireEff(head,150,"Bright red","Bright orange","Cool yellow")
  729. part.Parent = nil
  730.  
  731. end
  732. end
  733. end
  734. end
  735. end
  736. end))
  737. end
  738.  
  739. function AoE(p,magnitude,damage,critornot)
  740. local c = game.Workspace:GetChildren();
  741. for i = 1, #c do
  742. local hum = c[i]:findFirstChild("Humanoid")
  743. if hum ~= nil and hum.Health ~= 0 then
  744. local head = c[i]:findFirstChild("Head");
  745. if head ~= nil then
  746. local targ = head.Position - p;
  747. local mag = targ.magnitude;
  748. if mag <= magnitude and c[i].Name ~= Character.Name then
  749. local foundd = false
  750. for ii = 1 , #AoETrue do
  751. if AoETrue[ii] == c[i].Name then
  752. --delay(1,function() table.remove(AoETrue,ii) end)
  753. --blast(2.5,0.5,"Bright red",prt2,false)
  754. foundd = true
  755. end
  756. end
  757. if foundd then
  758. end
  759. --
  760. if not foundd then
  761. hum:TakeDamage(damage)
  762. damagesplat(damage,head,critornot)
  763. table.insert(AoETrue,c[i].Name)
  764. --blast(2.5,0.5,"Bright red",prt2)
  765. end
  766. end
  767. end
  768. end
  769. end
  770. end
  771. function AoEP(p,magnitude,damage,critornot)
  772. local c = game.Workspace:GetChildren();
  773. for i = 1, #c do
  774. local hum = c[i]:findFirstChild("Humanoid")
  775. if hum ~= nil and hum.Health ~= 0 then
  776. local head = c[i]:findFirstChild("Head");
  777. if head ~= nil then
  778. local targ = head.Position - p;
  779. local mag = targ.magnitude;
  780. if mag <= magnitude and c[i].Name ~= Character.Name then
  781. local foundd = false
  782. for ii = 1 , #AoETrue do
  783. if AoETrue[ii] == c[i].Name then
  784. --delay(1,function() table.remove(AoETrue,ii) end)
  785. --blast(2.5,0.5,"Bright red",prt2,false)
  786. foundd = true
  787. end
  788. end
  789. if foundd then
  790. end
  791. --
  792. if not foundd then
  793. hum:TakeDamage(damage)
  794. damagesplat(damage,head,critornot)
  795. c[i].Humanoid.Sit = true
  796. coroutine.resume(coroutine.create(function()
  797. local bp = Instance.new("BodyVelocity",c[i].Torso)
  798. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  799. bp.P = bp.P*2
  800. bp.velocity = CFrame.new(c[i].Torso.Position , p).lookVector * 150 + Vector3.new(0,25,0)
  801. coroutine.resume(coroutine.create(function()
  802. for i=1,
  803. bp.velocity.y/3 do
  804. bp.velocity = bp.velocity+Vector3.new(0,-4.25,0)
  805. wait()
  806. end
  807. bp.Parent = nil
  808. end))
  809. c[i].Torso.RotVelocity = CFrame.new(c[i].Torso.Position , p).lookVector * 25
  810. wait(0.4) c[i].Humanoid.Sit = false end))
  811. table.insert(AoETrue,c[i].Name)
  812. end
  813. end
  814. end
  815. end
  816. end
  817. end
  818. --
  819.  
  820. local LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  821. function effect(Color,Ref,LP,P1,returnn)
  822. local effectsmsh = Instance.new("BlockMesh")
  823. effectsmsh.Scale = Vector3.new(0.5,1,0.5)
  824. effectsmsh.Name = "Mesh"
  825. local effectsg = Instance.new("Part")
  826. effectsg.formFactor = 3
  827. effectsg.CanCollide = false
  828. effectsg.Name = "Eff"
  829. effectsg.Locked = true
  830. effectsg.Anchored = true
  831. effectsg.Size = Vector3.new(0.2,1,0.2)
  832. effectsg.Parent = swordholder
  833. effectsmsh.Parent = effectsg
  834. effectsg.BrickColor = BrickColor.new(Color)
  835. effectsg.Reflectance = Ref
  836. local point1 = P1
  837. local mg = (LP.p - point1.p).magnitude
  838. effectsg.Size = Vector3.new(0.2,mg,0.2)
  839. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  840. if returnn then return effectsg end
  841. coroutine.resume(coroutine.create(function()
  842. if not returnn then
  843. for i = 0 , 1 , 0.1 do
  844. wait()
  845. effectsg.Transparency = 1*i
  846. end
  847. wait()
  848. effectsg.Parent = nil
  849. end
  850. end))
  851. end
  852.  
  853. con = nil
  854. function dmgcnnct(p)
  855. con = p.Touched:connect(OT)
  856. end
  857. function dmgdc()
  858. if con ~= nil then
  859. con:disconnect()
  860. Hitdeb = 0
  861. end
  862. end
  863. function atktype(s,e)
  864. coroutine.resume(coroutine.create(function ()
  865. attacktype = e
  866. wait(0.5)
  867. repeat wait() until attack
  868. attacktype = s
  869. end))
  870. end
  871.  
  872. hold = false
  873. function Combo1a()
  874. attack=true
  875. for i = 0 , 1 , 0.1 do
  876. wait()
  877. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+45*i))
  878. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(10*i), math.rad(0))
  879. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45+45*i),math.rad(45-20*i))
  880. end
  881. dmgcnnct(hitbox)
  882. ss(Head,1.5)
  883. for i = 0 , 1 , 0.2 do
  884. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  885. wait()
  886. RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  887. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10+35*i), math.rad(0))
  888. LW.C0 = CFrame.new(-1+1*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(25+65*i))
  889. effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  890. end
  891. dmgdc()
  892. for i = 0 , 1 , 0.2 do
  893. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  894. wait()
  895. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  896. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(45+5*i), math.rad(0))
  897. LW.C0 = CFrame.new(-0.25*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(90+10*i))
  898. effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  899. end
  900. attacktype = 2
  901. coroutine.resume(coroutine.create(function ()
  902. wait(0.25)
  903. attacktype = 1
  904. end))
  905. attack=false
  906. wait(0.15)
  907. wait()
  908. for i = 0 , 1 , 0.1 do
  909. if not attack then
  910. wait()
  911. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
  912. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-110*i), math.rad(50-50*i), math.rad(0))
  913. LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(100-55*i))
  914. end
  915. end
  916.  
  917. end
  918. function Combo1b()
  919. attack=true
  920. for i = 0 , 1 , 0.1 do
  921. wait()
  922. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  923. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-155*i), math.rad(50-40*i), math.rad(0))
  924. LW.C0 = CFrame.new(-0.25-0.75*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(100-50*i))
  925. end
  926.  
  927. cs(Head,1.5)
  928. local tempmod = Instance.new("Model",swordholder)
  929. for l = 1 , 20 do
  930. local meshz = Instance.new("SpecialMesh")
  931. meshz.Scale = Vector3.new(0.5,0.5,0.5)
  932. meshz.MeshType = "Sphere"
  933. local shellz = Instance.new("Part")
  934. meshz.Parent = shellz
  935. shellz.Anchored = false
  936. shellz.formFactor = 0
  937. shellz.Size = Vector3.new(1,1,1)
  938. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  939. shellz.Parent = tempmod
  940. shellz.Transparency = 0.5
  941. shellz.BrickColor = BrickColor.new("Bright violet")
  942. shellz.CanCollide = false
  943. shellz.Reflectance = 0.25
  944. local bv = Instance.new("BodyPosition")
  945. bv.Parent = shellz
  946. bv.maxForce = Vector3.new(200000,200000,200000)
  947. bv.position = shellz.Position
  948. coroutine.resume(coroutine.create(function()
  949. for i = 0 , 1 , 0.025 do
  950. wait()
  951. shellz.Transparency = 1-1*i
  952. end
  953. shellz.Transparency = 0
  954. end))
  955. coroutine.resume(coroutine.create(function()
  956. wait(0.05)
  957. bv.position = hitbox.Position
  958. for i = 1 , 20 do
  959. wait(0.1)
  960. bv.position = shell.Position
  961. end
  962. shellz.Parent = nil
  963. end))
  964. wait(0.01)
  965. end
  966. coroutine.resume(coroutine.create(function ()
  967. wait(0.25)
  968. tempmod.Parent = nil
  969. end))
  970. for i = 0 , 1 , 0.2 do
  971. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  972. wait()
  973. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(0))
  974. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i), math.rad(10), math.rad(0))
  975. LW.C0 = CFrame.new(-1+1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(0),math.rad(50+40*i))
  976. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  977. end
  978. local gyro = Instance.new("BodyGyro")
  979. gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  980. gyro.P = gyro.P + 10000
  981. local CF = Torso.CFrame
  982. gyro.cframe = CF
  983. gyro.Parent = Torso
  984. dmgcnnct(hitbox)
  985. ss(Head,1)
  986. for i = 0 , 1 , 0.1 do
  987. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  988. wait()
  989. gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
  990. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  991. end
  992. ss(Head,1)
  993. Hitdeb = 0
  994. for i = 0 , 1 , 0.1 do
  995. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  996. wait()
  997. gyro.cframe = CF * CFrame.Angles(0,math.rad(-360*i),0)
  998. effect("Really red",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  999. end
  1000. dmgdc()
  1001. attacktype = 3
  1002. coroutine.resume(coroutine.create(function ()
  1003. wait(0.5)
  1004. attacktype = 1
  1005. end))
  1006. wait(0.15)
  1007. wait()
  1008. gyro.Parent = nil
  1009. attack=false
  1010. for i = 0 , 1 , 0.1 do
  1011. if not attack then
  1012. wait()
  1013. RW.C0 = CFrame.new(0.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(90-45*i), math.rad(-45*i))
  1014. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
  1015. LW.C0 = CFrame.new(0.5-1.5*i,0.5,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45*i),math.rad(50-5*i))
  1016. end
  1017. end
  1018. end
  1019.  
  1020. function Combo1c()
  1021. attack=true
  1022. local bp = Instance.new("BodyPosition")
  1023. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1024. bp.P = bp.P + 10000
  1025. local CF = Torso.CFrame
  1026. bp.position = CF.p
  1027. bp.Parent = Torso
  1028. RWLFunc()
  1029. LWLFunc()
  1030. for zz = 1 , 2 do
  1031. local mesh = Instance.new("SpecialMesh")
  1032. mesh.MeshType = "FileMesh"
  1033. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1034. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1035. local shell = Instance.new("Part")
  1036. mesh.Parent = shell
  1037. shell.Anchored = true
  1038. shell.formFactor = 1
  1039. shell.Size = Vector3.new(1,1,1)
  1040. shell.CFrame = Torso.CFrame * CFrame.Angles(0,0.5*zz,0) + Vector3.new(0,-2.5,0) -- + shellspawn.CFrame.lookVector * 2
  1041. shell.Parent = swordholder
  1042. shell.Transparency = 0
  1043. shell.BrickColor = BrickColor.new("White")
  1044. shell.CanCollide = false
  1045. coroutine.resume(coroutine.create(function()
  1046. for i = 0 , 1 , 0.05 do
  1047. wait()
  1048. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
  1049. shell.Transparency = 1*i
  1050. end
  1051. shell.Transparency = 1
  1052. shell.Parent = nil
  1053. end))
  1054. end
  1055. for i = 0 , 1 , 0.1 do
  1056. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1057. wait()
  1058. RW.C0 = CFrame.new(0.5+0.5*i,0.5+1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i), math.rad(90-90*i), math.rad(-45*i))
  1059. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-90*i), math.rad(10-10*i), math.rad(0))
  1060. LW.C0 = CFrame.new(0.5-1.5*i,0.5+1*i,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90+100*i),math.rad(0),math.rad(50-5*i))
  1061. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1062. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1063. bp.position = CF.p + Vector3.new(0,10,0)
  1064. RWL.C0 = CFrame.new(1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
  1065. LWL.C0 = CFrame.new(-1, -1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-20*i), math.rad(0), math.rad(0))
  1066. prt8.Transparency = 1-1*i
  1067. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1068. end
  1069. cs(Head,1.5)
  1070. coroutine.resume(coroutine.create(function ()
  1071. local tempmod = Instance.new("Model",swordholder)
  1072. for l = 1 , 20 do
  1073. local meshz = Instance.new("SpecialMesh")
  1074. meshz.Scale = Vector3.new(1.5,1.5,1.5)
  1075. meshz.MeshType = "Sphere"
  1076. local shellz = Instance.new("Part")
  1077. meshz.Parent = shellz
  1078. shellz.Anchored = false
  1079. shellz.formFactor = 0
  1080. shellz.Size = Vector3.new(1,1,1)
  1081. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  1082. shellz.Parent = tempmod
  1083. shellz.Transparency = 0.5
  1084. shellz.BrickColor = BrickColor.new("Really black")
  1085. shellz.CanCollide = false
  1086. shellz.Reflectance = 0
  1087. local bv = Instance.new("BodyPosition")
  1088. bv.Parent = shellz
  1089. bv.maxForce = Vector3.new(200000,200000,200000)
  1090. bv.position = shellz.Position
  1091. local hx = false
  1092. coroutine.resume(coroutine.create(function()
  1093. for i = 0 , 1 , 0.05 do
  1094. wait()
  1095. shellz.Transparency = 1-1*i
  1096. end
  1097. shellz.Transparency = 0
  1098. end))
  1099. coroutine.resume(coroutine.create(function()
  1100. wait(0.05)
  1101. bv.position = hitbox.Position
  1102. for i = 1 , 20 do
  1103. wait(0.1)
  1104. bv.position = shell.Position
  1105. end
  1106. shellz.Parent = nil
  1107. end))
  1108. wait(0.01)
  1109. end
  1110. coroutine.resume(coroutine.create(function ()
  1111. repeat wait() until hx
  1112. tempmod.Parent = nil
  1113. end))
  1114. end))
  1115. for i = 0 , 1 , 0.1 do
  1116. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1117. wait()
  1118. RW.C0 = CFrame.new(1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i), math.rad(0), math.rad(-45))
  1119. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1120. LW.C0 = CFrame.new(-1,1.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(190+20*i),math.rad(0),math.rad(45))
  1121. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1122. end
  1123. for i = 0 , 1 , 0.1 do
  1124. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1125. wait()
  1126. RW.C0 = CFrame.new(1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i), math.rad(0), math.rad(-45))
  1127. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1128. LW.C0 = CFrame.new(-1,1.5-1*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(210-130*i),math.rad(0),math.rad(45))
  1129. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1130. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1131. bp.position = CF.p + CF.lookVector * 2.5 + Vector3.new(0,-1,0)
  1132. RWL.C0 = CFrame.new(1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
  1133. LWL.C0 = CFrame.new(-1, -1+1*i, -1*i) * CFrame.fromEulerAnglesXYZ(math.rad(-20+20*i), math.rad(0), math.rad(0))
  1134. effect("Really black",0,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0))
  1135. end
  1136. hx = true
  1137. wait(0.1)
  1138. local Hit,A, B = Raycast(hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 1 ,hitbox.Position + Vector3.new(0,3,0) + Torso.CFrame.lookVector * 101 ,100)
  1139. local effectsmsh = Instance.new("CylinderMesh")
  1140. effectsmsh.Scale = Vector3.new(1,1,1)
  1141. local effectsg = Instance.new("Part")
  1142. effectsg.formFactor = 3
  1143. effectsg.CanCollide = false
  1144. effectsg.Name = "LAZOR"
  1145. effectsg.Locked = true
  1146. effectsg.Anchored = true
  1147. effectsg.Parent = swordholder
  1148. effectsmsh.Parent = effectsg
  1149. effectsg.BrickColor = BrickColor.new("Black")
  1150. effectsg.Reflectance = 0.5
  1151. local point1 = B
  1152. local point0 = A
  1153. for zz = 1 , 5 do
  1154. local mesh = Instance.new("SpecialMesh")
  1155. mesh.MeshType = "FileMesh"
  1156. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1157. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1158. local shell = Instance.new("Part")
  1159. mesh.Parent = shell
  1160. shell.Anchored = true
  1161. shell.formFactor = 1
  1162. shell.Size = Vector3.new(1,1,1)
  1163. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 2
  1164. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0.5*zz,0)
  1165. shell.Parent = swordholder
  1166. shell.Transparency = 0
  1167. if math.fmod(zz,2) == 0 then
  1168. shell.BrickColor = BrickColor.new("Really black")
  1169. else
  1170. shell.BrickColor = BrickColor.new("Bright violet")
  1171. end
  1172. shell.CanCollide = false
  1173. coroutine.resume(coroutine.create(function()
  1174. for i = 0 , 1 , 0.01 do
  1175. wait()
  1176. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(i,1,i)
  1177. shell.Transparency = 1*i
  1178. end
  1179. shell.Transparency = 1
  1180. shell.Parent = nil
  1181. end))
  1182. end
  1183. for zz = 1 , 1 do
  1184. local mesh = Instance.new("SpecialMesh")
  1185. mesh.MeshType = "Sphere"
  1186. mesh.Scale = Vector3.new(20,15,10) * Vector3.new(0.01,0.01,0.01)
  1187. local shell = Instance.new("Part")
  1188. mesh.Parent = shell
  1189. shell.Anchored = true
  1190. shell.formFactor = 1
  1191. shell.Size = Vector3.new(1,1,1)
  1192. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * 10
  1193. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
  1194. shell.Parent = swordholder
  1195. shell.Transparency = 0
  1196. shell.BrickColor = BrickColor.new("Bright violet")
  1197. shell.CanCollide = false
  1198. coroutine.resume(coroutine.create(function()
  1199. for i = 0 , 1 , 0.02 do
  1200. wait()
  1201. mesh.Scale = Vector3.new(10,15,15) * Vector3.new(i,1,i)
  1202. shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
  1203. shell.Transparency = 1-1*i
  1204. end
  1205. for i = 0 , 1 , 0.05 do
  1206. wait()
  1207. shell.CFrame = shell.CFrame * CFrame.Angles(0,i,0)
  1208. shell.Transparency = 1*i
  1209. end
  1210. shell.Transparency = 1
  1211. shell.Parent = nil
  1212. end))
  1213. end
  1214. for zz = 1 , 1 do
  1215. local mesh = Instance.new("CylinderMesh")
  1216. mesh.Scale = Vector3.new(20,0.5,10) * Vector3.new(0.01,0.01,0.01)
  1217. local shell = Instance.new("Part")
  1218. mesh.Parent = shell
  1219. shell.Anchored = true
  1220. shell.formFactor = 1
  1221. shell.Size = Vector3.new(1,1,1)
  1222. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /-2) + Torso.CFrame.lookVector * -0.5
  1223. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90),0,0)
  1224. shell.Parent = swordholder
  1225. shell.Transparency = 0
  1226. shell.BrickColor = BrickColor.new("Bright violet")
  1227. shell.CanCollide = false
  1228. coroutine.resume(coroutine.create(function()
  1229. for i = 0 , 1 , 0.02 do
  1230. wait()
  1231. mesh.Scale = Vector3.new(20,0.5,20) * Vector3.new(i,1,i)
  1232. shell.Transparency = 1-1*i
  1233. end
  1234. for i = 0 , 1 , 0.02 do
  1235. wait()
  1236. shell.Transparency = 1*i
  1237. end
  1238. shell.Transparency = 1
  1239. shell.Parent = nil
  1240. end))
  1241. end
  1242. for zz = 1 , 10 do
  1243. local mesh = Instance.new("SpecialMesh")
  1244. mesh.MeshType = "FileMesh"
  1245. mesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1246. mesh.Scale = Vector3.new(5,5,5) * Vector3.new(0.01,0.01,0.01)
  1247. local shell = Instance.new("Part")
  1248. mesh.Parent = shell
  1249. shell.Anchored = true
  1250. shell.formFactor = 1
  1251. shell.Size = Vector3.new(1,1,1)
  1252. shell.CFrame = CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)
  1253. shell.CFrame = shell.CFrame * CFrame.Angles(math.rad(-90)+2*math.random(),2*math.random(),2*math.random())
  1254. shell.Parent = swordholder
  1255. shell.Transparency = 0
  1256. if math.fmod(zz,2) == 0 then
  1257. shell.BrickColor = BrickColor.new("Really black")
  1258. else
  1259. shell.BrickColor = BrickColor.new("Bright violet")
  1260. end
  1261. shell.CanCollide = false
  1262. coroutine.resume(coroutine.create(function()
  1263. for i = 0 , 1 , 0.01 do
  1264. wait()
  1265. mesh.Scale = Vector3.new(25,25,25) * Vector3.new(i,i,i)
  1266. shell.Transparency = 1*i
  1267. end
  1268. shell.Transparency = 1
  1269. shell.Parent = nil
  1270. end))
  1271. end
  1272. coroutine.resume(coroutine.create(function()
  1273. effectsg.Transparency = 1
  1274. for i = 0 , 1 , 0.1 do
  1275. wait()
  1276. effectsg.Transparency = 1-1*i
  1277. end
  1278. wait(2)
  1279. for i = 0 , 1 , 0.1 do
  1280. wait()
  1281. effectsg.Transparency = 1*i
  1282. end
  1283. effectsg.Parent = nil
  1284. end))
  1285. local mg = 100
  1286. if Hit ~= nil then
  1287. mg = (point0-point1).magnitude
  1288. elseif Hit == nil then
  1289. mg = 100
  1290. end
  1291. ls(Head,0.5)
  1292. ls(Head,0.75)
  1293. cs(Head,0.25)
  1294. ls(Head,1)
  1295. ls(Head,3)
  1296. cs(Head,0.15)
  1297. for mgg = 0 , 1,0.1 do
  1298. wait()
  1299. effectsg.Size = Vector3.new(5,(mg*mgg)+0.2,5)
  1300. local durr = CFrame.new((point0+(point1))/2,(point1))
  1301. effectsg.CFrame = CFrame.new((point0+(point1-durr.lookVector * (mg*(1-mgg))))/2,(point1)) * CFrame.Angles(math.rad(90),0,0)
  1302. end
  1303. local critrandomizer = math.random(1,crtrate)
  1304. if critrandomizer ~= 1 then
  1305. local rndmdamage = math.random(mindamage+30,maxdamage+30)
  1306. AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,false)
  1307. elseif critrandomizer == 1 then
  1308. local rndmdamage = math.random(maxdamage+30,crtmaxdamage+30)
  1309. AoEP((CFrame.new((point0+point1)/2,point1) + CFrame.new((point0+point1)/2,point1).lookVector * (((point0)-(point1)).magnitude /2)).p,15,rndmdamage+darkboost,true)
  1310. end
  1311. bp.Parent = nil
  1312. for i = 0 , 1 , 0.1 do
  1313. wait()
  1314. RW.C0 = CFrame.new(1,1-0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(90-45*i), math.rad(-45))
  1315. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1316. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45*i),math.rad(45))
  1317. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1318. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1319. RWL.C0 = CFrame.new(1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1320. LWL.C0 = CFrame.new(-1, -1*i, -1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1321. prt8.Transparency = 1*i
  1322. end
  1323. for ii = 1 , #AoETrue do
  1324. table.remove(AoETrue,#AoETrue)
  1325. end
  1326. RWLRem()
  1327. LWLRem()
  1328. attack = false
  1329. attacktype = 1
  1330. end
  1331. function BlizzardSword()
  1332. attack=true
  1333. for i = 0 , 1 , 0.2 do
  1334. wait()
  1335. RW.C0 = CFrame.new(1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45))
  1336. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1337. LW.C0 = CFrame.new(-1,0.5+1*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i),math.rad(-45+45*i),math.rad(45))
  1338. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1339. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1340. end
  1341. local wssave = Character.Humanoid.WalkSpeed
  1342. Character.Humanoid.WalkSpeed = 0
  1343. ss(Head,1.5)
  1344. local efftab = {}
  1345. for i = 0 , 1 , 0.2 do
  1346. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1347. wait()
  1348. RW.C0 = CFrame.new(1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i), math.rad(0), math.rad(-45))
  1349. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1350. LW.C0 = CFrame.new(-1,1.5-1.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(135-135*i),math.rad(0),math.rad(45))
  1351. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1352. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1353. local eff = effect("Bright blue",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1354. table.insert(efftab,eff)
  1355. end
  1356. local trspos = Torso.Position
  1357. Character.Humanoid.WalkSpeed = wssave
  1358. for _,efff in pairs(efftab) do
  1359. wait()
  1360. coroutine.resume(coroutine.create(function()
  1361. for i = 0 , 1 , 0.15 do
  1362. wait()
  1363. efff.Transparency = 1*i
  1364. end
  1365. wait()
  1366. efff.Transparency = 1
  1367. end))
  1368. end
  1369. for io,eff in pairs(efftab) do
  1370. wait()
  1371. for zz = 1 , 1 do
  1372. local mesh = Instance.new("CylinderMesh")
  1373. mesh.Scale = Vector3.new(0.1,0.5,0.1)
  1374. local shell = Instance.new("Part")
  1375. mesh.Parent = shell
  1376. shell.Anchored = true
  1377. shell.formFactor = 1
  1378. shell.Size = Vector3.new(1,1,1)
  1379. local dur = CFrame.new(trspos,eff.Position)
  1380. local CF1 = dur * CFrame.Angles(math.rad(90),0,0) * CFrame.new(0,-6,0)
  1381. shell.CFrame = CF1
  1382. shell.Parent = eff
  1383. shell.Transparency = 1
  1384. shell.Reflectance = 0.25
  1385. shell.BrickColor = BrickColor.new("Bright blue")
  1386. shell.CanCollide = false
  1387. is(shell,0.5)
  1388. coroutine.resume(coroutine.create(function()
  1389. for i = 0 , 1 , 0.1 do
  1390. wait()
  1391. shell.Transparency = 1-1*i
  1392. mesh.Scale = Vector3.new(0.1+4.9*i,0.5,0.1+4.9*i)
  1393. end
  1394. wait(0.25)
  1395. for i = 0 , 1 , 0.1 do
  1396. wait()
  1397. shell.Transparency = 1*i
  1398. mesh.Scale = Vector3.new(5-5*i,0.5-0.5*i,5-5*i)
  1399. end
  1400. shell.Parent = nil
  1401. end))
  1402. end
  1403. end
  1404. for io,eff in pairs(efftab) do
  1405. wait()
  1406. for zz = 1 , 1 do
  1407. local mesh = Instance.new("SpecialMesh")
  1408. mesh.MeshType = "FileMesh"
  1409. mesh.Scale = Vector3.new(5,2,1)
  1410. mesh.MeshId = "rbxasset://fonts/sword.mesh"
  1411. local shell = Instance.new("Part")
  1412. mesh.Parent = shell
  1413. shell.Anchored = true
  1414. shell.formFactor = 1
  1415. shell.Size = Vector3.new(2,2,5)
  1416. local dur = CFrame.new(trspos,eff.Position)
  1417. local CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5)* CFrame.Angles(0,0,math.rad(90))
  1418. shell.CFrame = CF1
  1419. shell.Parent = eff
  1420. shell.Transparency = 1
  1421. shell.Reflectance = 0.25
  1422. shell.BrickColor = BrickColor.new("Bright blue")
  1423. shell.CanCollide = false
  1424. local hitd = 0
  1425. coroutine.resume(coroutine.create(function()
  1426. local dd = false
  1427. while shell.Parent ~= nil and not dd do
  1428. wait()
  1429. local c = game.Workspace:GetChildren();
  1430. for i = 1, #c do
  1431. local hum = c[i]:findFirstChild("Humanoid")
  1432. if hum ~= nil and hum.Health ~= 0 then
  1433. local head = c[i]:findFirstChild("Torso");
  1434. if head ~= nil then
  1435. local targ = head.Position - shell.Position;
  1436. local mag = targ.magnitude;
  1437. if mag <= 3 and c[i].Name ~= Player.Name then
  1438. dd = true
  1439. local critrandomizer = math.random(1,crtrate)
  1440. if critrandomizer ~= 1 then
  1441. local rndmdamage = math.random(mindamage+iceboost,maxdamage+iceboost)
  1442. damagesplat(rndmdamage,head,false)
  1443. hum:TakeDamage(rndmdamage)
  1444. elseif critrandomizer == 1 then
  1445. local rndmdamage = math.random(maxdamage+iceboost,crtmaxdamage+iceboost)
  1446. damagesplat(rndmdamage,head,true)
  1447. hum:TakeDamage(rndmdamage)
  1448. end
  1449. end
  1450. end
  1451. end
  1452. end
  1453. end
  1454. end))
  1455. coroutine.resume(coroutine.create(function()
  1456. uss(eff,1)
  1457.  
  1458. for i = 0 , 1 , 0.1 do
  1459. wait()
  1460. shell.Transparency = 1-1*i
  1461. CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,6.5+2*i)* CFrame.Angles(0,0,math.rad(90))
  1462. shell.CFrame = CF1
  1463. mesh.Scale = Vector3.new(5,2,1+0.5*i)
  1464. end
  1465. wait(0.25)
  1466. ss(eff,2)
  1467. for i = 0 , 1 , 0.1 do
  1468. wait()
  1469. shell.Transparency = 1*i
  1470. CF1 = dur * CFrame.Angles(math.rad(180),0,0) * CFrame.new(0,0,8.5+25*i)* CFrame.Angles(0,0,math.rad(90))
  1471. shell.CFrame = CF1
  1472. mesh.Scale = Vector3.new(5-5*i,2-2*i,1.5-1.5*i*i)
  1473. end
  1474. shell.Parent = nil
  1475. end))
  1476. end
  1477. end
  1478. coroutine.resume(coroutine.create(function()
  1479. wait(1.5)
  1480. for _,eff in pairs(efftab) do
  1481. wait()
  1482. eff.Parent = nil
  1483. end end))
  1484. for i = 0 , 1 , 0.1 do
  1485. wait()
  1486. RW.C0 = CFrame.new(1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i), math.rad(45*i), math.rad(-45))
  1487. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1488. LW.C0 = CFrame.new(-1,0.5*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(-45*i),math.rad(45))
  1489. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1490. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1491. end
  1492. attack=false
  1493. end
  1494. local FTCount = 0
  1495. function FlameTrail()
  1496. attack=true
  1497. for i = 0 , 1 , 0.15 do
  1498. wait()
  1499. RW.C0 = CFrame.new(1-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45+45*i), math.rad(-45+55*i))
  1500. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45*i), math.rad(0), math.rad(0))
  1501. LW.C0 = CFrame.new(-1+0.5*i,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45+20*i))
  1502. end
  1503. wait(0.1)
  1504. ss(Head,1.5)
  1505. fs(Head,0.5+1.5*math.random())
  1506. local efftab = {}
  1507. RW.C0 = CFrame.new(0.5,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
  1508. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0))
  1509. LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(65))
  1510. dmgcnnct(hitbox)
  1511. for i = 0 , 1 , 0.15 do
  1512. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1513. wait()
  1514. RW.C0 = CFrame.new(0.5+1*i,0.5,-1+1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90), math.rad(10))
  1515. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-45+135*i*i), math.rad(0), math.rad(0))
  1516. LW.C0 = CFrame.new(-0.5-1*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+20*i),math.rad(-45),math.rad(65-155*i))
  1517. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1518. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1519. if FTCount <= MaxFT then
  1520. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1521. eff.Transparency = 1
  1522. table.insert(efftab,eff)
  1523. FTCount = FTCount + 1
  1524. OTND(eff)
  1525. coroutine.resume(coroutine.create(function()
  1526. for i = 0 , 1 , 0.15 do
  1527. wait()
  1528. eff.Transparency = 1-0.5*i
  1529. end
  1530. wait()
  1531. eff.Transparency = 0.5
  1532. end))
  1533. end
  1534. end
  1535. local rndmneg = math.random(1,2)
  1536. if rndmneg == 1 then
  1537. rndmdec1 = 13 * math.random()
  1538. else
  1539. rndmdec1 = -13 * math.random()
  1540. end
  1541. for i = 0 , 1 , 0.1 do
  1542. wait()
  1543. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1*i), math.rad(90), math.rad(10-(rndmdec1*2)*i))
  1544. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+20*i), math.rad(0), math.rad(0))
  1545. LW.C0 = CFrame.new(-1.5,0.5,-0) * CFrame.fromEulerAnglesXYZ(math.rad(100),math.rad(-45),math.rad(-90))
  1546. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1547. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1548. end
  1549. ss(Head,1.5)
  1550. fs(Head,0.5+1.5*math.random())
  1551. Hitdeb = 0
  1552. for i = 0 , 1 , 0.15 do
  1553. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1554. wait()
  1555. RW.C0 = CFrame.new(1.5-1.5*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-rndmdec1), math.rad(90), math.rad(10-(rndmdec1*2)))
  1556. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(110-200*i), math.rad(0), math.rad(0))
  1557. LW.C0 = CFrame.new(-1.5+1*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(100-80*i),math.rad(-45),math.rad(-90+135*i))
  1558. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1559. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1560. if FTCount <= MaxFT then
  1561. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1562. eff.Transparency = 1
  1563. table.insert(efftab,eff)
  1564. FTCount = FTCount + 1
  1565. OTND(eff)
  1566. coroutine.resume(coroutine.create(function()
  1567. for i = 0 , 1 , 0.15 do
  1568. wait()
  1569. eff.Transparency = 1-0.5*i
  1570. end
  1571. wait()
  1572. eff.Transparency = 0.5
  1573. end))
  1574. end
  1575. end
  1576. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1577. for i = 0 , 1 , 0.2 do
  1578. wait()
  1579. local rndmd = rndmdec1-rndmdec1*i
  1580. RW.C0 = CFrame.new(0,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad((90-rndmd)), math.rad(90), math.rad((10-(rndmd*2))-20*i))
  1581. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-90-10*i), math.rad(0), math.rad(0))
  1582. LW.C0 = CFrame.new(-0.5,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  1583. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1584. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1585. end
  1586. for i = 0 , 1 , 0.1 do
  1587. wait()
  1588. RW.C0 = CFrame.new(1*i,0.5,-1) * CFrame.fromEulerAnglesXYZ(math.rad(90-20*i), math.rad(90-90*i), math.rad(-10-35*i))
  1589. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(-100+100*i), math.rad(0), math.rad(0))
  1590. LW.C0 = CFrame.new(-0.5-0.5*i,0.5,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-10*i),math.rad(-45+45*i),math.rad(45))
  1591. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1592. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90-45*i)) * CFrame.new(0, 0, 0.2)
  1593. end
  1594. ss(Head,1.5)
  1595. fs(Head,0.5+1.5*math.random())
  1596. wait(0.1)
  1597. Hitdeb = 0
  1598. for i = 0 , 1 , 0.2 do
  1599. LastPoint = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1600. wait()
  1601. RW.C0 = CFrame.new(1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i), math.rad(0), math.rad(-45))
  1602. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1603. LW.C0 = CFrame.new(-1,0.5+1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(70+65*i),math.rad(0),math.rad(45))
  1604. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1605. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(45)) * CFrame.new(0, 0, 0.2)
  1606. if FTCount <= MaxFT then
  1607. local eff = effect("Bright red",0.2,LastPoint,hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0),true)
  1608. eff.Transparency = 1
  1609. table.insert(efftab,eff)
  1610. FTCount = FTCount + 1
  1611. OTND(eff)
  1612. coroutine.resume(coroutine.create(function()
  1613. for i = 0 , 1 , 0.15 do
  1614. wait()
  1615. eff.Transparency = 1-0.5*i
  1616. end
  1617. wait()
  1618. eff.Transparency = 0.5
  1619. end))
  1620. end
  1621. end
  1622. coroutine.resume(coroutine.create(function()
  1623. wait(5)
  1624. for _,eff in pairs(efftab) do
  1625. wait()
  1626. eff.Parent = nil
  1627. FTCount = FTCount - 1
  1628. end end))
  1629. for i = 0 , 1 , 0.1 do
  1630. wait()
  1631. RW.C0 = CFrame.new(1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i), math.rad(45*i), math.rad(-45))
  1632. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1633. LW.C0 = CFrame.new(-1,1.5-1*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-55*i),math.rad(-45*i),math.rad(45))
  1634. w1.C1 = CFrame.fromEulerAnglesXYZ(0, math.rad(0), 0) * CFrame.new(0, 0,0)
  1635. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(45+45*i)) * CFrame.new(0, 0, 0.2)
  1636. end
  1637. dmgdc()
  1638. attack=false
  1639. end
  1640.  
  1641.  
  1642. function LifeDrain()
  1643. attack=true
  1644. for i = 0 , 1 , 0.1 do
  1645. wait()
  1646. RW.C0 = CFrame.new(1,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45), math.rad(-45+90*i))
  1647. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
  1648. LW.C0 = CFrame.new(-1+1.25*i,0.5+0.25*i,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80+25*i),math.rad(-45+90*i),math.rad(45+25*i))
  1649. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90*i), math.rad(0))
  1650. w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
  1651. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1652. end
  1653. ------
  1654. local nrmag = 50
  1655. local nrprsn = nil
  1656. wait()
  1657. --
  1658. local c = game.Workspace:GetChildren();
  1659. for i = 1, #c do
  1660. local hum = c[i]:findFirstChild("Humanoid")
  1661. if hum ~= nil and hum.Health ~= 0 then
  1662. local head = c[i]:findFirstChild("Torso");
  1663. if head ~= nil then
  1664. local targ = head.Position - Torso.Position;
  1665. local mag = targ.magnitude;
  1666. if mag <= 50 and c[i].Name ~= Player.Name then
  1667. if mag < nrmag then
  1668. nrmag = mag
  1669. nrprsn = c[i]
  1670. end
  1671. end end end end
  1672. --
  1673. if nrprsn == nil then
  1674. attack = false
  1675. return end
  1676. local C = 0
  1677. local bp = Instance.new("BodyPosition")
  1678. local bg = Instance.new("BodyGyro")
  1679. bp.Parent = Torso
  1680. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1681. bp.P = bp.P + 10000
  1682. local CF = nrprsn.Torso.CFrame
  1683. bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * -3
  1684. bg.Parent = Torso
  1685. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1686. bg.P = bg.P + 100000
  1687. bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(0),0,0)
  1688. ss(Head,2)
  1689. wait(0.1)
  1690. local FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1691. local LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1692. for i = 0 , 1 , 0.2 do
  1693. wait()
  1694. C = C + 1
  1695. RW.C0 = CFrame.new(1-1*i,0.5,-1*i) * CFrame.fromEulerAnglesXYZ(math.rad(135-90*i), math.rad(45), math.rad(45-135*i))
  1696. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
  1697. LW.C0 = CFrame.new(0.25-1.75*i,0.75-0.25*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(105-60*i),math.rad(45),math.rad(70-125*i))
  1698. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(90), math.rad(0))
  1699. w1.C1 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0, 0) * CFrame.new(0, 0,0)
  1700. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1701. if C == 3 then
  1702. bp.P = bp.P + 10000
  1703. bp.position = CF.p + CFrame.new(Torso.Position,CF.p).lookVector * 6
  1704. bg.cframe = CFrame.new(Torso.Position,CF.p) * CFrame.Angles(math.rad(-45),0,0)
  1705. end
  1706. if C == 2 then
  1707. FirstP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1708. elseif C == 5 then
  1709. LastP = hitbox.CFrame * CFrame.new(0,hitbox.Size.y/2,0)
  1710. end
  1711. end
  1712. local effectsmsh = Instance.new("SpecialMesh")
  1713. effectsmsh.Scale = Vector3.new(5,1,5)
  1714. effectsmsh.MeshType = "Sphere"
  1715. local effectsg = Instance.new("Part")
  1716. effectsg.formFactor = 3
  1717. effectsg.CanCollide = false
  1718. effectsg.Name = "Eff"
  1719. effectsg.Locked = true
  1720. effectsg.Anchored = true
  1721. effectsg.Size = Vector3.new(0.2,1,0.2)
  1722. effectsg.Parent = swordholder
  1723. effectsmsh.Parent = effectsg
  1724. effectsg.BrickColor = BrickColor.new("White")
  1725. effectsg.Reflectance = Ref
  1726. local point1 = FirstP
  1727. local LP = LastP
  1728. local mg = (LP.p - point1.p).magnitude
  1729. effectsg.Size = Vector3.new(0.2,mg,0.2)
  1730. effectsg.CFrame = CFrame.new((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0)
  1731. if returnn then return effectsg end
  1732. coroutine.resume(coroutine.create(function()
  1733. if not returnn then
  1734. for i = 0 , 1 , 0.1 do
  1735. wait()
  1736. effectsg.Transparency = 1*i
  1737. end
  1738. wait()
  1739. effectsg.Parent = nil
  1740. end
  1741. end))
  1742. local critrandomizer = math.random(1,crtrate)
  1743. local rndmdamage = 0
  1744. if critrandomizer ~= 1 then
  1745. rndmdamage = math.random(mindamage,maxdamage)
  1746. damagesplat(rndmdamage,nrprsn.Head,false)
  1747. nrprsn.Humanoid:TakeDamage(rndmdamage)
  1748. elseif critrandomizer == 1 then
  1749. rndmdamage = math.random(maxdamage,crtmaxdamage)
  1750. damagesplat(rndmdamage,nrprsn.Head,true)
  1751. nrprsn.Humanoid:TakeDamage(rndmdamage)
  1752. end
  1753. local tempmod = Instance.new("Model",Workspace)
  1754. for l = 1 , rndmdamage/5 do
  1755. local meshz = Instance.new("SpecialMesh")
  1756. meshz.Scale = Vector3.new(1.5,1.5,1.5)
  1757. meshz.MeshType = "Sphere"
  1758. local shellz = Instance.new("Part")
  1759. meshz.Parent = shellz
  1760. shellz.Anchored = false
  1761. shellz.formFactor = 0
  1762. shellz.Size = Vector3.new(1,1,1)
  1763. shellz.CFrame = hitbox.CFrame
  1764. shellz.Parent = tempmod
  1765. shellz.Transparency = 0.5
  1766. shellz.BrickColor = BrickColor.new("White")
  1767. shellz.CanCollide = false
  1768. shellz.Reflectance = 0
  1769. local bv = Instance.new("BodyPosition")
  1770. bv.Parent = shellz
  1771. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1772. bv.P = bv.P + 10000
  1773. bv.position = shellz.Position + Vector3.new(math.random(-25,25),math.random(-2.5,7.5),math.random(-25,25))
  1774. coroutine.resume(coroutine.create(function()
  1775. wait(3)
  1776. bv.maxForce = Vector3.new(0,math.huge,0)
  1777. coroutine.resume(coroutine.create(function()
  1778. local dd = false
  1779. while shellz.Transparency ~= 1 and not dd do
  1780. wait(0.1)
  1781. local cc = game.Workspace:GetChildren();
  1782. for i = 1, #c do
  1783. local hum = cc[i]:findFirstChild("Humanoid")
  1784. if hum ~= nil and hum.Health ~= 0 then
  1785. local head = cc[i]:findFirstChild("Head");
  1786. if head ~= nil then
  1787. local targ = head.Position - shellz.Position;
  1788. local mag = targ.magnitude;
  1789. if mag <= 5 then
  1790. dd = true
  1791. damagesplat(5+darkboost,head,false)
  1792. hum.Health = hum.Health + 5 + darkboost
  1793. for i = 0 , 1 , 0.05 do
  1794. wait()
  1795. shellz.Transparency = 1*i
  1796. end
  1797. shellz.Parent = nil
  1798. end
  1799. end
  1800. end
  1801. end
  1802. end
  1803. end))
  1804.  
  1805. end))
  1806. local hx = false
  1807. coroutine.resume(coroutine.create(function()
  1808. for i = 0 , 1 , 0.05 do
  1809. wait()
  1810. shellz.Transparency = 1-1*i
  1811. end
  1812. shellz.Transparency = 0
  1813. end))
  1814. coroutine.resume(coroutine.create(function()
  1815. wait(60)
  1816. for ii,shellz in pairs(tempmod:GetChildren()) do
  1817. for i = 0 , 1 , 0.1 do
  1818. wait()
  1819. shellz.Transparency = 1*i
  1820. end
  1821. shellz.Parent = nil
  1822. end
  1823. tempmod.Parent = nil
  1824. end))
  1825. end
  1826. wait(0.5)
  1827. ----
  1828. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  1829. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1830. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  1831. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1832. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1833. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1834. attack=false
  1835. bp.Parent = nil bg.Parent = nil
  1836. end
  1837.  
  1838.  
  1839. --TEST
  1840.  
  1841. hammer = Torso
  1842.  
  1843. function doDamage(hit)
  1844. local humanoid = hit.Parent:findFirstChild("Humanoid")
  1845. local hum = Player.Character:findFirstChild("Humanoid") -- non-nil if tool held by a character
  1846. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  1847. local foundd = false
  1848. for ii = 1 , #AoETrue do
  1849. if AoETrue[ii] == hit.Parent.Name then
  1850. foundd = true
  1851. end
  1852. end
  1853. if foundd then
  1854. end
  1855. --
  1856. if not foundd then
  1857. humanoid:TakeDamage(5)
  1858. if Mode == "Fire" then
  1859. end
  1860. damagesplat(5,humanoid.Parent.Torso,false)
  1861. table.insert(AoETrue,hit.Parent)
  1862. end
  1863.  
  1864. if humanoid.Health <= 0 then
  1865. local c = hit.CFrame
  1866. hit.CFrame = CFrame.new(hit.Position)
  1867. hit.CFrame = c
  1868. end
  1869. delay(1, function() end)
  1870. else
  1871. local c = hit.CFrame hit.CFrame = CFrame.new(hit.Position) hit.CFrame = c
  1872. end
  1873. end
  1874. function bewm(obj, pos, notme)
  1875. if (obj ~= notme) then
  1876. if (obj.className == "Part") or (obj.className == "Seat") then
  1877. if (not obj.Anchored) and (((pos - obj.Position) * Vector3.new(1, 0, 1)).magnitude < 24) and (pos.y <= obj.Position.y + 2) and (pos.y >= obj.Position.y - 2) then
  1878. delay((pos - obj.Position).magnitude / 24, function() obj.Velocity = ((obj.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 96 + obj.Velocity obj.RotVelocity = obj.RotVelocity + Vector3.new(obj.Position.z - pos.z, 0, pos.x - obj.Position.x).unit * 40 doDamage(obj) end)
  1879. end
  1880. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  1881. local list = obj:GetChildren()
  1882. for x = 1, #list do
  1883. bewm(list[x], pos, notme)
  1884. end
  1885. end
  1886. end
  1887. end
  1888.  
  1889. function attackr()
  1890. local shockRing = Instance.new("Part")
  1891. shockRing.formFactor = 2
  1892. shockRing.Size = Vector3.new(1, 0.4, 1)
  1893. shockRing.Anchored = true
  1894. shockRing.Locked = true
  1895. shockRing.CanCollide = false
  1896. shockRing.archivable = false
  1897. shockRing.TopSurface = 0
  1898. shockRing.BottomSurface = 0
  1899. shockRing.Transparency = 0
  1900. if Mode == "Fire" then
  1901. shockRing.BrickColor = BrickColor.new("Really red")
  1902. elseif Mode == "Dark" then
  1903. shockRing.BrickColor = BrickColor.new("Bright violet")
  1904. elseif Mode == "Ice" then
  1905. shockRing.BrickColor = BrickColor.new("Bright blue")
  1906. shockRing.Reflectance = 0.2
  1907. end
  1908. local decal = Instance.new("CylinderMesh")
  1909. decal.Parent = shockRing
  1910. decal.Scale = Vector3.new(1,0.1,1)
  1911. wait(0.2)
  1912. local pos = hammer.CFrame * (Vector3.new(0, -2.5, 0))
  1913. bewm(game.Workspace, pos, Player.Character)
  1914. shockRing.CFrame = CFrame.new(pos)
  1915. for x = 0, 1 , 0.0625 do
  1916. delay((x*16) / 30, function() shockRing.Parent = nil shockRing.Size = Vector3.new(0, 0.4, 0) + Vector3.new(3.2, 0, 3.2) * (x*16) shockRing.Transparency = 1*x shockRing.Parent = Player.Character end)
  1917. end
  1918. delay(1, function()
  1919. shockRing.Parent = nil
  1920. for ii = 1 , #AoETrue do
  1921. table.remove(AoETrue,#AoETrue)
  1922. end end)
  1923. end
  1924. local modemodel = Instance.new("Model",swordholder)
  1925. local mrdychng = false
  1926. function FireMode()
  1927. attack=true
  1928. Mode = "Fire"
  1929. fireboost = 5
  1930. mrdychng = true
  1931. for i = 0 , 1 , 0.1 do
  1932. wait()
  1933. RW.C0 = CFrame.new(1+0.5*i,0.5+1*i,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+55*i), math.rad(45-45*i), math.rad(-45+45*i))
  1934. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1935. LW.C0 = CFrame.new(-1+1*i,0.5+1*i,-0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80-80*i),math.rad(-45+45*i),math.rad(45+65*i))
  1936. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1937. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1938. end
  1939. cs(Head,1.5)
  1940. local tempmod = Instance.new("Model",swordholder)
  1941. for l = 1 , 20 do
  1942. local meshz = Instance.new("SpecialMesh")
  1943. meshz.Scale = Vector3.new(0.5,0.5,0.5)
  1944. meshz.MeshType = "Sphere"
  1945. local shellz = Instance.new("Part")
  1946. meshz.Parent = shellz
  1947. shellz.Anchored = false
  1948. shellz.formFactor = 0
  1949. shellz.Size = Vector3.new(1,1,1)
  1950. shellz.CFrame = hitbox.CFrame * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1951. shellz.Parent = tempmod
  1952. shellz.Transparency = 0.5
  1953. shellz.BrickColor = BrickColor.new("Really red")
  1954. shellz.CanCollide = false
  1955. shellz.Reflectance = 0
  1956. local bv = Instance.new("BodyPosition")
  1957. bv.Parent = shellz
  1958. bv.maxForce = Vector3.new(200000,200000,200000)
  1959. bv.position = shellz.Position
  1960. coroutine.resume(coroutine.create(function()
  1961. for i = 0 , 1 , 0.025 do
  1962. wait()
  1963. shellz.Transparency = 1-1*i
  1964. end
  1965. shellz.Transparency = 0
  1966. end))
  1967. coroutine.resume(coroutine.create(function()
  1968. wait(0.05)
  1969. bv.position = hitbox.Position
  1970. for i = 1 , 20 do
  1971. wait(0.1)
  1972. bv.position = shell.Position
  1973. end
  1974. shellz.Parent = nil
  1975. end))
  1976. wait(0.01)
  1977. end
  1978. coroutine.resume(coroutine.create(function ()
  1979. wait(0.25)
  1980. tempmod.Parent = nil
  1981. end))
  1982. for i = 0 , 1 , 0.2 do
  1983. wait()
  1984. RW.C0 = CFrame.new(1.5,1.5-1*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(135-45*i), math.rad(0), math.rad(0))
  1985. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  1986. LW.C0 = CFrame.new(0,1.5-1*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(110-45*i))
  1987. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  1988. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  1989. end
  1990. bs(Head,0.75)
  1991. attackr()
  1992. for zz = 1 , 1 do
  1993. local mesh = Instance.new("SpecialMesh")
  1994. mesh.MeshType = "FileMesh"
  1995. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1996. mesh.Scale = Vector3.new(10,5,10) * Vector3.new(0.01,0.01,0.01)
  1997. local shell = Instance.new("Part")
  1998. mesh.Parent = shell
  1999. shell.Anchored = true
  2000. shell.formFactor = 1
  2001. shell.Size = Vector3.new(1,1,1)
  2002. shell.CFrame = Torso.CFrame * CFrame.new(0,-1.5,0)
  2003. shell.Parent = swordholder
  2004. shell.Transparency = 0
  2005. shell.BrickColor = BrickColor.new("Really red")
  2006. shell.CanCollide = false
  2007. coroutine.resume(coroutine.create(function()
  2008. for i = 0 , 1 , 0.075 do
  2009. wait()
  2010. mesh.Scale = Vector3.new(20,5,20) * Vector3.new(i,1,i)
  2011. shell.Transparency = 1*i
  2012. end
  2013. shell.Transparency = 1
  2014. shell.Parent = nil
  2015. end))
  2016. end
  2017. for zz = 1 , 1 do
  2018. local mesh = Instance.new("SpecialMesh")
  2019. mesh.MeshType = "FileMesh"
  2020. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2021. mesh.Scale = Vector3.new(10,20,10) * Vector3.new(0.01,0.01,0.01)
  2022. local shell = Instance.new("Part")
  2023. mesh.Parent = shell
  2024. shell.Anchored = true
  2025. shell.formFactor = 1
  2026. shell.Size = Vector3.new(1,1,1)
  2027. shell.CFrame = Torso.CFrame * CFrame.new(0,1,0)
  2028. shell.Parent = swordholder
  2029. shell.Transparency = 0
  2030. shell.BrickColor = BrickColor.new("Really red")
  2031. shell.CanCollide = false
  2032. coroutine.resume(coroutine.create(function()
  2033. for i = 0 , 1 , 0.05 do
  2034. wait()
  2035. mesh.Scale = Vector3.new(10,20,10) * Vector3.new(i,1,i)
  2036. shell.Transparency = 1*i
  2037. end
  2038. shell.Transparency = 1
  2039. shell.Parent = nil
  2040. end))
  2041. end
  2042. for zz = 1 , 3 do
  2043. local mesh = Instance.new("SpecialMesh")
  2044. mesh.MeshType = "Sphere"
  2045. mesh.Scale = Vector3.new(5*zz,5*zz,5*zz) * Vector3.new(0.01,0.01,0.01)
  2046. local shell = Instance.new("Part")
  2047. mesh.Parent = shell
  2048. shell.Anchored = true
  2049. shell.formFactor = 3
  2050. shell.Size = Vector3.new(1,1,1)
  2051. shell.CFrame = Torso.CFrame * CFrame.new(0,-1,0)
  2052. shell.Parent = swordholder
  2053. shell.Transparency = 0
  2054. if math.fmod(zz,2) == 1 then
  2055. shell.BrickColor = BrickColor.new("Bright orange")
  2056. elseif math.fmod(zz,2) == 0.5 then
  2057. shell.BrickColor = BrickColor.new("Bright red")
  2058. else
  2059. shell.BrickColor = BrickColor.new("Bright yellow")
  2060. end
  2061. shell.CanCollide = false
  2062. coroutine.resume(coroutine.create(function()
  2063. for i = 0 , 1 , 0.025 do
  2064. wait()
  2065. mesh.Scale = Vector3.new(10*zz,10*zz,10*zz) * Vector3.new(i,i,i)
  2066. shell.Transparency = 1*i
  2067. end
  2068. shell.Transparency = 1
  2069. shell.Parent = nil
  2070. end))
  2071. end
  2072.  
  2073.  
  2074. for ii,z in pairs(modemodel:GetChildren()) do
  2075. z.Parent = nil
  2076. end
  2077.  
  2078. local wing1m = Instance.new("BlockMesh")
  2079. wing1m.Scale = Vector3.new(1,1,1)
  2080. local wing1p = Instance.new("Part")
  2081. wing1p.formFactor = 3
  2082. wing1p.CanCollide = false
  2083. wing1p.Name = "FlameWingP1"
  2084. wing1p.Locked = true
  2085. wing1p.Size = Vector3.new(0.2,0.2,0.2)
  2086. wing1p.Parent = modemodel
  2087. wing1m.Parent = wing1p
  2088. wing1p.BrickColor = BrickColor.new("Bright red")
  2089. wing1p.Transparency = 1
  2090. local wing1w = Instance.new("Weld")
  2091. wing1w.Parent = wing1p
  2092. wing1w.Part0 = wing1p
  2093. wing1w.Part1 = Torso
  2094. wing1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2095. wing1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(-1, 0, 0)
  2096. local wing2m = Instance.new("BlockMesh")
  2097. wing2m.Scale = Vector3.new(1,1,1)
  2098. local wing2p = Instance.new("Part")
  2099. wing2p.formFactor = 3
  2100. wing2p.CanCollide = false
  2101. wing2p.Name = "FlameWingP2"
  2102. wing2p.Locked = true
  2103. wing2p.Size = Vector3.new(0.2,0.2,0.2)
  2104. wing2p.Parent = modemodel
  2105. wing2m.Parent = wing2p
  2106. wing2p.BrickColor = BrickColor.new("Bright red")
  2107. wing2p.Transparency = 1
  2108. local wing2w = Instance.new("Weld")
  2109. wing2w.Parent = wing2p
  2110. wing2w.Part0 = wing2p
  2111. wing2w.Part1 = Torso
  2112. wing2w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2113. wing2w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(1, 0, 0)
  2114. coroutine.resume(coroutine.create(function()
  2115. for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
  2116. wait(0.1)
  2117. local ringm = Instance.new("BlockMesh")
  2118. ringm.Scale = Vector3.new(1,1,1)
  2119. local ringp = Instance.new("Part")
  2120. ringp.formFactor = 3
  2121. ringp.CanCollide = false
  2122. ringp.Name = "FlameWing"..ringi
  2123. ringp.Locked = true
  2124. ringp.Size = Vector3.new(0.2,2,0.8)
  2125. ringp.Parent = modemodel
  2126. ringm.Parent = ringp
  2127. ringp.BrickColor = BrickColor.new("Bright red")
  2128. ringp.Reflectance = 0.1
  2129. ringp.Transparency = 1
  2130. local ringw = Instance.new("Weld")
  2131. ringw.Parent = ringp
  2132. ringw.Part0 = ringp
  2133. ringw.Part1 = wing1p
  2134. ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi, 0, 0) * CFrame.new(0, ringp.Size.y/4 , 0)
  2135. ringw.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(45)) * CFrame.new(0, -1, 0) --* CFrame.new(-0.6, 0, 0) ---msh5.Scale.x/1.625
  2136. coroutine.resume(coroutine.create(function()
  2137. for i = 0 , 1 , 0.025 do
  2138. wait()
  2139. ringp.Transparency = 1-1*i
  2140. end
  2141. ringp.Transparency = 0
  2142. end))
  2143. end end))
  2144. coroutine.resume(coroutine.create(function()
  2145. for ringi = math.rad(-20) , math.rad(130) , math.rad(10) do
  2146. wait(0.1)
  2147. local ringm = Instance.new("BlockMesh")
  2148. ringm.Scale = Vector3.new(1,1,1)
  2149. local ringp = Instance.new("Part")
  2150. ringp.formFactor = 3
  2151. ringp.CanCollide = false
  2152. ringp.Name = "FlameWing2_"..ringi
  2153. ringp.Locked = true
  2154. ringp.Size = Vector3.new(0.2,2,0.8)
  2155. ringp.Parent = modemodel
  2156. ringm.Parent = ringp
  2157. ringp.BrickColor = BrickColor.new("Bright red")
  2158. ringp.Reflectance = 0.1
  2159. ringp.Transparency = 1
  2160. local ringw = Instance.new("Weld")
  2161. ringw.Parent = ringp
  2162. ringw.Part0 = ringp
  2163. ringw.Part1 = wing2p
  2164. ringw.C1 = CFrame.fromEulerAnglesXYZ(ringi+math.rad(0), 0, 0) * CFrame.new(-0, ringp.Size.y/4 , 0)
  2165. ringw.C0 = CFrame.fromEulerAnglesXYZ(0, 0,math.rad(-45)) * CFrame.new(-0, -1, 0)
  2166. coroutine.resume(coroutine.create(function()
  2167. for i = 0 , 1 , 0.025 do
  2168. wait()
  2169. ringp.Transparency = 1-1*i
  2170. end
  2171. ringp.Transparency = 0
  2172. end))
  2173. end end))
  2174. local wingp1m = Instance.new("SpecialMesh")
  2175. wingp1m.Scale = Vector3.new(1,1,1)
  2176. wingp1m.MeshType = "Sphere"
  2177. local wingp1p = Instance.new("Part")
  2178. wingp1p.formFactor = 3
  2179. wingp1p.CanCollide = false
  2180. wingp1p.Name = "FlameOrb"
  2181. wingp1p.Locked = true
  2182. wingp1p.Size = Vector3.new(1,1,1)
  2183. wingp1p.Parent = modemodel
  2184. wingp1m.Parent = wingp1p
  2185. wingp1p.Reflectance = 0.2
  2186. wingp1p.BrickColor = BrickColor.new("Bright red")
  2187. local wingp1w = Instance.new("Weld")
  2188. wingp1w.Parent = wingp1p
  2189. wingp1w.Part0 = wingp1p
  2190. wingp1w.Part1 = Torso
  2191. wingp1w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0 , 0)
  2192. wingp1w.C0 = CFrame.fromEulerAnglesXYZ(math.rad(0), 0,math.rad(0)) * CFrame.new(0, -0.5, 0.5)
  2193. coroutine.resume(coroutine.create(function()
  2194. for i = 0 , 1 , 0.025 do
  2195. wait()
  2196. wingp1p.Transparency = 1-1*i
  2197. end
  2198. wingp1p.Transparency = 0
  2199. end))
  2200. local Firee = modemodel
  2201. local Spawn = wingp1p
  2202. local colors = {BrickColor.new("Bright red"),BrickColor.new("Bright yellow"),BrickColor.new("Bright orange")}
  2203. local Embers = {}
  2204. local modelz = Instance.new("Model",Firee)
  2205. modelz.Name = "FireHolder"
  2206. for X = 1, 15 do
  2207. local f = Instance.new("Part")
  2208. f.Parent = nil
  2209. f.BrickColor = colors[math.random(1, # colors)]
  2210. f.Size = Vector3.new(1,1,1)
  2211. f.formFactor = 3
  2212. f.Anchored = true
  2213. f.Locked = true
  2214. f.CanCollide = false
  2215. f.Transparency = 0.5
  2216. f.Name = "Fire"
  2217. f.TopSurface = 0
  2218. f.BottomSurface = 0
  2219. Instance.new("BlockMesh",f)
  2220. table.insert(Embers, f)
  2221. end
  2222. local R = 0
  2223. coroutine.resume(coroutine.create(function ()
  2224. repeat
  2225. wait()
  2226. R = R + 1
  2227. for X = 1, # Embers do
  2228. Embers[X].Parent = modelz
  2229. local FM = math.fmod(R + X, # Embers)
  2230. if FM == 1 then
  2231. RandPos = Vector3.new(math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10, Spawn.Size.y / 2, math.random(-Spawn.Size.x * 5, Spawn.Size.x * 5) / 10)
  2232. RandDir = Vector3.new(math.random(-100,100), math.random(-100,100), math.random(-100,100))
  2233. Embers[X].CFrame = CFrame.new(Spawn.Position + RandPos, (Spawn.Position * rndm) + RandPos + RandDir)
  2234. Embers[X].Mesh.Scale = Vector3.new(1,1,1)
  2235. else
  2236. Embers[X].CFrame = Embers[X].CFrame + Embers[X].CFrame.lookVector*0.5
  2237. Embers[X].Mesh.Scale = Embers[X].Mesh.Scale - Vector3.new(0.1,0.1,0.1)
  2238. end
  2239. end
  2240. until wingp1p.Parent == nil
  2241. for i = 0 ,1 , 0.1 do
  2242. wait(0.2)
  2243. for X = 1, # Embers do
  2244. Embers[X].Transparency = 0.5+0.5*i
  2245. end
  2246. end
  2247. for X = 1, # Embers do
  2248. Embers[X].Parent = nil
  2249. end
  2250. end))
  2251. for ii = 1 , #AoETrue do
  2252. table.remove(AoETrue,#AoETrue)
  2253. end
  2254. wait(0.25)
  2255. for i = 0 , 1 , 0.1 do
  2256. wait()
  2257. RW.C0 = CFrame.new(1.5,0.5+0.5*i,0) * CFrame.fromEulerAnglesXYZ(math.rad(90+25*i), math.rad(0), math.rad(0))
  2258. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2259. LW.C0 = CFrame.new(0,0.5+0.5*i,-1) * CFrame.fromEulerAnglesXYZ(math.rad(0),math.rad(0),math.rad(65+25*i))
  2260. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2261. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2262. end
  2263. for i = 0 , 1 , 0.1 do
  2264. wait()
  2265. RW.C0 = CFrame.new(1.5,1-0.5*i,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(115-35*i), math.rad(45*i), math.rad(-45*i))
  2266. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2267. LW.C0 = CFrame.new(-1*i,1-0.5*i,-1+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80*i),math.rad(0),math.rad(90-45*i))
  2268. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2269. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180-180*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2270. end
  2271. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  2272. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2273. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  2274. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2275. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2276. attack=false
  2277. wait(1.5)
  2278. mrdychng = false
  2279. end
  2280. function NeutralMode()
  2281. attack=true
  2282. Mode = "None"
  2283. fireboost = 0
  2284. iceboost = 0
  2285. darkboost = 0
  2286. ss(Head,1)
  2287. cs(Head,2)
  2288. mrdychng = true
  2289. for i = 0 , 1 , 0.2 do
  2290. wait()
  2291. RW.C0 = CFrame.new(1+0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i), math.rad(45), math.rad(-45+45*i))
  2292. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
  2293. LW.C0 = CFrame.new(-1-0.5*i,0.5,-0.5+0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(80+10*i),math.rad(-45),math.rad(45-45*i))
  2294. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100*i), math.rad(0), math.rad(0))
  2295. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2296. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2297. end
  2298. coroutine.resume(coroutine.create(function()
  2299. for ii,z in pairs(modemodel:GetChildren()) do
  2300. if string.sub(z.Name,0,string.len(z.Name)-1) ~= "FlameWingP" then
  2301. wait()
  2302. coroutine.resume(coroutine.create(function()
  2303. for i = 0 , 1 , 0.1 do
  2304. wait()
  2305. z.Transparency = (1-z.Transparency)*i
  2306. end
  2307. z.Parent = nil
  2308. end))
  2309. end
  2310. end
  2311. wait(0.5)
  2312. for ii,z in pairs(modemodel:GetChildren()) do
  2313. wait()
  2314. z.Parent = nil
  2315. end
  2316. end))
  2317. for i = 0 , 1 , 0.1 do
  2318. wait()
  2319. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(45), math.rad(0))
  2320. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
  2321. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(-45),math.rad(0))
  2322. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(100+20*i), math.rad(0), math.rad(0))
  2323. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2324. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(70+20*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2325. end
  2326.  
  2327. wait(0.25)
  2328. for i = 0 , 1 , 0.1 do
  2329. wait()
  2330. RW.C0 = CFrame.new(1.5-0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i), math.rad(45), math.rad(-45*i))
  2331. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
  2332. LW.C0 = CFrame.new(-1.5+0.5*i,0.5,-0.5*i) * CFrame.fromEulerAnglesXYZ(math.rad(90-10*i),math.rad(-45),math.rad(45*i))
  2333. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(120-120*i), math.rad(0), math.rad(0))
  2334. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2335. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(90-90*i), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2336. end
  2337. RW.C0 = CFrame.new(1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(45), math.rad(-45))
  2338. RW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2339. LW.C0 = CFrame.new(-1,0.5,-0.5) * CFrame.fromEulerAnglesXYZ(math.rad(80),math.rad(-45),math.rad(45))
  2340. LW.C1 = CFrame.new(0,0.5,0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0))
  2341. w1.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(0, 0,0)
  2342. w1.C0 = CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(0), math.rad(90)) * CFrame.new(0, 0, 0.2)
  2343. attack=false
  2344. wait(0.5)
  2345. mrdychng = false
  2346. end
  2347.  
  2348. function ob1d(mouse)
  2349. hold = true
  2350. if attack == true then return end
  2351. end
  2352. function ob1u(mouse)
  2353. end
  2354. buttonhold = false
  2355. function key(key)
  2356. if attack == true then return end
  2357. if key == "q" then
  2358. if attacktype == 1 then
  2359. Combo1a()
  2360. elseif attacktype == 2 then
  2361. Combo1b()
  2362. elseif attacktype == 3 then
  2363. Combo1c()
  2364. end
  2365. end
  2366. if key == "e" then
  2367. if attacktype == 1 then
  2368. BlizzardSword()
  2369. end
  2370. end
  2371. if key == "r" then
  2372. FlameTrail()
  2373. end
  2374. if key == "t" then
  2375. LifeDrain()
  2376. end
  2377. if Mode == "None" and not mrdychng then
  2378. if key == "z" then
  2379. FireMode()
  2380. end
  2381. elseif not mrdychng then
  2382. if key == "z" or key == "x" or key == "c" then
  2383. NeutralMode()
  2384. end
  2385. end
  2386. end
  2387.  
  2388. function key2(key)
  2389. end
  2390. function s(mouse)
  2391. repeat wait() until not attack
  2392. while ev.Value ~= false do
  2393. wait(0.1)
  2394. end
  2395. MMouse = mouse
  2396. mouse.Button1Down:connect(function() ob1d(mouse) end)
  2397. mouse.Button1Up:connect(function() ob1u(mouse) end)
  2398. mouse.KeyDown:connect(key)
  2399. mouse.KeyUp:connect(key2)
  2400. equipanim()
  2401. ev.Value = true
  2402. --[[
  2403. script.Parent = Bin.Parent
  2404. Bin:remove()]]
  2405. end
  2406. function ds(mouse)
  2407. repeat wait() until not attack
  2408. while ev.Value == false do
  2409. wait(0.1)
  2410. end
  2411.  
  2412. hideanim()
  2413. wait(0.1)
  2414. ev.Value = false
  2415. end
  2416. Bin.Selected:connect(s)
  2417. Bin.Deselected:connect(ds)
  2418.  
  2419.  
  2420. --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement