memberhero

dekagren giant sword leaked

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