View difference between Paste ID: jJrHrSZQ and k06qbmQ2
SHOW: | | - or go back to the newest paste.
1
hum.MaxHealth = 500000
2
hum.Health = 50000
3
plr = game.Players.LocalPlayer
4
local s = Instance.new("Sound",plr.Character)
5
 
6
s.Name = "Sound"
7
s.SoundId = "http://www.roblox.com/asset/?id=321065151"
8
s.Volume = 50
9
s.Looped = true
10
s.archivable = false
11
 
12
s.Parent = game.Workspace
13
 
14
wait(1)
15
 
16
s:play()
17
18
wait(0.016666666666667)
19
Anim = nil
20
cf = CFrame.new
21
function c3(cz, cx, cc)
22
  return Color3.new(cz / 255, cx / 255, cc / 255)
23
end
24
angles = CFrame.Angles
25
Player = game.Players.LocalPlayer
26
Character = Player.Character
27
Humanoid = Character.Humanoid
28
mouse = Player:GetMouse()
29
local LeftArm = Character["Left Arm"]
30
RightArm = Character["Right Arm"]
31
LeftLeg = Character["Left Leg"]
32
RightLeg = Character["Right Leg"]
33
Head = Character.Head
34
Torso = Character.Torso
35
RootPart = Character.HumanoidRootPart
36
RootJoint = RootPart.RootJoint
37
Humanoid.Animator:Destroy()
38
Character:WaitForChild("Animate"):Destroy()
39
NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
40
RootCF = angles(-1.57, 0, 3.14)
41
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
42
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
43
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
44
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
45
RW = Instance.new("Weld")
46
LW = Instance.new("Weld")
47
RH = Torso["Right Hip"]
48
LH = Torso["Left Hip"]
49
Neck = Torso.Neck
50
RSH = Torso["Right Shoulder"]
51
LSH = Torso["Left Shoulder"]
52
RSH.Parent = nil
53
LSH.Parent = nil
54
RW.Name = "Right Shoulder"
55
RW.Part0 = Torso
56
RW.C0 = cf(1.5, 0.5, 0)
57
RW.C1 = cf(0, 0.5, 0)
58
RW.Part1 = RightArm
59
RW.Parent = Torso
60
LW.Name = "Left Shoulder"
61
LW.Part0 = Torso
62
LW.C0 = cf(-1.5, 0.5, 0)
63
LW.C1 = cf(0, 0.5, 0)
64
LW.Part1 = LeftArm
65
LW.Parent = Torso
66
Effects = Instance.new("Folder", Character)
67
Effects.Name = "Effects"
68
Humanoid.WalkSpeed = 35
69
partEffects, AttackHas, AttackNeeded, AttackCan = {}, {}, {}, {}
70
AttackHas[1], AttackHas[2], AttackHas[3], AttackHas[4] = 1, 1, 1, 1
71
AttackNeeded[1], AttackNeeded[2], AttackNeeded[3], AttackNeeded[4] = 1, 1, 1, 1
72
AttackCan[1], AttackCan[2], AttackCan[3], AttackCan[4] = true, true, true, true
73
sine = 0
74
attackcounter = 1
75
energyslashcounter = 1
76
torvel = nil
77
attacking = false
78
hitfloor, posfloor = nil, nil
79
tool = nil
80
if script.Parent.ClassName == "HopperBin" then
81
  tool = script.Parent
82
  tool.Parent = Player.Backpack
83
else
84
  tool = Instance.new("HopperBin", Player.Backpack)
85
  tool.Name = "Error Knife"
86
end
87
hitbox = Instance.new("Part")
88
hitbox.BrickColor = BrickColor.Black()
89
hitbox.Transparency = 1
90
hitbox.CanCollide = false
91
hitbox.Anchored = false
92
hitbox.Size = Vector3.new(3, 3, 4)
93
meshes = {
94
  3270017,
95
  20329976,
96
  448386996,
97
  1095708,
98
  1033714,
99
  9756362
100
}
101
sounds = {
102
  {
103
    320557413,
104
    320557453,
105
    320557487,
106
    320557518,
107
    320557537,
108
    320557563,
109
    233856146,
110
    233856140,
111
    923142611
112
  },
113
  {
114
    234365549,
115
    234365573,
116
    231917961,
117
    231917950,
118
    231917856,
119
    231917863,
120
    231917871
121
  },
122
  {
123
    262562442,
124
    231917806,
125
    231917784
126
  },
127
  {
128
    262562442,
129
    233856048,
130
    306247739
131
  }
132
}
133
ArtificialHB = Instance.new("BindableEvent", script)
134
ArtificialHB.Name = "Heartbeat"
135
script:WaitForChild("Heartbeat")
136
frame = 0.025
137
tf = 0
138
allowframeloss = true
139
tossremainder = false
140
lastframe = tick()
141
script.Heartbeat:Fire()
142
game:GetService("RunService").Heartbeat:connect(function(s, p)
143
  tf = tf + s
144
  if tf >= frame then
145
    if allowframeloss then
146
      script.Heartbeat:Fire()
147
      lastframe = tick()
148
    else
149
      for i = 1, math.floor(tf / frame) do
150
        script.Heartbeat:Fire()
151
      end
152
      lastframe = tick()
153
    end
154
    if tossremainder then
155
      tf = 0
156
    else
157
      tf = tf - frame * math.floor(tf / frame)
158
    end
159
  end
160
end)
161
function swait(num)
162
  if num == 0 or num == nil then
163
    ArtificialHB.Event:wait()
164
  else
165
    for i = 0, num do
166
      ArtificialHB.Event:wait()
167
    end
168
  end
169
end
170
function thread(f)
171
  coroutine.resume(coroutine.create(f))
172
end
173
function clerp(a, b, t)
174
  local qa = {
175
    QuaternionFromCFrame(a)
176
  }
177
  local qb = {
178
    QuaternionFromCFrame(b)
179
  }
180
  local ax, ay, az = a.x, a.y, a.z
181
  local bx, by, bz = b.x, b.y, b.z
182
  local _t = 1 - t
183
  return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
184
end
185
function QuaternionFromCFrame(cf)
186
  local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
187
  local trace = m00 + m11 + m22
188
  if trace > 0 then
189
    local s = math.sqrt(1 + trace)
190
    local recip = 0.5 / s
191
    return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
192
  else
193
    local i = 0
194
    if m00 < m11 then
195
      i = 1
196
    end
197
    if m22 > (i == 0 and m00 or m11) then
198
      i = 2
199
    end
200
    if i == 0 then
201
      local s = math.sqrt(m00 - m11 - m22 + 1)
202
      local recip = 0.5 / s
