View difference between Paste ID: qBy7JprR and A2yDWCKA
SHOW: | | - or go back to the newest paste.
1
local speed = 20 --CHANGE THIS NUMBER TO SET THE WALKSPEED OF THE PLAYER
2
3
4
5
local model = game:GetObjects("rbxassetid://679683510")[1]
6
for i,v in pairs(model:GetChildren()) do 
7
v.Parent = game:GetService("ReplicatedStorage")
8
end
9
local Player = game:service("Players").LocalPlayer
10
repeat
11
  wait()
12
until Player.Character ~= nil
13
local plrs = game:GetService("Players")
14
local plr = plrs.LocalPlayer
15
local char = plr.Character
16
local bp = plr.Backpack
17
local hum = char.Humanoid
18
local T = char.Torso
19
local Character = char
20
local Humanoid = hum
21
local torso = char.Torso
22
local Char = Player.Character
23
local char = Char
24
local mouse = Player:GetMouse()
25
local Backpack = Player.Backpack
26
local PlayerGui = Player.PlayerGui
27
local Camera = workspace.CurrentCamera
28
local Humanoid = Char:WaitForChild("Humanoid")
29
local Torso = Char:WaitForChild("Torso")
30
local Head = Char:WaitForChild("Head")
31
local ra = Char:WaitForChild("Right Arm")
32
local la = Char:WaitForChild("Left Arm")
33
local rl = Char:WaitForChild("Right Leg")
34
local ll = Char:WaitForChild("Left Leg")
35
local rs = Torso:WaitForChild("Right Shoulder")
36
local ls = Torso:WaitForChild("Left Shoulder")
37
local rh = Torso:WaitForChild("Right Hip")
38
local lh = Torso:WaitForChild("Left Hip")
39
local neck = Torso:WaitForChild("Neck")
40
local rootpart = Char:WaitForChild("HumanoidRootPart")
41
local rj = rootpart:WaitForChild("RootJoint")
42
local anim = Char:WaitForChild("Animate")
43
local RunService = game:GetService("RunService")
44
local UIA = game:GetService("UserInputService")
45
local CF = CFrame.new
46
local CA = CFrame.Angles
47
local FEA = CFrame.fromEulerAnglesXYZ
48
local FAA = CFrame.fromAxisAngle
49
local V3 = Vector3.new
50
local CN = Color3.new
51
local Ice = Instance.new
52
local BC = BrickColor.new
53
local UD2 = UDim2.new
54
local C3 = Color3.new
55
local MR = math.rad
56
local MP = math.pi
57
local MD = math.deg
58
local MH = math.huge
59
local MS = math.sin
60
local MC = math.cos
61
local MT = math.tan
62
local MAS = math.asin
63
local MAC = math.acos
64
local MAT = math.atan
65
local components = CF().components
66
local State = "Calm"
67
local Slash = false
68
local Sheathed = false
69
local combocounter = 0
70
humanoid = char:findFirstChild("Humanoid")
71
hum = humanoid
72
torso = char:findFirstChild("Torso")
73
head = char.Head
74
ra = char:findFirstChild("Right Arm")
75
ra.CanCollide = true
76
la = char:findFirstChild("Left Arm")
77
la.CanCollide = true
78
rl = char:findFirstChild("Right Leg")
79
rl.CanCollide = true
80
ll = char:findFirstChild("Left Leg")
81
ll.CanCollide = true
82
rs = torso:findFirstChild("Right Shoulder")
83
ls = torso:findFirstChild("Left Shoulder")
84
rh = torso:findFirstChild("Right Hip")
85
lh = torso:findFirstChild("Left Hip")
86
neck = torso:findFirstChild("Neck")
87
rootpart = char:findFirstChild("HumanoidRootPart")
88
rj = rootpart:findFirstChild("RootJoint")
89
anim = char:findFirstChild("Animate")
90
camera = workspace.CurrentCamera
91
plr.CameraMaxZoomDistance = math.huge
92
pcall(function()
93
  anim:Destroy()
94
end)
95
pcall(function()
96
  char.Health.Disabled = true
97
end)
98
pcall(function()
99
  humanoid.Animator:Destroy()
100
end)
101
local rjo = rootpart.RootJoint:Clone()
102
function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
103
  local wld = Instance.new("Weld", wp1)
104
  wld.Part0 = wp0
105
  wld.Part1 = wp1
106
  wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
107
  return wld
108
end
109
for k, v in pairs(char:children("")) do
110
  if v:isA("BasePart") then
111
    v.BrickColor = BrickColor.new("Really black")
112
  end
113
end
114
pcall(function()
115
  char["Body Colors"].HeadColor = BrickColor.new("Really black")
116
  char["Body Colors"].TorsoColor = BrickColor.new("Really black")
117
  char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
118
  char["Body Colors"].RightArmColor = BrickColor.new("Really black")
119
  char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
120
  char["Body Colors"].RightLegColor = BrickColor.new("Really black")
121
end)
122
local mult = 1
123
la.Size = la.Size * mult
124
ra.Size = ra.Size * mult
125
ll.Size = ll.Size * mult
126
rl.Size = rl.Size * mult
127
torso.Size = torso.Size * mult
128
head.Size = head.Size * mult
129
rootpart.Size = rootpart.Size * mult
130
local lm = newWeld(torso, la, -1.7 * mult, 0.5 * mult, 0)
131
lm.C1 = CFrame.new(0, 0.5 * mult, 0)
132
local rm = newWeld(torso, ra, 1.7 * mult, 0.5 * mult, 0)
133
rm.C1 = CFrame.new(0, 0.5 * mult, 0)
134
local neck = newWeld(torso, head, 0, mult, 0)
135
local llegm = newWeld(torso, ll, -0.5 * mult, -1 * mult, 0)
136
llegm.C1 = CFrame.new(0, mult, 0)
137
local rlegm = newWeld(torso, rl, 0.5 * mult, -1 * mult, 0)
138
rlegm.C1 = CFrame.new(0, mult, 0)
139
local rj = rjo:Clone()
140
rj.Part0 = rootpart
141
rj.Part1 = torso
142
rj.Parent = rootpart
143
neck.C1 = CFrame.new(0, -(mult / 2), 0)
144
neckc0 = neck.C0
145
rsc0 = rm.C0
146
lsc0 = lm.C0
147
llc0 = llegm.C0
148
rlc0 = rlegm.C0
149
rootc0 = rj.C0
150
rootc1 = rj.C1
151
wait()
152
function Create(Instanc, prop)
153
  local p = Instance.new(Instanc)
154
  for i, v in pairs(prop) do
155
    p[i] = v
156
  end
157
  return p
158
end
159
function rwait(num)
160
  if num == 0 or num == nil then
161
    game:service("RunService").Stepped:wait(0)
162
  else
163
    for i = 0, num do
164
      game:service("RunService").Stepped:wait(0)
165
    end
166
  end
167
  return true
168
end
169
local pony = Instance.new("PointLight", Torso)
170
pony.Name = "LePontyPontz"
171
pony.Brightness = 1
172
pony.Color = Color3.new(0, 1, 0)
173
coroutine.wrap(function()
174
  game:service("RunService").Stepped:connect(function()
175
    pony.Range = 5 + math.abs(math.sin(tick() / 2)) * 6
176
  end)
177
end)()
178
local setupPart = function(part)
179
  part.Anchored = true
180
  part.FormFactor = "Custom"
181
  part.CanCollide = false
182
  part.BrickColor = BrickColor.new("Navy blue")
183-
  part.BrickColor = BrickColor.new("Sea green")
183+
184
  part.TopSurface = "SmoothNoOutlines"
185
  part.BottomSurface = "SmoothNoOutlines"
186
  part.FrontSurface = "SmoothNoOutlines"
187
  part.BackSurface = "SmoothNoOutlines"
188
  part.LeftSurface = "SmoothNoOutlines"
189
  part.RightSurface = "SmoothNoOutlines"
190
end
191
function CFrameFromTopBack(at, top, back)
192
  local right = top:Cross(back)
193
  return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
194
end
195
function CreateTriangle(parent, a, b, c)
196
  local this = {}
197
  local mPart1 = Instance.new("WedgePart")
198
  setupPart(mPart1)
199
  local mPart2 = Instance.new("WedgePart")
200
  setupPart(mPart2)
201
  function this:Set(a, b, c)
202
    local ab, bc, ca = b - a, c - b, a - c
203
    local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
204
    local edg1 = math.abs(0.5 + ca:Dot(ab) / (abm * abm))
205
    local edg2 = math.abs(0.5 + ab:Dot(bc) / (bcm * bcm))
206
    local edg3 = math.abs(0.5 + bc:Dot(ca) / (cam * cam))
207
    if edg1 < edg2 then
208
      if edg1 < edg3 then
209
      else
210
        a, b, c = c, a, b
211
        ab, bc, ca = ca, ab, bc
212
        abm = cam
213
      end
214
    elseif edg2 < edg3 then
215
      a, b, c = b, c, a
216
      ab, bc, ca = bc, ca, ab
217
      abm = bcm
218
    else
219
      a, b, c = c, a, b
220
      ab, bc, ca = ca, ab, bc
221
      abm = cam
222
    end
223
    local len1 = -ca:Dot(ab) / abm
224
    local len2 = abm - len1
225
    local width = (ca + ab.unit * len1).magnitude
226
    local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
227
    mPart1.Parent = parent
228
    mPart1.Size = Vector3.new(1, 1, 1)
229
    mPart1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
230
    local Mesh = Instance.new("SpecialMesh", mPart1)
231
    Mesh.MeshType = "Wedge"
232
    Mesh.Scale = Vector3.new(0.005, width, len1)
233
    mPart2.Parent = parent
234
    mPart2.Size = Vector3.new(1, 1, 1)
235
    mPart2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
236
    local Mesh = Instance.new("SpecialMesh", mPart2)
237
    Mesh.MeshType = "Wedge"
238
    Mesh.Scale = Vector3.new(0.005, width, len2)
239
  end
240
  function this:SetProperty(prop, value)
241
    mPart1[prop] = value
242
    mPart2[prop] = value
243
  end
244
  function this:GetProperty(prop)
245
    return mPart1[prop]
246
  end
247
  this:Set(a, b, c)
248
  function this:Destroy()
249
    mPart1:Destroy()
250
    mPart2:Destroy()
251
  end
252
  return this
