lololololololololo

Untitled

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