KnightZoro

Swordnshield

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