253
end
254
local ttt
255
local lastdps = tick()
256
local ohp = hum.Health
257
local berserk = false
258
hum.Changed:connect(function(val)
259
  if val == "Health_XML" then
260
    if hum.Health < ohp then
261
      lastdps = tick()
262
    end
263
    ohp = hum.Health
264
    if not berserk and hum.Health < hum.MaxHealth * 0.15 then
265
      ttt = true
266
      hum.WalkSpeed = 0
267
      hum.MaxHealth = 1 / 0
268
      otheranims = true
269
      do
270
        local rs = game:service("RunService").Stepped
271
        function GW()
272
          local wave = Instance.new("Part", Torso)
273
          wave.BrickColor = BrickColor.new("Really black")
274
          wave.Anchored = true
275
          wave.CanCollide = false
276
          wave.Locked = true
277
          wave.Size = Vector3.new(1, 1, 1)
278
          wave.TopSurface = "Smooth"
279
          wave.BottomSurface = "Smooth"
280
          wave.Material = "Neon"
281
          wave.Transparency = 0.35
282
          wave.CFrame = Torso.CFrame
283
          wm = Instance.new("SpecialMesh", wave)
284
          wm.MeshType = "Sphere"
285
          wm.Scale = Vector3.new(1, 1, 1)
286
          coroutine.wrap(function()
287
            for i = 0, 15 do
288
              wave.Size = wave.Size + Vector3.new(1, 1, 1)
289
              wave.CFrame = Torso.CFrame
290
              wave.Transparency = i / 14
291
              wait()
292
            end
293
            wait()
294
            wave:Destroy()
295
          end)()
296
        end
297
        Spawn(function()
298
          while ttt do
299
            GW()
300
            wait(math.random(1, 4))
301
          end
302
        end)
303
        local prtz = {
304
          la,
305
          Head,
306
          Torso
307
        }
308
        local pes = {}
309
        for i, v in pairs(prtz) do
310
          coroutine.wrap(function()
311
            local dsa = Instance.new("ParticleEmitter", v)
312
            local color1 = Color3.new(0.5, 1, 0.5)
313
            local color2 = Color3.new(0, 0.3333333333333333, 0)
314
            local sequence = ColorSequence.new(color1, color2)
315
            dsa.Color = sequence
316
            dsa.LightEmission = 0.8
317
            dsa.Texture = "http://www.roblox.com/asset/?id=242102147"
318
            dsa.LockedToPart = true
319
            dsa.EmissionDirection = "Top"
320
            dsa.Lifetime = NumberRange.new(1)
321
            dsa.VelocitySpread = 10
322
            dsa.Size = NumberSequence.new(1)
323
            table.insert(pes, dsa)
324
          end)()
325
        end
326
        Mode = "Kneeling"
327
        berserk = true
328
        wait(2)
329
        hum.MaxHealth = 10000000
330-
        hum.MaxHealth = 10000
330+
331
          hum.Health = i
332
          game:service("RunService").Stepped:wait()
333
        end
334
        ttt = false
335
        for q, e in pairs(pes) do
336
          game.Destroy(e)
337
        end
338
        hum.WalkSpeed = speed
339
        otheranims = false
340
      end
341
    end
342
  elseif val == "PlatformStand" then
343
    hum.PlatformStand = false
344
  elseif val == "Sit" then
345
    hum.Sit = false
346
  elseif val == "WalkSpeed" then
347
  end
348
end)
349
regening = false
350
lastdps = tick()
351
function regenHealth()
352
  if regening then
353
    return
354
  end
355
  if tick() - lastdps < 25 then
356
    return
357
  end
358
  regening = true
359
  local s = wait(1)
360
  local health = hum.Health
361
  if health > 0 and health < hum.MaxHealth then
362
    local newHealthDelta = hum.MaxHealth * 0.03
363
    health = health + newHealthDelta
364
    hum.Health = math.min(health, hum.MaxHealth)
365
  end
366
  regening = false
367
end
368
local LastTrail
369
local Trails = {}
370
function asd(parent, string)
371
  repeat
372
    wait()
373
  until parent:FindFirstChild(string)
374
  wait()
375
  return parent:FindFirstChild(string)
376
end
377
local beamy = asd(game.ReplicatedStorage, "Beamy"):Clone()
378
local Model = asd(game.ReplicatedStorage, "mdl"):Clone()
379
Model.Parent = Char
380
local shm, swm, shem = Model:WaitForChild("Sheath"), Model:WaitForChild("Sword"), Model:WaitForChild("Shield")
381
local LAH, RAH, TH = shem:WaitForChild("LeftArmHandle"), swm:WaitForChild("RightArmHandle"), shm:WaitForChild("TorsoHandle")
382
LAH.Transparency, RAH.Transparency, TH.Transparency = 1, 1, 1
383
local law = Create("Weld", {
384
  Parent = la,
385
  Part0 = la,
386
  Part1 = LAH,
387
  C0 = CFrame.new(0, 0, 0)
388
})
389
local raw = Create("Weld", {
390
  Parent = ra,
391
  Part0 = ra,
392
  Part1 = RAH,
393
  C0 = CFrame.new(0, 0, 0)
394
})
395
local rawc0 = raw.C0
396
local lawc0 = law.C0
397
LAH.Anchored, RAH.Anchored, TH.Anchored = false, false, false
398
local torw = Create("Weld", {
399
  Parent = Torso,
400
  Part0 = Torso,
401
  Part1 = TH,
402
  C0 = CFrame.new(0, 0, 0)
403
})
404
TrailPart = Create("Part", {
405
  Parent = Char,
406
  Anchored = false,
407
  CanCollide = false,
408
  Size = V3(0, 5, 0),
409
  Transparency = 1
410
})
411
TrailPartMesh = Create("Snap", {
412
  Parent = TrailPart,
413
  Part0 = RAH,
414
  Part1 = TrailPart,
415
  C0 = CFrame.new(0, -1, -4.2) * CFrame.Angles(MR(90), 0, 0)
416
})
417
local get = game.ReplicatedStorage:FindFirstChild("GoldSuit"):Clone()
418
get.Parent = Char
419
local torso = get:WaitForChild("Torso")
420
local head = get:WaitForChild("Head")
421
local rightarm = get:WaitForChild("RightArm")
422
local leftarm = get:WaitForChild("LeftArm")
423
local rightleg = get:WaitForChild("RightLeg")
424
local leftleg = get:WaitForChild("LeftLeg")
425
Create("Weld", {
426
  Parent = torso.Handle,
427
  Part0 = Torso,
428
  Part1 = torso.Handle,
429
  C0 = CFrame.new(0, 0, 0)
430
})
431
Create("Weld", {
432
  Parent = head.Handle,
433
  Part0 = Head,
434
  Part1 = head.Handle,
435
  C0 = CFrame.new(0, 0, 0)
436
})
437
Create("Weld", {
438
  Parent = rightarm.Handle,
439
  Part0 = ra,
440
  Part1 = rightarm.Handle,
441
  C0 = CFrame.new(0, 0, 0)
442
})
443
Create("Weld", {
444
  Parent = leftarm.Handle,
445
  Part0 = la,
446
  Part1 = leftarm.Handle,
447
  C0 = CFrame.new(0, 0, 0)
448
})
449
Create("Weld", {
450
  Parent = leftleg.Handle,
451
  Part0 = ll,
452
  Part1 = leftleg.Handle,
453
  C0 = CFrame.new(0, 0, 0)
454
})
455
Create("Weld", {
456
  Parent = rightleg.Handle,
457
  Part0 = rl,
458
  Part1 = rightleg.Handle,
459
  C0 = CFrame.new(0, 0, 0)
460
})
461
function recurse(c)
462
  for i, v in pairs(c:children()) do
463
    if v:IsA("BasePart") then
464
      v.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
465
    end
466
    recurse(v)
467
  end
468
end
469
recurse(get)
470
recurse(Model)
471
ra.Transparency = 1
472
la.Transparency = 1
473
ll.Transparency = 1
474
rl.Transparency = 1
475
HitDB = {}
476
function Damage(part)
477
  smthn = part.Touched:connect(function(hit)
478
    Human = hit.Parent:findFirstChild("Humanoid")
479
    if Human ~= nil and hit.Parent.Name ~= Player.Name and Slash == true and HitDB[hit.Parent.Humanoid] == nil then
480
      coroutine.wrap(function()
481
        HitDB[hit.Parent.Humanoid] = true
482
        Human.Health = Human.Health - 25
483
        local vu = Instance.new("BodyVelocity", hit.Parent.Torso)
484
        vu.P = 500
485
        vu.maxForce = Vector3.new(10000000000, 5.0E21, 100000000000)
486
        vu.velocity = Head.CFrame.lookVector * 10
487
        game:GetService("Debris"):AddItem(vu, 0.267)
488
        wait(0.25)
489
        HitDB[hit.Parent.Humanoid] = nil
490
      end)()
491
    end
492
  end)
493
  return smthn
494
end
495
hum.WalkSpeed = speed
496
hum.MaxHealth = 10000
497
hum.Health = 10000
498
function lerp(weld, beglerp, endlerp, speed)
499
  if weld.ClassName == "Weld" or weld.ClassName == "Motor6D" then
500
    weld.C0 = beglerp:lerp(endlerp, speed)
501
  else
502
    weld.CFrame = beglerp:lerp(endlerp, speed)
503
  end
504
  return weld.ClassName == "Weld" or weld.ClassName == "Motor6D" and weld.C0 or weld.CFrame
505
end
506
function Ragdoll(Format, Character, Force)
507
  if Force ~= true then
508
    if Character:FindFirstChild("Ragdoll") ~= nil and Format == true then
509
      return false
510
    end
511
    if Character:FindFirstChild("Ragdoll") == nil and Format == false then
512
      return false
513
    end
514
  end
515
  local Head, Torso, Humanoid
516
  local Dead = false
517
  for _, Children in pairs(Character:GetChildren()) do
518
    if Children.ClassName == "ForceField" then
519
      Children:Remove()
520
    end
521
    if Children.Name == "" then
522
      Children:Remove()
523
    end
524
    if Children.Name == "Head" then
525
      Head = Children
526
    end
527
    if Children.Name == "Torso" then
528
      Torso = Children
529
    end
530
    if Children.ClassName == "Humanoid" then
531
      Humanoid = Children
532
    end
533
    if Children:IsA("Accoutrement") then
534
      if Children:FindFirstChild("Handle") ~= nil then
535
        if math.random(1, 3) == 1 then
536
          coroutine.wrap(function()
537
            Children.Parent = Workspace
538
            wait()
539
            Children.Parent = Character
540
            Children.Handle.CanCollide = true
541
          end)()
542
        else
543
          Children.Parent = Workspace
544
          Children.Handle.CanCollide = true
545
        end
546
      else
547
        Children:Remove()
548
      end
549
    end
550
  end
551
  if Humanoid ~= nil and Humanoid.Health <= 0 then
552
    Dead = true
553
  end
554
  if Torso ~= nil then
555
    for _, Children2 in pairs(Torso:GetChildren()) do
556
      if Children2:IsA("JointInstance") then
557
        Children2:Remove()
558
      end
559
    end
560
  end
561
  if Head ~= nil then