203
      return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
204
    elseif i == 1 then
205
      local s = math.sqrt(m11 - m22 - m00 + 1)
206
      local recip = 0.5 / s
207
      return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
208
    elseif i == 2 then
209
      local s = math.sqrt(m22 - m00 - m11 + 1)
210
      local recip = 0.5 / s
211
      return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
212
    end
213
  end
214
end
215
function QuaternionToCFrame(px, py, pz, x, y, z, w)
216
  local xs, ys, zs = x + x, y + y, z + z
217
  local wx, wy, wz = w * xs, w * ys, w * zs
218
  local xx = x * xs
219
  local xy = x * ys
220
  local xz = x * zs
221
  local yy = y * ys
222
  local yz = y * zs
223
  local zz = z * zs
224
  return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
225
end
226
function QuaternionSlerp(a, b, t)
227
  local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
228
  local startInterp, finishInterp
229
  if cosTheta >= 1.0E-4 then
230
    if 1 - cosTheta > 1.0E-4 then
231
      local theta = math.acos(cosTheta)
232
      local invSinTheta = 1 / math.sin(theta)
233
      startInterp = math.sin((1 - t) * theta) * invSinTheta
234
      finishInterp = math.sin(t * theta) * invSinTheta
235
    else
236
      startInterp = 1 - t
237
      finishInterp = t
238
    end
239
  elseif 1 + cosTheta > 1.0E-4 then
240
    local theta = math.acos(-cosTheta)
241
    local invSinTheta = 1 / math.sin(theta)
242
    startInterp = math.sin((t - 1) * theta) * invSinTheta
243
    finishInterp = math.sin(t * theta) * invSinTheta
244
  else
245
    startInterp = t - 1
246
    finishInterp = t
247
  end
248
  return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
249
end
250
function rayCast(Pos, Dir, Max, Ignore)
251
  return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
252
end
253
function newPart(par, brick, transp, anch, canc, size, name, mat, ref)
254
  local p = Instance.new("Part")
255
  p.BrickColor = brick
256
  p.Transparency = transp
257
  p.Material = mat and mat or "SmoothPlastic"
258
  p.Reflectance = ref and ref or 0
259
  p.Anchored = anch
260
  p.CanCollide = canc
261
  p.Size = size
262
  p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BackSurface = 10, 10, 10, 10, 10, 10
263
  p.Name = name
264
  p.CFrame = RootPart.CFrame
265
  p.Parent = par
266
  return p
267
end
268
function mesh(Mesh, part, meshtype, meshid, offset, scale)
269
  local mesh = Instance.new(Mesh)
270
  mesh.Parent = part
271
  if Mesh == "SpecialMesh" then
272
    mesh.MeshType = meshtype
273
    if meshid then
274
      mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
275
    end
276
  end
277
  if offset then
278
    mesh.Offset = offset
279
  end
280
  mesh.Scale = scale
281
  return mesh
282
end
283
function weld(parent, part0, part1, c0, c1)
284
  local weld = Instance.new("Weld")
285
  weld.Parent = parent
286
  weld.Part0 = part0
287
  weld.Part1 = part1
288
  weld.C0 = c0
289
  if c1 then
290
    weld.C1 = c1
291
  end
292
  return weld
293
end
294
function randomangles(r)
295
  local random = math.rad((math.random() - 0.5) * 180)
296
  local randomangles = CFrame.Angles(random, random, random)
297
  if r and r == 0 then
298
    return angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
299
  elseif r and r == 1 then
300
    return math.rad((math.random() - 0.5) * 180)
301
  elseif r and r == 2 then
302
    return math.random(-50, 50)
303
  else
304
    return randomangles
305
  end
306
end
307
function round(num)
308
  local a, b = math.modf(num)
309
  if num % 1 ~= 0 then
310
    return math.floor(num) + math.floor(b * 10 + 0.5) / 10
311
  else
312
    return math.floor(num)
313
  end
314
end
315
function sound(id, par, vol, dur, pit)
316
  coroutine.resume(coroutine.create(function()
317
    local sou = Instance.new("Sound", par or workspace)
318
    sou.Volume = vol
319
    sou.Pitch = pit or 1
320
    sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
321
    swait()
322
    sou:play()
323
    wait(dur)
324
    sou:Destroy()
325
  end))
326
end
327
function findCloseHumanoid(centre, distance)
328
  local tab = {}
329
  for _, child in pairs(game.Workspace:GetChildren()) do
330
    if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
331
      local vtors = child.Torso
332
      local mag = math.abs((vtors.Position - centre).magnitude)
333
      if distance >= mag then
334
        table.insert(tab, child.Humanoid)
335
      end
336
    end
337
  end
338
  return tab
339
end
340
function basicDamage(vhum, damage, colour)
341
  if not vhum or not vhum.Parent:findFirstChild("Humanoid") or vhum.Health <= 0 then
342
    return
343
  end
344
  vhum.Health = vhum.health - damage
345
  local damagepart = Instance.new("Part", Effects)
346
  damagepart.Transparency = 1
347
  damagepart.Anchored = true
348
  damagepart.CanCollide = false
349
  damagepart.Size = Vector3.new(1, 1, 1)
350
  damagepart.Name = "DamagePart"
351
  damagepart.CFrame = vhum.Parent.Head.CFrame * CFrame.new(0, 1, 0)
352
  local g = Instance.new("BillboardGui", damagepart)
353
  g.Enabled = true
354
  g.Adornee = damagepart
355
  g.Size = UDim2.new(5, 0, 5, 0)
356
  g.ExtentsOffset = Vector3.new(0, 0, 0)
357
  g.StudsOffset = Vector3.new(0, 0, 0)
358
  local t = Instance.new("TextLabel", g)
359
  t.BackgroundTransparency = 1
360
  t.Font = "ArialBold"
361
  t.TextSize = 24
362
  t.Text = "-" .. round(damage)
363
  if round(damage) % 100 == 0 then
364
    t.Text = "-" .. round(damage) .. ".0"
365
  end
366
  t.Size = UDim2.new(1, 0, 1, 0)
367
  t.TextStrokeTransparency = 0
368
  t.TextTransparency = 0
369
  t.TextScaled = true
370
  t.TextWrapped = true
371
  t.TextXAlignment = "Center"
372
  t.TextYAlignment = "Center"
373
  t.TextColor3 = colour
374
  coroutine.resume(coroutine.create(function()
375
    for i = 1, 50 do
376
      game:GetService("RunService").Heartbeat:wait()
377
      local sinewave = math.sin(i / 500) * 4
378
      damagepart.CFrame = damagepart.CFrame * CFrame.new(Vector3.new(0, 0.3 - sinewave, 0))
379
      t.TextTransparency = t.TextTransparency + 0.02
380
      t.TextStrokeTransparency = t.TextTransparency + 0.02
381
    end
382
    damagepart:Destroy()
383
  end), t)
