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