562
    if (function()
563
      if Dead == true and math.random(1, 2) == 1 then
564
        return true
565
      else
566
        return false
567
      end
568
    end)() == false then
569
      local Neck = Instance.new("Motor6D")
570
      Neck.Name = "Neck"
571
      Neck.Part0 = Torso
572
      Neck.Part1 = Head
573
      Neck.C0 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
574
      Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, math.rad(180))
575
      Neck.MaxVelocity = 0.1
576
      Neck.Parent = Torso
577
    end
578
  end
579
  if Format == true then
580
    local Ragdoll = Instance.new("IntValue")
581
    Ragdoll.Name = "Ragdoll"
582
    Ragdoll.Parent = Character
583
    if Torso ~= nil then
584
      Torso.Velocity = Torso.Velocity / 1.25
585
      Torso.RotVelocity = Torso.RotVelocity / 1.25 + Head.CFrame.lookVector * 80
586
      if Dead == true and Humanoid ~= nil then
587
        local Humanoid2 = Humanoid:Clone()
588
        wait()
589
        Humanoid:Remove()
590
        Humanoid2.Parent = Character
591
        Humanoid = Humanoid2
592
      end
593
      local Limb = Character:FindFirstChild("Right Arm")
594
      if Limb ~= nil then
595
        Limb.Velocity = Torso.Velocity
596
        Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
597
        local Joint = Instance.new("Glue")
598
        Joint.Name = "RightShoulder"
599
        Joint.Part0 = Torso
600
        Joint.Part1 = Limb
601
        Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
602
        Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
603
        Joint.Parent = Torso
604
        local Weight = Instance.new("Part")
605
        Weight.Name = ""
606
        Weight.TopSurface = 0
607
        Weight.BottomSurface = 0
608
        Weight.Shape = "Block"
609
        Weight.FormFactor = "Custom"
610
        Weight.Size = Vector3.new(1, 1, 1)
611
        Weight.Transparency = 1
612
        Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
613
        Weight.Parent = Character
614
        local Weld = Instance.new("Weld")
615
        Weld.Part0 = Limb
616
        Weld.Part1 = Weight
617
        Weld.C0 = CFrame.new(0, -0.5, 0)
618
        Weld.Parent = Limb
619
      end
620
      local Limb = Character:FindFirstChild("Left Arm")
621
      if Limb then
622
        Limb.Velocity = Torso.Velocity
623
        Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
624
        local Joint = Instance.new("Glue")
625
        Joint.Name = "LeftShoulder"
626
        Joint.Part0 = Torso
627
        Joint.Part1 = Limb
628
        Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
629
        Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
630
        Joint.Parent = Torso
631
        local Weight = Instance.new("Part")
632
        Weight.Name = ""
633
        Weight.TopSurface = 0
634
        Weight.BottomSurface = 0
635
        Weight.Shape = "Block"
636
        Weight.FormFactor = "Custom"
637
        Weight.Size = Vector3.new(1, 1, 1)
638
        Weight.Transparency = 1
639
        Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
640
        Weight.Parent = Character
641
        local Weld = Instance.new("Weld")
642
        Weld.Part0 = Limb
643
        Weld.Part1 = Weight
644
        Weld.C0 = CFrame.new(0, -0.5, 0)
645
        Weld.Parent = Limb
646
      end
647
      local Limb = Character:FindFirstChild("Right Leg")
648
      if Limb then
649
        Limb.Velocity = Torso.Velocity
650
        Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
651
        local Joint = Instance.new("Glue")
652
        Joint.Name = "RightHip"
653
        Joint.Part0 = Torso
654
        Joint.Part1 = Limb
655
        Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
656
        Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
657
        Joint.Parent = Torso
658
        local Weight = Instance.new("Part")
659
        Weight.Name = ""
660
        Weight.TopSurface = 0
661
        Weight.BottomSurface = 0
662
        Weight.Shape = "Block"
663
        Weight.FormFactor = "Custom"
664
        Weight.Size = Vector3.new(1, 1, 1)
665
        Weight.Transparency = 1
666
        Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
667
        Weight.Parent = Character
668
        local Weld = Instance.new("Weld")
669
        Weld.Part0 = Limb
670
        Weld.Part1 = Weight
671
        Weld.C0 = CFrame.new(0, -0.5, 0)
672
        Weld.Parent = Limb
673
      end
674
      local Limb = Character:FindFirstChild("Left Leg")
675
      if Limb then
676
        Limb.Velocity = Torso.Velocity
677
        Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
678
        local Joint = Instance.new("Glue")
679
        Joint.Name = "LeftHip"
680
        Joint.Part0 = Torso
681
        Joint.Part1 = Limb
682
        Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
683
        Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
684
        Joint.Parent = Torso
685
        local Weight = Instance.new("Part")
686
        Weight.Name = ""
687
        Weight.TopSurface = 0
688
        Weight.BottomSurface = 0
689
        Weight.Shape = "Block"
690
        Weight.FormFactor = "Custom"
691
        Weight.Size = Vector3.new(1, 1, 1)
692
        Weight.Transparency = 1
693
        Weight.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
694
        Weight.Parent = Character
695
        local Weld = Instance.new("Weld")
696
        Weld.Part0 = Limb
697
        Weld.Part1 = Weight
698
        Weld.C0 = CFrame.new(0, -0.5, 0)
699
        Weld.Parent = Limb
700
      end
701
      local Weight = Instance.new("Part")
702
      Weight.Name = ""
703
      Weight.TopSurface = 0
704
      Weight.BottomSurface = 0
705
      Weight.Shape = "Block"
706
      Weight.FormFactor = "Custom"
707
      Weight.Size = Vector3.new(1.75, 1.5, 1.1)
708
      Weight.Transparency = 1
709
      Weight.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
710
      Weight.Parent = Character
711
      local Weld = Instance.new("Weld")
712
      Weld.Part0 = Torso
713
      Weld.Part1 = Weight
714
      Weld.C0 = CFrame.new(0, 0.5, 0)
715
      Weld.Parent = Torso
716
    end
717
  elseif Format == false then
718
    if Character:FindFirstChild("Ragdoll") ~= nil then
719
      Character.Ragdoll:Remove()
720
    end
721
    if Torso ~= nil then
722
      local Limb = Character:FindFirstChild("Right Arm")
723
      if Limb ~= nil then
724
        local Joint = Instance.new("Motor6D")
725
        Joint.Name = "Right Shoulder"
726
        Joint.Part0 = Torso
727
        Joint.Part1 = Limb
728
        Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
729
        Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
730
        Joint.MaxVelocity = 0.15
731
        Joint.Parent = Torso
732
      end
733
      local Limb = Character:FindFirstChild("Left Arm")
734
      if Limb ~= nil then
735
        local Joint = Instance.new("Motor6D")
736
        Joint.Name = "Left Shoulder"
737
        Joint.Part0 = Torso
738
        Joint.Part1 = Limb
739
        Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
740
        Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
741
        Joint.MaxVelocity = 0.15
742
        Joint.Parent = Torso
743
      end
744
      local Limb = Character:FindFirstChild("Right Leg")
745
      if Limb ~= nil then
746
        local Joint = Instance.new("Motor6D")
747
        Joint.Name = "Right Hip"
748
        Joint.Part0 = Torso
749
        Joint.Part1 = Limb
750
        Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
751
        Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
752
        Joint.MaxVelocity = 0.1
753
        Joint.Parent = Torso
754
      end
755
      local Limb = Character:FindFirstChild("Left Leg")
756
      if Limb ~= nil then
757
        local Joint = Instance.new("Motor6D")
758
        Joint.Name = "Left Hip"
759
        Joint.Part0 = Torso
760
        Joint.Part1 = Limb
761
        Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
762
        Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
763
        Joint.MaxVelocity = 0.1
764
        Joint.Parent = Torso
765
      end
766
      local Animate = Character:FindFirstChild("Animate")
767
      if Animate ~= nil then
768
        local Animate2 = Animate:Clone()
769
        Animate:Remove()
770
        Animate2.Parent = Character
771
      end
772
    end
773
  else
774
    return false
775
  end
776
  return true, Format
777
end
778
local Grabbed = false
779
Ctrl = false
780
local lastclick = tick()
781
mouse.Button1Down:connect(function()
782
  if tick() - lastclick > 0.4 then
783
    combocounter = 0
784
  end
785
  if otheranims then
786
    return
787
  end
788
  if Grabbed then
789
    return
790
  end
791
  if Sheathed then
792
    otheranims = true
793
    Mode = "Sheath"
794
    wait(0.7)
795
    raw.Part0 = ra
796
    law.Part0 = la
797
    raw.C0 = rawc0
798
    law.C0 = lawc0
799
    Sheathed = false
800
    otheranims = false
801
    return
802
  end
803
  Slash = true
804
  local p0 = rootpart.CFrame * CF(0, 0, -7)
805
  local p1 = rootpart.CFrame * CF(0, 0, -15)
806
  if combocounter == 0 and not otheranims then
807
    otheranims = true
808
    Mode = "Knee"
809
    local asdf = Damage(ll)
810
    rootpart.CFrame = rootpart.CFrame:lerp(p0, 0.1)
811
    wait(0.3)
812
    asdf:disconnect()
813
    otheranims = false
814
    combocounter = 1
815
  elseif combocounter == 1 and not otheranims then
816
    otheranims = true
817
    Mode = "Slash11"
818
    wait(0.3)
819
    Mode = "Slash12"
820
    rootpart.CFrame = rootpart.CFrame:lerp(p0, 0.1)
821
    wait(0.3)
822
    Mode = "Slash21"
823
    rootpart.CFrame = rootpart.CFrame:lerp(p0, 0.1)
824
    wait(0.5)
825
    otheranims = false
826
    combocounter = 2
827
  elseif combocounter == 2 and not otheranims then
828
    otheranims = true
829
    Mode = "Slash31"
830
    wait(0.3)
831
    Mode = "Slash32"
832
    rootpart.CFrame = rootpart.CFrame:lerp(p0, 0.1)
833
    wait(0.5)
834
    otheranims = false
835
    combocounter = 3
836
  elseif combocounter == 3 and not otheranims then
837
    otheranims = true
838
    sDps = Damage(LAH)
839
    Mode = "Bash11"
840
    wait(0.3)
841
    rootpart.CFrame = rootpart.CFrame:lerp(p1, 0.6)
842
    wait(1)
843
    sDps:disconnect()
844
    otheranims = false
845
    combocounter = 0
846
  end
847
  Slash = false
848
  lastclick = tick()
849
end)
850
function MediumParticleEmit(Object, Color)
851
  coroutine.wrap(function()
852
    while true do
853
      if not Wait(3.1) or not Object then
854
        break
855
      end
856
      do
857
        local p = Instance.new("Part", Object.Parent)
858
        p.Name = "Trail"
859
        p.TopSurface = 0
860
        p.BottomSurface = 0
861
        p.Anchored = true
862
        p.Material = "Neon"
863
        p.CanCollide = false
864
        p.FormFactor = "Custom"
865
        p.Size = Vector3.new(0.01, 0.01, 0.01)
866
        if type(Color) ~= "userdata" or not Color then
867
        end
868
        p.BrickColor = BrickColor.new(Color)
869
        p.CFrame = Object.CFrame * CFrame.new(math.random(-1, 1), math.random(-1, 1) - 3, math.random(-1, 1))
870
        local m = Instance.new("BlockMesh", p)
871
        m.Scale = Vector3.new(2, 2, 2)
872
        coroutine.wrap(function()
873
          for i = 1, 15 do
874
            p.Transparency = i / 15
875
            m.Scale = m.Scale + Vector3.new(0.1, 0.1, 0.1)
876
            p.CFrame = CFrame.new(p.Position + Vector3.new(math.random(-5, 5) / 20, 0.4, math.random(-5, 5) / 20)) * CFrame.fromEulerAnglesXYZ(math.random(-10, 10) / i, math.random(-10, 10) / i, 0.5)
877
            Wait()
878
          end
879
          p:Destroy()
880
        end)()
881
      end
882
    end
883
  end)()
