Advertisement
Beasrt

Untitled

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