384
end
385
function magic(type, thing)
386
  local magicBlock = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay, t)
387
    local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
388
    prt.CFrame = cframe
389
    local msh = mesh("BlockMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
390
    game:GetService("Debris"):AddItem(prt, 8)
391
    if t == 1 or t == nil then
392
      table.insert(partEffects, {
393
        prt,
394
        "Block1",
395
        delay,
396
        x3,
397
        y3,
398
        z3,
399
        msh
400
      })
401
    elseif t == 2 then
402
      table.insert(partEffects, {
403
        prt,
404
        "Block2",
405
        delay,
406
        x3,
407
        y3,
408
        z3,
409
        msh
410
      })
411
    end
412
  end
413
  local magicCylinder = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
414
    local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
415
    local msh = mesh("CylinderMesh", prt, nil, nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
416
    game:GetService("Debris"):AddItem(prt, 8)
417
    table.insert(partEffects, {
418
      prt,
419
      "Cylinder",
420
      delay,
421
      x3,
422
      y3,
423
      z3,
424
      msh
425
    })
426
  end
427
  local magicSphere = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
428
    local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
429
    local msh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
430
    game:GetService("Debris"):AddItem(prt, 8)
431
    table.insert(partEffects, {
432
      prt,
433
      "Cylinder",
434
      delay,
435
      x3,
436
      y3,
437
      z3,
438
      msh
439
    })
440
  end
441
  local magicRing = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
442
    local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", "SmoothPlastic", cframe)
443
    prt.Anchored = true
444
    prt.CFrame = cframe
445
    local msh = mesh("SpecialMesh", prt, "FileMesh", 3270017, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
446
    game:GetService("Debris"):AddItem(prt, 2)
447
    coroutine.resume(coroutine.create(function(Part, Mesh, num)
448
      for i = 0, 1, delay do
449
        swait()
450
        Part.Transparency = i
451
        Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
452
      end
453
      Part:Destroy()
454
    end), prt, msh, (math.random(0, 1) + math.random()) / 5)
455
  end
456
  local magicSlash = function(par, brick, cframe, x1, y1, z1, x3, y3, z3, delay)
457
    local prt = newPart(par, brick, 0, true, false, Vector3.new(), "Part", cframe)
458
    prt.Anchored = true
459
    prt.CFrame = cframe
460
    local msh = mesh("SpecialMesh", prt, "FileMesh", 20329976, Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
461
    game:GetService("Debris"):AddItem(prt, 2)
462
    coroutine.resume(coroutine.create(function(Part, Mesh, num)
463
      for i = 0, 1, delay do
464
        swait()
465
        Part.Transparency = i
466
        Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
467
      end
468
      Part:Destroy()
469
    end), prt, msh, (math.random(0, 1) + math.random()) / 5)
470
  end
471
  local par = thing[1]
472
  local brick = thing[2]
473
  local cframe = thing[3]
474
  local x1 = thing[4]
475
  local y1 = thing[5]
476
  local z1 = thing[6]
477
  local x3 = thing[7]
478
  local y3 = thing[8]
479
  local z3 = thing[9]
480
  local delay = thing[10]
481
  local t = thing[11]
482
  if type == "Block" or type == 1 then
483
    magicBlock(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
484
  elseif type == "Cylinder" or type == 2 then
485
    magicCylinder(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
486
  elseif type == "Sphere" or type == 3 then
487
    magicSphere(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
488
  elseif type == "Ring" or type == 4 then
489
    magicRing(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
490
  elseif type == "Slash" or type == 5 then
491
    magicSlash(thing[1], thing[2], thing[3], thing[4], thing[5], thing[6], thing[7], thing[8], thing[9], thing[10], thing[11])
492
  end
493
end
494
function newFrame(par, bg, transp, size, pos, name)
495
  local f = Instance.new("Frame", nil)
496
  f.BackgroundColor3 = bg
497
  f.BackgroundTransparency = transp
498
  f.BorderSizePixel = 0
499
  f.Position = pos
500
  f.Size = size
501
  f.Name = name
502
  f.Parent = par
503
  return f
504
end
505
function newLabel(par, size, pos, text, textsize, text3, textstroke3, scaled, name)
506
  local l = Instance.new("TextLabel", nil)
507
  l.BackgroundTransparency = 1
508
  l.Size = size
509
  l.Position = pos
510
  l.Text = text
511
  l.TextSize = textsize
512
  l.TextColor3 = text3
513
  l.TextStrokeColor3 = textstroke3
514
  if scaled then
515
    l.TextScaled = scaled
516
  else
517
    l.TextScaled = true
518
  end
519
  l.TextStrokeTransparency = 0
520
  l.Name = name
521
  l.Parent = par
522
  return l
523
end
524
a1t = "Error Mad"
525
a2t = "Error Power"
526
a3t = "Error Hate"
527
a4t = "Error Determination"
528
backc3 = c3(107, 107, 107)
529
reloc3 = c3(62, 62, 62)
530
g = Instance.new("ScreenGui")
531
f1 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.85, 0), "")
532
f2 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.76, 0), "")
533
f3 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.67, 0), "")
534
f4 = newFrame(g, backc3, 0.5, UDim2.new(0.18, 0, 0.08, 0), UDim2.new(0.8, 0, 0.58, 0), "")
535
newFrame(f1, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
536
newFrame(f2, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
537
newFrame(f3, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
538
newFrame(f4, reloc3, 0, UDim2.new(1.002, 0, 1.002, 0), UDim2.new(0, 0, 0, 0), "Reload")
539
newLabel(f1, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(Z)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
540
newLabel(f2, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(X)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
541
newLabel(f3, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(C)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
542
newLabel(f4, UDim2.new(1, 0, 0.4, 0), UDim2.new(0, 0, 0, 0), "(V)", 18, c3(243, 242, 242), c3(0, 0, 0), true, "Key")
543
newLabel(f1, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a1t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
544
newLabel(f2, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a2t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
545
newLabel(f3, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a3t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
546
newLabel(f4, UDim2.new(1, 0, 0.6, 0), UDim2.new(0, 0, 0.4, 0), a4t, 18, c3(243, 242, 242), c3(0, 0, 0), true, "Label")
547
g.Parent = Player.PlayerGui
548
Reload = {}
549
Reload[1] = f1.Reload
550
Reload[2] = f2.Reload
551
Reload[3] = f3.Reload
552
Reload[4] = f4.Reload
553
weapon = Instance.new("Model", Character)
554
weapon.Name = "Bonnie Knife"
555
p0 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
556
mesh("BlockMesh", p0, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 2.39999986, 6.57500076))
557
p1 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
558
mesh("SpecialMesh", p1, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.425000012, 1.70000005))
559
p1 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p1")
560
mesh("SpecialMesh", p1, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.425000012, 1.70000005))
561
p2 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
562
mesh("BlockMesh", p2, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.999999881, 3.02500105))
563
p2 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p2")
564
mesh("BlockMesh", p2, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.999999881, 3.02500105))
565
p3 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
566
mesh("BlockMesh", p3, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.974999905, 1.70000064))
567
p3 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p3")
568
mesh("BlockMesh", p3, nil, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.974999905, 1.70000064))
569
p4 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
570
mesh("SpecialMesh", p4, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 1.32500005))
571
p4 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p4")
572
mesh("SpecialMesh", p4, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 1.32500005))
573
p5 = newPart(weapon, BrickColor.new("Really red"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Part")
574
mesh("SpecialMesh", p5, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 0.350000083))
575
p5 = newPart(weapon, BrickColor.new("Really blue"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p5")
576
mesh("SpecialMesh", p5, Enum.MeshType.Wedge, nil, Vector3.new(0, 0, 0), Vector3.new(0.774999976, 0.975000024, 0.350000083))
577
p6 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "Handle")
578
mesh("SpecialMesh", p6, Enum.MeshType.Cylinder, nil, Vector3.new(0, 0, 0), Vector3.new(5, 0.75, 0.800000012))
579
p6 = newPart(weapon, BrickColor.new("Really black"), 0, false, false, Vector3.new(0.220000014, 0.220000014, 0.220000014), "p6")
580
mesh("SpecialMesh", p6, Enum.MeshType.Cylinder, nil, Vector3.new(0, 0, 0), Vector3.new(5, 0.75, 0.800000012))
581
weld(p0, p0, p1, CFrame.new(-0.400014997, -2.90028477, 2.71900272, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.400014997, 2.68303514, 3.62925434, -1, 0, 0, 0, -1, 0, 0, 0, 1))
582
weld(p1, p1, p2, CFrame.new(0.400014997, 2.68303514, 3.62925434, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(-0.400014997, -3.05428457, 3.77500391, 1, 0, 0, 0, 1, 0, 0, 0, 1))
583
weld(p2, p2, p3, CFrame.new(-0.400014997, -3.05428457, 3.77500391, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.400014997, -2.83703494, 3.62925434, 1, 0, 0, 0, 1, 0, 0, 0, 1))
584
weld(p3, p3, p4, CFrame.new(-0.400014997, -2.83703494, 3.62925434, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.400014997, 2.83703494, 3.96200418, -1, 0, 0, 0, -1, 0, 0, 0, 1))
585
weld(p4, p4, p5, CFrame.new(0.400014997, 2.83703494, 3.96200418, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(0.400014997, 3.05703473, 4.14625359, -1, 0, 0, 0, -1, 0, 0, 0, 1))
586
weld(p5, p5, p6, CFrame.new(0.400014997, 3.05703473, 4.14625359, -1, 0, 0, 0, -1, 0, 0, 0, 1), CFrame.new(1.48875475, 2.98278475, -0.400014997, 0, 4.37113883E-8, 1, 0, -1, 4.37113883E-8, 1, 0, 0))
587
handleweld = Instance.new("Weld", RightArm)
588
handleweld.Part1 = RightArm
589
handleweld.Part0 = p6
590
handlec0 = CFrame.new(0, -0.95, 0) * angles(0, math.pi / 2, math.pi)
591
handleweld.C0 = handlec0
592
function attackone()
593
  attacking = true
594
  for i = 0, 1, 0.1 do
595
    swait()
596
    Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.4)
597
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.4)
598
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.4)
599
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
600
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
601
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
602
    RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
603
    LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
604
  end
605
  local smp = newPart(Effects, BrickColor.new("Really black"), 0, true, false, Vector3.new(), "Slash")
606
  mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
607
  smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(120), math.rad(0))
608
  delay(0.1, function()
609
    table.insert(partEffects, {
610
      smp,
611
      "Disappear",
612
      0.05
613
    })
614
  end)
615
  sound(sounds[1][1], Character.Head, 1, 4, 1.5)
616
  local hitb = hitbox.Touched:connect(function(hit)
617
    if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
618
      if hit.Parent:findFirstChild("Hit" .. Player.Name) then
619
        return
620
      end
621
      local str = Instance.new("StringValue", hit.Parent)
622
      str.Name = "Hit" .. Player.Name
623
      game.Debris:AddItem(str, 0.3)
624
      basicDamage(hit.Parent.Humanoid, math.random(999999999, 999999999), Color3.fromRGB(243, 242, 242)) -- Damage Edit here
625
    end
626
  end)
627
  for i = 0, 1, 0.1 do
628
    swait()
629
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.4)
630
    Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.4)
