Advertisement
idkwhatiam

Noob Bat 2 FE

Apr 18th, 2019
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 75.79 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.   plr = owner
  88.   repeat
  89.     wait(0.4)
  90.   until plr.Character
  91.   chr = plr.Character
  92.   human = chr:FindFirstChild("Humanoid")
  93.   mouse = plr:GetMouse()
  94.   cam = workspace.CurrentCamera
  95.   selected = false
  96.   equipd = false
  97.   tors = chr.Torso
  98.   rarm = chr["Right Arm"]
  99.   larm = chr["Left Arm"]
  100.   rleg = chr["Right Leg"]
  101.   lleg = chr["Left Leg"]
  102.   hrp = chr.HumanoidRootPart
  103.   hed = chr.Head
  104.   anim = human.Animator
  105.   activu = false
  106.   ragged = false
  107.   batting = false
  108.   Heartbeat = Instance.new("BindableEvent")
  109.   Heartbeat.Name = "Heartbeat"
  110.   Heartbeat.Parent = script
  111.   frame = 0.03333333333333333
  112.   tf = 0
  113.   game:GetService("RunService").Heartbeat:connect(function(s, p)
  114.     tf = tf + s
  115.     if tf >= frame then
  116.       for i = 1, math.floor(tf / frame) do
  117.         Heartbeat:Fire()
  118.       end
  119.       tf = tf - frame * math.floor(tf / frame)
  120.     end
  121.   end)
  122.   function swait(num)
  123.     if num == 0 or num == nil then
  124.       Heartbeat.Event:wait()
  125.     else
  126.       for i = 1, num do
  127.         Heartbeat.Event:wait()
  128.       end
  129.     end
  130.   end
  131.   tool = Instance.new("Tool")
  132.   tool.CanBeDropped = false
  133.   tool.RequiresHandle = false
  134.   tool.TextureId = "rbxassetid://291302154"
  135.   tool.ToolTip = "NANI"
  136.   tool.Name = "AAAAAAAAAAAAAA"
  137.   tool.Parent = plr.Backpack
  138.   modz = Instance.new("Model")
  139.   modz.Name = "efx"
  140.   modz.Parent = chr
  141.   RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  142.   RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  143.   LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  144.   LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  145.   RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  146.   RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  147.   LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  148.   RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  149.   LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  150.   NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  151.   NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  152.   RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  153.   local nscale = Instance.new("NumberValue")
  154.   nscale.Value = 1
  155.   nscale.Parent = nil
  156.   RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  157.   RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  158.   LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  159.   LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  160.   RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  161.   RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  162.   LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  163.   LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  164.   RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  165.   RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  166.   NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  167.   NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  168.   nscale.Changed:connect(function()
  169.     RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  170.     RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  171.     LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  172.     LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  173.     RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  174.     RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  175.     LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  176.     LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  177.     RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  178.     RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  179.     NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  180.     NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  181.   end)
  182.   RS = tors:FindFirstChild("Right Shoulder")
  183.   LS = tors:FindFirstChild("Left Shoulder")
  184.   RH = tors:FindFirstChild("Right Hip")
  185.   LH = tors:FindFirstChild("Left Hip")
  186.   RJ = hrp:FindFirstChild("RootJoint")
  187.   N = tors:FindFirstChild("Neck")
  188.   cf = CFrame.new
  189.   ang = CFrame.Angles
  190.   rd = math.rad
  191.   rd2 = math.random
  192.   function nooutline(p)
  193.     p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  194.   end
  195.   function makepart(color, name, reflec, trans, mater, parnt, cfram)
  196.     local port = Instance.new("Part")
  197.     port.BrickColor = BrickColor.new(color)
  198.     port.Name = name
  199.     port.Transparency = trans
  200.     nooutline(port)
  201.     port.Reflectance = reflec
  202.     port.Material = mater
  203.     port.Anchored = false
  204.     port.CanCollide = false
  205.     port.Locked = true
  206.     port.Size = Vector3.new(0.2, 0.2, 0.2)
  207.     port.Parent = parnt
  208.     return port
  209.   end
  210.   function makemesh(meshtype, scale, meshid, parent)
  211.     local mes = Instance.new("SpecialMesh")
  212.     mes.MeshType = meshtype
  213.     mes.Scale = scale
  214.     if meshtype == "FileMesh" then
  215.       mes.MeshId = meshid
  216.     end
  217.     mes.Parent = parent
  218.     return mes
  219.   end
  220.   function makeweld(parent, p0, p1, c0, c1)
  221.     local wel = Instance.new("Weld")
  222.     wel.Part0 = p0
  223.     wel.Part1 = p1
  224.     wel.C0 = c0
  225.     if c1 ~= nil then
  226.       wel.C1 = c1
  227.     end
  228.     wel.Parent = parent
  229.     return wel
  230.   end
  231.   local lauf1 = Instance.new("Sound")
  232.   lauf1.SoundId = "rbxassetid://137473066"
  233.   lauf1.Volume = 1.5
  234.   lauf1.Pitch = 2
  235.   lauf1.Parent = hrp
  236.   function lerpz(joint, prop, cfrmz, alp)
  237.     joint[prop] = joint[prop]:lerp(cfrmz, alp)
  238.   end
  239.   lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  240.   lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  241.   lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  242.   lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  243.   lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  244.   lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  245.   lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  246.   lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  247.   lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  248.   lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  249.   function resetlerp()
  250.     RJ.C0 = RJC0
  251.     RJ.C1 = RJC1
  252.     N.C0 = NC0
  253.     N.C1 = NC1
  254.     RS.C0 = RSC0
  255.     RS.C1 = RSC1
  256.     LS.C0 = LSC0
  257.     LS.C1 = LSC1
  258.     RH.C0 = RHC0
  259.     RH.C1 = RHC1
  260.     LH.C0 = LHC0
  261.     LH.C1 = LHC1
  262.   end
  263.   function test()
  264.     if selected == false or activu == true then
  265.       return
  266.     end
  267.     if ragged == false then
  268.       ragged = true
  269.       human.PlatformStand = true
  270.       if rarm and tors:FindFirstChild("Right Shoulder") then
  271.         tors:FindFirstChild("Right Shoulder"):Destroy()
  272.         makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder")
  273.         maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0))
  274.       end
  275.       if larm and tors:FindFirstChild("Left Shoulder") then
  276.         tors:FindFirstChild("Left Shoulder"):Destroy()
  277.         makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder")
  278.         maketouchy(larm, larm, CFrame.new(0, 0.5, 0))
  279.       end
  280.       if rleg and tors:FindFirstChild("Right Hip") then
  281.         tors:FindFirstChild("Right Hip"):Destroy()
  282.         makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip")
  283.         maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0))
  284.       end
  285.       if lleg and tors:FindFirstChild("Left Hip") then
  286.         tors:FindFirstChild("Left Hip"):Destroy()
  287.         makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip")
  288.         maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0))
  289.       end
  290.     elseif ragged == true then
  291.       ragged = false
  292.       human.Jump = true
  293.       if rarm and tors:FindFirstChild("Right Shoulder") then
  294.         tors:FindFirstChild("Right Shoulder"):Destroy()
  295.         makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder")
  296.         rarm:FindFirstChild("touchy"):Destroy()
  297.       end
  298.       if larm and tors:FindFirstChild("Left Shoulder") then
  299.         tors:FindFirstChild("Left Shoulder"):Destroy()
  300.         makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder")
  301.         larm:FindFirstChild("touchy"):Destroy()
  302.       end
  303.       if rleg and tors:FindFirstChild("Right Hip") then
  304.         tors:FindFirstChild("Right Hip"):Destroy()
  305.         makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip")
  306.         rleg:FindFirstChild("touchy"):Destroy()
  307.       end
  308.       if lleg and tors:FindFirstChild("Left Hip") then
  309.         tors:FindFirstChild("Left Hip"):Destroy()
  310.         makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip")
  311.         lleg:FindFirstChild("touchy"):Destroy()
  312.       end
  313.       RS = tors:FindFirstChild("Right Shoulder")
  314.       LS = tors:FindFirstChild("Left Shoulder")
  315.       RH = tors:FindFirstChild("Right Hip")
  316.       LH = tors:FindFirstChild("Left Hip")
  317.       RJ = hrp:FindFirstChild("RootJoint")
  318.       N = tors:FindFirstChild("Neck")
  319.     end
  320.   end
  321.   function makegloo(paren, co, ci, parto, parti, nam)
  322.     local gloo = Instance.new("Glue")
  323.     gloo.Name = nam
  324.     gloo.C0 = co
  325.     gloo.C1 = ci
  326.     gloo.Part0 = parto
  327.     gloo.Part1 = parti
  328.     gloo.Parent = paren
  329.   end
  330.   function makejoint(paren, co, ci, parto, parti, nam)
  331.     local gloo = Instance.new("Motor6D")
  332.     gloo.Name = nam
  333.     gloo.C0 = co
  334.     gloo.C1 = ci
  335.     gloo.Part0 = parto
  336.     gloo.Part1 = parti
  337.     gloo.Parent = paren
  338.   end
  339.   function maketouchy(parent, limb, cframe)
  340.     local pr = Instance.new("Part")
  341.     pr.Name = "touchy"
  342.     pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  343.     pr.Transparency = 1
  344.     pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5)
  345.     pr.CanCollide = true
  346.     pr.Anchored = false
  347.     pr.Parent = parent
  348.     local w = Instance.new("Weld")
  349.     w.Part0 = pr
  350.     w.Part1 = limb
  351.     w.C0 = cframe
  352.     w.Parent = pr
  353.   end
  354.   local clibat, spec
  355.   local dipperhat = chr:FindFirstChild("DXD_DipperHat")
  356.   local dipperrot
  357.   if dipperhat then
  358.     dipperrot = dipperhat.Handle.HatAttachment.Rotation
  359.   end
  360.   function bat()
  361.     if selected == false or activu == true then
  362.       return
  363.     end
  364.     if batting == false then
  365.       batting = true
  366.       do
  367.         local bmod = Instance.new("Model")
  368.         bmod.Name = "bmodel"
  369.         bmod.Parent = chr
  370.         local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  371.         local hmes = makemesh("Head", Vector3.new(2, 9, 2), nil, hnd)
  372.         local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil)
  373.         local pt1 = makepart("Bright yellow", "pt1", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  374.         local p1m = makemesh("Head", Vector3.new(2.5, 2.5, 2.5), nil, pt1)
  375.         local p1w = makeweld(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), nil)
  376.         local pt2 = makepart("Bright yellow", "pt2", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  377.         local p2m = makemesh("FileMesh", Vector3.new(0.375, 0.375, 0.375), "rbxassetid://250640098", pt2)
  378.         p2m.TextureId = "rbxassetid://250639536"
  379.         local p2w = makeweld(pt2, pt2, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), nil)
  380.         local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  381.         local p3m = makemesh("Head", Vector3.new(2.5, 2.5, 2.5), nil, pt3)
  382.         local p3w = makeweld(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), nil)
  383.         local pt4 = makepart("Bright yellow", "pt4", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  384.         local p4m = makemesh("FileMesh", Vector3.new(0.025, 0.025, 0.025), "rbxassetid://703458158", pt4)
  385.         local p4w = makeweld(pt4, pt4, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), nil)
  386.         local pt5 = makepart("Bright yellow", "pt5", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  387.         local p5m = makemesh("Cylinder", Vector3.new(21.5, 6.25, 6.25), nil, pt5)
  388.         local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), nil)
  389.         local pt6 = makepart("Bright yellow", "pt6", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  390.         local p6m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt6)
  391.         local p6w = makeweld(pt6, pt6, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), nil)
  392.         local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, rarm.CFrame)
  393.         local p7m = makemesh("FileMesh", Vector3.new(0.95, 0.95, 0.95), "rbxassetid://272942659", pt7)
  394.         p7m.TextureId = "rbxassetid://272942750"
  395.         local p7w = makeweld(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), nil)
  396.         local swingwoo = Instance.new("Sound")
  397.         swingwoo.SoundId = "rbxassetid://10209640"
  398.         swingwoo.Pitch = rd2(10, 11) / 10
  399.         swingwoo.Name = "sweae"
  400.         swingwoo.Volume = 1
  401.         swingwoo.Parent = hrp
  402.         clibat = tool.Activated:connect(function()
  403.           if selected == false or activu == true or ragged == true then
  404.             return
  405.           end
  406.           activu = true
  407.           for _ = 1, 5 do
  408.             swait()
  409.             lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
  410.             lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  411.             lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
  412.             lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  413.             lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
  414.             lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  415.             lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  416.             lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  417.             lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
  418.             lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  419.           end
  420.           local bon = Instance.new("Sound")
  421.           bon.SoundId = "rbxassetid://135436482"
  422.           bon.Pitch = rd2(10, 12) / 10
  423.           bon.Volume = 1
  424.           bon.Parent = hrp
  425.           game.Debris:AddItem(bon, 1)
  426.           bon:Play()
  427.           swingwoo:Play()
  428.           for X = 1, 5 do
  429.             swait()
  430.             if X > 1 then
  431.               hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40)))
  432.             end
  433.             lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
  434.             lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  435.             lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
  436.             lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  437.             lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  438.             lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  439.             lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
  440.             lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  441.             lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
  442.             lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  443.           end
  444.           activu = false
  445.         end)
  446.         spec = mouse.KeyDown:connect(function(keya)
  447.           if selected == false or activu == true or ragged == true then
  448.             return
  449.           end
  450.           if keya == "e" then
  451.             activu = true
  452.             local speed = human.WalkSpeed
  453.             human.WalkSpeed = 0
  454.             human:SetStateEnabled(3, false)
  455.             local function expa()
  456.               local sond = Instance.new("Sound")
  457.               sond.Volume = 1.25
  458.               sond.Pitch = 1
  459.               sond.EmitterSize = 15
  460.               sond.SoundId = "rbxassetid://315152748"
  461.               sond.Parent = pt6
  462.               sond:Play()
  463.               for _ = 1, 3 do
  464.                 swait()
  465.                 hmes.Scale = hmes.Scale:lerp(Vector3.new(6, 27, 6), 0.7)
  466.                 p1m.Scale = p1m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7)
  467.                 p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), 0.7)
  468.                 p2m.Scale = p2m.Scale:lerp(Vector3.new(1.125, 1.125, 1.125), 0.7)
  469.                 p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 3.6750000000000003, 0.22499999999999998), 0.7)
  470.                 p3m.Scale = p3m.Scale:lerp(Vector3.new(7.5, 7.5, 7.5), 0.7)
  471.                 p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), 0.7)
  472.                 p4m.Scale = p4m.Scale:lerp(Vector3.new(0.07500000000000001, 0.07500000000000001, 0.07500000000000001), 0.7)
  473.                 p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -3.75, 0), 0.7)
  474.                 p5m.Scale = p5m.Scale:lerp(Vector3.new(64.5, 18.75, 18.75), 0.7)
  475.                 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -12.075000000000001, 0), 0.7)
  476.                 p6m.Scale = p6m.Scale:lerp(Vector3.new(19.5, 19.5, 19.5), 0.7)
  477.                 p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -18.15, 0), 0.7)
  478.                 p7m.Scale = p7m.Scale:lerp(Vector3.new(2.8499999999999996, 2.8499999999999996, 2.8499999999999996), 0.7)
  479.                 p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -18.6, 0), 0.7)
  480.               end
  481.               for _ = 1, 5 do
  482.                 swait()
  483.                 hmes.Scale = hmes.Scale:lerp(Vector3.new(4, 18, 4), 0.7)
  484.                 p1m.Scale = p1m.Scale:lerp(Vector3.new(5, 5, 5), 0.7)
  485.                 p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 2, 0), 0.7)
  486.                 p2m.Scale = p2m.Scale:lerp(Vector3.new(0.75, 0.75, 0.75), 0.7)
  487.                 p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 2.45, 0.15), 0.7)
  488.                 p3m.Scale = p3m.Scale:lerp(Vector3.new(5, 5, 5), 0.7)
  489.                 p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -2, 0), 0.7)
  490.                 p4m.Scale = p4m.Scale:lerp(Vector3.new(0.05, 0.05, 0.05), 0.7)
  491.                 p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -2.5, 0), 0.7)
  492.                 p5m.Scale = p5m.Scale:lerp(Vector3.new(43, 12.5, 12.5), 0.7)
  493.                 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -8.05, 0), 0.7)
  494.                 p6m.Scale = p6m.Scale:lerp(Vector3.new(13, 13, 13), 0.7)
  495.                 p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -12.1, 0), 0.7)
  496.                 p7m.Scale = p7m.Scale:lerp(Vector3.new(1.9, 1.9, 1.9), 0.7)
  497.                 p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -12.4, 0), 0.7)
  498.               end
  499.               sond.Pitch = 0.75
  500.               sond:Play()
  501.               for _ = 1, 3 do
  502.                 swait()
  503.                 hmes.Scale = hmes.Scale:lerp(Vector3.new(12, 54, 12), 0.7)
  504.                 p1m.Scale = p1m.Scale:lerp(Vector3.new(15, 15, 15), 0.7)
  505.                 p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 6, 0), 0.7)
  506.                 p2m.Scale = p2m.Scale:lerp(Vector3.new(2.25, 2.25, 2.25), 0.7)
  507.                 p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 7.3500000000000005, 0.44999999999999996), 0.7)
  508.                 p3m.Scale = p3m.Scale:lerp(Vector3.new(15, 15, 15), 0.7)
  509.                 p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6, 0), 0.7)
  510.                 p4m.Scale = p4m.Scale:lerp(Vector3.new(0.15000000000000002, 0.15000000000000002, 0.15000000000000002), 0.7)
  511.                 p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -7.5, 0), 0.7)
  512.                 p5m.Scale = p5m.Scale:lerp(Vector3.new(129, 37.5, 37.5), 0.7)
  513.                 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -24.150000000000002, 0), 0.7)
  514.                 p6m.Scale = p6m.Scale:lerp(Vector3.new(39, 39, 39), 0.7)
  515.                 p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -36.3, 0), 0.7)
  516.                 p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 5.699999999999999, 5.699999999999999), 0.7)
  517.                 p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -37.2, 0), 0.7)
  518.               end
  519.               for _ = 1, 5 do
  520.                 swait()
  521.                 hmes.Scale = hmes.Scale:lerp(Vector3.new(8, 36, 8), 0.7)
  522.                 p1m.Scale = p1m.Scale:lerp(Vector3.new(10, 10, 10), 0.7)
  523.                 p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 4, 0), 0.7)
  524.                 p2m.Scale = p2m.Scale:lerp(Vector3.new(1.5, 1.5, 1.5), 0.7)
  525.                 p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 4.9, 0.3), 0.7)
  526.                 p3m.Scale = p3m.Scale:lerp(Vector3.new(10, 10, 10), 0.7)
  527.                 p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -4, 0), 0.7)
  528.                 p4m.Scale = p4m.Scale:lerp(Vector3.new(0.1, 0.1, 0.1), 0.7)
  529.                 p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -5, 0), 0.7)
  530.                 p5m.Scale = p5m.Scale:lerp(Vector3.new(86, 25, 25), 0.7)
  531.                 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -16.1, 0), 0.7)
  532.                 p6m.Scale = p6m.Scale:lerp(Vector3.new(26, 26, 26), 0.7)
  533.                 p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -24.2, 0), 0.7)
  534.                 p7m.Scale = p7m.Scale:lerp(Vector3.new(3.8, 3.8, 3.8), 0.7)
  535.                 p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -24.8, 0), 0.7)
  536.               end
  537.               sond.Pitch = 0.4
  538.               sond:Play()
  539.               game.Debris:AddItem(sond, 2)
  540.               for _ = 1, 3 do
  541.                 swait()
  542.                 hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7)
  543.                 p1m.Scale = p1m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7)
  544.                 p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 9, 0), 0.7)
  545.                 p2m.Scale = p2m.Scale:lerp(Vector3.new(3.375, 3.375, 3.375), 0.7)
  546.                 p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 11.025, 0.6749999999999999), 0.7)
  547.                 p3m.Scale = p3m.Scale:lerp(Vector3.new(22.5, 22.5, 22.5), 0.7)
  548.                 p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -9, 0), 0.7)
  549.                 p4m.Scale = p4m.Scale:lerp(Vector3.new(0.225, 0.225, 0.225), 0.7)
  550.                 p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -11.25, 0), 0.7)
  551.                 p5m.Scale = p5m.Scale:lerp(Vector3.new(193.5, 56.25, 56.25), 0.7)
  552.                 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -36.225, 0), 0.7)
  553.                 p6m.Scale = p6m.Scale:lerp(Vector3.new(58.5, 58.5, 58.5), 0.7)
  554.                 p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -54.449999999999996, 0), 0.7)
  555.                 p7m.Scale = p7m.Scale:lerp(Vector3.new(5.699999999999999, 8.549999999999999, 8.549999999999999), 0.7)
  556.                 p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -55.800000000000004, 0), 0.7)
  557.               end
  558.               for _ = 1, 5 do
  559.                 swait()
  560.                 hmes.Scale = hmes.Scale:lerp(Vector3.new(14, 63, 14), 0.7)
  561.                 p1m.Scale = p1m.Scale:lerp(Vector3.new(17.5, 17.5, 17.5), 0.7)
  562.                 p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 7, 0), 0.7)
  563.                 p2m.Scale = p2m.Scale:lerp(Vector3.new(2.625, 2.625, 2.625), 0.7)
  564.                 p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 8.575000000000001, 0.525), 0.7)
  565.                 p3m.Scale = p3m.Scale:lerp(Vector3.new(17.5, 17.5, 17.5), 0.7)
  566.                 p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -7, 0), 0.7)
  567.                 p4m.Scale = p4m.Scale:lerp(Vector3.new(0.17500000000000002, 0.17500000000000002, 0.17500000000000002), 0.7)
  568.                 p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -8.75, 0), 0.7)
  569.                 p5m.Scale = p5m.Scale:lerp(Vector3.new(150.5, 43.75, 43.75), 0.7)
  570.                 p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -28.175000000000004, 0), 0.7)
  571.                 p6m.Scale = p6m.Scale:lerp(Vector3.new(45.5, 45.5, 45.5), 0.7)
  572.                 p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -42.35, 0), 0.7)
  573.                 p7m.Scale = p7m.Scale:lerp(Vector3.new(6.6499999999999995, 6.6499999999999995, 6.6499999999999995), 0.7)
  574.                 p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -43.4, 0), 0.7)
  575.               end
  576.             end
  577.             for _ = 1, 9 do
  578.               swait()
  579.               lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  580.               lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  581.               lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  582.               lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  583.               lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5)
  584.               if dipperhat then
  585.                 dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3)
  586.               end
  587.               lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  588.               lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  589.               lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  590.               lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  591.               lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  592.             end
  593.             for _ = 1, 9 do
  594.               swait()
  595.               lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5)
  596.               lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5)
  597.               lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5)
  598.               lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  599.               lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3)
  600.               if dipperhat then
  601.                 dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3)
  602.               end
  603.               lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  604.               lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5)
  605.               lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  606.               lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5)
  607.               lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  608.             end
  609.             for _ = 1, 30 do
  610.               swait()
  611.               lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2)
  612.               lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2)
  613.               lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.2)
  614.               lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  615.               lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2)
  616.               lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  617.               lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2)
  618.               lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  619.               lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2)
  620.               lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  621.             end
  622.             expa()
  623.             for O = 1, 10 do
  624.               swait()
  625.               lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01)
  626.               lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01)
  627.               lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.001 + O * 0.01)
  628.               lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  629.               lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01)
  630.               lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  631.               lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01)
  632.               lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  633.               lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01)
  634.               lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01)
  635.             end
  636.             local whoooo = Instance.new("Sound")
  637.             whoooo.Volume = 3
  638.             whoooo.TimePosition = 0.15
  639.             whoooo.Pitch = 0.5
  640.             whoooo.SoundId = "rbxassetid://320557353"
  641.             whoooo.Parent = pt5
  642.             whoooo:Play()
  643.             game.Debris:AddItem(whoooo, 2)
  644.             for O = 1, 6 do
  645.               swait()
  646.               hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -100 + Vector3.new(0, 50, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160)))
  647.               lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05)
  648.               lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05)
  649.               lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(20), rd(20)), 0.1 + O * 0.05)
  650.               lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  651.               lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05)
  652.               lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  653.               lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05)
  654.               lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  655.               lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05)
  656.               lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05)
  657.             end
  658.             for O = 1, 13 do
  659.               swait()
  660.               hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075)
  661.               p1m.Scale = p1m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075)
  662.               p1w.C0 = p1w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, 1, 0), 0.05 + O * 0.075)
  663.               p2m.Scale = p2m.Scale:lerp(Vector3.new(0.375, 0.375, 0.375), 0.05 + O * 0.075)
  664.               p2w.C0 = p2w.C0:lerp(ang(rd(180), rd(180), rd(0)) * cf(0, 1.225, 0.075), 0.05 + O * 0.075)
  665.               p3m.Scale = p3m.Scale:lerp(Vector3.new(2.5, 2.5, 2.5), 0.05 + O * 0.075)
  666.               p3w.C0 = p3w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -1, 0), 0.05 + O * 0.075)
  667.               p4m.Scale = p4m.Scale:lerp(Vector3.new(0.025, 0.025, 0.025), 0.05 + O * 0.075)
  668.               p4w.C0 = p4w.C0:lerp(ang(rd(180), rd(0), rd(0)) * cf(0, -1.25, 0), 0.05 + O * 0.075)
  669.               p5m.Scale = p5m.Scale:lerp(Vector3.new(21.5, 6.25, 6.25), 0.05 + O * 0.075)
  670.               p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(0), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075)
  671.               p6m.Scale = p6m.Scale:lerp(Vector3.new(6.5, 6.5, 6.5), 0.05 + O * 0.075)
  672.               p6w.C0 = p6w.C0:lerp(ang(rd(0), rd(0), rd(0)) * cf(0, -6.05, 0), 0.05 + O * 0.075)
  673.               p7m.Scale = p7m.Scale:lerp(Vector3.new(0.95, 0.95, 0.95), 0.05 + O * 0.075)
  674.               p7w.C0 = p7w.C0:lerp(ang(rd(0), rd(90), rd(0)) * cf(0, -6.2, 0), 0.05 + O * 0.075)
  675.               lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075)
  676.               lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075)
  677.               lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075)
  678.               lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  679.               lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075)
  680.               lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  681.               lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075)
  682.               lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  683.               lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075)
  684.               lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075)
  685.             end
  686.             if dipperhat then
  687.               dipperhat.Handle.HatAttachment.Rotation = dipperrot
  688.             end
  689.             human.WalkSpeed = speed
  690.             human:SetStateEnabled(3, true)
  691.             activu = false
  692.           end
  693.           if keya == "q" then
  694.             activu = true
  695.             do
  696.               local checkkey = true
  697.               local keyingup = mouse.KeyUp:connect(function(xzx)
  698.                 if xzx == "q" then
  699.                   checkkey = false
  700.                 end
  701.               end)
  702.               repeat
  703.                 for _ = 1, 2 do
  704.                   swait()
  705.                   lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7)
  706.                   lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  707.                   lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7)
  708.                   lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  709.                   lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7)
  710.                   lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  711.                   lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  712.                   lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  713.                   lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7)
  714.                   lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  715.                 end
  716.                 swingwoo:Play()
  717.                 for T = 1, 2 do
  718.                   swait()
  719.                   if T == 2 then
  720.                     hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
  721.                   end
  722.                   lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7)
  723.                   lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  724.                   lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7)
  725.                   lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  726.                   lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  727.                   lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  728.                   lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7)
  729.                   lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  730.                   lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7)
  731.                   lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  732.                 end
  733.                 for _ = 1, 2 do
  734.                   swait()
  735.                   lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7)
  736.                   lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  737.                   lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7)
  738.                   lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  739.                   lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7)
  740.                   lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  741.                   lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  742.                   lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  743.                   lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7)
  744.                   lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  745.                 end
  746.                 swingwoo:Play()
  747.                 for T = 1, 2 do
  748.                   swait()
  749.                   if T == 2 then
  750.                     hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10)))
  751.                   end
  752.                   lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7)
  753.                   lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7)
  754.                   lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7)
  755.                   lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  756.                   lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7)
  757.                   lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  758.                   lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7)
  759.                   lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  760.                   lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7)
  761.                   lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7)
  762.                 end
  763.               until not checkkey
  764.               keyingup:Disconnect()
  765.               activu = false
  766.             end
  767.           end
  768.           if keya == "f" then
  769.             activu = true
  770.             do
  771.               local speed = human.WalkSpeed
  772.               human.WalkSpeed = 2
  773.               human:SetStateEnabled(3, false)
  774.               local checkkey = true
  775.               local chargecounter = 0
  776.               local keyingup = mouse.KeyUp:connect(function(xzx)
  777.                 if xzx == "f" then
  778.                   checkkey = false
  779.                 end
  780.               end)
  781.               local firederp
  782.               for _ = 1, 8 do
  783.                 swait()
  784.                 hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
  785.                 lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5)
  786.                 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5)
  787.                 lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5)
  788.                 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  789.                 lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5)
  790.                 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5)
  791.                 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5)
  792.                 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  793.                 lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5)
  794.                 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5)
  795.               end
  796.               repeat
  797.                 swait()
  798.                 chargecounter = chargecounter + 1
  799.                 lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.019)
  800.                 lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.019)
  801.                 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.019)
  802.                 if chargecounter > 30 and firederp == nil then
  803.                   firederp = Instance.new("Fire")
  804.                   firederp.Parent = pt5
  805.                 end
  806.               until not checkkey or chargecounter > 50
  807.               swingwoo:Play()
  808.               for U = 1, 10 do
  809.                 swait()
  810.                 if U < 3 then
  811.                   hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 3) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 25)))
  812.                   if chargecounter > 30 then
  813.                     tagexplode(pt5, 5, 1)
  814.                   end
  815.                 end
  816.                 hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6)
  817.                 lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6)
  818.                 lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6)
  819.                 lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4)
  820.                 lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4)
  821.                 lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4)
  822.                 lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4)
  823.                 lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6)
  824.                 lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
  825.                 lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6)
  826.                 lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6)
  827.               end
  828.               if firederp then
  829.                 firederp:Destroy()
  830.               end
  831.               swait(10)
  832.               hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0)
  833.               keyingup:Disconnect()
  834.               human.WalkSpeed = speed
  835.               human:SetStateEnabled(3, true)
  836.               activu = false
  837.             end
  838.           end
  839.         end)
  840.       end
  841.     elseif batting == true then
  842.       batting = false
  843.       clibat:Disconnect()
  844.       spec:Disconnect()
  845.       hrp.sweae:Destroy()
  846.       local batmod = chr:FindFirstChild("bmodel")
  847.       batmod.hnd.Weld:Destroy()
  848.       batmod.PrimaryPart = batmod.hnd
  849.       batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1))
  850.       for _, A in pairs(batmod:GetChildren()) do
  851.         if A.ClassName == "Part" then
  852.           A.CanCollide = true
  853.           A.Anchored = false
  854.         end
  855.       end
  856.       batmod.Parent = workspace
  857.       game.Debris:AddItem(batmod, 8)
  858.     end
  859.   end
  860.   local movin = false
  861.   local cliham, hamspec
  862.   function ham()
  863.     if batting == false then
  864.       batting = true
  865.       do
  866.         local bmod = Instance.new("Model")
  867.         bmod.Name = "bmodel"
  868.         bmod.Parent = chr
  869.         local makemotor = function(parent, p0, p1, c0, c1)
  870.           local wel = Instance.new("Motor6D")
  871.           wel.Part0 = p0
  872.           wel.Part1 = p1
  873.           wel.C0 = c0
  874.           if c1 ~= nil then
  875.             wel.C1 = c1
  876.           end
  877.           wel.Parent = parent
  878.           return wel
  879.         end
  880.         local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  881.         hnd.Anchored = true
  882.         local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd)
  883.         movin = true
  884.         hnd.CFrame = hrp.CFrame
  885.         coroutine.resume(coroutine.create(function()
  886.           while hnd.Anchored == true do
  887.             swait()
  888.             if movin then
  889.               hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65)
  890.             end
  891.           end
  892.         end))
  893.         local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  894.         local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1)
  895.         local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil)
  896.         local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  897.         local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2)
  898.         local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil)
  899.         local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  900.         local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3)
  901.         local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil)
  902.         local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  903.         local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4)
  904.         p4m.TextureId = "rbxassetid://250639536"
  905.         local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil)
  906.         local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  907.         local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5)
  908.         local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil)
  909.         local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  910.         local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6)
  911.         local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil)
  912.         local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  913.         local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7)
  914.         local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil)
  915.         local hdec1 = Instance.new("Decal")
  916.         hdec1.Texture = "rbxasset://textures/face.png"
  917.         hdec1.Face = "Front"
  918.         hdec1.Parent = pt7
  919.         local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  920.         local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8)
  921.         local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil)
  922.         local hdec2 = Instance.new("Decal")
  923.         hdec2.Texture = "rbxasset://textures/face.png"
  924.         hdec2.Face = "Front"
  925.         hdec2.Parent = pt8
  926.         local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  927.         local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9)
  928.         local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil)
  929.         p9m.TextureId = "rbxassetid://272942750"
  930.         local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  931.         local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10)
  932.         local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil)
  933.         local hdec3 = Instance.new("Decal")
  934.         hdec3.Texture = "rbxasset://textures/face.png"
  935.         hdec3.Face = "Front"
  936.         hdec3.Parent = pt10
  937.         local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  938.         local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11)
  939.         local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil)
  940.         local hdec4 = Instance.new("Decal")
  941.         hdec4.Texture = "rbxasset://textures/face.png"
  942.         hdec4.Face = "Front"
  943.         hdec4.Parent = pt11
  944.         local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame)
  945.         local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12)
  946.         local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil)
  947.         local hdec5 = Instance.new("Decal")
  948.         hdec5.Texture = "rbxasset://textures/face.png"
  949.         hdec5.Face = "Front"
  950.         hdec5.Parent = pt12
  951.         local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame)
  952.         local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13)
  953.         local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil)
  954.         local hdec6 = Instance.new("Decal")
  955.         hdec6.Texture = "rbxasset://textures/face.png"
  956.         hdec6.Face = "Front"
  957.         hdec6.Parent = pt13
  958.         cliham = tool.Activated:connect(function()
  959.           if selected == false or activu == true or ragged == true then
  960.             return
  961.           end
  962.           activu = true
  963.           movin = false
  964.           for B = 1, 20 do
  965.             swait()
  966.             lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.4)
  967.             lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4)
  968.             lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4)
  969.             lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  970.             lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4)
  971.             lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  972.             lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4)
  973.             lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  974.             lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(10)), 0.4)
  975.             lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4)
  976.             hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045)
  977.           end
  978.           for B = 1, 30 do
  979.             swait()
  980.             lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80)
  981.             lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80)
  982.             lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80)
  983.             lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  984.             lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80)
  985.             lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  986.             lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80)
  987.             lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  988.             lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80)
  989.             lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80)
  990.             hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  991.           end
  992.           for B = 1, 7 do
  993.             swait()
  994.             lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15)
  995.             lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15)
  996.             lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15)
  997.             lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  998.             lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15)
  999.             lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  1000.             lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15)
  1001.             lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  1002.             lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15)
  1003.             lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15)
  1004.             hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  1005.           end
  1006.           for B = 1, 4 do
  1007.             swait()
  1008.             lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1)
  1009.             lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1)
  1010.             lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1)
  1011.             lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1012.             lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1)
  1013.             lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1014.             lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1)
  1015.             lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1016.             lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1)
  1017.             lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1)
  1018.             hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1)
  1019.           end
  1020.           swait(15)
  1021.           movin = true
  1022.           activu = false
  1023.         end)
  1024.       end
  1025.     elseif batting == true then
  1026.       batting = false
  1027.       cliham:Disconnect()
  1028.       local badevz = chr:FindFirstChild("bmodel")
  1029.       badevz.PrimaryPart = badevz.hnd
  1030.       for _, A in pairs(badevz:GetChildren()) do
  1031.         if A.ClassName == "Part" then
  1032.           A.CanCollide = true
  1033.           A.Anchored = false
  1034.         end
  1035.       end
  1036.       movin = false
  1037.       badevz.Parent = workspace
  1038.       badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0))
  1039.       game.Debris:AddItem(badevz, 8)
  1040.     end
  1041.   end
  1042.   game:GetService("ContentProvider"):Preload("rbxassetid://725969678")
  1043.   function lauf()
  1044.     if selected == false or activu == true then
  1045.       return
  1046.     end
  1047.     lauf1:Play()
  1048.   end
  1049.   function makenoob(cfrem, scalo, rags)
  1050.     nscale.Value = scalo
  1051.     local md = Instance.new("Model")
  1052.     md.Name = "Noob"
  1053.     md.Parent = workspace
  1054.     local hu = Instance.new("Humanoid")
  1055.     hu.RigType = "R6"
  1056.     hu.MaxHealth = 100 * scalo
  1057.     hu.Health = 100 * scalo
  1058.     hu.Parent = md
  1059.     local anm = Instance.new("Animator")
  1060.     anm.Parent = hu
  1061.     hu.PlatformStand = true
  1062.     local light = function(part)
  1063.       part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5)
  1064.     end
  1065.     local hd = Instance.new("Part")
  1066.     hd.Name = "Head"
  1067.     hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value)
  1068.     hd.TopSurface = "Smooth"
  1069.     hd.BottomSurface = "Inlet"
  1070.     hd.Locked = true
  1071.     hd.BrickColor = BrickColor.new("Bright yellow")
  1072.     hd.CanCollide = true
  1073.     hd.Anchored = false
  1074.     light(hd)
  1075.     hd.Parent = md
  1076.     local hm = Instance.new("SpecialMesh")
  1077.     hm.MeshType = "Head"
  1078.     hm.Scale = Vector3.new(1.25, 1.25, 1.25)
  1079.     hm.Parent = hd
  1080.     local hf = Instance.new("Decal")
  1081.     hf.Texture = "rbxasset://textures/face.png"
  1082.     local gen = math.random(1, 40)
  1083.     if gen == 3 then
  1084.       hf.Texture = "rbxassetid://260884109"
  1085.     end
  1086.     if gen == 8 then
  1087.       hf.Texture = "rbxassetid://260569492"
  1088.     end
  1089.     if gen == 12 then
  1090.       hf.Texture = "rbxassetid://259580505"
  1091.     end
  1092.     if gen == 16 then
  1093.       hf.Texture = "rbxassetid://259579232"
  1094.     end
  1095.     if gen == 24 then
  1096.       hf.Texture = "rbxassetid://259571525"
  1097.     end
  1098.     if gen == 28 then
  1099.       hf.Texture = "rbxassetid://258283210"
  1100.     end
  1101.     if gen == 32 then
  1102.       hf.Texture = "rbxassetid://258940032"
  1103.     end
  1104.     if gen == 38 then
  1105.       hf.Texture = "rbxassetid://673220970"
  1106.       hf.Color3 = Color3.new(0, 0, 0)
  1107.     end
  1108.     hf.Face = "Front"
  1109.     hf.Parent = hd
  1110.     local hrpa = Instance.new("Part")
  1111.     hrpa.Name = "HumanoidRootPart"
  1112.     hrpa.TopSurface, hrpa.BottomSurface = 0, 0
  1113.     hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1114.     hrpa.Transparency = 1
  1115.     hrpa.CanCollide = false
  1116.     hrpa.Locked = true
  1117.     light(hrpa)
  1118.     hrpa.Parent = md
  1119.     local tagbomb = Instance.new("BoolValue")
  1120.     tagbomb.Name = "tagbomb"
  1121.     tagbomb.Value = false
  1122.     tagbomb.Parent = hrpa
  1123.     local learm = Instance.new("Part")
  1124.     learm.Name = "Left Arm"
  1125.     learm.BrickColor = BrickColor.new("Bright yellow")
  1126.     learm.CanCollide = false
  1127.     learm.Locked = true
  1128.     learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1129.     light(learm)
  1130.     learm.Parent = md
  1131.     local riarm = Instance.new("Part")
  1132.     riarm.Name = "Right Arm"
  1133.     riarm.BrickColor = BrickColor.new("Bright yellow")
  1134.     riarm.CanCollide = false
  1135.     riarm.Locked = true
  1136.     light(riarm)
  1137.     riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1138.     riarm.Parent = md
  1139.     local leleg = Instance.new("Part")
  1140.     leleg.Name = "Left Leg"
  1141.     leleg.BrickColor = BrickColor.new("Br. yellowish green")
  1142.     leleg.CanCollide = false
  1143.     leleg.Locked = true
  1144.     light(leleg)
  1145.     leleg.BottomSurface = 0
  1146.     leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1147.     leleg.Parent = md
  1148.     local rileg = Instance.new("Part")
  1149.     rileg.Name = "Right Leg"
  1150.     rileg.BrickColor = BrickColor.new("Br. yellowish green")
  1151.     rileg.CanCollide = false
  1152.     rileg.Locked = true
  1153.     light(rileg)
  1154.     rileg.BottomSurface = 0
  1155.     rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1156.     rileg.Parent = md
  1157.     local tor = Instance.new("Part")
  1158.     tor.Name = "Torso"
  1159.     tor.BrickColor = BrickColor.new("Bright blue")
  1160.     tor.Locked = true
  1161.     light(tor)
  1162.     tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value)
  1163.     tor.LeftSurface, tor.RightSurface = "Weld", "Weld"
  1164.     tor.Parent = md
  1165.     md.PrimaryPart = hrpa
  1166.     md:SetPrimaryPartCFrame(cfrem)
  1167.     md:makeJoints()
  1168.     makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint")
  1169.     makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck")
  1170.     if rags == true then
  1171.       makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  1172.       makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  1173.       makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  1174.       makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  1175.       maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0))
  1176.       maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0))
  1177.       maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0))
  1178.       maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0))
  1179.     elseif rags == false then
  1180.       makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder")
  1181.       makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder")
  1182.       makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip")
  1183.       makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip")
  1184.       hu.PlatformStand = false
  1185.     end
  1186.     nscale.Value = 1
  1187.     hu.Touched:connect(function(tpart, uwot)
  1188.       if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then
  1189.         tagbomb.Value = false
  1190.         hu.Health = 0
  1191.         local derp = Instance.new("Explosion")
  1192.         derp.BlastPressure = 200
  1193.         derp.BlastRadius = 8
  1194.         derp.DestroyJointRadiusPercent = 0
  1195.         derp.ExplosionType = 2
  1196.         derp.Visible = true
  1197.         derp.Position = uwot.Position - Vector3.new(0, 0.5, 0)
  1198.         derp.Parent = workspace
  1199.         game.Debris:AddItem(md, 8)
  1200.       end
  1201.     end)
  1202.     return md
  1203.   end
  1204.   function makecircle(cfrem, scalo)
  1205.     local mcir1 = Instance.new("Part")
  1206.     mcir1.Anchored = true
  1207.     mcir1.CanCollide = false
  1208.     mcir1.Size = Vector3.new(0.2, 0.2, 0.2)
  1209.     mcir1.Transparency = 1
  1210.     mcir1.CFrame = cfrem
  1211.     mcir1.Parent = modz
  1212.     game.Debris:AddItem(mcir1, 8)
  1213.     local d1 = Instance.new("Decal")
  1214.     d1.Texture = "rbxassetid://602615043"
  1215.     d1.Face = "Front"
  1216.     d1.Parent = mcir1
  1217.     local d2 = Instance.new("Decal")
  1218.     d2.Texture = "rbxassetid://602617463"
  1219.     d2.Face = "Back"
  1220.     d2.Parent = mcir1
  1221.     local bme = Instance.new("BlockMesh")
  1222.     bme.Parent = mcir1
  1223.     for _ = 1, 9 do
  1224.       swait()
  1225.       bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3)
  1226.     end
  1227.     coroutine.resume(coroutine.create(function()
  1228.       swait(15)
  1229.       for _ = 1, 12 do
  1230.         swait()
  1231.         d1.Transparency = d1.Transparency + 0.08
  1232.         d2.Transparency = d2.Transparency + 0.08
  1233.       end
  1234.       mcir1:Destroy()
  1235.     end))
  1236.     return mcir1
  1237.   end
  1238.   function spawnnoob(circlecf, noobcf, scalez, ragd)
  1239.     local aearae = makecircle(circlecf, scalez)
  1240.     local nananb
  1241.     if ragd then
  1242.       nananb = makenoob(aearae.CFrame * noobcf, scalez, true)
  1243.     elseif not ragd then
  1244.       nananb = makenoob(aearae.CFrame * noobcf, scalez, false)
  1245.     end
  1246.     return nananb
  1247.   end
  1248.   function tagexplode(partoz, magn, bombdelay)
  1249.     for _, guy in pairs(workspace:GetChildren()) do
  1250.       if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then
  1251.         coroutine.resume(coroutine.create(function()
  1252.           swait(bombdelay * 30)
  1253.           guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true
  1254.         end))
  1255.       end
  1256.     end
  1257.   end
  1258.   function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot)
  1259.     for _, guy in pairs(workspace:GetChildren()) do
  1260.       if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then
  1261.         do
  1262.           local humz = guy:FindFirstChild("Humanoid")
  1263.           local horp = guy:FindFirstChild("HumanoidRootPart")
  1264.           humz:TakeDamage(dmg)
  1265.           humz:SetStateEnabled(16, true)
  1266.           delay(debtim, function()
  1267.             humz:SetStateEnabled(16, true)
  1268.           end)
  1269.           local db = Instance.new("StringValue")
  1270.           db.Name = "alabo"
  1271.           db.Parent = horp
  1272.           delay(debtim, function()
  1273.             db:Destroy()
  1274.           end)
  1275.           local b = Instance.new("Part")
  1276.           nooutline(b)
  1277.           b.Size = Vector3.new(0.2, 0.2, 0.2)
  1278.           b.Transparency = 0.25
  1279.           b.Anchored = true
  1280.           b.CanCollide = false
  1281.           b.BrickColor = BrickColor.new("Institutional white")
  1282.           b.Locked = true
  1283.           b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1))
  1284.           b.Parent = modz
  1285.           local c = Instance.new("SpecialMesh")
  1286.           c.MeshType = "Sphere"
  1287.           c.Scale = Vector3.new(3.5, 3.5, 3.5)
  1288.           c.Parent = b
  1289.           game.Debris:AddItem(b, 1)
  1290.           if bodyfdire then
  1291.             local boopyve = Instance.new("BodyVelocity")
  1292.             boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999)
  1293.             boopyve.P = 9999999999
  1294.             boopyve.Velocity = bodyfdire
  1295.             boopyve.Parent = horp
  1296.             game.Debris:AddItem(boopyve, debtim)
  1297.           end
  1298.           if bodyrot then
  1299.             local boopyro = Instance.new("BodyAngularVelocity")
  1300.             boopyro.MaxTorque = Vector3.new(999999, 999999, 999999)
  1301.             boopyro.P = math.huge
  1302.             boopyro.AngularVelocity = bodyrot
  1303.             boopyro.Parent = horp
  1304.             game.Debris:AddItem(boopyro, debtim)
  1305.           end
  1306.           local bet = Instance.new("Sound")
  1307.           bet.Pitch = rd2(9, 11) / 10
  1308.           bet.Volume = rd2(12, 14) / 10
  1309.           bet.SoundId = "rbxassetid://305526724"
  1310.           bet.Parent = b
  1311.           bet:Play()
  1312.           coroutine.resume(coroutine.create(function()
  1313.             for _ = 1, 5 do
  1314.               swait()
  1315.               b.Transparency = b.Transparency + 0.175
  1316.               c.Scale = c.Scale + Vector3.new(0.8 * dmg, 0.8 * dmg, 0.8 * dmg)
  1317.             end
  1318.           end))
  1319.         end
  1320.       end
  1321.     end
  1322.   end
  1323.   function cleannoobs()
  1324.     for _, nib in pairs(workspace:GetChildren()) do
  1325.       coroutine.resume(coroutine.create(function()
  1326.         if nib.Name == "Noob" then
  1327.           if nib:FindFirstChild("HumanoidRootPart") then
  1328.             local g = Instance.new("Part")
  1329.             g.CanCollide, g.Anchored = false, true
  1330.             g.Transparency = 1
  1331.             g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame
  1332.             g.Parent = workspace
  1333.             game.Debris:AddItem(g, 3.5)
  1334.             local sou = Instance.new("Sound")
  1335.             sou.Pitch = math.random(7, 11) / 10
  1336.             sou.Volume = 0.8
  1337.             sou.SoundId = "rbxassetid://111124523"
  1338.             sou.Parent = g
  1339.             local pe = Instance.new("ParticleEmitter")
  1340.             pe.Acceleration = Vector3.new(0, 8, 0)
  1341.             pe.Lifetime = NumberRange.new(1, 1.5)
  1342.             pe.Rate = 0.005
  1343.             pe.RotSpeed = NumberRange.new(-30, 30)
  1344.             pe.Rotation = NumberRange.new(0, 360)
  1345.             pe.Size = NumberSequence.new({
  1346.               NumberSequenceKeypoint.new(0, 4.38, 0),
  1347.               NumberSequenceKeypoint.new(0.672, 4.14, 0),
  1348.               NumberSequenceKeypoint.new(1, 1.48, 0)
  1349.             })
  1350.             pe.Texture = "rbxassetid://244221440"
  1351.             pe.Transparency = NumberSequence.new({
  1352.               NumberSequenceKeypoint.new(0, 0, 0),
  1353.               NumberSequenceKeypoint.new(0.529, 0.3, 0),
  1354.               NumberSequenceKeypoint.new(1, 1, 1)
  1355.             })
  1356.             pe.ZOffset = 5
  1357.             pe.Enabled = true
  1358.             pe.VelocitySpread = 360
  1359.             pe.Parent = g
  1360.             swait(5)
  1361.             pe:Emit(6)
  1362.             sou:Play()
  1363.           end
  1364.           nib:Destroy()
  1365.         end
  1366.       end))
  1367.     end
  1368.   end
  1369.   function animo(yep)
  1370.     if yep == true then
  1371.       anim.Parent = human
  1372.       chr.Animate.Disabled = false
  1373.     elseif yep == false then
  1374.       chr.Animate.Disabled = true
  1375.       anim.Parent = nil
  1376.     end
  1377.   end
  1378.   mouse.KeyDown:connect(function(key)
  1379.     if key == "r" then
  1380.       test()
  1381.     end
  1382.     if key == "m" then
  1383.       lauf()
  1384.     end
  1385.     if key == "c" and plr.UserId == 8488617 then
  1386.       ham()
  1387.     end
  1388.     if key == "x" then
  1389.       bat()
  1390.     end
  1391.     if key == "l" and plr.UserId == 8488617 and selected == true then
  1392.       spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true)
  1393.     end
  1394.     if key == ";" and plr.UserId == 8488617 and selected == true then
  1395.       spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true)
  1396.     end
  1397.     if key == "k" and plr.UserId == 8488617 and selected == true then
  1398.       spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false)
  1399.     end
  1400.     if key == "p" then
  1401.       cleannoobs()
  1402.     end
  1403.     if key == "z" then
  1404.       if selected == false or activu == true then
  1405.         return
  1406.       end
  1407.       if human.WalkSpeed == 25 then
  1408.         human.WalkSpeed = 70
  1409.         human.JumpPower = 75
  1410.       else
  1411.         human.WalkSpeed = 25
  1412.         human.JumpPower = 50
  1413.       end
  1414.     end
  1415.   end)
  1416.   tool.Equipped:connect(function()
  1417.     selected = true
  1418.   end)
  1419.   tool.Unequipped:connect(function()
  1420.     selected = false
  1421.   end)
  1422.   animo(false)
  1423.   human.WalkSpeed = 25
  1424.   sine = 0
  1425.   charge = 1
  1426.   cos = math.cos
  1427.   game:GetService("RunService").RenderStepped:connect(function()
  1428.     if ragged == false and activu == false then
  1429.       local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0))
  1430.       local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false)
  1431.       local checkstate = human:GetState()
  1432.       if checkstate.Value == 13 then
  1433.         animpose = "Sitting"
  1434.       elseif hrp.Velocity.y > 1 and checkpart == nil then
  1435.         animpose = "Jumping"
  1436.       elseif hrp.Velocity.y < -1 and checkpart == nil then
  1437.         animpose = "Falling"
  1438.       elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then
  1439.         animpose = "Idle"
  1440.       elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then
  1441.         animpose = "Walking"
  1442.       elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then
  1443.         animpose = "TooFast"
  1444.       end
  1445.       if animpose == "Idle" then
  1446.         sine = sine + charge
  1447.         lerpz(RJ, "C0", RJC0 * cf(0.05 * cos(sine / 40), 0, -0.05 - 0.05 * cos(sine / 20)) * ang(rd(0), rd(0), rd(0)), 0.3)
  1448.         lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3)
  1449.         lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
  1450.         lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1451.         lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3)
  1452.         lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1453.         lerpz(RH, "C0", RHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), 0.05 * cos(sine / 40)) * ang(rd(-5), rd(-5), rd(1)), 0.3)
  1454.         lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1455.         lerpz(LH, "C0", LHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), -0.05 * cos(sine / 40)) * ang(rd(-5), rd(5), rd(1)), 0.3)
  1456.         lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1457.       end
  1458.       if animpose == "Walking" then
  1459.         sine = sine + charge
  1460.         lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.025 * cos(sine / 4)) * ang(rd(-5), math.sin(hrp.RotVelocity.Y / 30), math.sin(hrp.RotVelocity.Y / 5)), 0.3)
  1461.         lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3)
  1462.         lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6)
  1463.         lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1464.         lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6)
  1465.         lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1466.         lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6)
  1467.         lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1468.         lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6)
  1469.         lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1470.       end
  1471.       if animpose == "Jumping" then
  1472.         lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3)
  1473.         lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3)
  1474.         lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3)
  1475.         lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1476.         lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3)
  1477.         lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1478.         lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3)
  1479.         lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1480.         lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3)
  1481.         lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1482.       end
  1483.       if animpose == "Falling" then
  1484.         lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
  1485.         lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3)
  1486.         lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3)
  1487.         lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1488.         lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3)
  1489.         lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1490.         lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3)
  1491.         lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1492.         lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3)
  1493.         lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1494.       end
  1495.       if animpose == "TooFast" then
  1496.         sine = sine + charge
  1497.         lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.35 * cos(sine / 2)) * ang(rd(-20), math.sin(hrp.RotVelocity.Y / 20), math.sin(hrp.RotVelocity.Y / 2)), 0.3)
  1498.         lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3)
  1499.         lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6)
  1500.         lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1501.         lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6)
  1502.         lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1503.         lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6)
  1504.         lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1505.         lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6)
  1506.         lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1507.       end
  1508.       if animpose == "Sitting" then
  1509.         lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1510.         lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1511.         lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
  1512.         lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1513.         lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
  1514.         lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1515.         lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3)
  1516.         lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1517.         lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3)
  1518.         lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
  1519.       end
  1520.     end
  1521.   end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement