Roblox_Xploits

dekagren Sword

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