631
    RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.4)
632
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
633
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
634
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
635
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
636
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
637
    hitbox.Parent = weapon
638
    hitbox.Size = Vector3.new(2, 5, 8)
639
    if smp then
640
      hitbox.CFrame = smp.CFrame
641
    else
642
      hitbox.Parent = nil
643
    end
644
  end
645
  hitb:disconnect()
646
  hitbox.Parent = nil
647
  attacking = false
648
end
649
function attacktwo()
650
  attacking = true
651
  for i = 0, 1, 0.1 do
652
    swait()
653
    Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
654
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4)
655
    RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4)
656
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
657
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
658
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
659
    RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
660
    LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
661
  end
662
  local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
663
  mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
664
  smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(80), math.rad(0))
665
  delay(0.1, function()
666
    table.insert(partEffects, {
667
      smp,
668
      "Disappear",
669
      0.05
670
    })
671
  end)
672
  sound(sounds[1][2], Character.Head, 1, 4, 1.5)
673
  local hitb = hitbox.Touched:connect(function(hit)
674
    if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
675
      if hit.Parent:findFirstChild("Hit" .. Player.Name) then
676
        return
677
      end
678
      local str = Instance.new("StringValue", hit.Parent)
679
      str.Name = "Hit" .. Player.Name
680
      game.Debris:AddItem(str, 0.3)
681
     basicDamage(hit.Parent.Humanoid, math.random(999999999, 999999999), Color3.fromRGB(243, 242, 242)) -- Damage Edit here
682
    end
683
  end)
684
  for i = 0, 1, 0.1 do
685
    swait()
686
    Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