884
end
885
function IsNear(Position, Distance, SinglePlayer, db)
886
  if SinglePlayer then
887
    return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
888
  end
889
  local List = {}
890
  for i, v in pairs(workspace:GetChildren()) do
891
    if v:IsA("Model") and v:findFirstChild("Torso") and Distance > (v.Torso.CFrame.p - Position).magnitude then
892
      table.insert(List, v)
893
    end
894
  end
895
  return List
896
end
897
local beaming = false
898
local Shielding = false
899
mouse.KeyDown:connect(function(k)
900
  if otheranims then
901
    return
902
  end
903
  if beaming then
904
    return
905
  end
906
  if Shielding then
907
    return
908
  end
909
  if k == "q" then
910
    if Grabbed then
911
      return
912
    end
913
    otheranims = true
914
    if not Sheathed then
915
      Mode = "Sheath"
916
      wait(0.7)
917
      raw.Part0 = Torso
918
      law.Part0 = Torso
919
      raw.C0 = rawc0 * CFrame.new(1.8, 3.3, 0.65) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-45), 0, 0)
920
      law.C0 = lawc0 * CFrame.new(-0.3, 0.5, 0.25) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-45), 0, 0)
921
      Sheathed = true
922
    else
923
      Mode = "Sheath"
924
      wait(0.7)
925
      raw.Part0 = char:findFirstChild("Right Arm")
926
      law.Part0 = char:findFirstChild("Left Arm")
927
      raw.C0 = rawc0
928
      law.C0 = lawc0
929
      Sheathed = false
930
    end
931
    otheranims = false
932
  elseif k == "g" then
933
    if Sheathed then
934
      otheranims = true
935
      Mode = "Sheath"
936
      wait(0.7)
937
      raw.Part0 = ra
938
      law.Part0 = la
939
      raw.C0 = rawc0
940
      law.C0 = lawc0
941
      Sheathed = false
942
      otheranims = false
943
      return
944
    end
945
    otheranims = true
946
    Mode = "Shielding"
947
    Shielding = true
948
    do
949
      local storedHp = hum.Health
950
      coroutine.wrap(function()
951
        local shieldTime = tick()
952
        while Shielding do
953
          if tick() - shieldTime > 60 then
954
            otheranims = false
955
            Shielding = false
956
            break
957
          end
958
          hum.Health = storedHp
959
          game:service("RunService").Stepped:wait()
960
        end
961
      end)()
962
    end
963
  elseif k:byte() == 50 then
964
    Ctrl = true
965
  elseif k:byte() == 48 then
966
    coroutine.wrap(function()
967
      for i = 70, 60, -1 do
968
        camera.FieldOfView = i
969
        wait()
970
      end
971
    end)()
972
    hum.WalkSpeed = speed
973
  elseif k == "r" then
974
    otheranims = true
975
    Mode = "Stomp1"
976
    wait(0.5)
977
    Mode = "Stomp2"
978
    do
979
      local Charging = true
980
      pt = Instance.new("Part", Torso)
981
      pt.Anchored = true
982
      pt.CanCollide = false
983
      pt.Locked = true
984
      pt.Material = "Neon"
985
      pt.FormFactor = "Custom"
986
      pt.Size = Vector3.new(1, 1, 1)
987
      pt.CFrame = rootpart.CFrame * CFrame.new(0, -1, 0)
988
      pt.Transparency = 0.6
989
      pt.BrickColor = BrickColor.new("Really blue")
990-
      pt.BrickColor = BrickColor.new("Bright green")
990+
991
      msh.MeshId = "http://www.roblox.com/asset/?id=20329976"
992
      msh.Scale = Vector3.new(10, 2, 10)
993
      pt2 = pt:clone()
994
      pt2.Parent = Torso
995
      pt2.CFrame = rootpart.CFrame * CFrame.new(0, -1, 0)
996
      pt2.BrickColor = BrickColor.new("Really black")
997
      msh2 = msh:clone()
998
      msh2.Parent = pt2
999
      msh2.Scale = Vector3.new(10, 2, 10)
1000
      custommath = {
1001
        25,
1002
        26,
1003
        27,
1004
        28,
1005
        29,
1006
        30,
1007
        31,
1008
        32,
1009
        33,
1010
        34,
1011
        35,
1012
        36,
1013
        37,
1014
        38,
1015
        39,
1016
        40,
1017
        41,
1018
        42,
1019
        43,
1020
        44,
1021
        45,
1022
        46,
1023
        47,
1024
        48,
1025
        49,
1026
        50,
1027
        51,
1028
        52,
1029
        53,
1030
        54,
1031
        55,
1032
        56,
1033
        57,
1034
        58,
1035
        59,
1036
        60,
1037
        61,
1038
        62,
1039
        63,
1040
        64,
1041
        65,
1042
        66,
1043
        67,
1044
        68,
1045
        69,
1046
        70,
1047
        71,
1048
        72,
1049
        73,
1050
        74,
1051
        75,
1052
        76,
1053
        77,
1054
        78,
1055
        79,
1056
        80,
1057
        81,
1058
        82,
1059
        83,
1060
        84,
1061
        85,
1062
        86,
1063
        87,
1064
        88,
1065
        89,
1066
        90,
1067
        91,
1068
        92,
1069
        93,
1070
        94,
1071
        95,
1072
        96,
1073
        97,
1074
        98,
1075
        99,
1076
        100,
1077
        -25,
1078
        -26,
1079
        -27,
1080
        -28,
1081
        -29,
1082
        -30,
1083
        -31,
1084
        -32,
1085
        -33,
1086
        -34,
1087
        -35,
1088
        -36,
1089
        -37,
1090
        -38,
1091
        -39,
1092
        -40,
1093
        -41,
1094
        -42,
1095
        -43,
1096
        -44,
1097
        -45,
1098
        -46,
1099
        -47,
1100
        -48,
1101
        -49,
1102
        -50,
1103
        -51,
1104
        -52,
1105
        -53,
1106
        -54,
1107
        -55,
1108
        -56,
1109
        -57,
1110
        -58,
1111
        -59,
1112
        -60,
1113
        -61,
1114
        -62,
1115
        -63,
1116
        -64,
1117
        -65,
1118
        -66,
1119
        -67,
1120
        -68,
1121
        -69,
1122
        -70,
1123
        -71,
1124
        -72,
1125
        -73,
1126
        -74,
1127
        -75,
1128
        -76,
1129
        -77,
1130
        -78,
1131
        -79,
1132
        -80,
1133
        -81,
1134
        -82,
1135
        -83,
1136
        -84,
1137
        -85,
1138
        -86,
1139
        -87,
1140
        -88,
1141
        -89,
1142
        -90,
1143
        -91,
1144
        -92,
1145
        -93,
1146
        -94,
1147
        -95,
1148
        -96,
1149
        -97,
1150
        -98,
1151
        -99,
1152
        -100
1153
      }
1154
      bl = Instance.new("Part", char)
1155
      bl.Locked = true
1156
      bl.Name = "Shell"
1157
      bl.BrickColor = BrickColor.new("Really black")
1158
      bl.Anchored = true
1159
      bl.Material = "Neon"
1160
      bl.CanCollide = false
1161
      bl.Transparency = 0
1162
      bl.Reflectance = 0
1163
      bl.BottomSurface = 0
1164
      bl.TopSurface = 0
1165
      bl.Shape = 0
1166
      blm = Instance.new("SpecialMesh", bl)
1167
      blm.MeshType = "Sphere"
1168
      blm.Scale = Vector3.new(1, 1, 1)
1169
      coroutine.resume(coroutine.create(function()
1170
        for i = 1, math.huge, 4 do
1171
          if Charging == true then
1172
            game:service("RunService").Stepped:wait()
1173
            bl.CFrame = rootpart.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-i / 10), math.rad(-i / 10), math.rad(i / 10))
1174
            blm.Scale = blm.Scale + Vector3.new(0.5, 0.5, 0.5)
1175
            bl.Transparency = bl.Transparency + 0.05
1176
            pt.CFrame = rootpart.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(i * 2), 0)
1177
            pt2.CFrame = rootpart.CFrame * CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-i * 2), 0)
1178
            msh.Scale = msh.Scale + Vector3.new(0.7, 0, 0.7)
1179
            msh2.Scale = msh2.Scale + Vector3.new(0.7, 0, 0.7)
1180
            pt.Transparency = pt.Transparency + 0.015
1181
            pt2.Transparency = pt2.Transparency + 0.015
1182
          elseif Charging == false then
1183
            break
1184
          end
1185
        end
1186
      end))
1187
      local Damaged = {}
1188
      coroutine.wrap(function()
1189
        for i, v in pairs(IsNear(Torso.Position, 25, nil, true)) do
1190
          if v ~= Char then
1191
            if Damaged[v:FindFirstChild("Humanoid")] and tick() - Damaged[v:FindFirstChild("Humanoid")] < 0.25 then
1192
              return
1193
            end
1194
            v:FindFirstChild("Humanoid").Health = v:findFirstChild("Humanoid").Health - 25
1195
            v:findFirstChild("Humanoid").PlatformStand = true
1196
            local vu = Instance.new("BodyVelocity", v:findFirstChild("Torso"))
1197
            vu.P = 500
1198
            vu.maxForce = Vector3.new(10000000000, 5.0E21, 100000000000)
1199
            vu.velocity = Head.CFrame.lookVector * 80
1200
            game:GetService("Debris"):AddItem(vu, 0.267)
1201
            Damaged[v:FindFirstChild("Humanoid")] = tick()
1202
          end
1203
        end
1204
      end)()
