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