687
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
688
    RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
689
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
690
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
691
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
692
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
693
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
694
    hitbox.Parent = weapon
695
    hitbox.Size = Vector3.new(2, 5, 8)
696
    if smp then
697
      hitbox.CFrame = smp.CFrame
698
    else
699
      hitbox.Parent = nil
700
    end
701
  end
702
  hitb:disconnect()
703
  hitbox.Parent = nil
704
  attacking = false
705
end
706
function attackthree()
707
  attacking = true
708
  for i = 0, 1, 0.1 do
709
    swait()
710
    Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
711
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.4)
712
    RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 0.4)
713
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
714
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
715
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
716
    RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
717
    LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
718
  end
719
  local smp = newPart(Effects, BrickColor.new("Really blue"), 0, true, false, Vector3.new(), "Slash")
720
  mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
721
  smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(-70), math.rad(0))
722
  delay(0.1, function()
723
    table.insert(partEffects, {
724
      smp,
725
      "Disappear",
726
      0.05
727
    })
728
  end)
729
  sound(sounds[1][3], Character.Head, 1, 4, 1.5)
730
  local hitb = hitbox.Touched:connect(function(hit)
731
    if hit.Parent ~= Character and hit.Parent:findFirstChild("Humanoid") then
732
      if hit.Parent:findFirstChild("Hit" .. Player.Name) then
733
        return
734
      end
735
      local str = Instance.new("StringValue", hit.Parent)
736
      str.Name = "Hit" .. Player.Name
737
      game.Debris:AddItem(str, 0.3)
738
      basicDamage(hit.Parent.Humanoid, math.random(999999999, 999999999), Color3.fromRGB(243, 242, 242)) -- Damage Edit here
739
    end
740
  end)
741
  for i = 0, 1, 0.1 do
742
    swait()
743
    Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
744
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
745
    RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.8, 0.4) * angles(math.rad(0), math.rad(-40), math.rad(120)), 0.4)
746
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
747
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
748
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
749
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
750
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
751
    hitbox.Parent = weapon
752
    hitbox.Size = Vector3.new(2, 5, 8)
753
    if smp then
754
      hitbox.CFrame = smp.CFrame
755
    else
756
      hitbox.Parent = nil
757
    end
758
  end
759
  hitb:disconnect()
760
  hitbox.Parent = nil
761
  attacking = false
762
end
763
function rapidslash()
764
  attacking = true
765
  AttackHas[1] = 0
766
  AttackCan[1] = false
767
  for i = 1, 3 do
768
    swait()
769
    for i = 0, 1, 0.2 do
770
      swait()
771
      Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(60)), 0.6)
772
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, math.rad(-60)), 0.6)
773
      RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.9, 0) * CFrame.Angles(math.rad(180), 0, math.rad(10)), 0.6)
774
      LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
775
      RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
776
      LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
777
      RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
778
      LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
779
    end
780
    sound(sounds[1][1], Character.Head, 1, 7, 1.5)
781
    do
782
      local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
783
      mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
784
      smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
785
      delay(0.1, function()
786
        table.insert(partEffects, {
787
          smp,
788
          "Disappear",
789
          0.05
790
        })
791
      end)
792
      for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
793
        basicDamage(v, 61, c3(243, 242, 242))
794
      end
795
      for i = 0, 1, 0.2 do
796
        swait()
797
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.6)
798
        Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), 0.6)
799
        RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(45), math.rad(-65), math.rad(5)), 0.6)
800
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
801
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
802
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
803
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6)
804
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6)
805
      end
806
      sound(sounds[1][1], Character.Head, 1, 7, 1.5)
807
      local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
808
      mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
809
      smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
810
      delay(0.1, function()
811
        table.insert(partEffects, {
812
          smp,
813
          "Disappear",
814
          0.05
815
        })
816
      end)
817
      for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
818
        basicDamage(v, 61, c3(243, 242, 242))
819
      end
820
      for i = 0, 1, 0.2 do
821
        swait()
822
        Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6)
823
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(20), 0, math.rad(80)), 0.6)
824
        RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(-45)) * CFrame.Angles(math.rad(-25), 0, 0), 1)
825
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
826
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
827
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
828
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
829
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
830
      end
831
      sound(sounds[1][1], Character.Head, 1, 7, 1.5)
832
      local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
833
      mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
834
      smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
835
      delay(0.1, function()
836
        table.insert(partEffects, {
837
          smp,
838
          "Disappear",
839
          0.05
840
        })
841
      end)
842
      for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
843
        basicDamage(v, 61, c3(243, 242, 242))
844
      end
845
      for i = 0, 1, 0.2 do
846
        swait()
847
        Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.6)
848
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.6)
849
        RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.6)
850
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.6)
851
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6)
852
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.6)
853
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.6)
854
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.6)
855
      end
856
      sound(sounds[1][1], Character.Head, 1, 7, 1.5)
857
      local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
858
      mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
859
      smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
860
      delay(0.1, function()
861
        table.insert(partEffects, {
862
          smp,
863
          "Disappear",
864
          0.05
865
        })
866
      end)
867
      for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
868
        basicDamage(v, 61, c3(243, 242, 242))
869
      end
870
      for i = 0, 1, 0.2 do
871
        swait()
872
        Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.6)
873
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.6)
874
        RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.6)
875
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.6)
876
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
877
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 1)
878
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.6)
879
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.6)
880
      end
881
      sound(sounds[1][1], Character.Head, 1, 7, 1.5)
882
      local smp = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Slash")
883
      mesh("SpecialMesh", smp, "FileMesh", meshes[3], Vector3.new(0, 0, 0), Vector3.new(0.002, 0.06, 0.06))
884
      smp.CFrame = RootPart.CFrame * CFrame.new(0, 0, -3.5) * CFrame.Angles(math.rad(90), math.rad(math.random(-360, 360)), math.rad(0))
885
      delay(0.1, function()
886
        table.insert(partEffects, {
887
          smp,
888
          "Disappear",
889
          0.05
890
        })
891
      end)
892
      for i, v in pairs(findCloseHumanoid(smp.Position, 5)) do
893
        basicDamage(v, 6, c3(243, 242, 242))
894
      end
895
    end
896
  end
897
  AttackCan[1] = true
898
  attacking = false
899
end
900
function powerslash()
901
  attacking = true
902
  AttackCan[2] = false
903
  AttackHas[2] = AttackHas[2] - 0.2
904
  local orbs = {}
905
  if energyslashcounter == 1 then
906
    energyslashcounter = 2
907
    sound(367453005, Character.Head, 1, 4, 1)
908
    do
909
      local now = RootPart.CFrame * CFrame.new(0, 0, -10)