1205
      Spawn(function()
1206
        while game:service("RunService").Stepped:wait() do
1207
          if p and p.Transparency >= 1 then
1208
            pcall(function()
1209
              p:Destroy()
1210
            end)
1211
            break
1212
          end
1213
          if not p then
1214
            break
1215
          end
1216
          p.CFrame = p.CFrame * CFrame.Angles(math.rad(2), math.rad(2), math.rad(2)) + Vector3.new(0, 0.2, 0)
1217
          p.Transparency = p.Transparency + 0.01
1218
        end
1219
      end)
1220
      wait(1)
1221
      pt:Destroy()
1222
      pt2:Destroy()
1223
      bl:Destroy()
1224
      Charging = false
1225
      otheranims = false
1226
    end
1227
  elseif k == "e" then
1228
    do
1229
      local weld5 = function(part0, part1, c0, c1)
1230
        weeld = Instance.new("Weld", part0)
1231
        weeld.Part0 = part0
1232
        weeld.Part1 = part1
1233
        weeld.C0 = c0
1234
        weeld.C1 = c1
1235
        return weeld
1236
      end
1237
      if not Sheathed then
1238
        otheranims = true
1239
        Mode = "Sheath"
1240
        wait(0.7)
1241
        raw.Part0 = Torso
1242
        law.Part0 = Torso
1243
        raw.C0 = rawc0 * CFrame.new(1.8, 3.3, 0.65) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-45), 0, 0)
1244
        law.C0 = lawc0 * CFrame.new(-0.3, 0.5, 0.25) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-45), 0, 0)
1245
        Sheathed = true
1246
        otheranims = false
1247
        return
1248
      end
1249
      if not Grabbed then
1250
        otheranims = true
1251
        Mode = "Grabbing"
1252
        con1 = ra.Touched:connect(function(hit)
1253
          if hit:IsDescendantOf(Char) then
1254
            return
1255
          end
1256
          ht = hit.Parent
1257
          hum1 = ht:FindFirstChild("Humanoid")
1258
          if hum1 ~= nil then
1259
            hum1.Changed:connect(function(a)
1260
              if not hum1 then
1261
                return
1262
              end
1263
              if a == "PlatformStand" then
1264
                hum1.PlatformStand = true
1265
              elseif a == "Jump" then
1266
                hum1.Jump = false
1267
              elseif a == "WalkSpeed" then
1268
                hum1.WalkSpeed = 0
1269
              elseif a == "JumpPower" then
1270
                hum1.JumpPower = 0
1271
              end
1272
            end)
1273
            hum1.PlatformStand = true
1274
            hum1.Jump = false
1275
            hum1.WalkSpeed = 0
1276
            hum1.JumpPower = 0
1277
            gp = ht
1278
            local asde = weld5(ra, ht:FindFirstChild("Torso"), CFrame.new(0, -1.3, 0), CFrame.new(0, 0, 0))
1279
            asde.Parent = ra
1280
            asde.Name = "asde"
1281
            asde.C0 = asde.C0 * CFrame.Angles(math.rad(-90), math.rad(0), 0)
1282
            Grabbed = true
1283
          end
1284
        end)
1285
        wait(0.5)
1286
        con1:disconnect()
1287
        otheranims = false
1288
      else
1289
        otheranims = true
1290
        pcall(function()
1291
          repeat
1292
            ht:findFirstChild("Humanoid").Health = ht:findFirstChild("Humanoid").Health - ht:findFirstChild("Humanoid").MaxHealth * 0.01
1293
            game:service("RunService").Stepped:wait()
1294
            hum:TakeDamage(-5)
1295
          until ht:findFirstChild("Humanoid").Health <= ht:findFirstChild("Humanoid").MaxHealth * 0.015
1296
        end)
1297
        Mode = "Slash11"
1298
        wait(0.4)
1299
        Mode = "Throw1"
1300
        pcall(function()
1301
          ra:findFirstChild("asde"):Destroy()
1302
        end)
1303
        local vu = Instance.new("BodyVelocity", ht.Torso)
1304
        vu.P = 500
1305
        vu.maxForce = Vector3.new(10000000000, 5.0E21, 100000000000)
1306
        vu.velocity = Head.CFrame.lookVector * 100
1307
        game:GetService("Debris"):AddItem(vu, 0.267)
1308
        wait(0.5)
1309
        Ragdoll(true, ht)
1310
        ht:findFirstChild("Humanoid").PlatformStand = true
1311
        coroutine.wrap(function()
1312
          wait(5)
1313
          ht:breakJoints("")
1314
        end)()
1315
        Grabbed = false
1316
        otheranims = false
1317
      end
1318
    end
1319
  elseif k == "f" then
1320
    otheranims = true
1321
    if Grabbed then
1322
      return
1323
    end
1324
    if not Sheathed then
1325
      Mode = "Sheath"
1326
      wait(0.7)
1327
      raw.Part0 = Torso
1328
      law.Part0 = Torso
1329
      raw.C0 = rawc0 * CFrame.new(1.8, 3.3, 0.65) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-45), 0, 0)
1330
      law.C0 = lawc0 * CFrame.new(-0.3, 0.5, 0.25) * CFrame.Angles(0, math.rad(90), 0) * CFrame.Angles(math.rad(-45), 0, 0)
1331
      Sheathed = true
1332
      otheranims = false
1333
      return
1334
    end
1335
    Mode = "Beam"
1336
    hum.WalkSpeed = 0
1337
    do
1338
      local m0del = Instance.new("Model", char)
1339
      local wave = Instance.new("Part", m0del)
1340
      wave.CFrame = char.Head.CFrame * CFrame.new(0, 0, -10)
1341
      wave.TopSurface = "Smooth"
1342
      wave.BottomSurface = "Smooth"
1343
      wave.BrickColor = BrickColor.new("Really blue")
1344-
      wave.BrickColor = BrickColor.new("Bright green")
1344+
1345
      wave.FormFactor = "Custom"
1346
      wave.Shape = "Ball"
1347
      wave.CanCollide = false
1348
      wave.Transparency = 1
1349
      wave.Material = "Neon"
1350
      wave.Size = Vector3.new(0.4, 0.4, 0.4)
1351
      local needaloop = true
1352
      beaming = true
1353
      local coro = coroutine.resume(coroutine.create(function()
1354
        while needaloop do
1355
          game:service("RunService").Stepped:wait()
1356
          local c = char
1357
          local radius = 25
1358
          local pos = wave.CFrame * CFrame.new(0, 0, 20)
1359
          local clrz = {
1360
            "Really black",
1361
            "Bright green"
1362
          }
1363
          for i = 1, 1 do
1364
            do
1365
              local clr = clrz[math.random(1, #clrz)]
1366
              pos = wave.CFrame * CFrame.new(0, 0, 2)
1367
              local p = Instance.new("Part", c)
1368
              local mafa = math.random(-360, 360)
1369
              p.CanCollide = false
1370
              p.Size = Vector3.new(1.3, 1.3, 1.3)
1371
              local m = Instance.new("SpecialMesh", p)
1372
              m.MeshType = "Sphere"
1373
              spawn(function()
1374
                for i = 0, 50 do
1375
                  local int, int2 = 0.05, 0.05
1376
                  m.Scale = m.Scale - Vector3.new(int, int, int)
1377
                  p.Transparency = p.Transparency + int2
1378
                  game:service("RunService").Stepped:wait()
1379
                end
1380
                pcall(function()
1381
                  p:Destroy()
1382
                end)
1383
              end)
1384
              p.BrickColor = BrickColor.new(clr)
1385
              p.Material = "Neon"
1386
              p.CFrame = pos * CFrame.new(math.random(-radius, radius), math.random(-radius, radius), math.random(-radius, radius)) * CFrame.Angles(mafa, mafa, mafa)
1387
              local bp = Instance.new("BodyPosition", p)
1388
              bp.MaxForce = Vector3.new(1 / 0, 1 / 0, 1 / 0)
1389
              bp.D = 100
1390
              bp.P = 300
1391
              bp.Position = pos.p
1392
              game.Debris:AddItem(p, 10)
1393
            end
1394
          end
1395
        end
1396
      end))
1397
      local nbeamy = beamy:Clone()
1398
      nbeamy.Parent = char
1399
      coroutine.wrap(function()
1400
        local Ringz = {}
1401
        for i, v in pairs(nbeamy:children("")) do
1402
          if v.Name:lower():find("ring") then
1403
            table.insert(Ringz, v)
1404
          end
1405
        end
1406
        local Rot = 0
1407
        while nbeamy do
1408
          Rot = Rot + 0.035
1409
          if Rot >= 360 then
1410
            Rot = 0
1411
          end
1412
          for q, e in pairs(Ringz) do
1413
            pcall(function()
1414
              if e.Name ~= "Ring7" then
1415
                e.qCFrameWeldThingy.C0 = e.qCFrameWeldThingy.C0 * CFrame.Angles(0, 0, math.rad(e.Name ~= "Ring4" and Rot or -Rot))
1416
              end
1417
            end)
1418
          end
1419
          game:service("RunService").Stepped:wait()
1420
        end
1421
      end)()
1422
      local bp = Instance.new("BodyPosition", nbeamy.FireFrom)
1423
      bp.MaxForce = Vector3.new(1 / 0, 1 / 0, 1 / 0)
1424
      bp.D = 100
1425
      bp.P = 1000
1426
      bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p
1427
      for awe = 1, 250 do
1428
        wave.CFrame = char.Head.CFrame * CFrame.new(10, 20, -5)
1429
        nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(wave.CFrame.p, mouse.Hit.p) * CFrame.Angles(math.rad(180), 0, 0), 1)
1430
        bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p
1431
        wave.Size = Vector3.new(wave.Size.X + 0.1, wave.Size.Y + 0.1, wave.Size.Z + 0.1)
1432
        game:service("RunService").Stepped:wait()
1433
      end
1434
      needaloop = false
1435
      local beam = Instance.new("Part", m0del)
1436
      beam.TopSurface = "Smooth"
1437
      beam.BottomSurface = "Smooth"
1438
      beam.Material = "Neon"
1439
      beam.Transparency = 0.6
1440
      beam.Anchored = true
1441
      beam.BrickColor = BrickColor.new("Really blue")
1442-
      beam.BrickColor = BrickColor.new("Bright green")
1442+
1443
      local mesh = Instance.new("CylinderMesh", beam)
1444
      local realbeam = beam:Clone()
1445
      realbeam.Parent = m0del
1446
      realbeam.Color = Color3.new(0, 0.7843137254901961, 0)
1447
      realbeam.Transparency = 0.1
1448
      realbeam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
1449
      beam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
1450
      beam.Size = Vector3.new(23, 5, 23)
1451
      realbeam.Size = Vector3.new(24, 5, 24)
1452
      local p = wave:Clone()
1453
      p.Parent = m0del
1454
      p.Anchored = true
1455
      p.Transparency = 1
1456
      p.Size = Vector3.new(10, 10, 10)
1457
      local Damaged = {}
1458
      for HAAA = 1, 500 do
1459
        do
1460
          local starthere = char.Head.CFrame * CFrame.new(10, 20, -5)
1461
          local idek = Ray.new(starthere.p, (mouse.Hit.p - starthere.p).unit * 1000)
1462
          local thx = {char, m0del}
1463
          table.insert(thx, p)
1464
          local Bonk, ovhere = workspace:FindPartOnRayWithIgnoreList(idek, thx)
1465
          local meg
1466
          p.Transparency = 1
1467
          if Bonk and Bonk.Parent:findFirstChild("Humanoid") then
1468
            do
1469
              local dionamuh = Bonk.Parent:findFirstChild("Humanoid")
1470
              if Damaged[dionamuh] and tick() - Damaged[dionamuh] > 0.05 then
1471
                Damaged[dionamuh] = tick()
1472
                pcall(function()
1473
                  dionamuh.Health = dionamuh.Health - 2
1474
                end)
1475
              elseif not Damaged[dionamuh] then
1476
                Damaged[dionamuh] = tick()
1477
              end
1478
            end
1479
          end
1480
          meg = (starthere.p - ovhere).magnitude
1481
          coroutine.wrap(function()
1482
            local asd = Instance.new("Part", char)
1483
            asd.CFrame = CFrame.new(ovhere) * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
1484
            asd.Size = Vector3.new(5, 5, 5)
1485
            asd.Reflectance = 0.4
1486
            asd.Transparency = 0.05
1487
            asd.TopSurface, asd.BottomSurface = 0, 0
1488
            asd.CanCollide = false
1489
            asd.Color = Color3.new(0, 0.5882352941176471, 0)
1490
            asd.Anchored = true
1491
            asd.Locked = true
1492
            wait()
1493
            for i = 0.05, 1, 0.05 do
1494
              asd.Transparency = i
1495
              asd.Size = asd.Size + Vector3.new(0.2, 0.2, 0.2)
1496
              game:service("RunService").Stepped:wait()
1497
            end
1498
            asd:Destroy()
1499
          end)()
1500
          game:service("RunService").Stepped:wait()
1501
          realbeam.Size = Vector3.new(3.5, meg, 3.5)
1502
          beam.Size = Vector3.new(2.5, meg, 2.5)
1503
          realbeam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0, 0, -meg / 2) * CFrame.Angles(math.rad(90), 0, 0)
