Dogeking

Galenoir improved

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