910
      local bo = {
911
        BrickColor.new("Bright orange"),
912
        BrickColor.new("Toothpaste")
913
      }
914
      local bon = bo[math.random(1, 2)]
915
      for i = 1, 5 do
916
        local orb = newPart(Effects, bon, 0, true, false, Vector3.new(), "Orange", "SmoothPlastic", RootPart.CFrame * CFrame.new(0, 0, -15))
917
        local omesh = mesh("SpecialMesh", orb, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
918
        orb.CFrame = now * CFrame.new((math.random() - 0.5) * 20, 0, (math.random() - 0.5) * 20)
919
        table.insert(orbs, orb)
920
      end
921
      for i = 0, 1, 0.05 do
922
        swait()
923
        Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.15)
924
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(80)), 0.15)
925
        RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2)
926
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
927
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
928
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
929
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
930
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
931
      end
932
      for i = 1, #orbs do
933
        do
934
          local orb = orbs[i]
935
          table.insert(partEffects, {
936
            orb,
937
            "Block2",
938
            0.05,
939
            10,
940
            10,
941
            10,
942
            orb.Mesh
943
          })
944
          thread(function()
945
            for i = 1, 3 do
946
              swait(5)
947
              for i, v in pairs(findCloseHumanoid(orb.Position, 10)) do
948
                if bon == BrickColor.new("Bright orange") then
949
                  if (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude < 2 then
950
                    basicDamage(v, 6, BrickColor.new("Bright orange").Color)
951
                  end
952
                elseif bon == BrickColor.new("Toothpaste") and (v.Parent.Torso.Velocity * Vector3.new(1, 1, 1)).magnitude > 2 then
953
                  basicDamage(v, 6, BrickColor.new("Toothpaste").Color)
954
                end
955
              end
956
            end
957
          end)
958
        end
959
      end
960
      sound(sounds[1][2], Character.Head, 1, 4, 0.8)
961
      for i = 0, 1, 0.1 do
962
        swait()
963
        Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
964
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(-5)), 0.4)
965
        RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
966
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
967
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
968
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
969
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
970
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
971
      end
972
    end
973
  elseif energyslashcounter == 2 then
974
    energyslashcounter = 3
975
    sound(306247749, Character.Head, 1, 4, 1)
976
    local gparts = {}
977
    for i = 1, 9 do
978
      local gpart = newPart(Effects, BrickColor.new("Really red"), 0, true, false, Vector3.new(), "Violet", "SmoothPlastic")
979
      local gmesh = mesh("CylinderMesh", gpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(50, 10, 50))
980
      gpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-20, 20), -3, -15 + math.random(-20, 20))
981
      table.insert(gparts, gpart)
982
    end
983
    for i = 0, 1, 0.05 do
984
      swait()
985
      Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15)
986
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15)
987
      RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0.4) * CFrame.Angles(math.rad(-45), math.rad(0), math.rad(15)) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
988
      LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
989
      RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
990
      LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
991
      RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
992
      LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
993
    end
994
    for i = 1, #gparts do
995
      local gpart = gparts[i]
996
      table.insert(partEffects, {
997
        gpart,
998
        "Block2",
999
        0.05,
1000
        -1,
1001
        50,
1002
        -1,
1003
        gpart.Mesh
1004
      })
1005
      for i, v in pairs(findCloseHumanoid(gpart.Position, 10)) do
1006
        basicDamage(v, 15, BrickColor.new("Really red").Color)
1007
        local bv = Instance.new("BodyVelocity", v.Parent.Torso)
1008
        game.Debris:AddItem(bv, 1)
1009
        bv.Velocity = Vector3.new(0, 40, 0)
1010
        bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
1011
      end
1012
    end
1013
    sound(sounds[1][3], Character.Head, 1, 4, 0.8)
1014
    for i = 0, 1, 0.1 do
1015
      swait()
1016
      Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.4)
1017
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(15), math.rad(0), math.rad(80)), 0.4)
1018
      RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, -0.4) * angles(math.rad(125), math.rad(-40), math.rad(60)), 0.4)
1019
      LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
1020
      RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
1021
      LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
1022
      RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
1023
      LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
1024
    end
1025
  elseif energyslashcounter == 3 then
1026
    energyslashcounter = 1
1027
    for i = 0, 1, 0.05 do
1028
      swait()
1029
      Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(80)), 0.15)
1030
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(5), 0, math.rad(-80)), 0.15)
1031
      RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.2)
1032
      LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
1033
      RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
1034
      LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.15)
1035
      RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.15)
1036
      LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.15)
1037
    end
1038
    sound(sounds[2][5], Character.Head, 1, 4, 0.8)
1039
    thread(function()
1040
      for i = 1, 6 do
1041
        swait()
1042
        sound(438149153, Character.Head, 1, 4, 0.8)
1043
        do
1044
          local prt = newPart(Effects, BrickColor.new("Bright yellow"), 0, false, false, Vector3.new(), "Yellow", "SmoothPlastic", RootPart.CFrame)
1045
          local mesh = mesh("SpecialMesh", prt, "Sphere", nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 2.5))
1046
          prt.CFrame = RootPart.CFrame * CFrame.new(math.random(-3, 3), math.random(-1, 1), math.random(-3, 3))
1047
          local bv = Instance.new("BodyVelocity", prt)
1048
          bv.Velocity = RootPart.CFrame.lookVector * 150
1049
          bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
1050
          game.Debris:AddItem(bv, 6)
1051
          local orlook = RootPart.CFrame.lookVector
1052
          thread(function()
1053
            while prt do
1054
              swait()
1055
              local hitpart, pospart = rayCast(prt.Position, orlook, 4, Character)
1056
              if hitpart and pospart then
1057
                prt:Destroy()
1058
                do
1059
                  local ref = newPart(Effects, BrickColor.Black(), 1, true, false, Vector3.new(), "")
1060
                  ref.CFrame = CFrame.new(pospart)
1061
                  sound(142070127, ref, 1, 4, 1)
1062
                  delay(4, function()
1063
                    ref:Destroy()
1064
                  end)
1065
                  magic("Block", {
1066
                    Effects,
1067
                    BrickColor.new("Really red"),
1068
                    CFrame.new(pospart),
1069
                    0.2,
1070
                    0.2,
1071
                    0.2,
1072
                    0.9,
1073
                    0.9,
1074
                    0.9,
1075
                    0.05,
1076
                    1
1077
                  })
1078
                  magic("Block", {
1079
                    Effects,
1080
                    BrickColor.new("Really red"),
1081
                    CFrame.new(pospart),
1082
                    0.2,
1083
                    0.2,
1084
                    0.2,
1085
                    0.9,
1086
                    0.9,
1087
                    0.9,
1088
                    0.05,
1089
                    1
1090
                  })
1091
                  if hitpart.Parent:findFirstChild("Humanoid") then
1092
                    basicDamage(hitpart.Parent.Humanoid, 12, BrickColor.new("Bright yellow").Color)
1093
                  end
1094
                  break
1095
                end
1096
              end
1097
            end
1098
          end)