1504
          beam.CFrame = CFrame.new(starthere.p, ovhere) * CFrame.new(0, 0, -meg / 2) * CFrame.Angles(math.rad(90), 0, 0)
1505
          pcall(function()
1506
            nbeamy.FireFrom.CFrame = nbeamy.FireFrom.CFrame:lerp(CFrame.new(starthere.p, ovhere) * CFrame.new(0, 0, 2) * CFrame.Angles(math.rad(180), 0, 0), 1)
1507
          end)
1508
          bp.Position = (char.Head.CFrame * CFrame.new(10, 20, -5)).p
1509
          wave.CFrame = starthere
1510
        end
1511
      end
1512
      nbeamy.FireFrom.Anchored = true
1513
      p:Destroy()
1514
      for i = 0, 1, 0.05 do
1515
        realbeam.Transparency = i
1516
        wave.Transparency = i
1517
        beam.Transparency = i
1518
        game:service("RunService").Stepped:wait()
1519
      end
1520
      nbeamy:Destroy()
1521
      beaming = false
1522
      m0del:Destroy()
1523
      hum.WalkSpeed = speed
1524
      otheranims = false
1525
    end
1526
  elseif k == "c" then
1527
    if Sheathed then
1528
      otheranims = true
1529
      Mode = "Sheath"
1530
      wait(0.7)
1531
      raw.Part0 = ra
1532
      law.Part0 = la
1533
      raw.C0 = rawc0
1534
      law.C0 = lawc0
1535
      Sheathed = false
1536
      otheranims = false
1537
      return
1538
    end
1539
    otheranims = true
1540
    hum.WalkSpeed = 0
1541
    Mode = "Stabbing1"
1542
    wait(0.7)
1543
    Mode = "Stabbing2"
1544
    do
1545
      local Parts = {}
1546
      local Damaged = {}
1547
      for i = 1, 360, 20 do
1548
        do
1549
          local s = Instance.new("Part", char)
1550
          table.insert(Parts, s)
1551
          s.Name = "Spikey"
1552
          s.CFrame = Torso.CFrame * CFrame.new(0, -10, 0)
1553
          s.Size = Vector3.new(1, 1, 1)
1554
          s.CanCollide = false
1555
          s.Anchored = true
1556
          s.BrickColor = BrickColor.new("Really blue")
1557-
          s.BrickColor = BrickColor.new("Bright green")
1557+
1558
          s.Name = "s"
1559
          s.Material = "Neon"
1560
          s.Size = Vector3.new(1, 1, 1)
1561
          s.BottomSurface = Enum.SurfaceType.Smooth
1562
          s.TopSurface = Enum.SurfaceType.Smooth
1563
          local PurpleMesh = Instance.new("SpecialMesh", s)
1564
          PurpleMesh.MeshType = Enum.MeshType.FileMesh
1565
          PurpleMesh.Name = "Mesh"
1566
          PurpleMesh.Scale = Vector3.new(0.5, 0.5, 0.5)
1567
          PurpleMesh.MeshId = "http://www.roblox.com/Asset/?id=9756362"
1568
          PurpleMesh.VertexColor = Vector3.new(1, 0, 1)
1569
          local qwe = -10
1570
          coroutine.wrap(function()
1571
            while s do
1572
              if qwe >= -1 then
1573
                qwe = 0
1574
              else
1575
                qwe = qwe + 0.4
1576
              end
1577
              s.CFrame = s.CFrame:lerp(CFrame.new(Torso.CFrame.p) * CFrame.new(0, qwe, 0) * CFrame.Angles(0, 0, 0) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(0, 0, -20), 0.3)
1578
              game:service("RunService").Stepped:wait()
1579
            end
1580
          end)()
1581
          coroutine.wrap(function()
1582
            repeat
1583
              wait()
1584
            until qwe >= -1
1585
            for i = 0.5, 2, 0.025 do
1586
              PurpleMesh.Scale = Vector3.new(i, i * 2, i)
1587
              game:service("RunService").Stepped:wait()
1588
            end
1589
            local it = Instance.new
1590
            local vt = Vector3.new
1591
            local cf = CFrame.new
1592
            local euler = CFrame.fromEulerAnglesXYZ
1593
            local angles = CFrame.Angles
1594
            local NoOutline = function(Part)
1595
              Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
1596
            end
1597
            local function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
1598
              local fp = Instance.new("Part")
1599
              fp.formFactor = formfactor
1600
              fp.Parent = parent
1601
              fp.Reflectance = reflectance
1602
              fp.Transparency = transparency
1603
              fp.CanCollide = false
1604
              fp.Locked = true
1605
              fp.BrickColor = BrickColor.new(tostring(brickcolor))
1606
              fp.Name = name
1607
              fp.Size = size
1608
              fp.Position = Torso.Position
1609
              fp.Material = material
1610
              fp:BreakJoints()
1611
              return fp
1612
            end
1613
            local function mesh(Mesh, part, meshtype, meshid, offset, scale)
1614
              local mesh = it(Mesh)
1615
              mesh.Parent = part
1616
              if Mesh == "SpecialMesh" then
1617
                mesh.MeshType = meshtype
1618
                mesh.MeshId = meshid
1619
              end
1620
              mesh.Offset = offset
1621
              mesh.Scale = scale
1622
              return mesh
1623
            end
1624
            local function weld(parent, part0, part1, c0, c1)
1625
              local weld = it("Weld")
1626
              weld.Parent = parent
1627
              weld.Part0 = part0
1628
              weld.Part1 = part1
1629
              weld.C0 = c0
1630
              weld.C1 = c1
1631
              return weld
1632
            end
1633
            local function BreakEffect(brickcolor, cframe, x1, y1, z1)
1634
              local prt = part("Custom", char, "Neon", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1635
              prt.Anchored = true
1636
              prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1637
              local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1638
              coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
1639
                CF = Part.CFrame
1640
                Numbb = 0
1641
                randnumb = math.random() - math.random()
1642
                for i = 0, 1, 0.05 do
1643
                  wait()
1644
                  CF = CF * cf(0, 1, 0)
1645
                  Part.CFrame = CF * euler(Numbb, 0, 0)
1646
                  Part.Transparency = i
1647
                  Numbb = Numbb + randnumb
1648
                end
1649
                Part.Parent = nil
1650
              end), prt)
1651
            end
1652
            for i = 1, 3 do
1653
              BreakEffect(BrickColor.new("Really blue"), s.CFrame, 0.5, math.random(5, 10), 0.5)
1654-
              BreakEffect(BrickColor.new("Bright green"), s.CFrame, 0.5, math.random(5, 10), 0.5)
1654+
1655
            coroutine.wrap(function()
1656
              for i, v in pairs(IsNear(Torso.Position, 35, nil, true)) do
1657
                if v ~= Char then
1658
                  if Damaged[v:FindFirstChild("Humanoid")] and tick() - Damaged[v:FindFirstChild("Humanoid")] < 0.5 then
1659
                    return
1660
                  end
1661
                  v:FindFirstChild("Humanoid").Health = v:findFirstChild("Humanoid").Health - 25
1662
                  v:findFirstChild("Humanoid").PlatformStand = true
1663
                  local vu = Instance.new("BodyVelocity", v:findFirstChild("Torso"))
1664
                  vu.P = 500
1665
                  vu.maxForce = Vector3.new(10000000000, 5.0E21, 100000000000)
1666
                  vu.velocity = Head.CFrame.lookVector * 60
1667
                  game:GetService("Debris"):AddItem(vu, 0.267)
1668
                  Damaged[v:FindFirstChild("Humanoid")] = tick()
1669
                end
1670
              end
1671
            end)()
1672
            s:Destroy()
1673
          end)()
1674
          game:service("RunService").Stepped:wait()
1675
        end
1676
      end
1677
      wait(3)
1678
      hum.WalkSpeed = speed
1679
      otheranims = false
1680
    end
1681
  end
