Advertisement
mathmasterphil

Dekagren

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