1099
        end
1100
      end
1101
    end)
1102
  end
1103
  attacking = false
1104
  AttackCan[2] = true
1105
end
1106
function leftright()
1107
  attacking = true
1108
  AttackCan[3] = false
1109
  for i = 0, 1, 0.1 do
1110
    swait()
1111
    Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(0), 0, math.rad(-80)), 0.4)
1112
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(math.rad(15), 0, math.rad(80)), 0.4)
1113
    RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * CFrame.Angles(math.rad(90), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(25), 0, 0), 0.4)
1114
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-50)), 0.4)
1115
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
1116
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
1117
    RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.4)
1118
    LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.4)
1119
  end
1120
  thread(function()
1121
    local laser = newPart(nil, BrickColor.new("Really red"), 0.5, true, false, Vector3.new(), "Laser", "SmoothPlastic")
1122
    local lmsh = mesh("BlockMesh", nil, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, 5, 5))
1123
    local lasers = {}
1124
    local keypoints1, keypoints2, keypoints3, keypoints4, keypoints5, keypoints6 = {}, {}, {}, {}, {}, {}
1125
    local radius = 10
1126
    local num = 12
1127
    for i = 1, num do
1128
      table.insert(keypoints1, {
1129
        RootPart.CFrame.p,
1130
        RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num) * i), 0, math.sin(math.rad(360 / num) * i))
1131
      })
1132
      table.insert(keypoints2, {
1133
        RootPart.CFrame.p,
1134
        RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 45 * i) * i), 0, math.sin(math.rad(360 / num + 45 * i) * i))
1135
      })
1136
      table.insert(keypoints3, {
1137
        RootPart.CFrame.p,
1138
        RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 90 * i) * i), 0, math.sin(math.rad(360 / num + 90 * i) * i))
1139
      })
1140
      table.insert(keypoints4, {
1141
        RootPart.CFrame.p,
1142
        RootPart.CFrame.lookVector + Vector3.new(math.cos(math.rad(360 / num + 135 * i) * i), 0, math.sin(math.rad(360 / num + 135 * i) * i))
1143
      })
1144
    end
1145
    local keypointstotal = {
1146
      keypoints1,
1147
      keypoints2,
1148
      keypoints3,
1149
      keypoints4
1150
    }
1151
    for ii = 1, #keypointstotal do
1152
      swait(5)
1153
      do
1154
        local currpoint = keypointstotal[ii]
1155
        for i = 1, #currpoint do
1156
          do
1157
            local start = currpoint[i][1]
1158
            local look = currpoint[i][2]
1159
            local laserc = laser:Clone()
1160
            local lmshc = lmsh:Clone()
1161
            local hit, pos = rayCast(start, look, 100000, Character)
1162
            laserc.CFrame = CFrame.new((start + pos) / 2, pos) * angles(math.rad(90), 0, 0)
1163
            local mag = (laserc.Position - pos).magnitude * 2
1164
            lmshc.Scale = Vector3.new(2, mag * 5, 2)
1165
            laserc.Parent = Effects
1166
            lmshc.Parent = laserc
1167
            thread(function()
1168
              table.insert(partEffects, {
1169
                laserc,
1170
                "Block2",
1171
                0.025,
1172
                -0.1,
1173
                0,
1174
                -0.1,
1175
                lmshc
1176
              })
1177
              local start = currpoint[i][1]
1178
              local look = currpoint[i][2]
1179
              look = CFrame.new(start, start + look).lookVector
1180
              local hit, pos = rayCast(start, look, 100000, Character)
1181
              repeat
1182
                swait()
1183
              until laserc.Parent == nil
1184
              local lpart = newPart(Effects, BrickColor.new("Black"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
1185
              sound(406913243, Head, 0.6, 4, 1)
1186
              local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(5, mag * 5, 5))
1187
              lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0)
1188
              table.insert(partEffects, {
1189
                lpart,
1190
                "Block2",
1191
                0.05,
1192
                1,
1193
                0,
1194
                1,
1195
                lpartm
1196
              })
1197
              local lpart = newPart(Effects, BrickColor.new("Lily white"), 0.5, true, false, Vector3.new(), "Cut", "SmoothPlastic")
1198
              local lpartm = mesh("BlockMesh", lpart, nil, nil, Vector3.new(0, 0, 0), Vector3.new(8, mag * 5, 8))
1199
              lpart.CFrame = laserc.CFrame * CFrame.new(0, 0, 0)
1200
              table.insert(partEffects, {
1201
                lpart,
1202
                "Block2",
1203
                0.05,
1204
                1,
1205
                0,
1206
                1,
1207
                lpartm
1208
              })
1209
              local hit, pos = rayCast(start, look, 100000, Character)
1210
              if hit ~= nil then
1211
                if hit.Parent.ClassName == "Accessory" or hit.Parent.ClassName == "Hat" then
1212
                  if hit.Parent.Parent:findFirstChild("Humanoid") then
1213
                    basicDamage(hit.Parent.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
1214
                  end
1215
                elseif hit.Parent:findFirstChild("Humanoid") then
1216
                  basicDamage(hit.Parent.Humanoid, 20, BrickColor.new("Bright red").Color)
1217
                end
1218
              end
1219
            end)
1220
          end
1221
        end
1222
      end
1223
    end
1224
  end)
1225
  for i = 0, 1, 0.1 do
1226
    swait()
1227
    Neck.C0 = clerp(Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1228
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), 0.4)
1229
    RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5, 0) * angles(math.rad(0), math.rad(-40), math.rad(60)), 0.4)
1230
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(45), 0, math.rad(-25)), 0.4)
1231
    RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
1232
    LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.4)
1233
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.4)
1234
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)), 0.4)
1235
  end
1236
  AttackCan[3] = true
1237
  attacking = false
1238
end
1239
function mouse1d()
1240
  if tool.Active == false then
1241
    return
1242
  end
1243
  if attacking == false and attackcounter == 1 then
1244
    attackcounter = 2
1245
    attackone()
1246
  elseif attacking == false and attackcounter == 2 then
1247
    attackcounter = 3
1248
    attacktwo()
1249
  elseif attacking == false and attackcounter == 3 then
1250
    attackcounter = 1
1251
    attackthree()