1682
end)
1683
mouse.KeyUp:connect(function(k)
1684
  if k:byte() == 48 then
1685
    coroutine.wrap(function()
1686
      for i = 60, 70 do
1687
        camera.FieldOfView = i
1688
        wait()
1689
      end
1690
    end)()
1691
    hum.WalkSpeed = speed
1692
  elseif k:byte() == 50 then
1693
    Ctrl = false
1694
  elseif k == "g" then
1695
    Shielding = false
1696
    otheranims = false
1697
  end
1698
end)
1699
game.Lighting.TimeOfDay = "06:10:00"
1700
pcall(game.Destroy, game:service("Lighting"):findFirstChild("SunRayz"))
1701
local sr = Instance.new("SunRaysEffect", game.Lighting)
1702
sr.Intensity = 0.1
1703
sr.Name = "SunRayz"
1704
hum.JumpPower = 10
1705
Jumping = false
1706
lastCtrl = tick()
1707
Character.Humanoid.Jumping:connect(function()
1708
  if Jumping then
1709
    return
1710
  end
1711
  local eCtrl = Ctrl
1712
  if eCtrl then
1713
    if tick() - lastCtrl < 0.2 then
1714
      eCtrl = false
1715
    end
1716
    lastCtrl = tick()
1717
  end
1718
  Mode = "Jumping"
1719
  Jumping = true
1720
  local vu = Instance.new("BodyVelocity", Torso)
1721
  vu.P = 500
1722
  vu.maxForce = Vector3.new(10000000000, 5.0E21, 100000000000)
1723
  vu.velocity = Vector3.new(Head.CFrame.lookVector.X * (eCtrl and 60 or 10), eCtrl and 10 or 20, Head.CFrame.lookVector.Z * (eCtrl and 60 or 10))
1724
  game:GetService("Debris"):AddItem(vu, 0.267)
1725
  wait(0.7)
1726
  Jumping = false
1727
end)
1728
spawn(function()
1729
  while true do
1730
    local Size = Vector3.new(TrailPart.Size.X, TrailPart.Size.Y, TrailPart.Size.Z)
1731
    if Slash == true then
1732
      local P1 = (TrailPart.CFrame * CFrame.new(Size / 2)).p
1733
      local P2 = (TrailPart.CFrame * CFrame.new(Size / -2)).p
1734
      if LastTrail then
1735
        local p1 = CreateTriangle(Char, LastTrail[2], LastTrail[1], P2)
1736
        local p2 = CreateTriangle(Char, LastTrail[1], P1, P2)
1737
        Trails[#Trails + 1] = p1
1738
        Trails[#Trails + 1] = p2
1739
      end
1740
      LastTrail = {P1, P2}
1741
    else
1742
      LastTrail = nil
1743
    end
1744
    for i, v in pairs(Trails) do
1745
      v:SetProperty("Transparency", v:GetProperty("Transparency") + 0.1)
1746
      if 1 <= v:GetProperty("Transparency") then
1747
        v:Destroy()
1748
        Trails[i] = nil
1749
      end
1750
    end
1751
    rwait(0.5)
1752
  end
1753
end)
1754
SlashDamage = Damage(TrailPart)
1755
local count = 0
1756
local t = tick()
1757
local Smooth = 1
1758
local sine = 0
1759
local change = 1
1760
coroutine.wrap(function()
1761
  game:service("RunService").Heartbeat:connect(function()
1762
    local torso = char:FindFirstChild("Torso")
1763
    local mg = Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude
1764
    if not otheranims then
1765
      if mg < 3 and not Jumping then
1766
        Mode = "Idling"
1767
      elseif mg > 3 and mg < 10 and not Jumping then
1768
        Mode = "Walking"
1769
      elseif mg > 10 and not Jumping then
1770
        Mode = "Running"
1771
      elseif Jumping and Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 and mg > 1 then
1772
        Mode = "Jumping"
1773
      end
1774
    end
1775
    count = count % 100 + 0.2 * hum.WalkSpeed / 6.5
1776
    angle = math.pi * math.sin(math.pi * 2 / 100 * count)
1777
    t = t + 0.2 * Smooth
1778
    sine = sine + change
1779
    if Mode == "Jumping" then
1780
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.6, -0.6) * CFrame.Angles(0, -math.rad(10), 0), 0.4)
1781
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.4, -0.3), 0.4)
1782
      lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), 0, 0), 0.4)
1783
      lerp(lm, lm.C0, lsc0 * CFrame.Angles(-math.rad(20), 0, -math.rad(30)), 0.4)
1784
      lerp(rm, rm.C0, rsc0 * CFrame.Angles(-math.rad(20), 0, math.rad(30)), 0.4)
1785
      lerp(rj, rj.C0, rootc0 * CFrame.Angles(math.rad(20), 0, 0), 0.4)
1786
    elseif Mode == "Idling" then
1787
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, math.sin(t / 20) / 7, 0) * CFrame.Angles(0, -math.rad(0), math.rad(8)), 0.3)
1788
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, math.sin(t / 20) / 7, 0) * CFrame.Angles(0, 0, -math.rad(8)), 0.3)
1789
      if not Sheathed then
1790
        lerp(neck, neck.C0, neckc0 * CFrame.new(0, -math.cos(t / 20) / 7, 0) * CFrame.Angles(-1 * math.cos(t / 20) / 7, -math.rad(15), 0), 0.2)
1791
        lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.sin(t / 20) / 7, -math.rad(5), -math.rad(20)), 0.2)
1792
        lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t / 20) / 7, math.rad(5), math.rad(20)), 0.2)
1793
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -math.sin(t / 20) / 7) * CFrame.Angles(0, 0, math.rad(15)), 0.3)
1794
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1)
1795
      else
1796
        lerp(neck, neck.C0, neckc0 * CFrame.new(0, -math.sin(t / 20) / 15, 0) * CFrame.Angles(-2 * math.cos(t / 15) / 20, -math.rad(5), 0), 0.2)
1797
        lerp(lm, lm.C0, lsc0 * CFrame.new(0, -0.2, 0) * CFrame.Angles(math.sin(t / 20) / 20, -math.rad(5), -math.rad(10)), 0.2)
1798
        lerp(rm, rm.C0, rsc0 * CFrame.new(0, -0.2, 0) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.sin(t / 20) / 15, math.rad(5), math.rad(Grabbed and 20 or 0) + math.rad(10)), 0.2)
1799
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -math.sin(t / 20) / 15) * CFrame.Angles(0, 0, math.rad(5)), 0.3)
1800
      end
1801
    elseif Mode == "Walking" then
1802
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3 * math.cos(sine / 14) / 2, -0.05 + -math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + math.sin(sine / 14) / 2.3, 0, 0), 0.4)
1803
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3 * -math.cos(sine / 14) / 2, -0.05 + math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + -math.sin(sine / 14) / 2.3, 0, 0), 0.4)
1804
      lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3 + 2 * math.cos(sine / 7)), math.rad(0 - 3 * math.cos(sine / 14)), math.rad(0)), 0.2)
1805
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0.03 * math.cos(sine / 9), -math.sin(sine / 20) / 6) * CFrame.Angles(-math.rad(20 * math.cos(sine / 17)), math.rad(0), -math.rad(12)), 0.2)
1806
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0.03 * math.cos(sine / 9), math.sin(sine / 20) / 6) * CFrame.Angles(math.rad(Grabbed and 120 or 0) + math.rad(20 * math.cos(sine / 17)), math.rad(0), math.rad(Grabbed and 20 or 0) + math.rad(12)), 0.2)
1807
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1 * math.cos(sine / 7), 0) * CFrame.Angles(math.rad(2 + 2 * math.cos(sine / 7)), 0, math.rad(0 + 3 * math.cos(sine / 14))), 0.2)
1808
      if not Sheathed then
1809
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1)
1810
      end
1811
    elseif Mode == "Running" then
1812
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3 * math.cos(sine / 10) / 2, -0.05 + -math.sin(sine / 10) / 2) * CFrame.Angles(math.rad(-18) + math.sin(sine / 10) / 2, 0, 0), 0.4)
1813
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3 * -math.cos(sine / 10) / 2, -0.05 + math.sin(sine / 10) / 2) * CFrame.Angles(math.rad(-18) + -math.sin(sine / 10) / 2, 0, 0), 0.4)
1814
      lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(6 + 6 * math.cos(sine / 10) / 2), math.rad(0), math.rad(0)), 0.2)
1815
      lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(-10 - 20 * math.cos(sine / 10) / 5), -math.rad(-40 + 10 * math.cos(sine / 10) / 5), -math.rad(50 - 10 * math.cos(sine / 10) / 5)), 0.2)
1816
      lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(-10 - 20 * math.cos(sine / 10) / 5), math.rad(-40 + 10 * math.cos(sine / 10) / 5), math.rad(50 - 10 * math.cos(sine / 10) / 5)), 0.2)
1817
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1 + 0.2 * math.cos(sine / 10) / 2, 0) * CFrame.Angles(math.rad(14 + 10 * math.cos(sine / 10) / 2), -math.cos(t / 6) / 30 + math.sin(rootpart.RotVelocity.y / 2) / 6, math.rad(0)), 0.2)
1818
      if not Sheathed then
1819
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(0, 0, 0), 1)
1820
      end
1821
    elseif Mode == "Sheath" then
1822
      if mg > 3 and mg < 18 then
1823
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3 * math.cos(sine / 14) / 2, -0.05 + -math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + math.sin(sine / 14) / 2.3, 0, 0), 0.4)
1824
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3 * -math.cos(sine / 14) / 2, -0.05 + math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + -math.sin(sine / 14) / 2.3, 0, 0), 0.4)
1825
      else
1826
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, math.sin(t / 15) / 15, 0) * CFrame.Angles(0, -math.rad(0), math.rad(8)), 0.3)
1827
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, math.sin(t / 15) / 15, 0) * CFrame.Angles(0, 0, -math.rad(8)), 0.3)
1828
      end
1829
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, math.sin(t / 15) / 15, 0) * CFrame.Angles(-1 * math.cos(t / 25) / 10, -math.rad(15), 0), 0.2)
1830
      lerp(lm, lm.C0, lsc0 * CFrame.Angles(math.rad(10), math.rad(120), -math.rad(60)), 0.2)
1831
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0.6, -0.2) * CFrame.Angles(math.rad(175), math.rad(0), math.rad(20)), 0.2)
1832
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -math.sin(t / 15) / 15) * CFrame.Angles(0, 0, math.rad(15)), 0.3)
1833
      if not Sheathed then
1834
        lerp(raw, raw.C0, rawc0 * CFrame.new(-0.5, -1.6, -0.85) * CFrame.Angles(math.rad(92), math.rad(26), math.rad(90)), 1)
1835
      end
1836
    elseif Mode == "Slash11" then
1837
      if mg > 3 then
1838
        lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3 + 2 * math.cos(sine / 7)), math.rad(0 - 3 * math.cos(sine / 14)), math.rad(0)), 0.6)
