Guest User

Untitled

a guest
Mar 5th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.60 KB | None | 0 0
  1. function Clicked()
  2.  
  3. me = game.Players.MCBombGaming
  4.  
  5. char = me.Character
  6.  
  7. Modelname = "Warhammah"
  8.  
  9. Toolname = "Warhammar"
  10.  
  11. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  12.  
  13. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  14.  
  15. selected = false
  16.  
  17. effectOn = false
  18.  
  19. Hurt = false
  20.  
  21. Leghurt = false
  22.  
  23. Deb = true
  24.  
  25. LegDeb = true
  26.  
  27. Able = true
  28.  
  29. Resting = false
  30.  
  31. RestingAnim = false
  32.  
  33. AbleG = true
  34.  
  35. Prop = {Damage = 100, Legdmg = 100, AS = 100, ShockDMG = 100, Rage = 7000000, RageIncome = 7000, MaxRage = 7000000}
  36.  
  37. Prop.AS = Prop.AS/300
  38.  
  39. Cam = workspace.CurrentCamera
  40.  
  41.  
  42.  
  43. ToolIcon = "http://www.roblox.com/asset/?id=49192762"
  44.  
  45. MouseIc = "http://www.roblox.com/asset/?id=49192792"
  46.  
  47. MouseDo = "http://www.roblox.com/asset/?id=49192819"
  48.  
  49.  
  50.  
  51. Add = {
  52.  
  53. Sphere = function(P)
  54.  
  55. local m = Instance.new("SpecialMesh",P)
  56.  
  57. m.MeshType = "Sphere"
  58.  
  59. return m
  60.  
  61. end,
  62.  
  63. BF = function(P)
  64.  
  65. local bf = Instance.new("BodyForce",P)
  66.  
  67. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  68.  
  69. return bf
  70.  
  71. end,
  72.  
  73. BP = function(P)
  74.  
  75. local bp = Instance.new("BodyPosition",P)
  76.  
  77. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  78.  
  79. bp.P = 14000
  80.  
  81. return bp
  82.  
  83. end,
  84.  
  85. BG = function(P)
  86.  
  87. local bg = Instance.new("BodyGyro",P)
  88.  
  89. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  90.  
  91. bg.P = 14000
  92.  
  93. return bg
  94.  
  95. end,
  96.  
  97. Mesh = function(P, ID, x, y, z)
  98.  
  99. local m = Instance.new("SpecialMesh")
  100.  
  101. m.MeshId = ID
  102.  
  103. m.Scale = Vector3.new(x, y, z)
  104.  
  105. m.Parent = P
  106.  
  107. return m
  108.  
  109. end,
  110.  
  111. Sound = function(P, ID, vol, pitch)
  112.  
  113. local s = Instance.new("Sound")
  114.  
  115. s.SoundId = ID
  116.  
  117. s.Volume = vol
  118.  
  119. s.Pitch = pitch
  120.  
  121. s.Parent = P
  122.  
  123. return s
  124.  
  125. end
  126.  
  127. }
  128.  
  129.  
  130.  
  131. function find(tab, arg)
  132.  
  133. local ah = nil
  134.  
  135. for i,v in pairs(tab) do
  136.  
  137. if v == arg then
  138.  
  139. ah = v
  140.  
  141. end
  142.  
  143. end
  144.  
  145. return ah
  146.  
  147. end
  148.  
  149.  
  150.  
  151. function getAllParts(from)
  152.  
  153. local t = {}
  154.  
  155. function getParts(where)
  156.  
  157. for i, v in pairs(where:children()) do
  158.  
  159. if v:IsA("BasePart") then
  160.  
  161. if v.Parent ~= char and v.Parent.Parent ~= char then
  162.  
  163. table.insert(t, v)
  164.  
  165. end
  166.  
  167. end
  168.  
  169. getParts(v)
  170.  
  171. end
  172.  
  173. end
  174.  
  175. getParts(workspace)
  176.  
  177. return t
  178.  
  179. end
  180.  
  181.  
  182.  
  183. function RayCast(pos1, pos2, maxDist, forward)
  184.  
  185. local list = getAllParts(workspace)
  186.  
  187. local pos0 = pos1
  188.  
  189. for dist = 1, maxDist, forward do
  190.  
  191. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  192.  
  193. for _, v in pairs(list) do
  194.  
  195. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  196.  
  197. local s = v.Size
  198.  
  199. if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide and v:GetMass() > 14 then
  200.  
  201. return pos0, v
  202.  
  203. end
  204.  
  205. end
  206.  
  207. end
  208.  
  209. return pos0, nil
  210.  
  211. end
  212.  
  213.  
  214.  
  215. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  216.  
  217. local p = Instance.new("Part")
  218.  
  219. p.formFactor = "Custom"
  220.  
  221. p.Anchored = Anchor
  222.  
  223. p.CanCollide = Collide
  224.  
  225. p.Transparency = Tran
  226.  
  227. p.Reflectance = Ref
  228.  
  229. p.BrickColor = BrickColor.new(Color)
  230.  
  231. for _, Surf in pairs(Surfaces) do
  232.  
  233. p[Surf] = "Smooth"
  234.  
  235. end
  236.  
  237. p.Size = Vector3.new(X, Y, Z)
  238.  
  239. if Break then
  240.  
  241. p:BreakJoints()
  242.  
  243. else p:MakeJoints() end
  244.  
  245. p.Parent = Parent
  246.  
  247. p.Locked = true
  248.  
  249. return p
  250.  
  251. end
  252.  
  253.  
  254.  
  255. function Weld(p0, p1, x, y, z, a, b, c)
  256.  
  257. local w = Instance.new("Weld")
  258.  
  259. w.Parent = p0
  260.  
  261. w.Part0 = p0
  262.  
  263. w.Part1 = p1
  264.  
  265. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  266.  
  267. return w
  268.  
  269. end
  270.  
  271.  
  272.  
  273. function ComputePos(pos1, pos2)
  274.  
  275. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  276.  
  277. return CFrame.new(pos1, pos3)
  278.  
  279. end
  280.  
  281.  
  282.  
  283. function getHumanoid(c)
  284.  
  285. local h = nil
  286.  
  287. for i,v in pairs(c:children()) do
  288.  
  289. if v:IsA("Humanoid") and c ~= char then
  290.  
  291. if v.Health > 0 then
  292.  
  293. h = v
  294.  
  295. end
  296.  
  297. end
  298.  
  299. end
  300.  
  301. return h
  302.  
  303. end
  304.  
  305.  
  306.  
  307. for i,v in pairs(char:children()) do
  308.  
  309. if v.Name == Modelname then
  310.  
  311. v:remove()
  312.  
  313. end
  314.  
  315. end
  316.  
  317.  
  318.  
  319. pcall(function() me.PlayerGui:findFirstChild("RaigMeter",true):remove() end)
  320.  
  321.  
  322.  
  323. Sc = Instance.new("ScreenGui",me:findFirstChild("PlayerGui"))
  324.  
  325. Sc.Name = "RaigMeter"
  326.  
  327.  
  328.  
  329. Fr = Instance.new("Frame",Sc)
  330.  
  331. Fr.Size = UDim2.new(0, 250, 0, 28)
  332.  
  333. Fr.Position = UDim2.new(0.5, -125, 0, 5)
  334.  
  335. Fr.BackgroundColor3 = Color3.new(0.8, 0.3, 0.1)
  336.  
  337.  
  338.  
  339. Met = Instance.new("Frame", Fr)
  340.  
  341. Met.Size = UDim2.new(1, -10, 1, -6)
  342.  
  343. Met.Position = UDim2.new(0, 5, 0, 3)
  344.  
  345. Met.BackgroundColor3 = Color3.new(0, 0, 0)
  346.  
  347. Met.BorderSizePixel = 0
  348.  
  349.  
  350.  
  351. Meter = Instance.new("ImageLabel", Met)
  352.  
  353. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  354.  
  355. Meter.Position = UDim2.new(0, 0, 0, 1)
  356.  
  357. Meter.Image = "http://www.roblox.com/asset/?id=48965808"
  358.  
  359. Meter.BorderSizePixel = 0
  360.  
  361. Meter.BackgroundColor3 = Color3.new(1, 0.6, 0.1)
  362.  
  363.  
  364.  
  365. Tx = Instance.new("TextLabel", Met)
  366.  
  367. Tx.Size = UDim2.new(0, 0, 1, 0)
  368.  
  369. Tx.Position = UDim2.new(0, 5, 0, 0)
  370.  
  371. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  372.  
  373. Tx.Font = "ArialBold"
  374.  
  375. Tx.FontSize = "Size18"
  376.  
  377. Tx.BackgroundTransparency = 1
  378.  
  379. Tx.TextColor3 = Color3.new(1, 0, 0)
  380.  
  381. Tx.TextXAlignment = "Left"
  382.  
  383.  
  384.  
  385. laast = Prop.Rage
  386.  
  387. coroutine.resume(coroutine.create(function()
  388.  
  389. while true do
  390.  
  391. wait()
  392.  
  393. if Prop.Rage > Prop.MaxRage then Prop.Rage = Prop.MaxRage end
  394.  
  395. if laast ~= Prop.Rage then
  396.  
  397. Meter.Size = UDim2.new(Prop.Rage/Prop.MaxRage, 0, 1, -2)
  398.  
  399. laast = Prop.Rage
  400.  
  401. Tx.Text = Prop.Rage.." / "..Prop.MaxRage
  402.  
  403. end
  404.  
  405. end
  406.  
  407. end))
  408.  
  409.  
  410.  
  411. torso = char.Torso
  412.  
  413. neck = torso.Neck
  414.  
  415. hum = char.Humanoid
  416.  
  417. Rarm = char["Right Arm"]
  418.  
  419. Larm = char["Left Arm"]
  420.  
  421. Rleg = char["Right Leg"]
  422.  
  423. Lleg = char["Left Leg"]
  424.  
  425.  
  426.  
  427. hc = Instance.new("Humanoid")
  428.  
  429. hc.Health = 0
  430.  
  431. hc.MaxHealth = 0
  432.  
  433.  
  434.  
  435. slash = Add.Sound(nil, "rbxasset://sounds//swordslash.wav", 0.9, 0.8)
  436.  
  437. hitsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2801263", 0.7, 0.6)
  438.  
  439. charge = Add.Sound(nil, "http://www.roblox.com/asset/?id=2101137", 0.8, 0.65)
  440.  
  441. boom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2691586", 0.8, 0.3)
  442.  
  443. smashsound = Add.Sound(nil, "http://www.roblox.com/asset/?id=2692806", 0.8, 0.35)
  444.  
  445. boomboom = Add.Sound(nil, "http://www.roblox.com/asset/?id=2760979", 1, 0.18)
  446.  
  447. equip = Add.Sound(nil, "rbxasset://sounds\\unsheath.wav", 0.6, 0.7)
  448.  
  449.  
  450.  
  451. function PlaySound(sound, pitch)
  452.  
  453. local s = sound:clone()
  454.  
  455. if pitch ~= nil then
  456.  
  457. if tonumber(pitch) then
  458.  
  459. s.Pitch = tonumber(pitch)
  460.  
  461. end
  462.  
  463. end
  464.  
  465. s.Parent = torso
  466.  
  467. s.PlayOnRemove = true
  468.  
  469. coroutine.resume(coroutine.create(function()
  470.  
  471. wait()
  472.  
  473. s:remove()
  474.  
  475. end))
  476.  
  477. end
  478.  
  479.  
  480.  
  481. Mo = Instance.new("Model")
  482.  
  483. Mo.Name = Modelname
  484.  
  485.  
  486.  
  487. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  488.  
  489. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  490.  
  491. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  492.  
  493. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  494.  
  495.  
  496.  
  497. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  498.  
  499. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  500.  
  501. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  502.  
  503. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  504.  
  505.  
  506.  
  507. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  508.  
  509. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  510.  
  511. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  512.  
  513. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  514.  
  515.  
  516.  
  517. HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  518.  
  519. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  520.  
  521. HW = Weld(HB, nil, 0, -1.3, 0, math.pi/2, 0, 0)
  522.  
  523.  
  524.  
  525. TH = Weld(torso, nil, -0.8, 0.1, 0, 0, math.pi/2, math.rad(-140))
  526.  
  527.  
  528.  
  529. RAWStand, LAWStand, RLWStand, LLWStand, HWStand = nil
  530.  
  531.  
  532.  
  533. handle = Part(Mo, false, false, 0, 0, "Navy blue", 0.4, 5, 0.4, true)
  534.  
  535. handle.Name = "Handle"
  536.  
  537. Instance.new("SpecialMesh",handle)
  538.  
  539.  
  540.  
  541. maintip = Part(Mo, false, false, 1, 0, "Bright yellow", 0.6, 0.5, 0.6, true)
  542.  
  543. Weld(handle, maintip, 0, -1.8, 0, 0, 0, 0)
  544.  
  545.  
  546.  
  547. DMGParts = {}
  548.  
  549.  
  550.  
  551. for i = 0, 135, 45 do
  552.  
  553. local tip = Part(Mo, false, false, 0, 0, "Dark grey", 0.54, 1.3, 2.2, true)
  554.  
  555. Instance.new("BlockMesh",tip)
  556.  
  557. Weld(maintip, tip, 0, 0, 0, 0, 0, math.rad(i))
  558.  
  559. table.insert(DMGParts, tip)
  560.  
  561. for a = -0.9, 0.9, 1.8 do
  562.  
  563. for x = 0, math.pi, math.pi do
  564.  
  565. local spike = Part(Mo, false, false, 0, 0, "Medium grey", 0.3, 0.5, 0.3, true)
  566.  
  567. local w = Weld(tip, spike, 0, 0, 0, 0, 0, 0)
  568.  
  569. w.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  570.  
  571. w.C1 = CFrame.new(0, -1, 0)
  572.  
  573. Add.Mesh(spike, "http://www.roblox.com/asset/?id=1033714", 0.14, 1, 0.14)
  574.  
  575. local trim = Part(Mo, false, false, 0, 0, "Really black", 0.67, 0.1, 0.5, true)
  576.  
  577. local w2 = Weld(tip, trim, 0, 0, 0, 0, 0, 0)
  578.  
  579. w2.C0 = CFrame.new(0, 0, a) * CFrame.Angles(x, 0, 0)
  580.  
  581. w2.C1 = CFrame.new(0, -0.58, 0)
  582.  
  583. end
  584.  
  585. end
  586.  
  587. end
  588.  
  589.  
  590.  
  591. spiketip = Part(Mo, false, false, 0, 0.2, "Navy blue", 0.3, 0.8, 0.3, true)
  592.  
  593. Weld(handle, spiketip, 0, -3.1, 0, 0, 0, 0)
  594.  
  595. Add.Mesh(spiketip, "http://www.roblox.com/asset/?id=1033714", 0.17, 2, 0.17)
  596.  
  597.  
  598.  
  599. table.insert(DMGParts, spiketip)
  600.  
  601.  
  602.  
  603. local handletip1 = Part(Mo, false, false, 0, 0.2, "Really black", 0.5, 0.5, 0.5, true)
  604.  
  605. local w1 = Weld(handle, handletip1, 0, 0, 0, 0, 0, 0)
  606.  
  607. w1.C0 = CFrame.new(0, -2.6, 0)
  608.  
  609. Add.Mesh(handletip1, "http://www.roblox.com/asset/?id=9756362", 0.85, 0.75, 0.85)
  610.  
  611.  
  612.  
  613. local handletip2 = Part(Mo, false, false, 0, 0.2, "Dark grey", 0.5, 0.5, 0.5, true)
  614.  
  615. Weld(handletip1, handletip2, 0, 0, 0, 0, math.rad(45), 0)
  616.  
  617. Add.Mesh(handletip2, "http://www.roblox.com/asset/?id=9756362", 0.95, 0.5, 0.95)
  618.  
  619.  
  620.  
  621.  
  622.  
  623. Mo.Parent = char
  624.  
  625. TH.Part1 = handle
  626.  
  627.  
  628.  
  629. function showdmg(dmg, p, pos)
  630.  
  631. local mo = Instance.new("Model")
  632.  
  633. mo.Name = dmg
  634.  
  635. local pa = Part(mo, false, true, 0, 0, "Bright red", 0.8, 0.3, 0.8, true)
  636.  
  637. pa.CFrame = CFrame.new(p.Position) * CFrame.new(0, pos, 0)
  638.  
  639. pa.Name = "Head"
  640.  
  641. local hah = hc:clone()
  642.  
  643. hah.Parent = mo
  644.  
  645. local bp = Add.BP(pa)
  646.  
  647. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  648.  
  649. bp.position = p.Position + Vector3.new(0, 3+pos, 0)
  650.  
  651. Add.BG(pa)
  652.  
  653. coroutine.resume(coroutine.create(function()
  654.  
  655. wait()
  656.  
  657. mo.Parent = workspace
  658.  
  659. wait(1.4)
  660.  
  661. mo:remove()
  662.  
  663. end))
  664.  
  665. end
  666.  
  667.  
  668.  
  669.  
  670.  
  671. function damage(hum, p, num, dm1, dm2)
  672.  
  673. local dmg = math.random(dm1, dm2)
  674.  
  675. hum.Health = hum.Health - dmg
  676.  
  677. showdmg(dmg, p, num)
  678.  
  679. return dmg
  680.  
  681. end
  682.  
  683.  
  684.  
  685. function brickdamage(hit)
  686.  
  687. local h = getHumanoid(hit.Parent)
  688.  
  689. if h ~= nil and Hurt and Deb then
  690.  
  691. Deb = false
  692.  
  693. local dmg = damage(h, maintip, 0, Prop.Damage/4, Prop.Damage)
  694.  
  695. PlaySound(hitsound)
  696.  
  697. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  698.  
  699. wait(0.3)
  700.  
  701. Deb = true
  702.  
  703. end
  704.  
  705. end
  706.  
  707.  
  708.  
  709. function legdamage(hit)
  710.  
  711. local h = getHumanoid(hit.Parent)
  712.  
  713. if h ~= nil and Leghurt and LegDeb then
  714.  
  715. LegDeb = false
  716.  
  717. local dmg = damage(h, Rleg, 0, Prop.Legdmg/2, Prop.Legdmg)
  718.  
  719. PlaySound(hitsound)
  720.  
  721. Prop.Rage = math.floor(Prop.Rage + (dmg*Prop.RageIncome))
  722.  
  723. coroutine.resume(coroutine.create(function()
  724.  
  725. local haha = math.random(1,3)
  726.  
  727. if haha == 1 then
  728.  
  729. h.PlatformStand = true
  730.  
  731. wait()
  732.  
  733. local ps = getAllParts(h.Parent)
  734.  
  735. for i, v in pairs(ps) do
  736.  
  737. if v.Anchored == false then
  738.  
  739. v.Velocity = CFrame.new(handle.Position, v.Position).lookVector * 40
  740.  
  741. v.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  742.  
  743. end
  744.  
  745. end
  746.  
  747. wait(0.8)
  748.  
  749. h.PlatformStand = false
  750.  
  751. end
  752.  
  753. end))
  754.  
  755. wait(0.2)
  756.  
  757. LegDeb = true
  758.  
  759. end
  760.  
  761. end
  762.  
  763.  
  764.  
  765. for i, v in pairs({Rleg, Lleg}) do
  766.  
  767. v.Touched:connect(legdamage)
  768.  
  769. end
  770.  
  771.  
  772.  
  773. for i,v in pairs(DMGParts) do
  774.  
  775. v.Touched:connect(brickdamage)
  776.  
  777. end
  778.  
  779.  
  780.  
  781. if script.Parent.className ~= "HopperBin" then
  782.  
  783. h = Instance.new("HopperBin",me.Backpack)
  784.  
  785. h.Name = Toolname
  786.  
  787. h.TextureId = ToolIcon
  788.  
  789. script.Parent = h
  790.  
  791. end
  792.  
  793.  
  794.  
  795. bin = script.Parent
  796.  
  797.  
  798.  
  799. function StartEffect(part)
  800.  
  801. effectOn = true
  802.  
  803. local lastPoint = part.Position
  804.  
  805. coroutine.resume(coroutine.create(function()
  806.  
  807. while effectOn do
  808.  
  809. wait()
  810.  
  811. local point = CFrame.new(lastPoint, part.Position) * CFrame.Angles(-math.pi/2, 0, 0)
  812.  
  813. local mag = (lastPoint - part.Position).magnitude
  814.  
  815. local p = Part(workspace, true, false, 0.1, 0, "Institutional white", 1, 1, 1, true)
  816.  
  817. local m = Instance.new("SpecialMesh",p)
  818.  
  819. p.CFrame = point * CFrame.new(0, mag/2, 0)
  820.  
  821. m.Scale = Vector3.new(1.2, mag+0.6, 1.2)
  822.  
  823. lastPoint = part.Position
  824.  
  825. coroutine.resume(coroutine.create(function() for i = 0.1, 1, 0.9/5 do wait() p.Transparency = i end p:remove() end))
  826.  
  827. end
  828.  
  829. end))
  830.  
  831. end
  832.  
  833.  
  834.  
  835. function EndEffect()
  836.  
  837. effectOn = false
  838.  
  839. end
  840.  
  841.  
  842.  
  843. function detach(bool)
  844.  
  845. LLW.C0 = CFrame.new(0, 0, 0)
  846.  
  847. RLW.C0 = CFrame.new(0, 0, 0)
  848.  
  849. LAW.C0 = CFrame.new(0,0,0)
  850.  
  851. RAW.C0 = CFrame.new(0, 0, 0)
  852.  
  853. if bool then
  854.  
  855. LLW.Part1 = nil
  856.  
  857. RLW.Part1 = nil
  858.  
  859. RAW.Part1 = nil
  860.  
  861. LAW.Part1 = nil
  862.  
  863. end
  864.  
  865. end
  866.  
  867.  
  868.  
  869. function attach()
  870.  
  871. RAW.Part1 = Rarm
  872.  
  873. LAW.Part1 = Larm
  874.  
  875. RLW.Part1 = Rleg
  876.  
  877. LLW.Part1 = Lleg
  878.  
  879. end
  880.  
  881.  
  882.  
  883. function normal()
  884.  
  885. neck.C0 = necko
  886.  
  887. RAW.C0 = RAWStand
  888.  
  889. LAW.C0 = LAWStand
  890.  
  891. RLW.C0 = RLWStand
  892.  
  893. LLW.C0 = LLWStand
  894.  
  895. RAW.C1 = CFrame.new(0, 0.5, 0)
  896.  
  897. LAW.C1 = CFrame.new(0, 0.5, 0)
  898.  
  899. RLW.C1 = CFrame.new(0, 0.8, 0)
  900.  
  901. LLW.C1 = CFrame.new(0, 0.8, 0)
  902.  
  903. HW.C0 = HWStand
  904.  
  905. end
  906.  
  907.  
  908.  
  909. function idleanim()
  910.  
  911. attach()
  912.  
  913. for i = 0, 10, 10/22 do
  914.  
  915. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  916.  
  917. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  918.  
  919. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  920.  
  921. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  922.  
  923. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  924.  
  925. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  926.  
  927. wait()
  928.  
  929. end
  930.  
  931. wait()
  932.  
  933. for i = 10, 0, -10/29 do
  934.  
  935. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(i), 0)
  936.  
  937. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-i), 0, 0)
  938.  
  939. RLW.C0 = RLWStand * CFrame.Angles(math.rad(i/8), 0, math.rad(-i/6))
  940.  
  941. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-i/8), 0, math.rad(i/6))
  942.  
  943. neck.C0 = necko * CFrame.Angles(math.rad(-i/2), 0, 0)
  944.  
  945. if selected == false or torso.Velocity.magnitude > 2 or Able == false or RestingAnim == true then break end
  946.  
  947. wait()
  948.  
  949. end
  950.  
  951. normal()
  952.  
  953. end
  954.  
  955.  
  956.  
  957. function runanim()
  958.  
  959. RLW.Part1 = nil
  960.  
  961. LLW.Part1 = nil
  962.  
  963. end
  964.  
  965.  
  966.  
  967. coroutine.resume(coroutine.create(function()
  968.  
  969. while true do
  970.  
  971. wait()
  972.  
  973. if selected and Able == true and RestingAnim == false then
  974.  
  975. if torso.Velocity.magnitude < 2 then
  976.  
  977. idleanim()
  978.  
  979. wait()
  980.  
  981. else
  982.  
  983. runanim()
  984.  
  985. wait()
  986.  
  987. end
  988.  
  989. end
  990.  
  991. end
  992.  
  993. end))
  994.  
  995.  
  996.  
  997. function selectanim()
  998.  
  999. if RestingAnim == false and Able == true then
  1000.  
  1001. local ah = CFrame.Angles(0, 0, math.rad(90))
  1002.  
  1003. RAW.Part1 = Rarm
  1004.  
  1005. for i = 0, 270, 270/5 do
  1006.  
  1007. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1008.  
  1009. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  1010.  
  1011. wait()
  1012.  
  1013. end
  1014.  
  1015. HW.C0 = ah
  1016.  
  1017. HW.Part1 = handle
  1018.  
  1019. TH.Part1 = nil
  1020.  
  1021. PlaySound(equip)
  1022.  
  1023. for i = 270, 70, -200/13 do
  1024.  
  1025. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1026.  
  1027. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  1028.  
  1029. wait()
  1030.  
  1031. end
  1032.  
  1033. attach()
  1034.  
  1035. for i = 70, 120, 50/8 do
  1036.  
  1037. local asd = i-70
  1038.  
  1039. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  1040.  
  1041. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  1042.  
  1043. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  1044.  
  1045. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  1046.  
  1047. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  1048.  
  1049. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  1050.  
  1051. wait()
  1052.  
  1053. end
  1054.  
  1055. if RAWStand == nil then
  1056.  
  1057. RAWStand = RAW.C0
  1058.  
  1059. LAWStand = LAW.C0
  1060.  
  1061. RLWStand = RLW.C0
  1062.  
  1063. LLWStand = LLW.C0
  1064.  
  1065. HWStand = HW.C0
  1066.  
  1067. end
  1068.  
  1069. normal()
  1070.  
  1071. end
  1072.  
  1073. end
  1074.  
  1075.  
  1076.  
  1077. function deselanim()
  1078.  
  1079. if RestingAnim == false and Able == true then
  1080.  
  1081. local ah = CFrame.Angles(0, 0, math.rad(90))
  1082.  
  1083. for i = 120, 70, -50/8 do
  1084.  
  1085. local asd = i-70
  1086.  
  1087. RAW.C0 = CFrame.new(-(i-70)/240, 0, -i/500) * CFrame.Angles(math.rad(70), math.rad(70/4+(i-70)), math.rad(-(i-70)/4))
  1088.  
  1089. LAW.C0 = CFrame.Angles(math.rad(asd*1.5), 0, math.rad(asd/2)) * CFrame.new(asd/100, -asd/70, 0)
  1090.  
  1091. HW.C0 = ah * CFrame.Angles(0, 0, math.rad(-asd*1.8))
  1092.  
  1093. neck.C0 = necko * CFrame.Angles(math.rad(-200/7+(asd/2)), 0, math.rad(-70/5+(asd/5)))
  1094.  
  1095. RLW.C0 = CFrame.Angles(0, 0, math.rad(asd/4))
  1096.  
  1097. LLW.C0 = CFrame.Angles(0, 0, math.rad(-asd/4))
  1098.  
  1099. wait()
  1100.  
  1101. end
  1102.  
  1103. LLW.Part1 = nil
  1104.  
  1105. RLW.Part1 = nil
  1106.  
  1107. LAW.Part1 = nil
  1108.  
  1109. for i = 70, 270, 200/13 do
  1110.  
  1111. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1112.  
  1113. neck.C0 = necko * CFrame.Angles(math.rad((i-270)/7), 0, math.rad(-i/5))
  1114.  
  1115. wait()
  1116.  
  1117. end
  1118.  
  1119. HW.C0 = ah
  1120.  
  1121. HW.Part1 = nil
  1122.  
  1123. TH.Part1 = handle
  1124.  
  1125. for i = 270, 0, -270/6 do
  1126.  
  1127. RAW.C0 = CFrame.new(0, 0, -i/500) * CFrame.Angles(math.rad(i), math.rad(i/4), 0)
  1128.  
  1129. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-i/5))
  1130.  
  1131. wait()
  1132.  
  1133. end
  1134.  
  1135. neck.C0 = necko
  1136.  
  1137. detach(true)
  1138.  
  1139. end
  1140.  
  1141. end
  1142.  
  1143.  
  1144.  
  1145. function smash(mouse)
  1146.  
  1147. attach()
  1148.  
  1149. local mouseHit = mouse
  1150.  
  1151. local Orig = torso.CFrame
  1152.  
  1153. local bg = Add.BG(torso)
  1154.  
  1155. local bp = Add.BP(torso)
  1156.  
  1157. bp.position = Orig.p
  1158.  
  1159. local CF = ComputePos(Orig.p, mouseHit)
  1160.  
  1161. local CF2 = CF
  1162.  
  1163. bg.cframe = CF2
  1164.  
  1165. PlaySound(slash)
  1166.  
  1167. for i = 0, 1, Prop.AS*1.1 do
  1168.  
  1169. RAW.C0 = RAWStand * CFrame.Angles(math.rad(80*i), 0, math.rad(45*i)) * CFrame.new(0, -0.4*i, 0)
  1170.  
  1171. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75*i), 0, math.rad(40*i)) * CFrame.new(0, -0.5*i, 0)
  1172.  
  1173. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), math.rad(16*i), math.rad(-8*i))
  1174.  
  1175. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30*i), math.rad(-16*i), math.rad(8*i))
  1176.  
  1177. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(30*i))
  1178.  
  1179. neck.C0 = necko * CFrame.Angles(math.rad(-35*i), 0, math.rad(-10*i))
  1180.  
  1181. wait()
  1182.  
  1183. end
  1184.  
  1185. bp.position = CF * CFrame.new(0, 0, -1.1).p
  1186.  
  1187. StartEffect(maintip)
  1188.  
  1189. Hurt = true
  1190.  
  1191. for i = 0, 1, Prop.AS*1.5 do
  1192.  
  1193. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150*i), math.rad(-45*i), math.rad(45-140*i)) * CFrame.new(0, -0.4, 0)
  1194.  
  1195. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180*i), math.rad(80*i), math.rad(40-20*i)) * CFrame.new(0, -0.5, 0)
  1196.  
  1197. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50*i), math.rad(16-16*i), math.rad(-8+8*i))
  1198.  
  1199. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40*i), math.rad(-16+16*i), math.rad(8-8*i))
  1200.  
  1201. HW.C0 = HWStand * CFrame.Angles(math.rad(-48*i), 0, math.rad(30))
  1202.  
  1203. neck.C0 = necko * CFrame.Angles(math.rad(-35+75*i), 0, math.rad(-10+26*i))
  1204.  
  1205. wait()
  1206.  
  1207. end
  1208.  
  1209. Hurt = false
  1210.  
  1211. EndEffect()
  1212.  
  1213. PlaySound(smashsound)
  1214.  
  1215. bp.position = CF * CFrame.new(0, 0, -1.9).p
  1216.  
  1217. for i = 0, 1, Prop.AS do
  1218.  
  1219. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-150+80*i), math.rad(-45+45*i), math.rad(45-140+95*i)) * CFrame.new(0, -0.4+0.4*i, 0)
  1220.  
  1221. LAW.C0 = LAWStand * CFrame.Angles(math.rad(75-180+105*i), math.rad(80-80*i), math.rad(20-20*i)) * CFrame.new(0, -0.5+0.5*i, 0)
  1222.  
  1223. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-50+30*i), 0, 0)
  1224.  
  1225. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-30+40-10*i), 0, 0)
  1226.  
  1227. HW.C0 = HWStand * CFrame.Angles(math.rad(-48+48*i), 0, math.rad(30-30*i))
  1228.  
  1229. neck.C0 = necko * CFrame.Angles(math.rad(-35+75-40*i), 0, math.rad(-10+26-16*i))
  1230.  
  1231. wait()
  1232.  
  1233. end
  1234.  
  1235. normal()
  1236.  
  1237. bg:remove()
  1238.  
  1239. bp:remove()
  1240.  
  1241. end
  1242.  
  1243.  
  1244.  
  1245. function swing(mouse)
  1246.  
  1247. attach()
  1248.  
  1249. local mouseHit = mouse
  1250.  
  1251. local Orig = torso.CFrame
  1252.  
  1253. local bg = Add.BG(torso)
  1254.  
  1255. local bp = Add.BP(torso)
  1256.  
  1257. bp.position = Orig.p
  1258.  
  1259. local CF = ComputePos(Orig.p, mouseHit)
  1260.  
  1261. local CF2 = CF
  1262.  
  1263. bg.cframe = CF2
  1264.  
  1265. PlaySound(slash)
  1266.  
  1267. for i = 0, 1, Prop.AS*1.5 do
  1268.  
  1269. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(-140*i), 0) * CFrame.new(0, 0, 0)
  1270.  
  1271. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25*i), 0, math.rad(20*i)) * CFrame.new(0, -0.4*i, 0)
  1272.  
  1273. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20*i), 0, 0)
  1274.  
  1275. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10*i), 0, 0)
  1276.  
  1277. HW.C0 = HWStand * CFrame.Angles(0, math.rad(-10*i), 0)
  1278.  
  1279. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50*i))
  1280.  
  1281. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40*i), 0)
  1282.  
  1283. wait()
  1284.  
  1285. end
  1286.  
  1287. Hurt = true
  1288.  
  1289. StartEffect(maintip)
  1290.  
  1291. for i = 0, 1, Prop.AS*1.3 do
  1292.  
  1293. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70*i), math.rad(-140), 0) * CFrame.new(0, -0.9*i, 0)
  1294.  
  1295. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25), 0, math.rad(20-100*i)) * CFrame.new(0, -0.4+0.6*i, 0)
  1296.  
  1297. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20), 0, 0)
  1298.  
  1299. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10), 0, 0)
  1300.  
  1301. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), math.rad(-15), 0) * CFrame.new(0, 0, -0.9*i)
  1302.  
  1303. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90*i))
  1304.  
  1305. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-40+80*i), 0)
  1306.  
  1307. wait()
  1308.  
  1309. end
  1310.  
  1311. EndEffect()
  1312.  
  1313. Hurt = false
  1314.  
  1315. for i = 0, 1, Prop.AS*0.8 do
  1316.  
  1317. RAW.C0 = RAWStand * CFrame.Angles(math.rad(70-70*i), math.rad(-140+140*i), 0) * CFrame.new(0, -0.9+0.9*i, 0)
  1318.  
  1319. LAW.C0 = LAWStand * CFrame.Angles(math.rad(25-25*i), 0, math.rad(20-100+80*i)) * CFrame.new(0, -0.4+0.6-0.2*i, 0)
  1320.  
  1321. RLW.C0 = RLWStand * CFrame.Angles(math.rad(20-20*i), 0, 0)
  1322.  
  1323. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10+10*i), 0, 0)
  1324.  
  1325. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), math.rad(-15+15*i), 0) * CFrame.new(0, 0, -0.9+0.9*i)
  1326.  
  1327. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(-50+90-40*i))
  1328.  
  1329. bg.cframe = CF2 * CFrame.Angles(0, math.rad(40-40*i), 0)
  1330.  
  1331. wait()
  1332.  
  1333. end
  1334.  
  1335. normal()
  1336.  
  1337. bg:remove()
  1338.  
  1339. bp:remove()
  1340.  
  1341. end
  1342.  
  1343.  
  1344.  
  1345. function stab(mouse)
  1346.  
  1347. attach()
  1348.  
  1349. local mouseHit = mouse
  1350.  
  1351. local Orig = torso.CFrame
  1352.  
  1353. local bg = Add.BG(torso)
  1354.  
  1355. local bp = Add.BP(torso)
  1356.  
  1357. bp.position = Orig.p
  1358.  
  1359. local CF = ComputePos(Orig.p, mouseHit)
  1360.  
  1361. local CF2 = CF
  1362.  
  1363. bg.cframe = CF2
  1364.  
  1365. PlaySound(slash)
  1366.  
  1367. for i = 0, 1, Prop.AS do
  1368.  
  1369. RAW.C0 = RAWStand * CFrame.new(0, 0.6*i, 0) * CFrame.Angles(math.rad(-60*i), math.rad(-40*i), math.rad(-30*i)) * CFrame.new(-0.45*i, 0, 0)
  1370.  
  1371. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50*i), 0, math.rad(40*i)) * CFrame.new(0, -0.6*i, 0)
  1372.  
  1373. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3*i), math.rad(20*i), math.rad(-10*i))
  1374.  
  1375. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3*i), math.rad(-20*i), math.rad(10*i))
  1376.  
  1377. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1*i)
  1378.  
  1379. neck.C0 = necko * CFrame.Angles(math.rad(25*i), 0, math.rad(-45*i))
  1380.  
  1381. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30*i), 0)
  1382.  
  1383. wait()
  1384.  
  1385. end
  1386.  
  1387. StartEffect(maintip)
  1388.  
  1389. Hurt = true
  1390.  
  1391. bp.position = CF * CFrame.new(0, 0, -0.6).p
  1392.  
  1393. for i = 0, 1, Prop.AS*1.5 do
  1394.  
  1395. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8*i, 0) * CFrame.Angles(math.rad(-60+100*i), math.rad(-40), math.rad(-30+70*i)) * CFrame.new(-0.45, 0, 0)
  1396.  
  1397. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60*i), 0, math.rad(40-30*i)) * CFrame.new(0, -0.6-0.4*i, 0)
  1398.  
  1399. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18*i), math.rad(20-40*i), math.rad(-10+20*i))
  1400.  
  1401. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18*i), math.rad(-20+40*i), math.rad(10-20*i))
  1402.  
  1403. HW.C0 = HWStand * CFrame.Angles(math.rad(-70*i), 0, 0) * CFrame.new(0, 0, 1-1.4*i)
  1404.  
  1405. neck.C0 = necko * CFrame.Angles(math.rad(25-20*i), 0, math.rad(-45+35*i))
  1406.  
  1407. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45*i), 0)
  1408.  
  1409. wait()
  1410.  
  1411. end
  1412.  
  1413. Hurt = false
  1414.  
  1415. EndEffect()
  1416.  
  1417. bp.position = CF.p
  1418.  
  1419. for i = 0, 1, Prop.AS*1.1 do
  1420.  
  1421. RAW.C0 = RAWStand * CFrame.new(0, 0.6-0.8+0.2*i, 0) * CFrame.Angles(math.rad(-60+100-40*i), math.rad(-40+40*i), math.rad(-30+70-40*i)) * CFrame.new(-0.45+0.45*i, 0, 0)
  1422.  
  1423. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-50+60-10*i), 0, math.rad(40-30-10*i)) * CFrame.new(0, -0.6-0.4+1*i, 0)
  1424.  
  1425. RLW.C0 = RLWStand * CFrame.Angles(math.rad(3-18+15*i), math.rad(20-40+20*i), math.rad(-10+20-10*i))
  1426.  
  1427. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-3+18-15*i), math.rad(-20+40-20*i), math.rad(10-20+10*i))
  1428.  
  1429. HW.C0 = HWStand * CFrame.Angles(math.rad(-70+70*i), 0, 0) * CFrame.new(0, 0, 1-1.4+0.4*i)
  1430.  
  1431. neck.C0 = necko * CFrame.Angles(math.rad(5-5*i), 0, math.rad(-10+10*i))
  1432.  
  1433. bg.cframe = CF2 * CFrame.Angles(0, math.rad(-30+45-15*i), 0)
  1434.  
  1435. wait()
  1436.  
  1437. end
  1438.  
  1439. normal()
  1440.  
  1441. bg:remove()
  1442.  
  1443. bp:remove()
  1444.  
  1445. end
  1446.  
  1447.  
  1448.  
  1449. function epicsmashfunc(hit)
  1450.  
  1451. local ch = hit.Parent
  1452.  
  1453. local h = getHumanoid(ch)
  1454.  
  1455. local t, head = ch:findFirstChild("Torso"), ch:findFirstChild("Head")
  1456.  
  1457. return h, t, head
  1458.  
  1459. end
  1460.  
  1461.  
  1462.  
  1463. function epicsmash(mouse)
  1464.  
  1465. if Prop.Rage >= 50 then
  1466.  
  1467. attach()
  1468.  
  1469. local mouseHit = mouse
  1470.  
  1471. local Orig = torso.CFrame
  1472.  
  1473. local bg = Add.BG(torso)
  1474.  
  1475. local bp = Add.BP(torso)
  1476.  
  1477. bp.position = Orig.p
  1478.  
  1479. local CF = ComputePos(Orig.p, mouseHit)
  1480.  
  1481. bg.cframe = CF
  1482.  
  1483. local hu, to, head = nil, nil, nil
  1484.  
  1485. local Epic = true
  1486.  
  1487. local conn = Lleg.Touched:connect(function(hit)
  1488.  
  1489. if Epic then
  1490.  
  1491. hu, to, head = epicsmashfunc(hit)
  1492.  
  1493. if hu and to and head then Epic = false end
  1494.  
  1495. end
  1496.  
  1497. end)
  1498.  
  1499. PlaySound(slash)
  1500.  
  1501. for i = 0, 1, 0.12 do
  1502.  
  1503. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160*i), math.rad(-30*i), math.rad(-80*i)) * CFrame.new(0, 0, 0)
  1504.  
  1505. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80*i), 0, math.rad(-70*i)) * CFrame.new(0, -0.4*i, 0.6*i)
  1506.  
  1507. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20*i)) * CFrame.new(0, 0, 0)
  1508.  
  1509. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115*i), 0, math.rad(-40*i)) * CFrame.new(0, -0.8*i, 0)
  1510.  
  1511. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2*i)
  1512.  
  1513. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52*i))
  1514.  
  1515. bg.cframe = CF * CFrame.Angles(math.rad(10*i), math.rad(-45*i), math.rad(-15*i))
  1516.  
  1517. wait()
  1518.  
  1519. end
  1520.  
  1521. conn:disconnect()
  1522.  
  1523. if hu and to and head then
  1524.  
  1525. Prop.Rage = Prop.Rage - 50
  1526.  
  1527. hu.PlatformStand = true
  1528.  
  1529. local bg2 = Add.BG(to)
  1530.  
  1531. bg2.P = 6000
  1532.  
  1533. bg2.cframe = CF * CFrame.Angles(math.rad(90), math.rad(180), math.rad(90))
  1534.  
  1535. local bp2 = Add.BP(to)
  1536.  
  1537. bp2.position = CF * CFrame.new(-1, -4, -4).p
  1538.  
  1539. bp2.P = 5000
  1540.  
  1541. wait(0.1)
  1542.  
  1543. for i = 0, 1, 0.045 do
  1544.  
  1545. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270*i), math.rad(-30+20*i), math.rad(-80+120*i))
  1546.  
  1547. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140*i), 0, math.rad(-70+120*i)) * CFrame.new(0, -0.4-0.1*i, 0.6-0.6*i)
  1548.  
  1549. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  1550.  
  1551. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  1552.  
  1553. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  1554.  
  1555. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37*i))
  1556.  
  1557. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+35*i), math.rad(-15+15*i))
  1558.  
  1559. wait()
  1560.  
  1561. end
  1562.  
  1563. PlaySound(slash)
  1564.  
  1565. bp2:remove()
  1566.  
  1567. bg2:remove()
  1568.  
  1569. wait(0.2)
  1570.  
  1571. StartEffect(maintip)
  1572.  
  1573. for i = 0, 1, 0.1 do
  1574.  
  1575. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190*i), math.rad(-30+20-35*i), math.rad(-80+120-135*i))
  1576.  
  1577. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150*i), math.rad(60*i), math.rad(-70+120-40*i)) * CFrame.new(0, -0.4-0.1, 0)
  1578.  
  1579. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1580.  
  1581. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1582.  
  1583. HW.C0 = HWStand * CFrame.Angles(math.rad(-55*i), 0, math.rad(30*i)) * CFrame.new(0, 0, -1*i)
  1584.  
  1585. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-37+30*i))
  1586.  
  1587. bg.cframe = CF * CFrame.Angles(math.rad(10-10), math.rad(-45+35-30*i), math.rad(-15+15))
  1588.  
  1589. wait()
  1590.  
  1591. end
  1592.  
  1593. coroutine.resume(coroutine.create(function()
  1594.  
  1595. local frr = Cam.CoordinateFrame
  1596.  
  1597. for i = 1, math.random(3,6) do
  1598.  
  1599. wait()
  1600.  
  1601. Cam.CoordinateFrame = frr * CFrame.new(math.random(-6,6)/10, math.random(-6,6)/10, math.random(-6,6)/10)
  1602.  
  1603. end
  1604.  
  1605. end))
  1606.  
  1607. PlaySound(smashsound)
  1608.  
  1609. EndEffect()
  1610.  
  1611. local pos = head.Position
  1612.  
  1613. if (pos - maintip.Position).magnitude < 2 then
  1614.  
  1615. damage(hu, head, 0.3, hu.Health, hu.Health)
  1616.  
  1617. head:remove()
  1618.  
  1619. PlaySound(hitsound)
  1620.  
  1621. for i = 1, math.random(7, 17) do
  1622.  
  1623. local hmm = math.random(1,6)
  1624.  
  1625. if hmm < 6 then
  1626.  
  1627. local cols = {"Bright red", "Really red"}
  1628.  
  1629. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(2,10)/10, 0.2, math.random(2,10)/10)
  1630.  
  1631. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  1632.  
  1633. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  1634.  
  1635. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  1636.  
  1637. else
  1638.  
  1639. local cols = {"Institutional white", "White"}
  1640.  
  1641. local p = Part(workspace, false, false, 0, 0, cols[math.random(1,#cols)], math.random(4,13)/10, 0.3, math.random(2,3)/10)
  1642.  
  1643. p.CFrame = CFrame.new(pos) * CFrame.new(math.random(-6,6)/10, math.random(-4,2)/10, math.random(-6, 6)/10)
  1644.  
  1645. p.Velocity = Vector3.new(math.random(-15, 15), math.random(5, 40), math.random(-15, 15))
  1646.  
  1647. p.RotVelocity = Vector3.new(math.random(-25,25), math.random(-25,25), math.random(-25,25))
  1648.  
  1649. end
  1650.  
  1651. end
  1652.  
  1653. end
  1654.  
  1655. for i = 0, 1, 0.06 do
  1656.  
  1657. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+270-190+80*i), math.rad(-30+20-35+45*i), math.rad(-80+120-135+95*i))
  1658.  
  1659. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+140-150+90*i), math.rad(60-60*i), math.rad(10-10*i)) * CFrame.new(0, -0.4-0.1+0.5*i, 0)
  1660.  
  1661. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1662.  
  1663. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
  1664.  
  1665. HW.C0 = HWStand * CFrame.Angles(math.rad(-55+55*i), 0, math.rad(30-30*i)) * CFrame.new(0, 0, -1+1*i)
  1666.  
  1667. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(45-45*i))
  1668.  
  1669. bg.cframe = CF * CFrame.Angles(0, math.rad(-45+35-20+30*i), 0)
  1670.  
  1671. wait()
  1672.  
  1673. end
  1674.  
  1675. else
  1676.  
  1677. for i = 0, 1, 0.08 do
  1678.  
  1679. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-160+160*i), math.rad(-30+30*i), math.rad(-80+80*i)) * CFrame.new(0, 0, 0)
  1680.  
  1681. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-80+80*i), 0, math.rad(-70+70*i)) * CFrame.new(0, -0.4+0.4*i, 0.6-0.6*i)
  1682.  
  1683. RLW.C0 = RLWStand * CFrame.Angles(0, 0, math.rad(20-20*i)) * CFrame.new(0, 0, 0)
  1684.  
  1685. LLW.C0 = LLWStand * CFrame.Angles(math.rad(115-115*i), 0, math.rad(-40+40*i)) * CFrame.new(0, -0.8+0.8*i, 0)
  1686.  
  1687. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 2-2*i)
  1688.  
  1689. neck.C0 = necko * CFrame.Angles(0, 0, math.rad(52-52*i))
  1690.  
  1691. bg.cframe = CF * CFrame.Angles(math.rad(10-10*i), math.rad(-45+45*i), math.rad(-15+15*i))
  1692.  
  1693. wait()
  1694.  
  1695. end
  1696.  
  1697. bg:remove()
  1698.  
  1699. bp:remove()
  1700.  
  1701. normal()
  1702.  
  1703. end
  1704.  
  1705. normal()
  1706.  
  1707. bg:remove()
  1708.  
  1709. bp:remove()
  1710.  
  1711. end
  1712.  
  1713. end
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719. function shockwave(mouse)
  1720.  
  1721. local p, t = RayCast(torso.Position, torso.CFrame * CFrame.new(0, -5, 0).p, 5, 1)
  1722.  
  1723. if Prop.Rage >= 80 and t then
  1724.  
  1725. Prop.Rage = Prop.Rage - 80
  1726.  
  1727. attach()
  1728.  
  1729. local mouseHit = mouse
  1730.  
  1731. local Orig = torso.CFrame
  1732.  
  1733. local bg = Add.BG(torso)
  1734.  
  1735. local bp = Add.BP(torso)
  1736.  
  1737. bp.position = Orig.p
  1738.  
  1739. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1740.  
  1741. bp.P = 5000
  1742.  
  1743. local CF = ComputePos(Orig.p, mouseHit)
  1744.  
  1745. bg.cframe = CF
  1746.  
  1747. PlaySound(charge)
  1748.  
  1749. for i = 0, 1, 0.07 do
  1750.  
  1751. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110*i), math.rad(-40*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  1752.  
  1753. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  1754.  
  1755. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -0.8*i)
  1756.  
  1757. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  1758.  
  1759. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  1760.  
  1761. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  1762.  
  1763. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1764.  
  1765. bp.position = Orig.p + Vector3.new(0, -1.9*i, 0)
  1766.  
  1767. wait()
  1768.  
  1769. end
  1770.  
  1771. for i = 0, 1, 0.04 do
  1772.  
  1773. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-110+220*i), math.rad(-40+50*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  1774.  
  1775. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100+185*i), 0, math.rad(-40+75*i)) * CFrame.new(-0.2-0.2*i, -0.4-0.05*i, 0.5-0.5*i)
  1776.  
  1777. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-25*i), 0, math.rad(-10+6*i)) * CFrame.new(0, 0.7-0.7*i, -0.8+0.8*i)
  1778.  
  1779. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+65*i), 0, math.rad(10-6*i)) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  1780.  
  1781. HW.C0 = HWStand * CFrame.Angles(math.rad(-15*i), 0, 0) * CFrame.new(0, 0, 1.6-2.1*i)
  1782.  
  1783. neck.C0 = necko * CFrame.Angles(math.rad(30-70*i), 0, 0)
  1784.  
  1785. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1786.  
  1787. bp.position = Orig.p + Vector3.new(0, -1.9+17*i, 0)
  1788.  
  1789. wait()
  1790.  
  1791. end
  1792.  
  1793. bp.P = 12001
  1794.  
  1795. wait(0.1)
  1796.  
  1797. StartEffect(maintip)
  1798.  
  1799. PlaySound(slash)
  1800.  
  1801. for i = 0, 1, 0.1 do
  1802.  
  1803. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-30*i), math.rad(40-90*i)) * CFrame.new(0, -0.85+0.85*i, -0.8*i)
  1804.  
  1805. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125*i), 0, math.rad(35)) * CFrame.new(0, -0.45+0.1, 0)
  1806.  
  1807. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25*i), 0, math.rad(-4+4*i)) * CFrame.new(0, 0.5*i, -0.8*i)
  1808.  
  1809. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35*i), 0, math.rad(4-4*i)) * CFrame.new(0, 0.4*i, 0.2*i)
  1810.  
  1811. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7*i)
  1812.  
  1813. neck.C0 = necko * CFrame.Angles(math.rad(-40+75*i), 0, math.rad(-20*i))
  1814.  
  1815. bg.cframe = CF * CFrame.Angles(0, math.rad(380*i), 0)
  1816.  
  1817. bp.position = Orig.p + Vector3.new(0, 15.1-16.7*i, 0)
  1818.  
  1819. wait()
  1820.  
  1821. end
  1822.  
  1823. coroutine.resume(coroutine.create(function()
  1824.  
  1825. local frr = Cam.CoordinateFrame
  1826.  
  1827. for i = 1, math.random(10,16) do
  1828.  
  1829. wait()
  1830.  
  1831. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  1832.  
  1833. end
  1834.  
  1835. end))
  1836.  
  1837. PlaySound(smashsound)
  1838.  
  1839. local pos = CF * CFrame.new(-2, -3, -3).p
  1840.  
  1841. EndEffect()
  1842.  
  1843. local p = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  1844.  
  1845. p.CFrame = CFrame.new(pos)
  1846.  
  1847. local p2 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  1848.  
  1849. p2.CFrame = CFrame.new(pos)
  1850.  
  1851. local p3 = Part(workspace, true, false, 0, 0, "Black", 1, 1, 1, true)
  1852.  
  1853. p3.CFrame = CFrame.new(pos)
  1854.  
  1855. local m3 = Instance.new("SpecialMesh",p3)
  1856.  
  1857. m3.MeshType = "Sphere"
  1858.  
  1859. PlaySound(boom)
  1860.  
  1861. local m2 = Instance.new("CylinderMesh",p2)
  1862.  
  1863. local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 1.2, 1)
  1864.  
  1865. local tab = {}
  1866.  
  1867. coroutine.resume(coroutine.create(function()
  1868.  
  1869. for x = 0, 1.04, 0.04 do
  1870.  
  1871. wait()
  1872.  
  1873. local thing = 33*x
  1874.  
  1875. m.Scale = Vector3.new(21*x, 5*x, 21*x)
  1876.  
  1877. m2.Scale = Vector3.new(thing, 1, thing)
  1878.  
  1879. m3.Scale = Vector3.new(thing*0.93, thing*0.7, thing*0.93)
  1880.  
  1881. p.Transparency = x
  1882.  
  1883. p2.Transparency = x
  1884.  
  1885. p3.Transparency = x
  1886.  
  1887. for i, v in pairs(workspace:children()) do
  1888.  
  1889. local h = getHumanoid(v)
  1890.  
  1891. local to = v:findFirstChild("Torso")
  1892.  
  1893. if h ~= nil and to ~= nil and find(tab, v) == nil then
  1894.  
  1895. if (to.Position - pos).magnitude < (thing/2) then
  1896.  
  1897. damage(h, to, 0.5, Prop.ShockDMG/2, Prop.ShockDMG)
  1898.  
  1899. to.Velocity = CFrame.new(pos, to.Position).lookVector * 60
  1900.  
  1901. to.RotVelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  1902.  
  1903. h.PlatformStand = true
  1904.  
  1905. table.insert(tab, v)
  1906.  
  1907. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  1908.  
  1909. end
  1910.  
  1911. end
  1912.  
  1913. end
  1914.  
  1915. end
  1916.  
  1917. p:remove()
  1918.  
  1919. p2:remove()
  1920.  
  1921. p3:remove()
  1922.  
  1923. end))
  1924.  
  1925. wait(0.8)
  1926.  
  1927. for i = 0, 1, Prop.AS*0.8 do
  1928.  
  1929. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-30+20*i), math.rad(40-90+50*i)) * CFrame.new(0, 0, -0.8+0.8*i)
  1930.  
  1931. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-125+40*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.45+0.1+0.35*i, 0)
  1932.  
  1933. RLW.C0 = RLWStand * CFrame.Angles(math.rad(-10+25-15*i), 0, 0) * CFrame.new(0, 0.5-0.5*i, -0.8+0.8*i)
  1934.  
  1935. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-10-35+45*i), 0, 0) * CFrame.new(0, 0.4-0.4*i, 0.2-0.2*i)
  1936.  
  1937. HW.C0 = HWStand * CFrame.Angles(math.rad(-15-10+25*i), 0, 0) * CFrame.new(0, 0, -0.5+0.7-0.2*i)
  1938.  
  1939. neck.C0 = necko * CFrame.Angles(math.rad(-40+75-35*i), 0, math.rad(-20+20*i))
  1940.  
  1941. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  1942.  
  1943. bp.position = Orig.p + Vector3.new(0, 15.1-16.7+1.6*i, 0)
  1944.  
  1945. wait()
  1946.  
  1947. end
  1948.  
  1949. normal()
  1950.  
  1951. bg:remove()
  1952.  
  1953. bp:remove()
  1954.  
  1955. end
  1956.  
  1957. end
  1958.  
  1959.  
  1960.  
  1961. function flipsmash(mouse)
  1962.  
  1963. local Orig = torso.CFrame
  1964.  
  1965. local mouseHit = mouse
  1966.  
  1967. local CF = ComputePos(Orig.p, mouseHit)
  1968.  
  1969. local p, t = RayCast(torso.Position, torso.Position + Vector3.new(0, -5, 0), 5, 0.5)
  1970.  
  1971. local ahp = (CF * CFrame.new(0, 0, -14.5))
  1972.  
  1973. local p2, t2 = RayCast(ahp.p, (ahp * CFrame.new(0, -5, 0)).p, 5, 0.5)
  1974.  
  1975. if t and t2 and Prop.Rage >= 90 then
  1976.  
  1977. Prop.Rage = Prop.Rage - 90
  1978.  
  1979. attach()
  1980.  
  1981. local bg = Add.BG(torso)
  1982.  
  1983. local bp = Add.BP(torso)
  1984.  
  1985. bp.position = Orig.p
  1986.  
  1987. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1988.  
  1989. bg.cframe = CF
  1990.  
  1991. local cen = CF * CFrame.new(0, -1.2, -1.5-6.5)
  1992.  
  1993. for i = 0, 1, 0.08 do
  1994.  
  1995. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100*i), math.rad(-50*i), math.rad(-50*i)) * CFrame.new(0.2*i, 0, 0.2*i)
  1996.  
  1997. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100*i), 0, math.rad(-40*i)) * CFrame.new(-0.2*i, -0.4*i, 0.5*i)
  1998.  
  1999. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, math.rad(-10*i)) * CFrame.new(0, 0.7*i, -1*i)
  2000.  
  2001. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75*i), 0, math.rad(10*i)) * CFrame.new(0, 0.4*i, 0)
  2002.  
  2003. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6*i)
  2004.  
  2005. neck.C0 = necko * CFrame.Angles(math.rad(30*i), 0, 0)
  2006.  
  2007. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2008.  
  2009. bp.position = CF * CFrame.new(0, -1.2*i, -1.5*i).p
  2010.  
  2011. wait()
  2012.  
  2013. end
  2014.  
  2015. wait(0.15)
  2016.  
  2017. hum.PlatformStand = true
  2018.  
  2019. for i = 0, 1, 0.13 do
  2020.  
  2021. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70*i), math.rad(-50), math.rad(-50)) * CFrame.new(0.2, 0, 0.2)
  2022.  
  2023. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50*i), 0, math.rad(-40+30*i)) * CFrame.new(-0.2, -0.4, 0.5)
  2024.  
  2025. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15-10*i), 0, math.rad(-10)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  2026.  
  2027. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-75+70*i), 0, math.rad(10)) * CFrame.new(0, 0.4-0.4*i, 0)
  2028.  
  2029. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6)
  2030.  
  2031. neck.C0 = necko * CFrame.Angles(math.rad(30-40*i), 0, 0)
  2032.  
  2033. bg.cframe = CF * CFrame.Angles(math.rad(-90*i), 0, 0)
  2034.  
  2035. bp.position = cen * CFrame.Angles(math.rad(180-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  2036.  
  2037. wait()
  2038.  
  2039. end
  2040.  
  2041. PlaySound(slash)
  2042.  
  2043. for i = 0, 1, 0.13 do
  2044.  
  2045. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-100-70-80*i), math.rad(-50+60*i), math.rad(-50+90*i)) * CFrame.new(0.2-0.2*i, -0.85*i, 0.2-0.2*i)
  2046.  
  2047. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-100-50-125*i), 0, math.rad(-40+30+45*i)) * CFrame.new(-0.2+0.2*i, -0.4-0.5*i, 0.5-0.5*i)
  2048.  
  2049. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5), 0, math.rad(-10)) * CFrame.new(0, 0, 0)
  2050.  
  2051. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5), 0, math.rad(10)) * CFrame.new(0, 0, 0)
  2052.  
  2053. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 1.6-2.6*i)
  2054.  
  2055. neck.C0 = necko * CFrame.Angles(math.rad(-10), 0, 0)
  2056.  
  2057. bg.cframe = CF * CFrame.Angles(math.rad(-90-90*i), 0, 0)
  2058.  
  2059. bp.position = cen * CFrame.Angles(math.rad(180-45-45*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  2060.  
  2061. wait()
  2062.  
  2063. end
  2064.  
  2065. StartEffect(maintip)
  2066.  
  2067. PlaySound(slash)
  2068.  
  2069. for i = 0, 1, 0.06 do
  2070.  
  2071. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150*i), math.rad(10-50*i), math.rad(40-85*i)) * CFrame.new(0, -0.85+0.45*i, 0)
  2072.  
  2073. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130*i), 0, math.rad(35)) * CFrame.new(0, -0.9+0.3*i, 0)
  2074.  
  2075. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80*i), 0, math.rad(-10)) * CFrame.new(0, 0.4*i, 0)
  2076.  
  2077. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20*i), 0, math.rad(10)) * CFrame.new(0, 0.7*i, -1*i)
  2078.  
  2079. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6)
  2080.  
  2081. neck.C0 = necko * CFrame.Angles(math.rad(-10+50*i), 0, 0)
  2082.  
  2083. bg.cframe = CF * CFrame.Angles(math.rad(-180-190*i), 0, 0)
  2084.  
  2085. bp.position = cen * CFrame.Angles(math.rad(90-90*i), 0, 0) * CFrame.new(0, 0, -6.5).p
  2086.  
  2087. wait()
  2088.  
  2089. end
  2090.  
  2091. coroutine.resume(coroutine.create(function()
  2092.  
  2093. local frr = Cam.CoordinateFrame
  2094.  
  2095. for i = 1, math.random(13,20) do
  2096.  
  2097. wait()
  2098.  
  2099. Cam.CoordinateFrame = frr * CFrame.new(math.random(-15,15)/10, math.random(-15,15)/10, math.random(-15,15)/10)
  2100.  
  2101. end
  2102.  
  2103. end))
  2104.  
  2105. PlaySound(smashsound)
  2106.  
  2107. PlaySound(boomboom)
  2108.  
  2109. EndEffect()
  2110.  
  2111. local poo = Vector3.new(maintip.Position.x, t2.Position.y + t2.Size.y/2, maintip.Position.z)
  2112.  
  2113. local siz = math.random(65,115)/10
  2114.  
  2115. local partie = Part(workspace, true, false, 1, 0, "White", siz, 0.2, siz, true)
  2116.  
  2117. partie.CFrame = CFrame.new(poo) * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)
  2118.  
  2119. local decc = Instance.new("Decal",partie)
  2120.  
  2121. decc.Shiny = 0
  2122.  
  2123. decc.Specular = 0
  2124.  
  2125. decc.Texture = "http://www.roblox.com/asset/?id=49173398"
  2126.  
  2127. decc.Face = "Top"
  2128.  
  2129. local count = 0
  2130.  
  2131. for i, v in pairs(workspace:children()) do
  2132.  
  2133. local h = getHumanoid(v)
  2134.  
  2135. local to = v:findFirstChild("Torso")
  2136.  
  2137. if h ~= nil and to ~= nil then
  2138.  
  2139. if (to.Position - poo).magnitude < 15 then
  2140.  
  2141. count = count + 1
  2142.  
  2143. local Maxhp = h.MaxHealth
  2144.  
  2145. if Maxhp > 5000 then Maxhp = 5000 end
  2146.  
  2147. damage(h, to, 0.5, 0, Maxhp+5)
  2148.  
  2149. to.Velocity = CFrame.new(poo, to.Position).lookVector * 30
  2150.  
  2151. to.Velocity = to.Velocity + Vector3.new(0, 60, 0)
  2152.  
  2153. to.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2154.  
  2155. h.PlatformStand = true
  2156.  
  2157. coroutine.resume(coroutine.create(function() wait(1.2) h.PlatformStand = false end))
  2158.  
  2159. if count >= 2 then break end
  2160.  
  2161. end
  2162.  
  2163. end
  2164.  
  2165. end
  2166.  
  2167. coroutine.resume(coroutine.create(function() wait(math.random(7,14)) partie:remove() end))
  2168.  
  2169. wait(0.6)
  2170.  
  2171. for i = 0, 1, 0.06 do
  2172.  
  2173. RAW.C0 = RAWStand * CFrame.Angles(math.rad(110-150+40*i), math.rad(10-50+40*i), math.rad(40-85+45*i)) * CFrame.new(0, -0.85+0.45+0.4*i, 0)
  2174.  
  2175. LAW.C0 = LAWStand * CFrame.Angles(math.rad(85-130+45*i), 0, math.rad(35-35*i)) * CFrame.new(0, -0.9+0.3+0.6*i, 0)
  2176.  
  2177. RLW.C0 = RLWStand * CFrame.Angles(math.rad(5-80+75*i), 0, math.rad(-10+10*i)) * CFrame.new(0, 0.4-0.4*i, 0)
  2178.  
  2179. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-5+20-15*i), 0, math.rad(10-10*i)) * CFrame.new(0, 0.7-0.7*i, -1+1*i)
  2180.  
  2181. HW.C0 = HWStand * CFrame.Angles(math.rad(-35+10+25*i), 0, 0) * CFrame.new(0, 0, 1.6-2.6+1*i)
  2182.  
  2183. neck.C0 = necko * CFrame.Angles(math.rad(-10+50-40*i), 0, 0)
  2184.  
  2185. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2186.  
  2187. bp.position = cen * CFrame.new(0, 1.2*i, -6.5).p
  2188.  
  2189. wait()
  2190.  
  2191. end
  2192.  
  2193. hum.PlatformStand = false
  2194.  
  2195. normal()
  2196.  
  2197. bg:remove()
  2198.  
  2199. bp:remove()
  2200.  
  2201. end
  2202.  
  2203. end
  2204.  
  2205.  
  2206.  
  2207. function spin(mouse)
  2208.  
  2209. attach()
  2210.  
  2211. local mouseHit = mouse
  2212.  
  2213. local Orig = torso.CFrame
  2214.  
  2215. local CF = ComputePos(Orig.p, mouseHit)
  2216.  
  2217. local p, t = RayCast(torso.Position, CF * CFrame.new(0, -7, -1.5).p, 5, 0.5)
  2218.  
  2219. if t then
  2220.  
  2221. local bg = Add.BG(torso)
  2222.  
  2223. local bp = Add.BP(torso)
  2224.  
  2225. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2226.  
  2227. bp.position = Orig.p
  2228.  
  2229. bg.cframe = CF
  2230.  
  2231. PlaySound(slash)
  2232.  
  2233. for i = 0, 1, 0.11 do
  2234.  
  2235. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20*i), math.rad(120*i), math.rad(20*i)) * CFrame.new(0, 0, 0)
  2236.  
  2237. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100*i), 0, math.rad(20*i))
  2238.  
  2239. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60*i), 0, math.rad(40*i)) * CFrame.new(0, -0.8*i, 0)
  2240.  
  2241. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10*i), 0, 0) * CFrame.new(0, 0.3*i, -0.2*i)
  2242.  
  2243. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25*i), 0, 0)
  2244.  
  2245. HW.C0 = HWStand * CFrame.Angles(0, 0, 0)
  2246.  
  2247. neck.C0 = necko * CFrame.Angles(math.rad(-15*i), 0, math.rad(-30*i))
  2248.  
  2249. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2250.  
  2251. wait()
  2252.  
  2253. end
  2254.  
  2255. local posg = CF * CFrame.new(0, -0.6, -4)
  2256.  
  2257. PlaySound(hitsound, 0.9)
  2258.  
  2259. for i = 0, 1, 0.13 do
  2260.  
  2261. RAW.C0 = RAWStand * CFrame.Angles(math.rad(20-20*i), math.rad(120+10*i), math.rad(20)) * CFrame.new(0, -0.8*i, 0.4*i)
  2262.  
  2263. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60*i), 0, math.rad(20-20*i))
  2264.  
  2265. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40*i), 0, math.rad(40-50*i)) * CFrame.new(0, -0.8+0.3*i, 0)
  2266.  
  2267. RLW.C0 = RLWStand * CFrame.Angles(math.rad(10-10*i), 0, 0) * CFrame.new(0, 0.3-0.3*i, -0.2+0.2*i)
  2268.  
  2269. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  2270.  
  2271. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35*i)) * CFrame.new(0, 0, -0.6*i)
  2272.  
  2273. neck.C0 = necko * CFrame.Angles(math.rad(-15+25*i), 0, math.rad(-30+30*i))
  2274.  
  2275. bg.cframe = CF * CFrame.Angles(0, 0, 0)
  2276.  
  2277. bp.position = CF * CFrame.new(0, 1*i, -2*i).p
  2278.  
  2279. wait()
  2280.  
  2281. end
  2282.  
  2283. hum.PlatformStand = true
  2284.  
  2285. bg.Parent = handle
  2286.  
  2287. bg.cframe = CF * CFrame.Angles(math.pi, math.pi, 0)
  2288.  
  2289. bp.Parent = handle
  2290.  
  2291. bp.position = posg.p
  2292.  
  2293. StartEffect(Lleg)
  2294.  
  2295. Leghurt = true
  2296.  
  2297. PlaySound(slash)
  2298.  
  2299. for i = 0, 1, 0.09 do
  2300.  
  2301. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90*i), math.rad(130-40*i), math.rad(20-40*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  2302.  
  2303. RAW.C1 = CFrame.new(0, 0.5+0.5*i, 0) * CFrame.Angles(math.rad(100-60+60*i), 0, 0)
  2304.  
  2305. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-40-20+60*i), 0, math.rad(40-50+10*i)) * CFrame.new(0, -0.8+0.3-0.5*i, 0)
  2306.  
  2307. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15*i), 0, 0)
  2308.  
  2309. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20*i), 0, 0)
  2310.  
  2311. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1*i)
  2312.  
  2313. neck.C0 = necko * CFrame.Angles(math.rad(10-35*i), 0, 0)
  2314.  
  2315. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90*i), 0)
  2316.  
  2317. wait()
  2318.  
  2319. end
  2320.  
  2321. for i = 0, 1, 0.055 do
  2322.  
  2323. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90), math.rad(90), math.rad(-20)) * CFrame.new(0, 0, 0)
  2324.  
  2325. RAW.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(100), 0, 0)
  2326.  
  2327. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60), 0, 0) * CFrame.new(0, -1, 0)
  2328.  
  2329. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10*i), 0, 0)
  2330.  
  2331. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5*i), 0, 0)
  2332.  
  2333. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  2334.  
  2335. neck.C0 = necko * CFrame.Angles(math.rad(-25), 0, 0)
  2336.  
  2337. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(90+270*i), 0)
  2338.  
  2339. wait()
  2340.  
  2341. end
  2342.  
  2343. EndEffect()
  2344.  
  2345. Leghurt = false
  2346.  
  2347. for i = 0, 1, 0.12 do
  2348.  
  2349. RAW.C0 = RAWStand * CFrame.Angles(math.rad(-90+90*i), math.rad(90+40*i), math.rad(-20+40*i)) * CFrame.new(0, -0.8*i, 0.4*i)
  2350.  
  2351. RAW.C1 = CFrame.new(0, 1-0.5*i, 0) * CFrame.Angles(math.rad(100-60*i), 0, 0)
  2352.  
  2353. LAW.C0 = LAWStand * CFrame.Angles(math.rad(60-60*i), 0, 0) * CFrame.new(0, -1+0.5*i, 0)
  2354.  
  2355. RLW.C0 = RLWStand * CFrame.Angles(math.rad(15+10-25*i), 0, 0)
  2356.  
  2357. LLW.C0 = LLWStand * CFrame.Angles(math.rad(-20-5+25*i), 0, 0)
  2358.  
  2359. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35)) * CFrame.new(0, 0, 1)
  2360.  
  2361. neck.C0 = necko * CFrame.Angles(math.rad(-25+25*i), 0, 0)
  2362.  
  2363. bg.cframe = CF * CFrame.Angles(math.pi, math.pi+math.rad(360), 0)
  2364.  
  2365. wait()
  2366.  
  2367. end
  2368.  
  2369. bg.Parent = torso
  2370.  
  2371. bp.Parent = torso
  2372.  
  2373. bg.cframe = CF
  2374.  
  2375. for i = 0, 1, 0.14 do
  2376.  
  2377. RAW.C0 = RAWStand * CFrame.Angles(0, math.rad(90+40-130*i), math.rad(-20+40-20*i)) * CFrame.new(0, -0.8+0.8*i, 0.4-0.4*i)
  2378.  
  2379. RAW.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(100-60-40*i), 0, 0)
  2380.  
  2381. LAW.C0 = LAWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, -1+0.5+0.5*i, 0)
  2382.  
  2383. RLW.C0 = RLWStand * CFrame.Angles(0, 0, 0)
  2384.  
  2385. LLW.C0 = LLWStand * CFrame.Angles(0, 0, 0)
  2386.  
  2387. HW.C0 = HWStand * CFrame.Angles(0, 0, math.rad(-35+35*i)) * CFrame.new(0, 0, 1-1*i)
  2388.  
  2389. neck.C0 = necko * CFrame.Angles(0, 0, 0)
  2390.  
  2391. bp.position = CF * CFrame.new(0, 0, -2+1*i).p
  2392.  
  2393. bg.cframe = CF
  2394.  
  2395. wait()
  2396.  
  2397. end
  2398.  
  2399. hum.PlatformStand = false
  2400.  
  2401. normal()
  2402.  
  2403. bg:remove()
  2404.  
  2405. bp:remove()
  2406.  
  2407. end
  2408.  
  2409. end
  2410.  
  2411.  
  2412.  
  2413. function rest()
  2414.  
  2415. local Orig = torso.CFrame
  2416.  
  2417. local CF = ComputePos(Orig.p, Orig * CFrame.new(0, 0, -5).p)
  2418.  
  2419. local p, t = RayCast(CF.p, CF * CFrame.new(0, -6, 0.5).p, 6, 0.5)
  2420.  
  2421. if t then
  2422.  
  2423. attach()
  2424.  
  2425. local bg = Add.BG(torso)
  2426.  
  2427. local bp = Add.BP(torso)
  2428.  
  2429. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2430.  
  2431. bp.position = CF.p
  2432.  
  2433. bg.cframe = CF
  2434.  
  2435. local cen = CF * CFrame.new(0, -2.5, 0)
  2436.  
  2437. RestingAnim = true
  2438.  
  2439. hum.PlatformStand = true
  2440.  
  2441. local standup = function()
  2442.  
  2443. Resting = false
  2444.  
  2445. bp.Parent = torso
  2446.  
  2447. cen = ComputePos(torso.CFrame.p, torso.CFrame * CFrame.new(0, 0, -5).p) * CFrame.new(0, 0, -2.5)
  2448.  
  2449. for i = 1, 0, -0.12 do
  2450.  
  2451. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  2452.  
  2453. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  2454.  
  2455. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, 0, -0.4)
  2456.  
  2457. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, 0, -0.4)
  2458.  
  2459. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  2460.  
  2461. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  2462.  
  2463. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  2464.  
  2465. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  2466.  
  2467. wait()
  2468.  
  2469. end
  2470.  
  2471. for i = 1, 0, -0.17 do
  2472.  
  2473. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  2474.  
  2475. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  2476.  
  2477. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  2478.  
  2479. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.4*i, -0.4*i)
  2480.  
  2481. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  2482.  
  2483. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  2484.  
  2485. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  2486.  
  2487. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  2488.  
  2489. wait()
  2490.  
  2491. end
  2492.  
  2493. hum.PlatformStand = false
  2494.  
  2495. bg:remove()
  2496.  
  2497. bp:remove()
  2498.  
  2499. normal()
  2500.  
  2501. Able = true
  2502.  
  2503. RestingAnim = false
  2504.  
  2505. end
  2506.  
  2507. local connec = hum.Changed:connect(function()
  2508.  
  2509. if hum.PlatformStand == false then
  2510.  
  2511. coroutine.resume(coroutine.create(function()
  2512.  
  2513. standup()
  2514.  
  2515. end))
  2516.  
  2517. standup = nil
  2518.  
  2519. connec:disconnect()
  2520.  
  2521. end
  2522.  
  2523. end)
  2524.  
  2525. local lasthp = hum.Health
  2526.  
  2527. local conn = hum.HealthChanged:connect(function(hp)
  2528.  
  2529. if lasthp - hp > 0.8 then
  2530.  
  2531. hum.PlatformStand = false
  2532.  
  2533. conn:disconnect()
  2534.  
  2535. end
  2536.  
  2537. lasthp = hp
  2538.  
  2539. end)
  2540.  
  2541. coroutine.resume(coroutine.create(function()
  2542.  
  2543. repeat wait() until Resting
  2544.  
  2545. while Resting do
  2546.  
  2547. wait()
  2548.  
  2549. if torso.Velocity.magnitude > 4 then
  2550.  
  2551. hum.PlatformStand = false
  2552.  
  2553. break
  2554.  
  2555. end
  2556.  
  2557. end
  2558.  
  2559. end))
  2560.  
  2561. for i = 0, 1, 0.1 do
  2562.  
  2563. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50*i), math.rad(-20*i), 0)
  2564.  
  2565. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40*i), 0, math.rad(-30*i)) * CFrame.new(0, 0, 0.4*i)
  2566.  
  2567. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(15*i)) * CFrame.new(0, 0, -0.4*i)
  2568.  
  2569. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55*i), 0, math.rad(-15*i)) * CFrame.new(0, 0, -0.4*i)
  2570.  
  2571. neck.C0 = necko * CFrame.Angles(math.rad(10*i), 0, 0)
  2572.  
  2573. HW.C0 = HWStand * CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0.2*i)
  2574.  
  2575. bg.cframe = CF * CFrame.Angles(math.rad(-10*i), 0, 0)
  2576.  
  2577. bp.position = cen * CFrame.Angles(math.rad(180+45*i), 0, 0) * CFrame.new(0, -2.5, 0).p
  2578.  
  2579. wait()
  2580.  
  2581. end
  2582.  
  2583. for i = 0, 1, 0.07 do
  2584.  
  2585. RAW.C0 = RAWStand * CFrame.Angles(math.rad(50), math.rad(-20-20*i), math.rad(60*i))
  2586.  
  2587. LAW.C0 = LAWStand * CFrame.Angles(math.rad(-40-70*i), 0, math.rad(-30-10*i)) * CFrame.new(0, -0.6*i, 0.4+0.2*i)
  2588.  
  2589. RLW.C0 = RLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(15)) * CFrame.new(0, -0.4*i, -0.4)
  2590.  
  2591. LLW.C0 = LLWStand * CFrame.Angles(math.rad(55+25*i), 0, math.rad(-15)) * CFrame.new(0, -0.4*i, -0.4)
  2592.  
  2593. neck.C0 = necko * CFrame.Angles(math.rad(10-15*i), 0, 0)
  2594.  
  2595. HW.C0 = HWStand * CFrame.Angles(math.rad(40*i), 0, 0) * CFrame.new(0, 0, 0.2+0.8*i)
  2596.  
  2597. bg.cframe = CF * CFrame.Angles(math.rad(-10+20*i), 0, 0)
  2598.  
  2599. bp.position = cen * CFrame.Angles(math.rad(180+45+45*i), 0, 0) * CFrame.new(0, -2.5, 0.4*i).p
  2600.  
  2601. wait()
  2602.  
  2603. end
  2604.  
  2605. Resting = true
  2606.  
  2607. coroutine.resume(coroutine.create(function()
  2608.  
  2609. wait(0.4)
  2610.  
  2611. bp.Parent = nil
  2612.  
  2613. end))
  2614.  
  2615. coroutine.resume(coroutine.create(function()
  2616.  
  2617. while Resting and selected do
  2618.  
  2619. wait(math.random(350,800)/1000)
  2620.  
  2621. hum.Health = hum.Health + math.random(1,2)
  2622.  
  2623. Prop.Rage = Prop.Rage + 1
  2624.  
  2625. end
  2626.  
  2627. hum.PlatformStand = false
  2628.  
  2629. end))
  2630.  
  2631. end
  2632.  
  2633. end
  2634.  
  2635.  
  2636.  
  2637. function select(mouse)
  2638.  
  2639. mouse.Icon = MouseIc
  2640.  
  2641. selectanim()
  2642.  
  2643. selected = true
  2644.  
  2645. mouse.Button1Down:connect(function()
  2646.  
  2647. if Able and RestingAnim == false and hum.Sit == false then
  2648.  
  2649. Able = false
  2650.  
  2651. swing(mouse.Hit.p)
  2652.  
  2653. Able = true
  2654.  
  2655. end
  2656.  
  2657. end)
  2658.  
  2659. mouse.Button1Down:connect(function()
  2660.  
  2661. mouse.Icon = MouseDo
  2662.  
  2663. mouse.Button1Up:wait()
  2664.  
  2665. mouse.Icon = MouseIc
  2666.  
  2667. end)
  2668.  
  2669. mouse.KeyDown:connect(function(key)
  2670.  
  2671. key = key:lower()
  2672.  
  2673. if Able and RestingAnim == false and hum.Sit == false then
  2674.  
  2675. if key == "q" then
  2676.  
  2677. Able = false
  2678.  
  2679. smash(mouse.Hit.p)
  2680.  
  2681. Able = true
  2682.  
  2683. elseif key == "e" then
  2684.  
  2685. Able = false
  2686.  
  2687. swing(mouse.Hit.p)
  2688.  
  2689. Able = true
  2690.  
  2691. elseif key == "r" then
  2692.  
  2693. Able = false
  2694.  
  2695. stab(mouse.Hit.p)
  2696.  
  2697. Able = true
  2698.  
  2699. elseif key == "f" then
  2700.  
  2701. Able = false
  2702.  
  2703. epicsmash(mouse.Hit.p)
  2704.  
  2705. Able = true
  2706.  
  2707. elseif key == "z" then
  2708.  
  2709. Able = false
  2710.  
  2711. shockwave(mouse.Hit.p)
  2712.  
  2713. Able = true
  2714.  
  2715. elseif key == "x" then
  2716.  
  2717. Able = false
  2718.  
  2719. flipsmash(mouse.Hit.p)
  2720.  
  2721. Able = true
  2722.  
  2723. elseif key == "t" then
  2724.  
  2725. Able = false
  2726.  
  2727. spin(mouse.Hit.p)
  2728.  
  2729. Able = true
  2730.  
  2731. end
  2732.  
  2733. end
  2734.  
  2735. if Able then
  2736.  
  2737. if key == "g" and AbleG then
  2738.  
  2739. AbleG = false
  2740.  
  2741. if Resting == true then
  2742.  
  2743. Resting = false
  2744.  
  2745. else
  2746.  
  2747. rest()
  2748.  
  2749. end
  2750.  
  2751. wait(0.8)
  2752.  
  2753. AbleG = true
  2754.  
  2755. end
  2756.  
  2757. end
  2758.  
  2759. end)
  2760.  
  2761. end
  2762.  
  2763.  
  2764.  
  2765. function deselect(mouse)
  2766.  
  2767. selected = false
  2768.  
  2769. deselanim()
  2770.  
  2771. end
  2772.  
  2773. bin.Selected:connect(select)
  2774.  
  2775. bin.Deselected:connect(deselect)
Advertisement
Add Comment
Please, Sign In to add comment