Advertisement
memberhero

Galenoir

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