1839
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1 * math.cos(sine / 7), 0) * CFrame.Angles(math.rad(2 + 2 * math.cos(sine / 7)), 0, math.rad(0 + 3 * math.cos(sine / 14))), 0.6)
1840
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3 * math.cos(sine / 14) / 2, -0.05 + -math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + math.sin(sine / 14) / 2.3, 0, 0), 0.6)
1841
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3 * -math.cos(sine / 14) / 2, -0.05 + math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + -math.sin(sine / 14) / 2.3, 0, 0), 0.6)
1842
      else
1843
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), 0.6)
1844
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.2, -0.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.6)
1845
        lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(0)), 0.6)
1846
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), 0.6)
1847
      end
1848
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, -0.5, -0.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.6)
1849
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), 0.6)
1850
      if not Sheathed then
1851
        lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1)
1852
      end
1853
    elseif Mode == "Slash12" then
1854
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.2, -0.3) * CFrame.Angles(math.rad(10), -math.rad(60), math.rad(10)), 0.6)
1855
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -0.2, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), 0.6)
1856
      lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(30), -math.rad(70), math.rad(30)), 0.6)
1857
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), 0.6)
1858
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(50), math.rad(40)), 0.6)
1859
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -0.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(90)), 0.6)
1860
      if not Sheathed then
1861
        lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -0.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1)
1862
      end
1863
    elseif Mode == "Slash31" then
1864
      if mg > 3 then
1865
        lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3 + 2 * math.cos(sine / 7)), math.rad(0 - 3 * math.cos(sine / 14)), math.rad(0)), 0.6)
1866
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1 * math.cos(sine / 7), 0) * CFrame.Angles(math.rad(2 + 2 * math.cos(sine / 7)), 0, math.rad(0 + 3 * math.cos(sine / 14))), 0.6)
1867
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3 * math.cos(sine / 14) / 2, -0.05 + -math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + math.sin(sine / 14) / 2.3, 0, 0), 0.6)
1868
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3 * -math.cos(sine / 14) / 2, -0.05 + math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + -math.sin(sine / 14) / 2.3, 0, 0), 0.6)
1869
      else
1870
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.5, -0.3) * CFrame.Angles(math.rad(10), 0, 0), 0.4)
1871
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(5), -math.rad(5)), 0.4)
1872
        lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(15), math.rad(15), math.rad(0)), 0.6)
1873
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, -math.rad(15)), 0.6)
1874
      end
1875
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(10), -math.rad(20)), 0.6)
1876
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(60), -math.rad(60), math.rad(110)), 0.6)
1877
      if not Sheathed then
1878
        lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1.2, 0) * CFrame.Angles(-math.rad(20), 0, math.rad(90)), 1)
1879
      end
1880
    elseif Mode == "Slash32" then
1881
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.2, -0.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), 0.6)
1882
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -0.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), 0.6)
1883
      lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)), 0.6)
1884
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), 0.6)
1885
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(50), math.rad(50), math.rad(50)), 0.6)
1886
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -0.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), 0.6)
1887
      if not Sheathed then
1888
        lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, 0) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(90)), 1)
1889
      end
1890
    elseif Mode == "Slash21" then
1891
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.2, -0.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), 0.6)
1892
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(10), math.rad(0), -math.rad(10)), 0.6)
1893
      lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(10), -math.rad(20), math.rad(10)), 0.6)
1894
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(20), -math.rad(20)), 0.6)
1895
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(10), math.rad(60)), 0.6)
1896
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -0.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(40)), 0.6)
1897
      if not Sheathed then
1898
        lerp(raw, raw.C0, rawc0 * CFrame.new(-1, -1, -0.5) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(60)), 1)
1899
      end
1900
    elseif Mode == "Bash11" then
1901
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), 0.6)
1902
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.2, -0.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.6)
1903
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(0)), 0.6)
1904
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, -0.5, -0.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.6)
1905
      lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t / 15) / 15, math.rad(5), math.rad(20)), 0.2)
1906
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), 0.6)
1907
      if not Sheathed then
1908
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1909
      end
1910
    elseif Mode == "Kneeling" then
1911
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, -0.5, -0.3) * CFrame.Angles(-math.rad(90), math.rad(0), math.rad(0)), 0.6)
1912
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 1, -0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
1913
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(30), math.rad(0), -math.rad(0)), 0.6)
1914
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(20)), 0.6)
1915
      lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)), 0.2)
1916
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -1) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), 0.6)
1917
      if not Sheathed then
1918
        lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1)
1919
      end
1920
    elseif Mode == "Stomp1" then
1921
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.85, -0.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
1922
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), 0.6)
1923
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
1924
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(140), math.rad(0), math.rad(30)), 0.6)
1925
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0.5, 0) * CFrame.Angles(math.rad(140), math.rad(0), -math.rad(30)), 0.6)
1926
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), 0.6)
1927
      if not Sheathed then
1928
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1929
      end
1930
    elseif Mode == "Stomp2" then
1931
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.1, -0.4) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.6)
1932
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
1933
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.6)
1934
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), 0.6)
1935
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), 0.6)
1936
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.6)
1937
      if not Sheathed then
1938
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1939
      end
1940
    elseif Mode == "Knee" then
1941
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(25), math.rad(0), math.rad(0)), 0.6)
1942
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.75, -1.2) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
1943
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.6)
1944
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), math.rad(30), -math.rad(30)), 0.6)
1945
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(20), -math.rad(30), math.rad(30)), 0.6)
1946
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, -0.3, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.6)
1947
      if not Sheathed then
1948
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1949
      end
1950
    elseif Mode == "Grabbing" then
1951
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, -math.rad(0), math.rad(8)), 0.3)
1952
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -math.rad(8)), 0.3)
1953
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, -math.rad(0), 0), 0.2)
1954
      lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)), 0.2)
1955
      lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.rad(90), math.rad(5), math.rad(20)), 0.2)
1956
    elseif Mode == "Throw1" then
1957
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.2, -0.3) * CFrame.Angles(math.rad(10), -math.rad(30), math.rad(10)), 0.6)
1958
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -0.2, 0) * CFrame.Angles(-math.rad(20), math.rad(0), -math.rad(20)), 0.6)
1959
      lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(20), -math.rad(50), math.rad(20)), 0.6)
1960
      lerp(lm, lm.C0, lsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(30)), 0.6)
1961
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(80), math.rad(50), math.rad(50)), 0.6)
1962
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -0.1) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(60)), 0.6)
1963
    elseif Mode == "Beam" then
1964
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, -math.rad(0), math.rad(8)), 0.3)
1965
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -math.rad(8)), 0.3)
1966
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(0, -math.rad(0), 0), 0.2)
1967
      lerp(lm, lm.C0, lsc0 * CFrame.Angles(0, -math.rad(5), -math.rad(20)), 0.2)
1968
      lerp(rm, rm.C0, rsc0 * CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(170), math.rad(5), math.rad(20)), 0.2)
1969
    elseif Mode == "Shielding" then
1970
      if mg > 3 then
1971
        lerp(lm, lm.C0, lsc0 * CFrame.new(0.7, -0.5, -0.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(85)), 0.6)
1972
        lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t / 15) / 15, math.rad(5), math.rad(20)), 0.2)
1973
        lerp(neck, neck.C0, neckc0 * CFrame.Angles(math.rad(-3 + 2 * math.cos(sine / 7)), math.rad(0 - 3 * math.cos(sine / 14)), math.rad(0)), 0.6)
1974
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0.1 * math.cos(sine / 7), 0) * CFrame.Angles(math.rad(2 + 2 * math.cos(sine / 7)), 0, math.rad(0 + 3 * math.cos(sine / 14))), 0.6)
1975
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.3 * math.cos(sine / 14) / 2, -0.05 + -math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + math.sin(sine / 14) / 2.3, 0, 0), 0.6)
1976
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.3 * -math.cos(sine / 14) / 2, -0.05 + math.sin(sine / 14) / 2) * CFrame.Angles(math.rad(-18) + -math.sin(sine / 14) / 2.3, 0, 0), 0.6)
1977
      else
1978
        lerp(lm, lm.C0, lsc0 * CFrame.new(0.1, -0.5, -0.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(60)), 0.6)
1979
        lerp(rm, rm.C0, rsc0 * CFrame.Angles(math.sin(t / 15) / 15, math.rad(5), math.rad(20)), 0.2)
1980
        lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.2, 0) * CFrame.Angles(-math.rad(40), math.rad(30), math.rad(20)), 0.6)
1981
        lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0.2, -0.6) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.6)
1982
        lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), -math.rad(0)), 0.6)
1983
        lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, -0.2) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(30)), 0.6)
1984
      end
1985
      if not Sheathed then
1986
        lerp(raw, raw.C0, rawc0 * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
1987
      end
1988
    elseif Mode == "Stabbing1" then
1989
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.85, -0.4) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
1990
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), 0.6)
1991
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
1992
      lerp(lm, lm.C0, lsc0 * CFrame.new(0.5, 0.5, 0) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(40)), 0.6)
1993
      lerp(rm, rm.C0, rsc0 * CFrame.new(-0.5, 0.5, 0) * CFrame.Angles(math.rad(130), math.rad(0), -math.rad(40)), 0.6)
1994
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(15), math.rad(0), math.rad(0)), 0.6)
1995
      if not Sheathed then
1996
        lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1)
1997
      end
1998
    elseif Mode == "Stabbing2" then
1999
      lerp(rlegm, rlegm.C0, rlc0 * CFrame.new(0, 0.4, -0.6) * CFrame.Angles(-math.rad(10), math.rad(0), math.rad(0)), 0.6)
2000
      lerp(llegm, llegm.C0, llc0 * CFrame.new(0, -0.5, -0.3) * CFrame.Angles(-math.rad(60), math.rad(0), math.rad(0)), 0.6)
2001
      lerp(neck, neck.C0, neckc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.rad(0), math.rad(0), -math.rad(0)), 0.6)
2002
      lerp(lm, lm.C0, lsc0 * CFrame.new(0.5, 0.5, -0.8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(40)), 0.6)
2003
      lerp(rm, rm.C0, rsc0 * CFrame.new(-0.5, 0.5, -0.8) * CFrame.Angles(math.rad(90), math.rad(0), -math.rad(40)), 0.6)
2004
      lerp(rj, rj.C0, rootc0 * CFrame.new(0, -1, -0.7) * CFrame.Angles(math.rad(0), math.rad(0), -math.rad(0)), 0.6)
2005
      if not Sheathed then
2006
        lerp(raw, raw.C0, rawc0 * CFrame.new(0, -2.5, 0) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(0)), 1)
2007
      end
2008
    end
2009
  end)
2010
end)()
2011
coroutine.wrap(function()
2012
  for i = 1, 3 do
2013
    MediumParticleEmit(Head, "Bright green")
2014
    wait(0.05)
2015
    MediumParticleEmit(Head, "Really black")
2016
    wait(0.03)
2017
  end
2018
end)()