1252
  end
1253
end
1254
function key(k)
1255
  if tool.Active == false then
1256
    return
1257
  end
1258
  k = k:lower()
1259
  if attacking == false and k == "z" and AttackHas[1] >= AttackNeeded[1] then
1260
    rapidslash()
1261
  elseif attacking == false and k == "x" and AttackHas[2] >= 0.2 then
1262
    powerslash()
1263
  elseif attacking == false and k == "c" and AttackHas[3] >= AttackNeeded[3] then
1264
    leftright()
1265
  elseif attacking ~= false or k ~= "v" or AttackHas[4] >= AttackNeeded[4] then
1266
  end
1267
end
1268
asdasd = mouse.Button1Down:connect(mouse1d)
1269
asdasdf = mouse.KeyDown:connect(key)
1270
Humanoid.Died:connect(function()
1271
  asdasd:disconnect()
1272
  asdasdf:disconnect()
1273
end)
1274
thread(function()
1275
  while true do
1276
    swait()
1277
    torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
1278
    hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
1279
    sine = sine + 1
1280
    if AttackHas[1] < AttackNeeded[1] and AttackCan[1] == true then
1281
      AttackHas[1] = AttackHas[1] + 0.005
1282
    end
1283
    if AttackHas[2] < AttackNeeded[2] and AttackCan[2] == true then
1284
      AttackHas[2] = AttackHas[2] + 0.005
1285
    end
1286
    if AttackHas[3] < AttackNeeded[3] and AttackCan[3] == true then
1287
      AttackHas[3] = AttackHas[3] + 0.005
1288
    end
1289
    if AttackHas[4] < AttackNeeded[4] and AttackCan[4] == true then
1290
      AttackHas[4] = AttackHas[4] + 0.005
1291
    end
1292
    Reload[1]:TweenSize(UDim2.new(AttackHas[1] / AttackNeeded[1], 0, 1, 0), nil, 1, 0.4)
1293
    Reload[2]:TweenSize(UDim2.new(AttackHas[2] / AttackNeeded[2], 0, 1, 0), nil, 1, 0.4)
1294
    Reload[3]:TweenSize(UDim2.new(AttackHas[3] / AttackNeeded[3], 0, 1, 0), nil, 1, 0.4)
1295
    Reload[4]:TweenSize(UDim2.new(AttackHas[4] / AttackNeeded[4], 0, 1, 0), nil, 1, 0.4)
1296
    if 1 < RootPart.Velocity.y and hitfloor == nil then
1297
      if attacking == false then
1298
        Anim = "Jump"
1299
        Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-15), 0, math.rad(0)), 0.1)
1300
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
1301
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
1302
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
1303
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
1304
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
1305
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-12), math.rad(90), 0), 0.2)
1306
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(12), -math.rad(90), 0), 0.2)
1307
      end
1308
    elseif RootPart.Velocity.y < -1 and hitfloor == nil then
1309
      if attacking == false then
1310
        Anim = "Fall"
1311
        Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(23), 0, 0), 0.2)
1312
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.Angles(0, 0, 0), 0.2)
1313
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, math.rad(12)), 0.2)
1314
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
1315
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(-math.rad(17), 0, -math.rad(12)), 0.2)
1316
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0), 0.2)
1317
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(24), math.rad(90), 0), 0.2)
1318
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(-12), -math.rad(90), 0), 0.2)
1319
      end
1320
    elseif torvel < 1 and hitfloor ~= nil then
1321
      if attacking == false then
1322
        Anim = "Idle"
1323
        Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(15)), 0.1)
1324
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(-15)), 0.1)
1325
        RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2)
1326
        LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2)
1327
        RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
1328
        LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
1329
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1.1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), math.rad(105), math.rad(-5)) * CFrame.Angles(math.rad(-4), 0, math.rad(-5)), 0.2)
1330
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1 - 0.2 * math.cos(sine / 25), 0) * CFrame.Angles(math.rad(10), -math.rad(75), math.rad(-2)) * CFrame.Angles(math.rad(-13), 0, 0), 0.2)
1331
      end
1332
    elseif torvel > 2 and hitfloor ~= nil and attacking == false then
1333
      Anim = "Walk"
1334
      Neck.C0 = clerp(Neck.C0, NeckCF * CFrame.Angles(math.rad(-5), 0, math.rad(0)), 0.1)
1335
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, 0.2 * math.cos(sine / 25)) * CFrame.Angles(math.rad(10), 0, math.rad(0)), 0.1)
1336
      RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(5), math.rad(-15), math.rad(10) + 0.1 * math.cos(sine / 25)), 0.2)
1337
      LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5 - 0.1 * math.cos(sine / 15), 0) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-10) - 0.1 * math.cos(sine / 25)), 0.2)
1338
      RW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
1339
      LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0), 0.2)
1340
      RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.cos(sine * 1.2 / 8), math.rad(90), 0), 0.3)
1341
      LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(-math.cos(sine * 1.2 / 8), -math.rad(90), 0), 0.3)
1342
    end
1343
    if 0 < #partEffects then
1344
      for e = 1, #partEffects do
1345
        if partEffects[e] ~= nil then
1346
          local Thing = partEffects[e]
1347
          if Thing ~= nil then
1348
            local Part = Thing[1]
1349
            local Mode = Thing[2]
1350
            local Delay = Thing[3]
1351
            local IncX = Thing[4]
1352
            local IncY = Thing[5]
1353
            local IncZ = Thing[6]
1354
            if 1 >= Thing[1].Transparency then
1355
              if Thing[2] == "Block1" then
1356
                Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1357
                local Mesh = Thing[1].Mesh
1358
                Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1359
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1360
              elseif Thing[2] == "Block2" then
1361
                Thing[1].CFrame = Thing[1].CFrame
1362
                local Mesh = Thing[7]
1363
                Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1364
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1365
              elseif Thing[2] == "Cylinder" then
1366
                local Mesh = Thing[1].Mesh
1367
                Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1368
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1369
              elseif Thing[2] == "Blood" then
1370
                local Mesh = Thing[7]
1371
                Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1372
                Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1373
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1374
              elseif Thing[2] == "Elec" then
1375
                local Mesh = Thing[1].Mesh
1376
                Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1377
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1378
              elseif Thing[2] == "Disappear" then
1379
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1380
              elseif Thing[2] == "Shatter" then
1381
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1382
                Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1383
                Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1384
                Thing[6] = Thing[6] + Thing[5]
1385
              end
1386
            else
1387
              Part:Destroy()
1388
              table.remove(partEffects, e)
1389
            end
1390
          end
1391
        end
1392
      end
1393
    end
1394
  end
1395
end)