darkeageninja

zay sword

Oct 22nd, 2012
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.18 KB | None | 0 0
  1. 'hPlrs'h = darkeageninja
  2. jhe:
  3.  
  4. hGe
  5. jtS
  6.  
  7.  
  8.  
  9. k.jk.
  10.  
  11. hj'.'
  12.  
  13.  
  14. LineColor = "Really Black"';'
  15. '''hkhhkhjlghjldgkygk
  16.  
  17.  
  18.  
  19. '
  20. '';
  21. EffectColor2 = "Bright blue"
  22. EffectColor = "Pastel Blue"
  23. MainColor = "Really Black"
  24. BladeColor = "Really Black"
  25.  
  26. BlockBars = {}
  27.  
  28. MaxRage = 1000000000000
  29. Rage = MaxRage
  30.  
  31. CritChance = 100 --Percent
  32.  
  33. for _, v in pairs(char:children()) do
  34. if v.Name == "Block" then v:remove() end
  35. end
  36.  
  37. BlockRealPowa = 10
  38.  
  39. Block = Instance.new("BoolValue")
  40. Block.Name = "Block"
  41. Block.Value = false
  42. BlockPower = Instance.new("IntValue")
  43. BlockPower.Name = "BlockPower"
  44. BlockPower.Value = BlockRealPowa
  45. BlockPower.Parent = Block
  46. Block.Parent = char
  47.  
  48. CA = CFrame.Angles
  49. CN = CFrame.new
  50. MR = math.rad
  51. MP = math.pi
  52. MD = math.deg
  53. MH = math.huge
  54. MRA = math.random
  55.  
  56. EffPos = CFrame.new(0, 0.5, 0)
  57.  
  58. Sounds = {
  59. Equip = {"rbxasset://sounds//unsheath.wav", 0.7, 0.6},
  60. Hit = {"http://www.roblox.com/asset/?id=2801263", 0.9, 0.6},
  61. Block = {"", 1, 0.5},
  62. Slash = {"rbxasset://sounds//swordslash.wav", 2, 0.8},
  63. SmashHit = {"rbxasset://sounds\\metal.ogg", 1.5, 0.8},
  64. Jump = {"rbxasset://sounds/swoosh.wav", 1, 1},
  65. Boom = {"http://www.roblox.com/asset?id=1369158", 1.2, 1},
  66. SmashBoom = {"http://www.roblox.com/asset/?id=2760979", 0.25, 1},
  67. Jump2 = {"http://www.roblox.com/asset/?id=2101148", 2, 1},
  68. GoRage = {"http://www.roblox.com/asset/?id=2767090", 1, 1},
  69. Shout = {"http://www.roblox.com/asset/?id=2676305", 1.1, 0.8},
  70. RageOff = {"http://www.roblox.com/asset/?id=3264793", 1.6, 0.6},
  71. }
  72.  
  73. Add = {
  74. Sphere = function(P)
  75. local m = Instance.new("SpecialMesh",P)
  76. m.MeshType = "Sphere"
  77. return m
  78. end,
  79. BP = function(P)
  80. local bp = Instance.new("BodyPosition",P)
  81. bp.maxForce = Vector3.new(MH, MH, MH)
  82. bp.P = 14000
  83. return bp
  84. end,
  85. BG = function(P)
  86. local bg = Instance.new("BodyGyro",P)
  87. bg.maxTorque = Vector3.new(MH, MH, MH)
  88. bg.P = 14000
  89. return bg
  90. end,
  91. Mesh = function(P, ID, x, y, z)
  92. local m = Instance.new("SpecialMesh")
  93. m.MeshId = ID
  94. m.Scale = Vector3.new(x, y, z)
  95. m.Parent = P
  96. return m
  97. end,
  98. Head = function(P)
  99. local s = Instance.new("SpecialMesh")
  100. s.MeshType = "Head"
  101. s.Parent = P
  102. return s
  103. end,
  104. Sound = function(P, ID, vol, pitch)
  105. local s = Instance.new("Sound")
  106. s.SoundId = ID
  107. s.Volume = vol
  108. s.Pitch = pitch
  109. s.Parent = P
  110. return s
  111. end
  112. }
  113.  
  114. function RC(Pos, Dir, Max, Ignore)
  115. return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
  116. end
  117.  
  118. function RayC(Start, En, MaxDist, Ignore)
  119. return RC(Start, (En - Start), MaxDist, Ignore)
  120. end
  121.  
  122. function Notime(func, tim)
  123. coroutine.resume(coroutine.create(function()
  124. if tim then
  125. wait(tim)
  126. end
  127. func()
  128. end))
  129. end
  130.  
  131. function waitChild(parent, name)
  132. local child = parent:findFirstChild(name)
  133. if child then return child end
  134. while true do
  135. child = parent.ChildAdded:wait()
  136. if child.Name == name then return child end
  137. end
  138. end
  139.  
  140. function ComputePos(pos1, pos2)
  141. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  142. return CFrame.new(pos1, pos3)
  143. end
  144.  
  145. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  146. local p = Instance.new("Part")
  147. p.formFactor = "Custom"
  148. p.Anchored = Anchor
  149. p.CanCollide = Collide
  150. p.Transparency = Tran
  151. p.Reflectance = Ref
  152. p.BrickColor = BrickColor.new(Color)
  153. p.TopSurface = 0
  154. p.BottomSurface = 0
  155. p.Size = Vector3.new(X, Y, Z)
  156. if Break then
  157. p:BreakJoints()
  158. else p:MakeJoints() end
  159. p.Parent = Parent
  160. p.Locked = true
  161. return p
  162. end
  163.  
  164. function Weld(p0, p1, x, y, z, a, b, c)
  165. local w = Instance.new("Weld")
  166. w.Parent = p0
  167. w.Part0 = p0
  168. w.Part1 = p1
  169. w.C1 = CN(x,y,z) * CA(a,b,c)
  170. return w
  171. end
  172.  
  173. torso = char.Torso
  174. neck = torso.Neck
  175. hum = char.Humanoid
  176. Rarm = char["Right Arm"]
  177. Larm = char["Left Arm"]
  178. Rleg = char["Right Leg"]
  179. Lleg = char["Left Leg"]
  180.  
  181. hc = Instance.new("Humanoid")
  182. hc.Health = 0
  183. hc.MaxHealth = 0
  184.  
  185. function getHumanoid(c)
  186. local h = nil
  187. for i,v in pairs(c:children()) do
  188. if v:IsA("Humanoid") and c ~= char then
  189. if v.Health > 0 then
  190. h = v
  191. end
  192. end
  193. end
  194. return h
  195. end
  196.  
  197. function getCharacters(where, pos, dist)
  198. local chars = {}
  199. for _, v in pairs(where:children()) do
  200. local hum = getHumanoid(v)
  201. local tors = v:findFirstChild("Torso")
  202. if tors ~= nil and hum ~= nil then
  203. local anypart = nil
  204. for _,k in pairs(v:children()) do
  205. if k:IsA("BasePart") then
  206. if (k.Position - pos).magnitude <= dist then
  207. anypart = k
  208. break
  209. end
  210. end
  211. end
  212. if anypart then
  213. table.insert(chars, {v, tors, hum})
  214. end
  215. end
  216. end
  217. return chars
  218. end
  219.  
  220. function PlaySound(id, pitch, vol)
  221. local s = Add.Sound(nil, id, vol, pitch)
  222. if pitch ~= nil then
  223. if tonumber(pitch) then
  224. s.Pitch = tonumber(pitch)
  225. end
  226. end
  227. if vol ~= nil then
  228. if tonumber(vol) then
  229. s.Volume = tonumber(vol)
  230. end
  231. end
  232. s.Parent = torso
  233. s.PlayOnRemove = true
  234. Notime(function()
  235. wait()
  236. s:remove()
  237. end)
  238. end
  239.  
  240. function playz(sound)
  241. PlaySound(sound[1], sound[2], sound[3])
  242. end
  243.  
  244. PlrGui = waitChild(me, "PlayerGui")
  245.  
  246. for _, v in pairs(char:children()) do if v.Name == Modelname then v:remove() end end
  247. for _, v in pairs(PlrGui:children()) do
  248. if v.Name == "HealthGUI" or v.Name == "MyGui" then
  249. v:remove()
  250. end
  251. end
  252.  
  253. function EditGui(obj, parent, size, position, bgcolor, bordercolor, transparency, text, textcolor, auto)
  254. obj.Size = size
  255. obj.Position = position
  256. obj.BackgroundColor3 = bgcolor
  257. obj.BorderColor3 = bordercolor
  258. obj.BackgroundTransparency = transparency
  259. if obj:IsA("TextLabel") or obj:IsA("TextButton") then
  260. obj.Text = text
  261. obj.TextColor3 = textcolor
  262. end
  263. if obj:IsA("ImageButton") or obj:IsA("TextButton") then
  264. obj.AutoButtonColor = auto
  265. obj.MouseButton1Down:connect(function()
  266. RemoveOptions()
  267. end)
  268. end
  269. obj.Parent = parent
  270. end
  271.  
  272. C3 = Color3.new
  273. UD = UDim2.new
  274.  
  275. Sc = Instance.new("ScreenGui", PlrGui)
  276. Sc.Name = "MyGui"
  277.  
  278. Fr = Instance.new("Frame")
  279. EditGui(Fr, Sc, UD(0, 60, 0, 250), UD(1, -70, 0.5, -125), C3(0.1, 0.2, 0.5), C3(), 0)
  280.  
  281. HealthBack = Instance.new("Frame")
  282. EditGui(HealthBack, Fr, UD(0, 25, 1, -20), UD(0, 3, 0, 10), C3(0.2, 0, 0), C3(), 0)
  283.  
  284. RageBack = Instance.new("Frame")
  285. EditGui(RageBack, Fr, UD(0, 25, 1, -20), UD(1, -27, 0, 10), C3(0.2, 0, 0), C3(), 0)
  286.  
  287. local hp = hum.Health/hum.MaxHealth
  288. if hp > 1 then hp = 1 elseif hp < 0 then hp = 0 end
  289.  
  290. HealthBar = Instance.new("ImageLabel")
  291. EditGui(HealthBar, HealthBack, UD(1, 0, hp, 0), UD(0, 0, 0, 0), C3(0.1, 0.65, 0), C3(), 0)
  292. HealthBar.Image = "http://www.roblox.com/asset/?id=50051953"
  293.  
  294. RageBar = Instance.new("ImageLabel")
  295. EditGui(RageBar, RageBack, UD(1, 0, Rage/MaxRage, 0), UD(0, 0, 0, 0), C3(1, 0.6, 0.15), C3(), 0)
  296. RageBar.Image = "http://www.roblox.com/asset/?id=50051953"
  297.  
  298. RageAmount = Instance.new("TextLabel")
  299. EditGui(RageAmount, RageBack, UD(1, 0, 0, 0), UD(0, 0, 0, 0), C3(1, 0.6, 0.15), C3(), 0, Rage, C3(1,1,1))
  300. RageAmount.TextYAlignment = "Top"
  301.  
  302. AimButton = Instance.new("TextButton")
  303. EditGui(AimButton, Fr, UD(1, 0, 0, 35), UD(0, 0, 1, 0), C3(0.9, 0.2, 0.3), C3(), 0, "AIM: OFF", C3(), true)
  304. AimButton.TextWrap = true
  305. AimButton.Font = "ArialBold"
  306. AimButton.FontSize = "Size14"
  307. AimButton.MouseButton1Down:connect(function()
  308. if Aim then
  309. Aim = false
  310. AimButton.Text = "AIM: OFF"
  311. AimButton.BackgroundColor3 = C3(0.9, 0.2, 0.3)
  312. else
  313. Aim = true
  314. AimButton.Text = "AIM: ON"
  315. AimButton.BackgroundColor3 = C3(0.3, 0.85, 0.1)
  316. end
  317. end)
  318.  
  319. for i = 1, BlockRealPowa do
  320. local gui = Instance.new("ImageLabel")
  321. EditGui(gui, Fr, UD(0, 16, 0, 16), UD(0, -18, 0.5, 20*(i-1)-((BlockRealPowa*20)/2)), C3(), C3(), 1)
  322. gui.Image = "http://www.roblox.com/asset/?id=48908046"
  323. table.insert(BlockBars, gui)
  324. end
  325.  
  326. BlockPower.Changed:connect(function()
  327. for _, v in pairs(BlockBars) do
  328. v.Image = ""
  329. end
  330. for i = 1, BlockPower.Value do
  331. local gui = BlockBars[i]
  332. if gui then
  333. gui.Image = "http://www.roblox.com/asset/?id=48908046"
  334. end
  335. end
  336. end)
  337.  
  338. Mo = Instance.new("Model")
  339. Mo.Name = Modelname
  340.  
  341. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  342. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  343. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  344. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  345.  
  346. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  347. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  348. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  349. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  350.  
  351. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  352. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  353. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  354. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  355.  
  356. HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  357. HBW = Weld(Rarm, HB, 0, 0, 1, MP/2, 0, 0)
  358. HW = Weld(HB, nil, 0, 0, 0, 0, 0, 0)
  359.  
  360. SW = Weld(Larm, nil, -0.5, 0, 0.3, MP/2, 0, 0)
  361.  
  362. TH = Weld(torso, nil, 0, 2.5, 0, MR(145), 0, 0)
  363. TH.C0 = CN(0, -0.3, 0.75) * CA(0, MP/2, 0)
  364.  
  365. Weapon = Instance.new("Model")
  366. Weapon.Name = "Weapon"
  367.  
  368. Handle = Part(Weapon, false, false, 0, 0, MainColor, 0.4, 1.8, 0.4)
  369. Add.Head(Handle)
  370.  
  371. Tip1 = Part(Weapon, false, false, 0, 0, "Really black", 0.45, 1.2, 0.45)
  372. Add.Head(Tip1)
  373. Weld(Handle, Tip1, 0, 0, 0, 0, 0, 0)
  374.  
  375. Tip2 = Part(Weapon, false, false, 0, 0, "Really Black", 0.5, 0.5, 0.5)
  376. Weld(Handle, Tip2, 0, 0.9, 0, 0, 0, 0)
  377. Add.Mesh(Tip2, "http://www.roblox.com/asset/?id=9756362", 0.75, 0.5, 0.75)
  378.  
  379. Tip3 = Part(Weapon, false, false, 0, 0, "Really Black", 0.7, 0.3, 1.2)
  380. Weld(Handle, Tip3, 0, -0.9, 0, 0, 0, 0)
  381. Add.Mesh(Tip3, "http://www.roblox.com/asset/?id=9756362", 0.7, 0.35, 1.35)
  382.  
  383. Tip4 = Part(Weapon, false, false, 0, 0, "Really Black", 0.6, 0.2, 1.8)
  384. Weld(Handle, Tip4, 0, -0.9, 0, 0, 0, 0)
  385.  
  386. Tip5 = Part(Weapon, false, false, 0, 0, "Really Black", 0.6, 0.6, 0.3)
  387. Weld(Tip4, Tip5, 0, -0.4, -0.85, MR(-15), 0, 0)
  388.  
  389. Tip6 = Part(Weapon, false, false, 0, 0, "Really Black", 0.6, 0.6, 0.3)
  390. Weld(Tip4, Tip6, 0, -0.4, 0.85, MR(15), 0, 0)
  391.  
  392. Blades = {}
  393.  
  394. for i = 0, 180, 180 do
  395. for x = -20, 20, 40 do
  396. local lol = i-90
  397. local lol2 = math.abs(lol/480)
  398. local lol3 = x/90
  399. local Blade1 = Part(Weapon, false, false, 0, 0.3, BladeColor, 0.2, 3.5, 0.6)
  400. Instance.new("BlockMesh",Blade1).Scale = Vector3.new(0.2, 1, 0.99)
  401. local w = Weld(Tip4, Blade1, lol2, 0, -lol3, 0, 0, 0)
  402. w.C0 = CN(0, 1.7, 0) * CA(0, MR(i+x), 0)
  403. table.insert(Blades, Blade1)
  404. end
  405. end
  406.  
  407. Tip7 = Part(Weapon, false, false, 0, 0.3, BladeColor, 0.3, 1.3, 0.7)
  408. Add.Mesh(Tip7, "http://www.roblox.com/asset/?id=9756362", 0.31, 1.4, 0.8)
  409. Weld(Tip4, Tip7, 0, -3.45, 0, 0, 0, 0)
  410.  
  411. table.insert(Blades, Tip7)
  412.  
  413. TH.Part1 = Handle
  414.  
  415. Shield = Instance.new("Model")
  416. Shield.Name = "Shield"
  417.  
  418. SHandle = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.9, 0.4)
  419. SW.Part1 = SHandle
  420.  
  421. for i = 65, 115, 25 do
  422. local STip1 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.5, 0.4)
  423. local w = Weld(SHandle, STip1, 0.8, 0, 0, 0, 0, 0)
  424. w.C0 = CN(-0.5, 0.2, 0) * CA(0, 0, MR(i))
  425. end
  426.  
  427. for i = -65, -115, -25 do
  428. local STip1 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.5, 0.4)
  429. local w = Weld(SHandle, STip1, 0.8, 0, 0, 0, 0, 0)
  430. w.C0 = CN(-0.5, -0.2, 0) * CA(0, 0, MR(i))
  431. end
  432.  
  433. SHandle2 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.9, 0.4)
  434. Weld(SHandle, SHandle2, 1, 0, 0, 0, 0, 0)
  435.  
  436. ShieldMain = Part(Weapon, false, false, 0, 0, "White", 0.3, 3.5, 1.1)
  437. ShieldW = Weld(SHandle2, ShieldMain, 0, 0, 0, 0, 0, 0)
  438. ShieldW.C0 = CN(0, -0.2, 0) * CA(0, MR(-5), 0)
  439.  
  440. STip1 = Part(Weapon, false, false, 0, 0, "White", 0.35, 0.4, 1.15) --HIG
  441. Weld(ShieldMain, STip1, 0, -1.75, 0, 0, 0, 0)
  442.  
  443. STip2 = Part(Weapon, false, false, 0, 0, "White", 0.35, 0.4, 1.15) --HIG
  444. Weld(ShieldMain, STip2, 0, 1.75, 0, 0, 0, 0)
  445.  
  446. for i = -15, 15, 30 do
  447. local ShieldPlate = Part(Weapon, false, false, 0, 0, "Really black", 0.3, 3.5, 1.1)
  448. local w = Weld(ShieldMain, ShieldPlate, 3.5, 0, 0, 0, 0, 0)
  449. w.C0 = CN(3.5, 0, 0) * CA(0, math.rad(i), 0)
  450. for x = -1.75, 1.75, 1.75*2 do
  451. local STip3 = Part(Weapon, false, false, 0, 0, "White", 0.35, 0.4, 1.15) --Hig
  452. Weld(ShieldPlate, STip3, 0, x, 0, 0, 0, 0)
  453. end
  454. local i2 = i/40
  455. local STip3 = Part(Weapon, false, false, 0, 0, "White", 0.35, 3.9, 0.4) -- HIG
  456. Weld(ShieldPlate, STip3, 0, 0, -i2, 0, 0, 0)
  457. end
  458.  
  459. Weapon.Parent = Mo
  460. Shield.Parent = Mo
  461.  
  462. Mo.Parent = char
  463.  
  464. function ShowDamage(Dmg, Par, Crit, block)
  465. local Pos = Par.CFrame * CN(0, 2.5, 0)
  466. local M = Instance.new("Model")
  467. local Loldmg = Dmg
  468. if Loldmg < 0 then
  469. Loldmg = 0
  470. end
  471. if tostring(Loldmg):sub(1,1) == "-" then
  472. Loldmg = tostring(Loldmg):sub(2)
  473. end
  474. M.Name = Loldmg
  475. local Col = "Bright red"
  476. if Crit then Col = "Bright yellow" elseif block then Col = "Bright blue" end
  477. local P = Part(M, false, false, 0, 0, Col, 0.8, 0.3, 0.8, true)
  478. P.CFrame = CN(Par.Position)
  479. P.Name = "Head"
  480. local BP = Add.BP(P)
  481. BP.position = Pos.p
  482. BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  483. BP.P = 11000
  484. Add.BG(P)
  485. local H = hc:clone()
  486. H.Parent = M
  487. H.MaxHealth = 0
  488. H.Health = 0
  489. M.Parent = workspace
  490. Notime(function()
  491. wait(1.5)
  492. M:remove()
  493. end)
  494. end
  495.  
  496. function Damage(P, Hum, dmg, crit, block)
  497. if Hum then
  498. if Hum.Health > 0 then
  499. local Damg = dmg
  500. if crit then
  501. Damg = dmg*CritMultiplier
  502. end
  503. Damg = math.ceil(((Damg+AddDamage)*AddDamageX)-0.5)
  504. Hum.Health = Hum.Health - Damg
  505. ShowDamage(Damg, P, crit, block)
  506. end
  507. end
  508. end
  509.  
  510. function ShieldDamage(mode, blockval, blockpowerval, crit)
  511. if blockval and blockpowerval then
  512. local ShieldDmg = mode[3]+AddShield
  513. if crit then
  514. ShieldDmg = mode[4]+AddShield
  515. end
  516. if blockpowerval then
  517. blockpowerval.Value = blockpowerval.Value - ShieldDmg
  518. if blockpowerval.Value < 1 then
  519. blockval.Value = false
  520. end
  521. end
  522. end
  523. end
  524.  
  525. function getBlock(c)
  526. local block, blockpow = nil
  527. local blockin = false
  528. for _,v in pairs(c:children()) do
  529. if v.Name == "Block" and v:IsA("BoolValue") then
  530. block = v
  531. blockin = v.Value
  532. local bp = v:findFirstChild("BlockPower")
  533. if bp then
  534. blockpow = bp
  535. end
  536. end
  537. end
  538. return block, blockpow, blockin
  539. end
  540.  
  541. function TouchDamage(hit)
  542. local Hum = getHumanoid(hit.Parent)
  543. if Hum and Deb and Hurt then
  544. Deb = false
  545. local Crit = false
  546. local BlockVal, BlockPowaVal, Blawk = getBlock(Hum.Parent)
  547. local BlockPowa = 0
  548. local blocksound = Sounds.SmashHit
  549. if math.random(1,100/CritChance) == 1 then
  550. Crit = true
  551. end
  552. local Damg = math.random(Mode[2]/3, Mode[2])
  553. if Blawk then
  554. Damg = 0
  555. ShieldDamage(Mode, BlockVal, BlockPowaVal, Crit)
  556. if BlockPowaVal then
  557. if BlockPowaVal.Value < 1 then
  558. blocksound = Sounds.Equip
  559. end
  560. end
  561. end
  562. if Mode[5] == false and RageMode == false and Blawk == false then
  563. Rage = Rage + math.ceil(Damg*0.75-0.5)
  564. end
  565. if Blawk then
  566. PlaySound(blocksound[1], blocksound[2]-0.15, blocksound[3])
  567. else
  568. PlaySound(Sounds.Hit[1], Sounds.Hit[2], Sounds.Hit[3])
  569. end
  570. Damage(hit, Hum, Damg, Crit, Blawk)
  571. if Mode == Dmgs.Spin then
  572. Notime(function()
  573. wait(0.35)
  574. Deb = true
  575. end)
  576. end
  577. end
  578. end
  579.  
  580. for _, v in pairs(Blades) do
  581. v.Touched:connect(TouchDamage)
  582. end
  583.  
  584. if script.Parent.className ~= "HopperBin" then
  585. H = Instance.new("HopperBin", me.Backpack)
  586. H.Name = Toolname
  587. script.Parent = H
  588. end
  589.  
  590. Bin = script.Parent
  591.  
  592. EffectOn = false
  593.  
  594. function StartEffect(color)
  595. EffectOn = true
  596. local lastPoint = Tip7.CFrame * EffPos.p
  597. Notime(function()
  598. while EffectOn do
  599. wait()
  600. local pos = Tip7.CFrame * EffPos.p
  601. local magn = (lastPoint - pos).magnitude
  602. local col = LineColor
  603. if color and col ~= EffectColor3 then
  604. col = color
  605. end
  606. local p = Part(workspace, true, false, 0.1, 0, col, 0.3, 1, 0.3, true)
  607. local mesh = Add.Head(p)
  608. mesh.Scale = Vector3.new(1, magn+0.1, 1)
  609. p.CFrame = CN(lastPoint, pos) * CA(-MP/2, 0, 0) * CN(0, magn/2+0.05, 0)
  610. lastPoint = pos
  611. Notime(function()
  612. wait(0.05)
  613. for i = 0, 1, 0.12 do
  614. p.Transparency = 0.1+0.9*i
  615. mesh.Scale = Vector3.new(1-1*i, magn+0.1-0.1*i, 1-1*i)
  616. wait()
  617. end
  618. p:remove()
  619. end)
  620. end
  621. end)
  622. end
  623.  
  624. function EndEffect()
  625. EffectOn = false
  626. end
  627.  
  628. function Detach()
  629. RAW.Part1 = nil
  630. LAW.Part1 = nil
  631. RLW.Part1 = nil
  632. LLW.Part1 = nil
  633. RAW.C0 = CN()
  634. LAW.C0 = CN()
  635. RLW.C0 = CN()
  636. LLW.C0 = CN()
  637. end
  638.  
  639. function Normalize()
  640. RAW.C0 = CA(MR(40), MR(50), 0)
  641. LAW.C0 = CA(MR(20), MR(-20), MR(-20))
  642. HW.C0 = CA(0, 0, 0)
  643. neck.C0 = necko
  644. end
  645.  
  646. SelectAnim = function()
  647. RAW.Part1 = Rarm
  648. HW.Part1 = nil
  649. TH.Part1 = Handle
  650. for i = 0.1, 1, 0.14 do
  651. RAW.C0 = CA(MR(220*i), MR(-30*i), MR(-35*i)) * CN(0.4*i, 0, 0)
  652. neck.C0 = necko * CA(MR(-10*i), 0, MR(-60*i))
  653. wait()
  654. end
  655. PlaySound(Sounds.Equip[1], Sounds.Equip[2], Sounds.Equip[3])
  656. HW.C0 = CN(0.4, 0, 0) * CA(MR(-60), MR(10), MR(100))
  657. HW.Part1 = Handle
  658. TH.Part1 = nil
  659. LAW.Part1 = Larm
  660. for i = 0.09, 1, 0.11 do
  661. RAW.C0 = CA(MR(220-70*i), MR(-30+25*i), MR(-35+70*i)) * CN(0.4-0.4*i, 0, 0)
  662. HW.C0 = CN(0.4-0.4*i, 0, 0) * CA(MR(-60+40*i), MR(10-10*i), MR(100-40*i))
  663. LAW.C0 = CA(MR(20*i), MR(-20*i), MR(-20*i))
  664. neck.C0 = necko * CA(MR(-10+10*i), 0, MR(-60+40*i))
  665. wait()
  666. end
  667. for i = 0.14, 1, 0.25 do
  668. RAW.C0 = CA(MR(150-60*i), MR(-5+15*i), MR(35-10*i))
  669. HW.C0 = CA(MR(-20+20*i), 0, MR(60-30*i))
  670. neck.C0 = necko * CA(0, 0, MR(-60+40+5*i))
  671. wait()
  672. end
  673. for i = 0.1, 1, 0.14 do
  674. RAW.C0 = CA(MR(90-50*i), MR(10+40*i), MR(25-25*i))
  675. HW.C0 = CA(0, 0, MR(30-30*i))
  676. neck.C0 = necko * CA(0, 0, MR(-15+15*i))
  677. wait()
  678. end
  679. Normalize()
  680. end
  681.  
  682. DeselectAnim = function()
  683. for i = 0.09, 1, 0.14 do
  684. RAW.C0 = CA(MR(40+100*i), MR(50-50*i), MR(20*i))
  685. LAW.C0 = CA(MR(20-20*i), MR(-20+20*i), MR(-20+20*i))
  686. HW.C0 = CN(0.4*i, 0, 0) * CA(MR(-30*i), MR(5*i), MR(20*i))
  687. neck.C0 = necko * CA(MR(-5*i), 0, MR(-35*i))
  688. wait()
  689. end
  690. LAW.Part1 = nil
  691. for i = 0.08, 1, 0.14 do
  692. RAW.C0 = CA(MR(140+80*i), MR(-30*i), MR(20-55*i))
  693. HW.C0 = CN(0.4, 0, 0) * CA(MR(-30-30*i), MR(5+5*i), MR(20+80*i))
  694. neck.C0 = necko * CA(MR(-5-10*i), 0, MR(-35-25*i))
  695. wait()
  696. end
  697. HW.Part1 = nil
  698. TH.Part1 = Handle
  699. for i = 0.09, 1, 0.18 do
  700. RAW.C0 = CA(MR(220-220*i), MR(-30+30*i), MR(20-55+35*i))
  701. neck.C0 = necko * CA(MR(-5-10+15*i), 0, MR(-35-25+60*i))
  702. wait()
  703. end
  704. neck.C0 = necko
  705. Detach()
  706. end
  707.  
  708. function setatk(s, e)
  709. Notime(function()
  710. Attack = e
  711. wait(0.25)
  712. Attack = s
  713. end)
  714. end
  715.  
  716. Attacks = {
  717. function()
  718. Attack = 1
  719. Able = false
  720. for i = 0.1, 1, 0.2 do
  721. RAW.C0 = CA(MR(40+90*i), MR(50-60*i), 0)
  722. HW.C0 = CA(0, 0, 0)
  723. LAW.C0 = CA(MR(20+55*i), MR(-20), MR(-20+60*i))
  724. neck.C0 = necko * CA(MR(-10*i), 0, MR(-25*i))
  725. wait()
  726. end
  727. PlaySound(Sounds.Slash[1], Sounds.Slash[2], Sounds.Slash[3])
  728. for i = 0.16, 1, 0.33 do
  729. RAW.C0 = CA(MR(130+5*i), MR(-10-20*i), 0)
  730. HW.C0 = CA(0, 0, 0)
  731. LAW.C0 = CA(MR(75+5*i), MR(-20), MR(40+5*i))
  732. neck.C0 = necko * CA(MR(-10-5*i), 0, MR(-25-5*i))
  733. wait()
  734. end
  735. Hurt = true
  736. Deb = true
  737. StartEffect()
  738. Mode = Dmgs.Slash
  739. for i = 0.11, 1, 0.22 do
  740. RAW.C0 = CA(MR(135-115*i), MR(-30), MR(-50*i)) * CN(0, -0.7*i, 0)
  741. HW.C0 = CA(MR(-70*i), 0, 0)
  742. LAW.C0 = CA(MR(80-120*i), MR(-20+20*i), MR(45-45*i))
  743. neck.C0 = necko * CA(MR(-15+30*i), 0, MR(-30+45*i))
  744. wait()
  745. end
  746. EndEffect()
  747. Hurt = false
  748. setatk(1,2)
  749. Able = true
  750. for i = 0.2, 1, 0.25 do
  751. RAW.C0 = CA(MR(20-18*i), MR(-30), MR(-50-3*i)) * CN(0, -0.7-0.05*i, 0)
  752. HW.C0 = CA(MR(-70-5*i), 0, 0)
  753. neck.C0 = necko * CA(MR(15+3*i), 0, MR(15+3*i))
  754. wait()
  755. end
  756. wait(0.1)
  757. for i = 0.1, 1, 0.15 do
  758. if Able == false then return end
  759. RAW.C0 = CA(MR(2+38*i), MR(-30+80*i), MR(-53+53*i)) * CN(0, -0.75+0.75*i, 0)
  760. HW.C0 = CA(MR(-75+75*i), 0, 0)
  761. LAW.C0 = CA(MR(-40+60*i), MR(-20+20-20*i), MR(-20*i))
  762. neck.C0 = necko * CA(MR(15+3-18*i), 0, MR(15+3-18*i))
  763. wait()
  764. end
  765. Normalize()
  766. end,
  767.  
  768. function()
  769. Attack = 2
  770. Able = false
  771. PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.1, Sounds.Slash[3])
  772. for i = 0.05, 1, 0.1 do
  773. RAW.C0 = CA(MR(10+80*i), MR(-30+30*i), MR(-55+35*i)) * CN(0, -0.75+0.35*i, 0)
  774. LAW.C0 = CA(MR(-40), 0, 0)
  775. HW.C0 = CA(MR(-75+75*i), 0, MR(90*i))
  776. neck.C0 = necko * CA(MR(18-13*i), 0, MR(18+22*i))
  777. wait()
  778. end
  779. Hurt = true
  780. Deb = true
  781. StartEffect()
  782. Mode = Dmgs.SideSlash
  783. for i = 0.09, 1, 0.17 do
  784. RAW.C0 = CA(MR(90-40*i), 0, MR(-20+110*i)) * CN(0, -0.4+0.4*i, 0)
  785. HW.C0 = CA(0, MR(-65*i), MR(90))
  786. LAW.C0 = CA(MR(-40+120*i), MR(-20*i), MR(50*i)) * CN(0, -0.6*i, 0)
  787. neck.C0 = necko * CA(MR(5), 0, MR(40-90*i))
  788. wait()
  789. end
  790. EndEffect()
  791. Hurt = false
  792. Deb = false
  793. setatk(1,3)
  794. Able = true
  795. for i = 0.12, 1, 0.25 do
  796. RAW.C0 = CA(MR(50-5*i), 0, MR(90+10*i))
  797. HW.C0 = CA(0, MR(-65-5*i), MR(90))
  798. LAW.C0 = CA(MR(-40+120), MR(-20), MR(50+5*i)) * CN(0, -0.6, 0)
  799. neck.C0 = necko * CA(MR(5), 0, MR(40-90-5*i))
  800. wait()
  801. end
  802. wait(0.08)
  803. for i = 0.05, 1, 0.1 do
  804. if Able == false then return end
  805. RAW.C0 = CA(MR(45-5*i), MR(50*i), MR(100-100*i)) * CN(0, 0, 0)
  806. HW.C0 = CA(0, MR(-70+70*i), MR(90-90*i))
  807. LAW.C0 = CA(MR(-40+120-60*i), MR(-20), MR(55-75*i)) * CN(0, -0.6+0.6*i, 0)
  808. neck.C0 = necko * CA(MR(5-5*i), 0, MR(-55+55*i))
  809. wait()
  810. end
  811. Normalize()
  812. end,
  813.  
  814. function()
  815. Able = false
  816. for i = 0.05, 1, 0.08 do
  817. RAW.C0 = CA(MR(50+130*i), 0, MR(90-125*i)) * CN(0, -1*i, 0)
  818. HW.C0 = CA(0, MR(-65-35*i), MR(90-90*i))
  819. LAW.C0 = CA(MR(80+100*i), MR(-20+20*i), MR(50-15*i)) * CN(0, -0.6-0.4*i, 0)
  820. neck.C0 = necko * CA(MR(5-25*i), 0, MR(-50+50*i))
  821. wait()
  822. end
  823. PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.05, Sounds.Slash[3])
  824. for i = 0.13, 1, 0.25 do
  825. RAW.C0 = CA(MR(180+10*i), 0, MR(-35)) * CN(0, -1, 0)
  826. HW.C0 = CA(0, MR(-100), 0)
  827. LAW.C0 = CA(MR(180+10*i), 0, MR(35)) * CN(0, -1, 0)
  828. neck.C0 = necko * CA(MR(5-25-5*i), 0, 0)
  829. wait()
  830. end
  831. StartEffect()
  832. Hurt = true
  833. Deb = true
  834. Mode = Dmgs.Smash
  835. for i = 0.06, 1, 0.12 do
  836. RAW.C0 = CA(MR(190-160*i), 0, MR(-35)) * CN(0, -1+0.2*i, 0)
  837. HW.C0 = CA(MR(-20*i), MR(-100-40*i), MR(40*i))
  838. LAW.C0 = CA(MR(190-160*i), 0, MR(35)) * CN(0, -1+0.2*i, 0)
  839. neck.C0 = necko * CA(MR(-25+45*i), 0, 0)
  840. wait()
  841. end
  842. PlaySound(Sounds.SmashHit[1], Sounds.SmashHit[2], Sounds.SmashHit[3])
  843. EndEffect()
  844. Hurt = false
  845. Deb = false
  846. for i = 0.2, 1, 0.5 do
  847. RAW.C0 = CA(MR(30+15*i), 0, MR(-35)) * CN(0, -0.8+0.4*i, 0)
  848. HW.C0 = CA(MR(-20), MR(-140), MR(40))
  849. LAW.C0 = CA(MR(30+15*i), 0, MR(35)) * CN(0, -0.8+0.4*i, 0)
  850. neck.C0 = necko * CA(MR(20), 0, 0)
  851. wait()
  852. end
  853. setatk(1,4)
  854. Able = true
  855. for i = 0.16, 1, 0.33 do
  856. if not Able then return end
  857. RAW.C0 = CA(MR(30+15-15*i), 0, MR(-35)) * CN(0, -0.8+0.4-0.2*i, 0)
  858. HW.C0 = CA(MR(-20), MR(-140), MR(40))
  859. LAW.C0 = CA(MR(30+15-15*i), 0, MR(35)) * CN(0, -0.8+0.4-0.2*i, 0)
  860. neck.C0 = necko * CA(MR(20), 0, 0)
  861. wait()
  862. end
  863. for i = 0.05, 1, 0.1 do
  864. if not Able then return end
  865. RAW.C0 = CA(MR(30+10*i), MR(50*i), MR(-35+35*i)) * CN(0, -0.8+0.4-0.2+0.6*i, 0)
  866. HW.C0 = CA(MR(-20+20*i), MR(-140+140*i), MR(40-40*i))
  867. LAW.C0 = CA(MR(30+15-15-10*i), MR(-20*i), MR(35-55*i)) * CN(0, -0.8+0.4-0.2+0.6*i, 0)
  868. neck.C0 = necko * CA(MR(20-20*i), 0, 0)
  869. wait()
  870. end
  871. Normalize()
  872. end,
  873. function()
  874. Able = false
  875. for i = 0.06, 1, 0.12 do
  876. RAW.C0 = CA(MR(30), MR(-20*i), MR(-35-25*i)) * CN(0, -0.8, 0)
  877. HW.C0 = CA(MR(-20-60*i), MR(-140-40*i), MR(40-40*i))
  878. LAW.C0 = CA(MR(30-110*i), 0, MR(35-35*i)) * CN(0, -0.8+0.8*i, 0)
  879. neck.C0 = necko * CA(MR(20-15*i), 0, MR(10*i))
  880. wait()
  881. end
  882. Mode = Dmgs.DoubleSlash
  883. StartEffect()
  884. playz(Sounds.Slash)
  885. Hurt = true
  886. Deb = true
  887. for i = 0.07, 1, 0.14 do
  888. RAW.C0 = CA(MR(30+120*i), MR(-20), MR(-60+80*i)) * CN(0, -0.8+0.8*i, 0)
  889. HW.C0 = CA(MR(-80+60*i), MR(180), 0)
  890. LAW.C0 = CA(MR(-50+100*i), 0, MR(30*i))
  891. neck.C0 = necko * CA(MR(5-25*i), 0, MR(10-30*i))
  892. wait()
  893. end
  894. EndEffect()
  895. Hurt = false
  896. for i = 0.17, 1, 0.33 do
  897. RAW.C0 = CA(MR(150+15*i), MR(-20), MR(20+5*i))
  898. HW.C0 = CA(MR(-20), MR(180), 0)
  899. LAW.C0 = CA(MR(50+5*i), 0, MR(30+10*i))
  900. neck.C0 = necko * CA(MR(-20-5*i), 0, MR(-20))
  901. wait()
  902. end
  903. for i = 0.13, 1, 0.25 do
  904. RAW.C0 = CA(MR(165-15*i), MR(-20+50*i), MR(25-75*i))
  905. HW.C0 = CA(MR(-20-20*i), MR(180), 0)
  906. LAW.C0 = CA(MR(55+45*i), 0, MR(40-30*i))
  907. neck.C0 = necko * CA(MR(-25), 0, MR(-20+35*i))
  908. wait()
  909. end
  910. StartEffect()
  911. Hurt = true
  912. Deb = true
  913. playz(Sounds.Slash)
  914. for i = 0.08, 1, 0.16 do
  915. RAW.C0 = CA(MR(150-110*i), MR(30), MR(-50+65*i))
  916. HW.C0 = CA(MR(-40-40*i), MR(180), 0)
  917. LAW.C0 = CA(MR(100-50*i), MR(-30*i), MR(10+30*i)) * CN(0, -1.1*i, 0)
  918. neck.C0 = necko * CA(MR(-25+45*i), 0, MR(15-30*i))
  919. wait()
  920. end
  921. EndEffect()
  922. Hurt = false
  923. for i = 0.13, 1, 0.25 do
  924. RAW.C0 = CA(MR(40-5*i), MR(30), MR(15+5*i))
  925. HW.C0 = CA(MR(-80-5*i), MR(180), 0)
  926. LAW.C0 = CA(MR(50), MR(-30), MR(40)) * CN(0, -1.1-0.1*i, 0)
  927. neck.C0 = necko * CA(MR(20+5*i), 0, MR(-15-5*i))
  928. wait()
  929. end
  930. for i = 0.09, 1, 0.16 do
  931. RAW.C0 = CA(MR(35+5*i), MR(30+20*i), MR(20-20*i))
  932. HW.C0 = CA(MR(-85+85*i), MR(180+180*i), 0)
  933. LAW.C0 = CA(MR(50-30*i), MR(-30+10*i), MR(40-60*i)) * CN(0, -1.2+1.2*i, 0)
  934. neck.C0 = necko * CA(MR(25-25*i), 0, MR(-20+20*i))
  935. wait()
  936. end
  937. Normalize()
  938. Able = true
  939. Attack = 1
  940. end
  941. }
  942.  
  943. SpinSlash = function(plaic)
  944. if Rage < Dmgs.Spin[6] then return end
  945. Rage = Rage - Dmgs.Spin[6]
  946. local cf = torso.CFrame
  947. local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
  948. if plaic then
  949. CF = ComputePos(cf.p, plaic)
  950. end
  951. AbleAll = false
  952. local bg = Add.BG(torso)
  953. bg.cframe = CF
  954. for i = 0.07, 1, 0.14 do
  955. RAW.C0 = CA(MR(40+50*i), MR(50-65*i), 0)
  956. HW.C0 = CA(0, 0, MR(90*i))
  957. LAW.C0 = CA(MR(20-20*i), MR(-20+20*i), MR(-20-60*i))
  958. neck.C0 = necko * CA(0, 0, MR(-30*i))
  959. bg.cframe = CF * CA(0, MR(30*i), 0)
  960. wait()
  961. end
  962. StartEffect()
  963. Hurt = true
  964. Deb = true
  965. Mode = Dmgs.Spin
  966. Notime(function()
  967. while Hurt do
  968. PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.35, Sounds.Slash[3])
  969. wait(0.15)
  970. end
  971. end)
  972. for i = 0.04, 1, 0.06 do
  973. RAW.C0 = CA(MR(90-10*i), MR(-15), MR(90*i))
  974. HW.C0 = CA(0, MR(-70*i), MR(90))
  975. LAW.C0 = CA(MR(90*i), 0, MR(-20-60+120*i)) * CN(0, -0.7*i, 0)
  976. neck.C0 = necko * CA(0, 0, MR(-30+20*i))
  977. bg.cframe = CF * CA(0, MR(30-380*i), 0)
  978. wait()
  979. end
  980. EndEffect()
  981. for i = 0.09, 1, 0.17 do
  982. RAW.C0 = CA(MR(80), MR(-15), MR(90))
  983. HW.C0 = CA(0, MR(-70-10*i), MR(90))
  984. LAW.C0 = CA(MR(90), 0, MR(-20-60+120+20*i)) * CN(0, -0.7, 0)
  985. neck.C0 = necko * CA(0, 0, MR(-10+60*i))
  986. bg.cframe = CF * CA(0, MR(-350-60*i), 0)
  987. wait()
  988. end
  989. Hurt = false
  990. Deb = false
  991. for i = 0.05, 1, 0.1 do
  992. RAW.C0 = CA(MR(80-40*i), MR(-15+65*i), MR(90-90*i))
  993. HW.C0 = CA(0, MR(-80+80*i), MR(90-90*i))
  994. LAW.C0 = CA(MR(90-70*i), MR(-20*i), MR(60-80*i)) * CN(0, -0.7+0.7*i, 0)
  995. neck.C0 = necko * CA(0, 0, MR(-10+60-50*i))
  996. bg.cframe = CF * CA(0, MR(-410+50*i), 0)
  997. wait()
  998. end
  999. bg:remove()
  1000. Normalize()
  1001. AbleAll = true
  1002. end
  1003.  
  1004. Flawp = function(plaic)
  1005. local cf = torso.CFrame
  1006. local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
  1007. if plaic then
  1008. CF = ComputePos(cf.p, plaic)
  1009. end
  1010. local cf2 = CF * CN(0, -1.1, -1)
  1011. local Dist = 8
  1012. local Hit1, Pos1 = RayC(CF.p, (CF * CN(0, -1, 0)).p, 4, char)
  1013. local Hit2, Pos2 = RayC((CF * CN(0, 0, -Dist*2)).p, (CF * CN(0, -1, -Dist*2)).p, 4, char)
  1014. local Hit3, Pos3 = RayC(CF.p, (CF * CN(0, 0, -Dist*2)).p, Dist*2, char)
  1015. if Rage < Dmgs.Boom[6] then return end
  1016. if Hit1 and Hit2 then
  1017. Rage = Rage - Dmgs.Boom[6]
  1018. local bp = Add.BP(torso)
  1019. bp.position = cf.p
  1020. local bg = Add.BG(torso)
  1021. bg.cframe = CF
  1022. AbleAll = false
  1023. RLW.Part1 = Rleg
  1024. LLW.Part1 = Lleg
  1025. for i = 0.05, 1, 0.1 do
  1026. RAW.C0 = CA(MR(40+30*i), MR(50-50*i), MR(25*i))
  1027. LAW.C0 = CA(MR(20+50*i), MR(-20+20*i), MR(-20-5*i))
  1028. HW.C0 = CA(MR(25*i), 0, 0)
  1029. RLW.C0 = CN(0, 1*i, -1*i)
  1030. LLW.C0 = CA(MR(-90*i), 0, 0) * CN(0, 0.5*i, -0.2*i)
  1031. neck.C0 = necko * CA(MR(20*i), 0, 0)
  1032. bp.position = CF * CN(0, -1*i, -1*i).p
  1033. wait()
  1034. end
  1035. local Center = cf2 * CN(0, 0, -Dist)
  1036. hum.PlatformStand = true
  1037. PlaySound(Sounds.Jump[1], Sounds.Jump[2], Sounds.Jump[3])
  1038. for i = 0.06, 1, 0.1 do
  1039. RAW.C0 = CA(MR(70-160*i), 0, MR(25+15*i))
  1040. LAW.C0 = CA(MR(70-160*i), 0, MR(-25-15*i))
  1041. HW.C0 = CA(MR(25), 0, 0)
  1042. RLW.C0 = CN(0, 1-1*i, -1+1*i)
  1043. LLW.C0 = CA(MR(-90+70*i), 0, 0) * CN(0, 0.5+0.7*i, -0.2-0.3*i)
  1044. neck.C0 = necko * CA(MR(20-50*i), 0, 0)
  1045. bp.position = Center * CA(MR(180-45*i), 0, 0) * CN(0, 0, -Dist).p
  1046. bg.cframe = CF * CA(MR(-90*i), 0, 0)
  1047. wait()
  1048. end
  1049. for i = 0.06, 1, 0.1 do
  1050. RAW.C0 = CA(MR(-90-90*i), 0, MR(40+50*i))
  1051. LAW.C0 = CA(MR(-90-90*i), 0, MR(-40-50*i))
  1052. HW.C0 = CA(MR(25-25*i), 0, MR(-90*i))
  1053. RLW.C0 = CN(0, 0, 0)
  1054. LLW.C0 = CA(MR(-20+20*i), 0, 0) * CN(0, 1.2-1.2*i, -0.5+0.5*i)
  1055. bp.position = Center * CA(MR(135-45*i), 0, 0) * CN(0, 0, -Dist).p
  1056. bg.cframe = CF * CA(MR(-90-90*i), 0, 0)
  1057. wait()
  1058. end
  1059. StartEffect()
  1060. for i = 0.06, 1, 0.1 do
  1061. RAW.C0 = CA(MR(180+10*i), 0, MR(90-130*i)) * CN(0, -1*i, 0)
  1062. LAW.C0 = CA(MR(180+10*i), 0, MR(-90+130*i)) * CN(0, -1*i, 0)
  1063. HW.C0 = CA(0, 0, MR(-90-90*i))
  1064. RLW.C0 = CN(0, 0, 0)
  1065. LLW.C0 = CA(0, 0, 0) * CN(0, 0, 0)
  1066. bp.position = Center * CA(MR(90-45*i), 0, 0) * CN(0, 0, -Dist).p
  1067. bg.cframe = CF * CA(MR(-180-90*i), 0, 0)
  1068. wait()
  1069. end
  1070. playz(Sounds.Slash)
  1071. for i = 0.06, 1, 0.1 do
  1072. RAW.C0 = CA(MR(190-100*i), 0, MR(-40)) * CN(0, -1-0.2*i, 0)
  1073. LAW.C0 = CA(MR(190-80*i), MR(-25*i), MR(40-15*i)) * CN(0, -1-0.2*i, 0)
  1074. HW.C0 = CA(0, MR(-45*i), MR(-180))
  1075. RLW.C0 = CN(0, 1*i, -1*i)
  1076. LLW.C0 = CA(MR(-20-70*i), 0, 0) * CN(0, 1.2-0.7*i, -0.5+0.3*i)
  1077. neck.C0 = necko * CA(MR(-30+60*i), 0, 0)
  1078. bp.position = Center * CA(MR(45-45*i), 0, 0) * CN(0, 0, -Dist).p
  1079. bg.cframe = CF * CA(MR(-270-90*i), 0, 0)
  1080. wait()
  1081. end
  1082. Mode = Dmgs.Boom
  1083. EndEffect()
  1084. RAW.C0 = CA(MR(90), 0, MR(-40)) * CN(0, -1.2, 0)
  1085. LAW.C0 = CA(MR(110), MR(-25), MR(25)) * CN(0, -1.2, 0)
  1086. HW.C0 = CA(0, MR(-45), MR(-180))
  1087. RLW.C0 = CN(0, 1, -1)
  1088. LLW.C0 = CA(MR(-90), 0, 0) * CN(0, 0.5, -0.2)
  1089. bp.position = Center * CN(0, 0, -Dist).p
  1090. bg.cframe = CF * CA(0, 0, 0)
  1091. local PosEff = Center * CN(0, -2, -Dist-2.5)
  1092. Notime(function()
  1093. playz(Sounds.Boom)
  1094. local disst = Dmgs.Boom[7]
  1095. local chars = getCharacters(workspace, PosEff.p, disst)
  1096. for _,v in pairs(chars) do
  1097. local c, t, h = v[1], v[2], v[3]
  1098. local d = (t.Position - PosEff.p).magnitude
  1099. local bl, bp, blo = getBlock(c)
  1100. if blo then
  1101. ShieldDamage(Dmgs.Boom, bl, bp, false)
  1102. end
  1103. d = d/4
  1104. if d < 1 then d = 1 end
  1105. Damage(t, h, Dmgs.Boom[2]/d, false, false)
  1106. for _,k in pairs(c:children()) do
  1107. if k:IsA("BasePart") then
  1108. k.Velocity = CFrame.new(PosEff.p, k.Position).lookVector * 40 + Vector3.new(0, 50, 0)
  1109. end
  1110. end
  1111. h.PlatformStand = true
  1112. Notime(function() h.PlatformStand = false end, 0.2)
  1113. end
  1114. local eff = Instance.new("Model",workspace)
  1115. eff.Name = "Effect"
  1116. local wave = Part(eff, true, false, 0, 0, EffectColor, 1, 1, 1, true)
  1117. wave.CFrame = PosEff
  1118. local wavem = Add.Mesh(wave, "http://www.roblox.com/asset/?id=20329976", 3, 2, 3)
  1119. local ball = Part(eff, true, false, 0, 0, EffectColor2, 1, 1, 1, true)
  1120. ball.CFrame = PosEff
  1121. local ballm = Add.Sphere(ball)
  1122. ballm.Scale = Vector3.new(2, 5, 2)
  1123. local diamond = Part(eff, true, false, 0, 0, EffectColor, 1, 1, 1, true)
  1124. diamond.CFrame = PosEff
  1125. local diamondm = Add.Mesh(diamond, "http://www.roblox.com/asset/?id=9756362", 7, 0.5, 7)
  1126. for i = 0, 1, 0.05 do
  1127. wait()
  1128. wave.CFrame = PosEff * CFrame.Angles(0, MR(180*i), 0)
  1129. wave.Transparency = i
  1130. wavem.Scale = Vector3.new(3+(disst*1.15)*i, 2+(disst/1.4)*i, 3+(disst*1.15)*i)
  1131. ball.Transparency = i
  1132. ballm.Scale = Vector3.new(1+(disst*2)*i, 5+(disst*1.2)*i, 1+(disst*2)*i)
  1133. diamond.Transparency = i
  1134. diamondm.Scale = Vector3.new(7-6.5*i, 0.5+(disst*2)*i, 7-6.5*i)
  1135. end
  1136. wait()
  1137. eff:remove()
  1138. end)
  1139. wait(0.4)
  1140. for i = 0.07, 1, 0.1 do
  1141. RAW.C0 = CA(MR(90+50*i), 0, MR(-40)) * CN(0, -1.2+0.4*i, -0.4*i)
  1142. LAW.C0 = CA(MR(110+30*i), MR(-25+25*i), MR(25+15*i)) * CN(0, -1.2+0.4*i, -0.4*i)
  1143. HW.C0 = CA(MR(-30*i), MR(-45+45*i), MR(-180-30*i)) * CN(0, -0.7*i, 0)
  1144. RLW.C0 = CN(0, 1-1*i, -1+1*i)
  1145. LLW.C0 = CA(MR(-90+90*i), 0, 0) * CN(0, 0.5-0.5*i, -0.2+0.2*i)
  1146. neck.C0 = necko * CA(MR(30-15*i), 0, 0)
  1147. bp.position = Center * CN(0, 1.4*i, -Dist-1*i).p
  1148. wait()
  1149. end
  1150. bp:remove()
  1151. bg:remove()
  1152. hum.PlatformStand = false
  1153. for i = 0.05, 1, 0.1 do
  1154. RAW.C0 = CA(MR(140-100*i), MR(50*i), MR(-40+40*i)) * CN(0, -0.8+0.8*i, -0.4+0.4*i)
  1155. LAW.C0 = CA(MR(140-190*i), 0, MR(40-80*i)) * CN(0, -0.8+0.8*i, -0.4+0.4*i)
  1156. HW.C0 = CA(MR(-30+30*i), 0, MR(-210-150*i)) * CN(0, -0.7+0.7*i, 0)
  1157. RLW.C0 = CN()
  1158. LLW.C0 = CN()
  1159. neck.C0 = necko * CA(MR(15-15*i), 0, 0)
  1160. bp.position = Center * CN(0, 1.4-0.4*i, -Dist-1-0.3*i).p
  1161. wait()
  1162. end
  1163. RLW.Part1 = nil
  1164. LLW.Part1 = nil
  1165. for i = 0.1, 1, 0.2 do
  1166. LAW.C0 = CA(MR(-50+70*i), MR(-20*i), MR(-40+20*i))
  1167. wait()
  1168. end
  1169. Normalize()
  1170. AbleAll = true
  1171. end
  1172. end
  1173.  
  1174. function Raeg()
  1175. if Rage < Dmgs.RageMode[5] then return end
  1176. if RageMode == false and AbleAll and Able then
  1177. AbleAll = false
  1178. local CF = ComputePos(torso.Position, torso.CFrame * CN(0, 0, -2))
  1179. for i = 0.05, 1, 0.1 do
  1180. RAW.C0 = CA(MR(40-70*i), MR(50-45*i), MR(10*i))
  1181. LAW.C0 = CA(MR(20-50*i), MR(-20+15*i), MR(-20+10*i))
  1182. HW.C0 = CA(MR(20*i), 0, 0)
  1183. wait()
  1184. end
  1185. for i = 0.12, 1, 0.25 do
  1186. RAW.C0 = CA(MR(-30-10*i), MR(5-5*i), MR(10-5*i))
  1187. LAW.C0 = CA(MR(-30-10*i), MR(-5+5*i), MR(-10+5*i))
  1188. HW.C0 = CA(MR(20+5*i), 0, 0)
  1189. wait()
  1190. end
  1191. hum.Jump = true
  1192. playz(Sounds.Jump2)
  1193. CF = ComputePos(torso.Position, torso.CFrame * CN(0, 0, -2))
  1194. local p = Part(workspace, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2, true)
  1195. p.CFrame = CF * CN(0, -2, 0)
  1196. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 3, 1)
  1197. Notime(function()
  1198. for i = 0, 1, 0.08 do
  1199. wait()
  1200. m.Scale = Vector3.new(1+5*i, 3-2.5*i, 1+5*i)
  1201. p.Transparency = i
  1202. end
  1203. p:remove()
  1204. end)
  1205. for i = 0.05, 1, 0.1 do
  1206. RAW.C0 = CA(MR(-40+220*i), 0, MR(5+35*i))
  1207. LAW.C0 = CA(MR(-40+220*i), 0, MR(-5-35*i))
  1208. HW.C0 = CA(MR(25-115*i), MR(90*i), MR(45*i))
  1209. wait()
  1210. end
  1211. for i = 0.12, 1, 0.25 do
  1212. RAW.C0 = CA(MR(180+8*i), 0, MR(40))
  1213. LAW.C0 = CA(MR(180+8*i), 0, MR(-40))
  1214. HW.C0 = CA(MR(-90), MR(90), MR(45))
  1215. wait()
  1216. end
  1217. for i = 0.05, 1, 0.1 do
  1218. RAW.C0 = CA(MR(188-98*i), 0, MR(40-80*i)) * CN(0, -1*i, 0)
  1219. LAW.C0 = CA(MR(188-98*i), 0, MR(-40+80*i)) * CN(0, -1*i, 0)
  1220. HW.C0 = CA(MR(-90+90*i), MR(90+45*i), MR(45-45*i))
  1221. wait()
  1222. end
  1223. playz(Sounds.GoRage)
  1224. local p2 = Part(workspace, false, false, 1, 0, EffectColor3, 1, 1, 1, true)
  1225. Weld(Tip4, p2, 0, -2, 0, 0, 0, 0)
  1226. local m2 = Add.Sphere(p2)
  1227. m2.Scale = Vector3.new(0.2, 2, 0.5)
  1228. for i = 0, 1, 0.06 do
  1229. p2.Transparency = 1-1*i
  1230. m2.Scale = Vector3.new(0.2+0.7*i, 2+3*i, 0.5+1.6*i)
  1231. wait()
  1232. end
  1233. for _,v in pairs(Blades) do
  1234. v.BrickColor = BrickColor.new(EffectColor3)
  1235. end
  1236. wait(0.5)
  1237. for i = 0, 1, 0.1 do
  1238. p2.Transparency = i
  1239. wait()
  1240. end
  1241. p2:remove()
  1242. playz(Sounds.Shout)
  1243. for i = 0.1, 1, 0.1 do
  1244. RAW.C0 = CA(MR(90-50*i), MR(50*i), MR(-40+40*i)) * CN(0, -1+1*i, 0)
  1245. LAW.C0 = CA(MR(90-70*i), MR(-20*i), MR(-40+80-60*i)) * CN(0, -1+1*i, 0)
  1246. HW.C0 = CA(0, MR(135+45*i), 0)
  1247. wait()
  1248. end
  1249. Normalize()
  1250. AbleAll = true
  1251. RageMode = true
  1252. AddDamage = Dmgs.RageMode[2]
  1253. AddDamageX = Dmgs.RageMode[3]
  1254. AddShield = Dmgs.RageMode[4]
  1255. LineColor = EffectColor3
  1256. Notime(function()
  1257. repeat
  1258. wait()
  1259. Rage = Rage - 0.45
  1260. until Rage < 1
  1261. RageMode = false
  1262. AddDamage = 0
  1263. AddShield = 0
  1264. AddDamageX = 1
  1265. LineColor = "White"
  1266. local p3 = Part(workspace, false, false, 1, 0, BladeColor, 1, 1, 1, true)
  1267. Weld(Tip4, p3, 0, -2, 0, 0, 0, 0)
  1268. local m3 = Add.Sphere(p3)
  1269. m3.Scale = Vector3.new(0.85, 4.9, 1.8)
  1270. playz(Sounds.RageOff)
  1271. for i = 0.1, 1, 0.1 do
  1272. p3.Transparency = 1-1*i
  1273. wait()
  1274. end
  1275. p.Transparency = 0
  1276. for _,v in pairs(Blades) do
  1277. v.BrickColor = BrickColor.new(BladeColor)
  1278. end
  1279. wait(0.2)
  1280. for i = 0.2, 1, 0.2 do
  1281. p3.Transparency = 1*i
  1282. m3.Scale = Vector3.new(0.85+2*i, 4.9+9*i, 1.8+4.5*i)
  1283. wait()
  1284. end
  1285. p3:remove()
  1286. end)
  1287. end
  1288. end
  1289.  
  1290. function RageSlash(plaic)
  1291. if Rage < Dmgs.RageSlash[6] then return end
  1292. local cf = torso.CFrame
  1293. local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
  1294. if plaic then
  1295. CF = ComputePos(cf.p, plaic)
  1296. local bg = Add.BG(torso)
  1297. bg.cframe = CF
  1298. Notime(function() bg:remove() end, 0.4)
  1299. end
  1300. Rage = Rage - Dmgs.RageSlash[6]
  1301. AbleAll = false
  1302. for i = 0.05, 1, 0.1 do
  1303. RAW.C0 = CA(MR(40+105*i), MR(50-50*i), MR(-35*i)) * CN(0.15*i, -1*i, 0)
  1304. LAW.C0 = CA(MR(20+125*i), MR(-20+20*i), MR(-20+55*i)) * CN(-0.15*i, -1*i, 0)
  1305. HW.C0 = CA(0, MR(-35*i), 0)
  1306. neck.C0 = necko * CA(MR(-20*i), 0, 0)
  1307. wait()
  1308. end
  1309. for i = 0.09, 1, 0.18 do
  1310. RAW.C0 = CA(MR(145+55*i), 0, MR(-35)) * CN(0.15, -1, 0)
  1311. LAW.C0 = CA(MR(145+55*i), 0, MR(35)) * CN(-0.15, -1, 0)
  1312. HW.C0 = CA(0, MR(-35), 0)
  1313. neck.C0 = necko * CA(MR(-20-20*i), 0, 0)
  1314. wait()
  1315. end
  1316. PlaySound(Sounds.Slash[1], Sounds.Slash[2]-0.7, Sounds.Slash[3])
  1317. for i = 0.12, 1, 0.25 do
  1318. RAW.C0 = CA(MR(200+10*i), 0, MR(-35)) * CN(0.15, -1, 0)
  1319. LAW.C0 = CA(MR(200+10*i), 0, MR(35)) * CN(-0.15, -1, 0)
  1320. HW.C0 = CA(0, MR(-35), 0)
  1321. neck.C0 = necko * CA(MR(-20-20-5*i), 0, 0)
  1322. wait()
  1323. end
  1324. Mode = Dmgs.RageSlash
  1325. StartEffect("Neon orange")
  1326. Hurt = true
  1327. Deb = true
  1328. for i = 0.07, 1, 0.14 do
  1329. RAW.C0 = CA(MR(210-160*i), 0, MR(-35)) * CN(0.15, -1, 0)
  1330. LAW.C0 = CA(MR(210-150*i), MR(-30*i), MR(35)) * CN(-0.15, -1, 0)
  1331. HW.C0 = CA(MR(-70*i), MR(-35), MR(-35*i))
  1332. neck.C0 = necko * CA(MR(-45+80*i), 0, 0)
  1333. wait()
  1334. end
  1335. EndEffect()
  1336. Hurt = false
  1337. for i = 0.33, 1, 0.33 do
  1338. RAW.C0 = CA(MR(50-15*i), 0, MR(-35)) * CN(0.15, -1, 0)
  1339. LAW.C0 = CA(MR(60-15*i), MR(-30), MR(35)) * CN(-0.15, -1, 0)
  1340. HW.C0 = CA(MR(-70-15*i), MR(-35), MR(-35-7*i))
  1341. neck.C0 = necko * CA(MR(-45+80+5*i), 0, 0)
  1342. wait()
  1343. end
  1344. for i = 0.07, 1, 0.14 do
  1345. RAW.C0 = CA(MR(35+5*i), MR(50*i), MR(-35+35*i)) * CN(0.15-0.15*i, -1+1*i, 0)
  1346. LAW.C0 = CA(MR(45-25*i), MR(-30+10*i), MR(35-55*i)) * CN(-0.15+0.15*i, -1+1*i, 0)
  1347. HW.C0 = CA(MR(-70-15+85*i), MR(-35+35*i), MR(-35-7+42*i))
  1348. neck.C0 = necko * CA(MR(-45+80+5-40*i), 0, 0)
  1349. wait()
  1350. end
  1351. Normalize()
  1352. AbleAll = true
  1353. end
  1354.  
  1355. --RAW ORIGINAL = CA(MR(40), MR(50), 0)
  1356. --LAW ORIGINAL = CA(MR(20), MR(-20), MR(-20))
  1357. --HW ORIGINAL = CA(0, 0, 0)
  1358.  
  1359. function Counter()
  1360. local cf = torso.CFrame
  1361. local CF = CFrame.new(cf.p, cf * CN(0, 0, -2).p)
  1362. local bg = Add.BG(torso)
  1363. bg.cframe = CF
  1364. for i = 0.1, 1, 0.2 do
  1365. RAW.C0 = CA(MR(-50+50*i), MR(-35), MR(80*i))
  1366. LAW.C0 = CA(MR(90-20*i), 0, MR(80-20*i)) * CN(-0.75+0.25*i, -0.8+0.5*i, 0)
  1367. HW.C0 = CA(MR(20-60*i), 0, 0)
  1368. bg.cframe = CF * CA(0, MR(-35*i), 0)
  1369. neck.C0 = necko * CA(0, 0, MR(35*i))
  1370. wait()
  1371. end
  1372. StartEffect()
  1373. Hurt = true
  1374. Deb = true
  1375. Mode = Dmgs.Counter
  1376. playz(Sounds.Slash)
  1377. for i = 0.09, 1, 0.18 do
  1378. RAW.C0 = CA(0, MR(-35+130*i), MR(80)) * CN(0, -0.3*i, 0)
  1379. LAW.C0 = CA(MR(70-130*i), 0, MR(60-60*i)) * CN(-0.5+0.5*i, -0.3+0.3*i, 0)
  1380. HW.C0 = CA(MR(-40+40*i), 0, 0)
  1381. bg.cframe = CF * CA(0, MR(-35+80*i), 0)
  1382. neck.C0 = necko * CA(0, 0, MR(35-80*i))
  1383. wait()
  1384. end
  1385. EndEffect()
  1386. Hurt = false
  1387. for i = 0.12, 1, 0.25 do
  1388. RAW.C0 = CA(0, MR(95+10*i), MR(80)) * CN(0, -0.3, 0)
  1389. LAW.C0 = CA(MR(-60-10*i), 0, 0)
  1390. HW.C0 = CA(MR(5*i), 0, 0)
  1391. bg.cframe = CF * CA(0, MR(45+5*i), 0)
  1392. neck.C0 = necko * CA(0, 0, MR(-45-5*i))
  1393. wait()
  1394. end
  1395. for i = 0.06, 1, 0.12 do
  1396. RAW.C0 = CA(MR(40*i), MR(105-55*i), MR(80-80*i)) * CN(0, -0.3+0.3*i, 0)
  1397. LAW.C0 = CA(MR(-70+90*i), MR(-20*i), MR(-20*i))
  1398. HW.C0 = CA(MR(5-5*i), 0, 0)
  1399. bg.cframe = CF * CA(0, MR(50-50*i), 0)
  1400. neck.C0 = necko * CA(0, 0, MR(-50+50*i))
  1401. wait()
  1402. end
  1403. Normalize()
  1404. bg:remove()
  1405. end
  1406.  
  1407. function Bloc()
  1408. if AbleAll and Able then
  1409. AbleAll = false
  1410. Block.Value = true
  1411. for i = 0, 1, 0.15 do
  1412. if not Block then break end
  1413. RAW.C0 = CA(MR(40-90*i), MR(50-85*i), 0)
  1414. LAW.C0 = CA(MR(20+70*i), MR(-20+20*i), MR(-20+100*i)) * CN(-0.75*i, -0.8*i, 0)
  1415. HW.C0 = CA(MR(20*i), 0, 0)
  1416. wait()
  1417. end
  1418. RAW.C0 = CA(MR(40-90), MR(50-85), 0)
  1419. LAW.C0 = CA(MR(20+70), MR(-20+20), MR(-20+100)) * CN(-0.75, -0.8, 0)
  1420. HW.C0 = CA(MR(20), 0, 0)
  1421. PlaySound(Sounds.SmashHit[1], Sounds.SmashHit[2]-0.6, Sounds.SmashHit[3])
  1422. repeat
  1423. wait()
  1424. if BlockPower.Value < 1 then
  1425. Block.Value = false
  1426. BlockPower.Value = BlockRealPowa
  1427. end
  1428. until Block.Value == false
  1429. if CounterKey and Rage >= Dmgs.Counter[6] then
  1430. Rage = Rage - Dmgs.Counter[6]
  1431. Counter()
  1432. else
  1433. for i = 1, 0, -0.2 do
  1434. RAW.C0 = CA(MR(40-90*i), MR(50-85*i), 0)
  1435. LAW.C0 = CA(MR(20+70*i), MR(-20+20*i), MR(-20+100*i)) * CN(-0.75*i, -0.8*i, 0)
  1436. HW.C0 = CA(MR(20*i), 0, 0)
  1437. wait()
  1438. end
  1439. Normalize()
  1440. end
  1441. AbleAll = true
  1442. end
  1443. end
  1444.  
  1445. function Clicked(mousepos)
  1446. if Block.Value == false and Able and AbleAll then
  1447. if Aim then
  1448. Notime(function()
  1449. local bg = Add.BG(torso)
  1450. bg.cframe = ComputePos(torso.Position, mousepos)
  1451. bg.P = 5500
  1452. wait(0.4)
  1453. bg:remove()
  1454. end)
  1455. end
  1456. Attacks[Attack]()
  1457. end
  1458. end
  1459.  
  1460. function KeyDown(key, mouse)
  1461. key = key:lower()
  1462. if Able then
  1463. local aimplace = nil
  1464. if Aim then
  1465. aimplace = mouse.Hit.p
  1466. end
  1467. if key == string.char(48) then
  1468. Notime(function()
  1469. local k = nil
  1470. repeat
  1471. k = mouse.KeyUp:wait()
  1472. until k == string.char(48)
  1473. Block.Value = false
  1474. end)
  1475. Bloc()
  1476. elseif key == "e" then
  1477. if Block.Value == false and AbleAll then
  1478. SpinSlash(aimplace)
  1479. end
  1480. elseif key == "r" then
  1481. if Block.Value == false and AbleAll then
  1482. Flawp(aimplace)
  1483. end
  1484. elseif key == "f" then
  1485. if Block.Value == false and AbleAll then
  1486. Raeg()
  1487. end
  1488. elseif key == "t" then
  1489. Notime(function()
  1490. local k = nil
  1491. CounterKey = true
  1492. repeat
  1493. k = mouse.KeyUp:wait()
  1494. until k == "t"
  1495. CounterKey = false
  1496. end)
  1497. elseif key == "q" then
  1498. if Block.Value == false and AbleAll then
  1499. local a = nil
  1500. if Aim then
  1501. a = mouse.Hit.p
  1502. end
  1503. RageSlash(a)
  1504. end
  1505. end
  1506. end
  1507. end
  1508.  
  1509. Select = function(mouse)
  1510. SelectAnim()
  1511. Selected = true
  1512. mouse.Button1Down:connect(function()
  1513. if Able then
  1514. Clicked(mouse.Hit.p)
  1515. end
  1516. end)
  1517. mouse.KeyDown:connect(function(key)
  1518. KeyDown(key, mouse)
  1519. end)
  1520. end
  1521.  
  1522. Deselect = function(mouse)
  1523. Selected = false
  1524. DeselectAnim()
  1525. end
  1526.  
  1527. Bin.Selected:connect(Select)
  1528. Bin.Deselected:connect(Deselect)
  1529.  
  1530. Notime(function()
  1531. local parent = char.Parent
  1532. while char.Parent == parent do
  1533. wait()
  1534. if Rage > MaxRage then Rage = MaxRage elseif Rage < 0 then Rage = 0 end
  1535. RageBar.Size = UD(1, 0, Rage/MaxRage, 0)
  1536. RageBar.Position = UD(0, 0, 1-(Rage/MaxRage), 0)
  1537. RageAmount.Text = math.floor(Rage)
  1538. local hp2 = hum.Health/hum.MaxHealth
  1539. if hp2 > 1 then hp2 = 1 elseif hp2 < 0 then hp2 = 0 end
  1540. HealthBar.Size = UD(1, 0, hp2, 0)
  1541. if Block.Value then
  1542. hum.WalkSpeed = 10
  1543. elseif RageMode and Block.Value then
  1544. hum.WalkSpeed = 16
  1545. elseif RageMode then
  1546. hum.WalkSpeed = 19
  1547. else
  1548. hum.WalkSpeed = 16
  1549. end
  1550. end
  1551. end)
Add Comment
Please, Sign In to add comment