View difference between Paste ID: 6zPJtqC0 and B6uJagr6
SHOW: | | - or go back to the newest paste.
1
--------------------------This is an Official script from Duelist Edited By UilmateGate--------------------------  
2
                           ---{--------------------                        -------------------}---
3
                           ---{--------------------         / \           -------------------}---
4
                            ---{--------------------         II            -------------------}---
5
                             ---{--------------------        II            -------------------}---
6
                             ---{--------------------        II            -------------------}---
7
                        ---{--------------------  A========A   -------------------}---      
8
                               ---{--------------------      II             -------------------}---
9
                               ---{--------------------      II             -------------------}---
10
                                ---{--------------------     W           -------------------}---
11
-------------------------------------------------------------------------------------------------------------
12
  wait(0.016666666666666666)
13
  Player = game:GetService("Players").LocalPlayer
14
  Character = Player.Character
15
  PlayerGui = Player.PlayerGui
16
  Backpack = Player.Backpack
17
  Torso = Character.Torso
18
  Head = Character.Head
19
  Humanoid = Character.Humanoid
20
  LeftArm = Character["Left Arm"]
21
  LeftLeg = Character["Left Leg"]
22
  RightArm = Character["Right Arm"]
23
  RightLeg = Character["Right Leg"]
24
  LS = Torso["Left Shoulder"]
25
  LH = Torso["Left Hip"]
26
  RS = Torso["Right Shoulder"]
27
  RH = Torso["Right Hip"]
28
  Face = Head.face
29
  Neck = Torso.Neck
30
  local sick = Instance.new("Sound",Character)
31
  sick.SoundId = "rbxassetid://190845741"
32
  sick.Looped = true
33
  sick.Pitch = 1
34
  sick.Volume = 3.2
35
  sick:Play()
36
  it = Instance.new
37
  attacktype = 1
38
  vt = Vector3.new
39
  cf = CFrame.new
40
  euler = CFrame.fromEulerAnglesXYZ
41
  angles = CFrame.Angles
42
  necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
43
  LHC1 = cf(-0.5, 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
  RootPart = Character.HumanoidRootPart
46
  RootJoint = RootPart.RootJoint
47
  RootCF = euler(-1.57, 0, 3.14)
48
  attack = false
49
  equipped = false
50
  Mouse = Player:GetMouse()
51
  mana = 0
52
  local idle = 0
53
  local Anim = "Idle"
54
  local ShotTarget = RootPart
55
  player = nil
56
  local Stats = Instance.new("Folder", Character)
57
  Stats.Name = "Stats"
58
  local Defense = Instance.new("NumberValue", Stats)
59
  Defense.Name = "Defense"
60
  Defense.Value = 0.6
61
  local Speed = Instance.new("NumberValue", Stats)
62
  Speed.Name = "Speed"
63
  Speed.Value = 1.6625
64
  local Damage = Instance.new("NumberValue", Stats)
65
  Damage.Name = "Damage"
66
  Damage.Value = 1
67
  local BlockValue = Instance.new("BoolValue", Stats)
68
  BlockValue.Name = "BlockValue"
69
  BlockValue.Value = false
70
  local StaggerHitAnim = Instance.new("BoolValue", Stats)
71
  StaggerHitAnim.Name = "StaggerHitAnim"
72
  StaggerHitAnim.Value = false
73
  local staghitanim = false
74
  local StaggerAnim = Instance.new("BoolValue", Stats)
75
  StaggerAnim.Name = "StaggerAnim"
76
  StaggerAnim.Value = false
77
  local staganim = false
78
  local StunAnim = Instance.new("BoolValue", Stats)
79
  StunAnim.Name = "StunAnim"
80
  StunAnim.Value = false
81
  local stunanim = false
82
  local StunValue = Instance.new("NumberValue", Stats)
83
  StunValue.Name = "StunValue"
84
  StunValue.Value = 0
85
  local cooldown1 = 0
86
  local cooldown2 = 0
87
  local cooldown3 = 0
88
  local cooldown4 = 0
89
  local mana = 0
90
  CustomColor = BrickColor.new("Really black")
91
  Colorpart1 = CustomColor.r
92
  Colorpart2 = CustomColor.g
93
  Colorpart3 = CustomColor.b
94
  local scrn = Instance.new("ScreenGui", PlayerGui)
95
  local ud = UDim2.new
96
  local c3 = Color3.new
97
  local skillcolorscheme = c3(1, 1, 1)
98
  local co1 = 0
99
  local co2 = 0
100
  local co3 = 0
101
  local co4 = 0
102
  local maxmana = 0
103
  local maxstun = 1
104
  local recovermana = 0
105
  local losestun = 0
106
  local stunwait = 0
107
  local manawait = 0
108
  local skill1mana = 0
109
  local skill2mana = 0
110
  local skill3mana = 0
111
  local skill4mana = 0
112
  local menuupdatespeed = 0
113
  local constantupdate = false
114
  local showstats = false
115
  local showstunbar = false
116
  function makeframe(par, trans, pos, size, color, name)
117
    local frame = Instance.new("Frame")
118
    frame.Parent = par
119
    frame.BackgroundTransparency = trans
120
    frame.BorderSizePixel = 0
121
    frame.Position = pos
122
    frame.Size = size
123
    frame.BackgroundColor3 = color
124
    frame.Name = name
125
    return frame
126
  end
127
  function makelabel(par, text, trans, stroketrans, name)
128
    local label = Instance.new("TextLabel")
129
    label.Parent = par
130
    label.BackgroundTransparency = 1
131
    label.Size = ud(1, 0, 1, 0)
132
    label.Position = ud(0, 0, 0, 0)
133
    label.TextColor3 = c3(255, 255, 255)
134
    label.TextStrokeTransparency = stroketrans
135
    label.TextTransparency = trans
136
    label.FontSize = Enum.FontSize.Size32
137
    label.Font = Enum.Font.Legacy
138
    label.BorderSizePixel = 0
139
    label.TextScaled = true
140
    label.Text = text
141
    label.Name = name
142
    return label
143
  end
144
  framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 1")
145
  framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 2")
146
  framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 3")
147
  framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), skillcolorscheme, "Frame 4")
148
  bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 1")
149
  bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 2")
150
  bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 3")
151
  bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), skillcolorscheme, "Bar 4")
152
  text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
153
  text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
154
  text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
155
  text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
156
  manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
157
  manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
158
  manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
159
  healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Bar")
160
  healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137254902, 0.19607843137254902), "Health Cover")
161
  healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
162
  if showstunbar == true then
163
    stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137254902), "Stun Frame")
164
    stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137254902), "Stun Bar")
165
    stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
166
  end
167
  if showstats == true then
168
    defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 0.39215686274509803, 1), "Defense Frame")
169
    damageframe = makeframe(scrn, 0.5, ud(0.322, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.39215686274509803, 0.39215686274509803), "Damage Frame")
170
    speedframe = makeframe(scrn, 0.5, ud(0.4145, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.39215686274509803, 1, 0.39215686274509803), "Speed Frame")
171
    defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
172
    damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
173
    speedtext = makelabel(speedframe, "Speed: " .. Speed.Value, 1, 1, "Speed Text")
174
  end
175
  function NoOutline(Part)
176
    Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
177
  end
178
  local weldBetween = function(a, b)
179
    local weldd = Instance.new("ManualWeld")
180
    weldd.Part0 = a
181
    weldd.Part1 = b
182
    weldd.C0 = CFrame.new()
183
    weldd.C1 = b.CFrame:inverse() * a.CFrame
184
    weldd.Parent = a
185
    return weldd
186
  end
187
  ArtificialHeartbeat = Instance.new("BindableEvent", script)
188
  ArtificialHeartbeat.Name = "ArtificialHeartbeat"
189
  script:WaitForChild("ArtificialHeartbeat")
190
  frame = 0.016666666666666666
191
  tf = 0
192
  allowframeloss = false
193
  tossremainder = false
194
  lastframe = tick()
195
  script.ArtificialHeartbeat:Fire()
196
  game:GetService("RunService").Heartbeat:connect(function(s, p)
197
    tf = tf + s
198
    if tf >= frame then
199
      if allowframeloss then
200
        script.ArtificialHeartbeat:Fire()
201
        lastframe = tick()
202
      else
203
        for i = 1, math.floor(tf / frame) do
204
          script.ArtificialHeartbeat:Fire()
205
        end
206
        lastframe = tick()
207
      end
208
      if tossremainder then
209
        tf = 0
210
      else
211
        tf = tf - frame * math.floor(tf / frame)
212
      end
213
    end
214
  end)
215
  function nooutline(part)
216
    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
217
  end
218
  function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
219
    local fp = it("Part")
220
    fp.formFactor = formfactor
221
    fp.Parent = parent
222
    fp.Reflectance = reflectance
223
    fp.Transparency = transparency
224
    fp.CanCollide = false
225
    fp.Locked = true
226
    fp.BrickColor = BrickColor.new(tostring(brickcolor))
227
    fp.Name = name
228
    fp.Size = size
229
    fp.Position = Character.Torso.Position
230
    nooutline(fp)
231
    fp.Material = material
232
    fp:BreakJoints()
233
    return fp
234
  end
235
  function mesh(Mesh, part, meshtype, meshid, offset, scale)
236
    local mesh = it(Mesh)
237
    mesh.Parent = part
238
    if Mesh == "SpecialMesh" then
239
      mesh.MeshType = meshtype
240
      mesh.MeshId = meshid
241
    end
242
    mesh.Offset = offset
243
    mesh.Scale = scale
244
    return mesh
245
  end
246
  function weld(parent, part0, part1, c0, c1)
247
    local weld = it("Weld")
248
    weld.Parent = parent
249
    weld.Part0 = part0
250
    weld.Part1 = part1
251
    weld.C0 = c0
252
    weld.C1 = c1
253
    return weld
254
  end
255
  Humanoid.CameraOffset = vt(0, 12, 0)
256
  Humanoid.JumpPower = Humanoid.JumpPower * 2
257
  coroutine.resume(coroutine.create(function()
258
    Humanoid.MaxHealth = 5100
259
    wait(0.1)
260
    Humanoid.Health = Humanoid.MaxHealth
261
  end))
262
  m = Instance.new("Model", Character)
263
  m.Name = "Outer Being"
264
  healthscript = Character:FindFirstChild("Health")
265
  if healthscript ~= nil then
266
    healthscript:Destroy()
267
  end
268
  Effects = Instance.new("Folder", m)
269
  Effects.Name = "Effects"
270
  local outerbeingtransparency = 1
271
  local head2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Head2", vt(0, 0, 0))
272
  local head2mesh = mesh("SpecialMesh", head2, "Head", "", vt(0, 0, 0), vt(248.20, 125, 125))
273
  local torso2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "Torso2", vt(0, 0, 0))
274
  local torso2mesh = mesh("BlockMesh", torso2, "", "", vt(0, 0, 0), vt(200, 200, 100))
275
  local leftarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftArm2", vt(0, 0, 0))
276
  local leftarm2mesh = mesh("BlockMesh", leftarm2, "", "", vt(0, 0, 0), vt(100, 200, 100))
277
  local rightarm2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightArm2", vt(0, 0, 0))
278
  local rightarm2mesh = mesh("BlockMesh", rightarm2, "", "", vt(0, 0, 0), vt(100, 200, 100))
279
  local leftleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "LeftLeg2", vt(0, 0, 0))
280
  local leftleg2mesh = mesh("BlockMesh", leftleg2, "", "", vt(0, 0, 0), vt(100, 200, 100))
281
  local rightleg2 = part(0, m, "SmoothPlastic", 0, outerbeingtransparency, CustomColor, "RightLeg2", vt(0, 0, 0))
282
  local rightleg2mesh = mesh("BlockMesh", rightleg2, "", "", vt(0, 0, 0), vt(100, 200, 100))
283
  head2.CFrame = Head.CFrame
284
  torso2.CFrame = Head.CFrame
285
  leftarm2.CFrame = Head.CFrame
286
  rightarm2.CFrame = Head.CFrame
287
  leftleg2.CFrame = Head.CFrame
288
  rightleg2.CFrame = Head.CFrame
289
  local head2weld = weld(m, Torso, head2, cf(0, 0, 0), cf(0, 0, 0))
290
  local torso2weld = weld(m, Torso, torso2, cf(0, 0, 0), cf(0, 0, 0))
291
  local leftarm2weld = weld(m, Torso, leftarm2, cf(0, 0, 0), cf(0, 0, 0))
292
  local rightarm2weld = weld(m, Torso, rightarm2, cf(0, 0, 0), cf(0, 0, 0))
293
  local leftleg2weld = weld(m, Torso, leftleg2, cf(0, 0, 0), cf(0, 0, 0))
294
  local rightleg2weld = weld(m, Torso, rightleg2, cf(0, 0, 0), cf(0, 0, 0))
295
  head2weld.C1 = cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0)
296
  torso2weld.C1 = cf(0, 0, 0)
297
  rightarm2weld.C1 = cf(0, 2.5, -0.5)
298
  leftarm2weld.C1 = cf(0, 2.5, -0.5)
299
  rightleg2weld.C1 = cf(0, 5, 0)
300
  leftleg2weld.C1 = cf(0, 5, 0)
301
  coroutine.resume(coroutine.create(function()
302
    while Humanoid.Health ~= 0 do
303
      ArtificialHeartbeat.Event:wait()
304
      head2weld.C0 = cf(0, 4, 0) * Neck.C0
305
      torso2weld.C0 = cf(0, 0, 0)
306
      rightarm2weld.C0 = cf(6, 2, 0) * RW.C0
307
      leftarm2weld.C0 = cf(-6, 2, 0) * LW.C0
308
      rightleg2weld.C0 = cf(1.5, -4, 0) * RH.C0
309
      leftleg2weld.C0 = cf(-1.5, -4, 0) * LH.C0
310
      head2.Transparency = outerbeingtransparency
311
      torso2.Transparency = outerbeingtransparency
312
      leftarm2.Transparency = outerbeingtransparency
313
      rightarm2.Transparency = outerbeingtransparency
314
      leftleg2.Transparency = outerbeingtransparency
315
      rightleg2.Transparency = outerbeingtransparency
316
    end
317
  end))
318
  Humanoid.Died:connect(function()
319
  end)
320
  for i, v in pairs(Character:GetChildren()) do
321
    if v:IsA("Model") then
322
      for _, c in pairs(v:GetChildren()) do
323
        if c:IsA("Part") then
324
          c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
325
        end
326
      end
327
    end
328
  end
329
  print([[
330
Vanta loaded. 
331
Unleash your power on your enemies.]])
332
  function so(id, par, vol, pit)
333
    coroutine.resume(coroutine.create(function()
334
      local sou = Instance.new("Sound", par or workspace)
335
      sou.Volume = vol
336
      sou.Pitch = pit or 1
337
      sou.SoundId = id
338
      ArtificialHeartbeat.Event:wait()
339
      sou:play()
340
      game:GetService("Debris"):AddItem(sou, 6)
341
    end))
342
  end
343
  function clerp(a, b, t)
344
    local qa = {
345
      QuaternionFromCFrame(a)
346
    }
347
    local qb = {
348
      QuaternionFromCFrame(b)
349
    }
350
    local ax, ay, az = a.x, a.y, a.z
351
    local bx, by, bz = b.x, b.y, b.z
352
    local _t = 1 - t
353
    return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
354
  end
355
  function QuaternionFromCFrame(cf)
356
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
357
    local trace = m00 + m11 + m22
358
    if trace > 0 then
359
      local s = math.sqrt(1 + trace)
360
      local recip = 0.5 / s
361
      return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
362
    else
363
      local i = 0
364
      if m00 < m11 then
365
        i = 1
366
      end
367
      if m22 > (i == 0 and m00 or m11) then
368
        i = 2
369
      end
370
      if i == 0 then
371
        local s = math.sqrt(m00 - m11 - m22 + 1)
372
        local recip = 0.5 / s
373
        return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
374
      elseif i == 1 then
375
        local s = math.sqrt(m11 - m22 - m00 + 1)
376
        local recip = 0.5 / s
377
        return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
378
      elseif i == 2 then
379
        local s = math.sqrt(m22 - m00 - m11 + 1)
380
        local recip = 0.5 / s
381
        return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
382
      end
383
    end
384
  end
385
  function QuaternionToCFrame(px, py, pz, x, y, z, w)
386
    local xs, ys, zs = x + x, y + y, z + z
387
    local wx, wy, wz = w * xs, w * ys, w * zs
388
    local xx = x * xs
389
    local xy = x * ys
390
    local xz = x * zs
391
    local yy = y * ys
392
    local yz = y * zs
393
    local zz = z * zs
394
    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))
395
  end
396
  function QuaternionSlerp(a, b, t)
397
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
398
    local startInterp, finishInterp
399
    if cosTheta >= 1.0E-4 then
400
      if 1 - cosTheta > 1.0E-4 then
401
        local theta = math.acos(cosTheta)
402
        local invSinTheta = 1 / math.sin(theta)
403
        startInterp = math.sin((1 - t) * theta) * invSinTheta
404
        finishInterp = math.sin(t * theta) * invSinTheta
405
      else
406
        startInterp = 1 - t
407
        finishInterp = t
408
      end
409
    elseif 1 + cosTheta > 1.0E-4 then
410
      local theta = math.acos(-cosTheta)
411
      local invSinTheta = 1 / math.sin(theta)
412
      startInterp = math.sin((t - 1) * theta) * invSinTheta
413
      finishInterp = math.sin(t * theta) * invSinTheta
414
    else
415
      startInterp = t - 1
416
      finishInterp = t
417
    end
418
    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
419
  end
420
  function rayCast(Pos, Dir, Max, Ignore)
421
    return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
422
  end
423
  function makegui(cframe, text, color)
424
    local c = Instance.new("Part")
425
    c.Size = vt(0.2, 0.2, 0.2)
426
    c.Transparency = 1
427
    Instance.new("BodyGyro").Parent = c
428
    c.Parent = Effects
429
    c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
430
    local f = Instance.new("BodyPosition")
431
    f.P = 2000
432
    f.D = 100
433
    f.maxForce = vt(math.huge, math.huge, math.huge)
434
    f.position = c.Position + vt(0, 6, 0)
435
    f.Parent = c
436
    game:GetService("Debris"):AddItem(c, 5)
437
    c.CanCollide = false
438
    c.Parent = workspace
439
    c.CanCollide = false
440
    local bg = Instance.new("BillboardGui", c)
441
    bg.Adornee = c
442
    bg.Size = UDim2.new(2.5, 0, 2.5, 0)
443
    bg.StudsOffset = vt(-2, 2, 0)
444
    bg.AlwaysOnTop = false
445
    local tl = Instance.new("TextLabel", bg)
446
    tl.BackgroundTransparency = 1
447
    tl.Size = UDim2.new(2.5, 0, 2.5, 0)
448
    tl.Text = text
449
    tl.Font = Enum.Font.SourceSans
450
    tl.FontSize = Enum.FontSize.Size42
451
    tl.TextColor3 = color
452
    tl.TextScaled = false
453
    tl.TextStrokeTransparency = 0
454
    tl.TextScaled = true
455
    tl.TextWrapped = true
456
    f.Parent = c
457
    coroutine.resume(coroutine.create(function()
458
      wait(0.25)
459
      for i = 1, 5 do
460
        ArtificialHeartbeat.Event:wait()
461
        f.position = c.Position - vt(0, 0.5, 0)
462
      end
463
    end))
464
    coroutine.resume(coroutine.create(function()
465
      wait(2)
466
      for i = 1, 10 do
467
        ArtificialHeartbeat.Event:wait()
468
        tl.TextTransparency = tl.TextTransparency + 0.1
469
        tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
470
        f.position = c.Position + vt(0, 0.5, 0)
471
      end
472
      c.Parent = nil
473
    end))
474
  end
475
  local CritChance = Instance.new("NumberValue", Stats)
476
  CritChance.Name = "CritChance"
477
  CritChance.Value = 1
478
  local critchancenumber = 50
479
  local cancrit = false
480
  local canpenetratearmor = false
481
  local cancollidewithhitbox = false
482
  local sethitblockvaluetofalse = true
483
  local antiteamkill = false
484
  local HitPlayerSounds = {
485
    199149137,
486
    199149186,
487
    199149221,
488
    199149235,
489
    199149269,
490
    199149297
491
  }
492
  local HitArmorSounds = {
493
    199149321,
494
    199149338,
495
    199149367,
496
    199149409,
497
    199149452
498
  }
499
  local HitWeaponSounds = {
500
    199148971,
501
    199149025,
502
    199149072,
503
    199149109,
504
    199149119
505
  }
506
  local HitBlockSounds = {199148933, 199148947}
507
  function Damagefunc(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged)
508
    if hit.Parent == nil then
509
      return
510
    end
511
    h = hit.Parent:FindFirstChild("Humanoid")
512
    for _, v in pairs(hit.Parent:children()) do
513
      if v:IsA("Humanoid") then
514
        h = v
515
      end
516
    end
517
    if antiteamkill == true then
518
      if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
519
        opponent = game.Players:FindFirstChild(hit.Parent.Name)
520
      end
521
      if opponent ~= nil and opponent.TeamColor == Player.TeamColor then
522
        return
523
      end
524
    end
525
    if hit.Name == "Hitbox" and hit:FindFirstChild("TouchInterest") ~= nil then
526
      StaggerHitAnim.Value = true
527
      so("http://roblox.com/asset/?id=" .. HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
528
      return
529
    end
530
    if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
531
      h = hit.Parent.Parent:FindFirstChild("Humanoid")
532
    end
533
    if hit.Parent.className == "Hat" then
534
      hit = hit.Parent.Parent:findFirstChild("Head")
535
    end
536
    if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
537
      if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
538
        return
539
      end
540
      if hit.Parent:findFirstChild("Stats") ~= nil then
541
        if hit.Parent.Stats:findFirstChild("StunValue") ~= nil then
542
          hit.Parent.Stats:findFirstChild("StunValue").Value = hit.Parent.Stats:findFirstChild("StunValue").Value + incstun
543
        end
544
      elseif hit.Parent:findFirstChild("StunValue") ~= nil then
545
        hit.Parent:findFirstChild("StunValue").Value = hit.Parent:findFirstChild("StunValue").Value + incstun
546
      end
547
      if hit.Parent:findFirstChild("StaggerAnim") ~= nil and stagger == true then
548
        hit.Parent:findFirstChild("StaggerAnim").Value = true
549
      end
550
      if hit.Parent:findFirstChild("Stats") ~= nil then
551
        if hit.Parent.Stats:findFirstChild("BlockValue") ~= nil and hit.Parent.Stats:findFirstChild("BlockValue").Value == true then
552
          makegui(hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
553
          so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
554
          if ranged ~= true then
555
            if sethitblockvaluetofalse == true then
556
              hit.Parent.Stats:findFirstChild("BlockValue").Value = false
557
            end
558
            StaggerAnim.Value = true
559
          end
560
          return
561
        end
562
      elseif hit.Parent:findFirstChild("BlockValue") ~= nil and hit.Parent:findFirstChild("BlockValue").Value == true then
563
        makegui(Head.CFrame, "Blocked!", Color3.new(0, 0.39215686274509803, 1))
564
        so("http://roblox.com/asset/?id=" .. HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
565
        if ranged ~= true then
566
          if sethitblockvaluetofalse == true then
567
            hit.Parent:findFirstChild("BlockValue").Value = false
568
          end
569
          StaggerAnim.Value = true
570
        end
571
        return
572
      end
573
      local D = math.random(minim, maxim) * Damage.Value
574
      if hit.Parent:FindFirstChild("Stats") ~= nil then
575
        if hit.Parent.Stats:FindFirstChild("Defense") then
576
          if canpenetratearmor == true then
577
          else
578
            D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
579
          end
580
        elseif hit.Parent.Stats:FindFirstChild("Defense") == nil then
581
        end
582
      elseif hit.Parent:FindFirstChild("Defense") then
583
        if canpenetratearmor == true then
584
        else
585
          D = D / hit.Parent:FindFirstChild("Defense").Value
586
        end
587
      elseif hit.Parent:FindFirstChild("Defense") == nil then
588
      end
589
      if cancrit == true then
590
        CritChance.Value = math.random(1, critchancenumber)
591
        if CritChance.Value == critchancenumber then
592
          D = D * 2
593
        end
594
      end
595
      h.Health = h.Health - D
596
      if D <= 3 and staghit == true then
597
        if ranged ~= true then
598
          StaggerHitAnim.Value = true
599
        end
600
        so("http://roblox.com/asset/?id=" .. HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
601
      elseif D > 3 and ranged ~= true then
602
        so("http://roblox.com/asset/?id=" .. HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
603
      end
604
      if D > 2 and D < 20 then
605
        if CritChance.Value == critchancenumber then
606
          makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
607
          so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
608
        else
609
          makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0.8627450980392157, 0))
610
        end
611
      elseif D >= 20 then
612
        if CritChance.Value == critchancenumber then
613
          makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
614
          so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
615
        else
616
          makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(1, 0, 0))
617
        end
618
      else
619
        if D <= 2 then
620
          if CritChance.Value == critchancenumber then
621
            makegui(hit.Parent.Head.CFrame, "Crit! " .. tostring(math.floor(D + 0.5)) .. "", Color3.new(0.7843137254901961, 0, 0))
622
            so("http://www.roblox.com/asset/?id=296102734", hit, 1, 1)
623
          else
624
            makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)), Color3.new(0.8823529411764706, 0.8823529411764706, 0.8823529411764706))
625
          end
626
        else
627
        end
628
      end
629
      if Type == "Normal" then
630
        vp = Instance.new("BodyVelocity")
631
        vp.P = 500
632
        vp.maxForce = vt(math.huge, 0, math.huge)
633
        if KnockbackType == 1 then
634
          vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
635
        elseif KnockbackType == 2 then
636
          vp.velocity = Property.CFrame.lookVector * knockback
637
        end
638
        if knockback > 0 then
639
          vp.Parent = hit.Parent.Torso
640
        end
641
        game:GetService("Debris"):AddItem(vp, 0.5)
642
      end
643
      debounce = Instance.new("BoolValue")
644
      debounce.Name = "DebounceHit"
645
      debounce.Parent = hit.Parent
646
      debounce.Value = true
647
      game:GetService("Debris"):AddItem(debounce, Delay)
648
      c = Instance.new("ObjectValue")
649
      c.Name = "creator"
650
      c.Value = Player
651
      c.Parent = h
652
      game:GetService("Debris"):AddItem(c, 0.5)
653
    end
654
  end
655
  function DecreaseStat(Location, CFrame, Stat, Amount, Duration, ShowDebuff)
656
    if Location[Stat] ~= nil then
657
      Location[Stat].Value = Location[Stat].Value - Amount
658
      if ShowDebuff == true then
659
        if Location[Stat].Name == "Defense" then
660
          makegui(CFrame, "-Defense", c3(1, 1, 1))
661
        elseif Location[Stat].Name == "Damage" then
662
          makegui(CFrame, "-Damage", c3(1, 1, 1))
663
        elseif Location[Stat].Name == "Speed" then
664
          makegui(CFrame, "-Movement", c3(1, 1, 1))
665
        end
666
      end
667
      coroutine.resume(coroutine.create(function()
668
        wait(Duration)
669
        Location[Stat].Value = Location[Stat].Value + Amount
670
      end))
671
    end
672
  end
673
  function IncreaseStat(Location, CFrame, Stat, Amount, Duration, ShowBuff)
674
    if Location[Stat] ~= nil then
675
      Location[Stat].Value = Location[Stat].Value + Amount
676
      if ShowBuff == true then
677
        if Location[Stat].Name == "Defense" then
678
          makegui(CFrame, "+Defense", c3(1, 1, 1))
679
        elseif Location[Stat].Name == "Damage" then
680
          makegui(CFrame, "+Damage", c3(1, 1, 1))
681
        elseif Location[Stat].Name == "Speed" then
682
          makegui(CFrame, "+Movement", c3(1, 1, 1))
683
        end
684
      end
685
      coroutine.resume(coroutine.create(function()
686
        wait(Duration)
687
        Location[Stat].Value = Location[Stat].Value - Amount
688
      end))
689
    end
690
  end
691
  function GetDist(Part1, Part2, magni)
692
    local targ = Part1.Position - Part2.Position
693
    local mag = targ.magnitude
694
    if magni >= mag then
695
      return true
696
    else
697
      return false
698
    end
699
  end
700
  function MagniDamage(Part, magni, mindam, maxdam, knock, Type, Delay, KnockbackType, incstun, stagger, staghit, ranged)
701
    for _, c in pairs(workspace:children()) do
702
      local hum = c:findFirstChild("Humanoid")
703
      if hum ~= nil then
704
        local head = c:findFirstChild("Torso")
705
        if head ~= nil then
706
          local targ = head.Position - Part.Position
707
          local mag = targ.magnitude
708
          if magni >= mag and c.Name ~= Player.Name then
709
            Damagefunc(head, mindam, maxdam, knock, Type, RootPart, Delay, KnockbackType, incstun, stagger, staghit, ranged)
710
          end
711
        end
712
      end
713
    end
714
  end
715
  function Lightning(p0, p1, tym, ofs, brickcolor, th, tra, last)
716
    local magz = (p0 - p1).magnitude
717
    local curpos = p0
718
    local trz = {
719
      -ofs,
720
      ofs
721
    }
722
    for i = 1, tym do
723
      do
724
        local li = Instance.new("Part", workspace)
725
        li.TopSurface = 0
726
        li.BottomSurface = 0
727
        li.Anchored = true
728
        li.Transparency = tra or 0.4
729
        li.BrickColor = brickcolor
730
        li.formFactor = "Custom"
731
        li.CanCollide = false
732
        li.Size = vt(th, th, magz / tym)
733
        local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
734
        local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
735
        if tym == i then
736
          local magz2 = (curpos - p1).magnitude
737
          li.Size = vt(th, th, magz2)
738
          li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
739
        else
740
          li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
741
        end
742
        curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
743
        game.Debris:AddItem(li, last)
744
        coroutine.resume(coroutine.create(function()
745
          while li.Transparency ~= 1 do
746
            for i = 0, 1, last do
747
              ArtificialHeartbeat.Event:wait()
748
              li.Transparency = li.Transparency + 0.1 / last
749
            end
750
          end
751
        end))
752
      end
753
    end
754
  end
755
  function MagicRing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
756
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
757
    prt.Anchored = true
758
    prt.CFrame = cframe
759
    local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
760
    game:GetService("Debris"):AddItem(prt, 10)
761
    coroutine.resume(coroutine.create(function(Part, Mesh)
762
      for i = 0, 1, delay do
763
        ArtificialHeartbeat.Event:wait()
764
        Part.CFrame = Part.CFrame
765
        Part.Transparency = i
766
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
767
      end
768
      Part.Parent = nil
769
    end), prt, msh)
770
  end
771
  function MagicWave(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
772
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
773
    prt.Anchored = true
774
    prt.CFrame = cframe
775
    local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
776
    game:GetService("Debris"):AddItem(prt, 10)
777
    coroutine.resume(coroutine.create(function(Part, Mesh)
778
      for i = 0, 1, delay do
779
        ArtificialHeartbeat.Event:wait()
780
        Part.CFrame = Part.CFrame
781
        Part.Transparency = i
782
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
783
      end
784
      Part.Parent = nil
785
    end), prt, msh)
786
  end
787
  function MagicBlock(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
788
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
789
    prt.Anchored = true
790
    prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
791
    local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
792
    game:GetService("Debris"):AddItem(prt, 10)
793
    coroutine.resume(coroutine.create(function(Part, Mesh)
794
      for i = 0, 1, delay do
795
        ArtificialHeartbeat.Event:wait()
796
        if rotate == true then
797
          Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
798
        else
799
        end
800
        Part.Transparency = i
801
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
802
      end
803
      Part.Parent = nil
804
    end), prt, msh)
805
  end
806
  function MagicBlock2(brickcolor, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
807
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
808
    prt.Anchored = true
809
    prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
810
    local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
811
    game:GetService("Debris"):AddItem(prt, 10)
812
    CF = prt.CFrame
813
    num = math.random(5, 20)
814
    coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
815
      for i = 0, 1, delay do
816
        ArtificialHeartbeat.Event:wait()
817
        if rotate == true then
818
          Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
819
        else
820
          Part.CFrame = CF2 * cf(0, i * Num, 0)
821
        end
822
        Part.Transparency = i
823
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
824
      end
825
      Part.Parent = nil
826
    end), prt, msh, CF, num)
827
  end
828
  function MagicCylinder(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
829
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
830
    prt.Anchored = true
831
    prt.CFrame = cframe
832
    local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
833
    game:GetService("Debris"):AddItem(prt, 10)
834
    coroutine.resume(coroutine.create(function(Part, Mesh)
835
      for i = 0, 1, delay do
836
        ArtificialHeartbeat.Event:wait()
837
        Part.Transparency = i
838
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
839
      end
840
      Part.Parent = nil
841
    end), prt, msh)
842
  end
843
  function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
844
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
845
    prt.Anchored = true
846
    prt.CFrame = cframe
847
    local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
848
    game:GetService("Debris"):AddItem(prt, 10)
849
    coroutine.resume(coroutine.create(function(Part, Mesh)
850
      for i = 0, 1, delay do
851
        ArtificialHeartbeat.Event:wait()
852
        Part.Transparency = i
853
        Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
854
      end
855
      Part.Parent = nil
856
    end), prt, msh)
857
  end
858
  function BreakEffect(brickcolor, rotate, cframe, x1, y1, z1, delay)
859
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
860
    prt.Anchored = true
861
    prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
862
    local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
863
    game:GetService("Debris"):AddItem(prt, 10)
864
    coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
865
      CF = Part.CFrame
866
      Numbb = 0
867
      randnumb = math.random() - math.random()
868
      for i = 0, 1, delay do
869
        ArtificialHeartbeat.Event:wait()
870
        CF = CF * cf(0, 1, 0)
871
        if rotate == true then
872
          Part.CFrame = CF * angles(Numbb, 0, 0)
873
        elseif rotate == false then
874
          Part.CFrame = CF
875
        end
876
        Part.Transparency = i
877
        Numbb = Numbb + randnumb
878
      end
879
      Part.Parent = nil
880
    end), prt, CF, Numbb, randnumb)
881
  end
882
  function ElecEffect(brickcolor, cf, x, y, z, delay)
883
    local prt = part(3, Effects, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt())
884
    prt.Anchored = true
885
    prt.CFrame = cf
886
    xval = math.random()
887
    yval = math.random()
888
    zval = math.random()
889
    local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
890
    game:GetService("Debris"):AddItem(prt, 10)
891
    coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
892
      for i = 0, 1, delay do
893
        ArtificialHeartbeat.Event:wait()
894
        Part.CFrame = Part.CFrame
895
        xvaal = xvaal - 0.1 * (delay * 10)
896
        yvaal = yvaal - 0.1 * (delay * 10)
897
        zvaal = zvaal - 0.1 * (delay * 10)
898
        Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
899
        Part.Transparency = i
900
      end
901
      Part.Parent = nil
902
    end), prt, msh, xval, yval, zval)
903
  end
904
  function subtractmana(k)
905
    if k <= mana then
906
      mana = mana - k
907
    end
908
  end
909
  local idleangle = 0
910
  local idlen = 0
911
  local donum = 0
912
  local sine = 0
913
  local change = 1
914
  local val = 0
915
  local walkinganim = false
916
  local handidle = false
917
  local walk = 0
918
  local someangle = 0
919
  local change2 = 1
920
  local stundelay = 0
921
  local manadelay = 0
922
  local dieanim = false
923
  local robloxidleanimation = Instance.new("Animation", Torso)
924
  robloxidleanimation.Name = "robloxidleanimation"
925
  robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
926
  Animator = Humanoid:findFirstChild("Animator")
927
  Animate = Character:findFirstChild("Animate")
928
  Running = Head:FindFirstChild("Running")
929
  if Running ~= nil then
930
    Running.Volume = 0
931
  end
932
  local startequipped = false
933
  local startequippedwithequipanimation = true
934
  local disableanimator = true
935
  local disableanimate = false
936
  local alternatewalk = false
937
  local customwalk = false
938
  local hidemenu = false
939
  local allowmenutofunction = false
940
  local allowabilitestofunction = false
941
  local canunequiporequip = false
942
  local allowidle = false
943
  local allowwalking = false
944
  local disablemovingarms = false
945
  local usemotorsinsteadofwelds = false
946
  local leftarm = false
947
  local rightarm = false
948
  local allowhopperbin = false
949
  local allowstunbar = false
950
  local walkspeeddependsonspeedvalue = true
951
  local alternatemanaregensystem = false
952
  local showhealthmanaandstunnumbers = false
953
  local changebarcolorsifnotenoughmana = false
954
  local disablejumpifstaggeredorstunned = false
955
  if hidemenu == true then
956
    for _, v in pairs(scrn:children()) do
957
      if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
958
        v.Visible = false
959
      end
960
    end
961
  end
962
  if disablejumpifstaggeredorstunned == true then
963
    Humanoid.Changed:connect(function(Jump)
964
      if Jump == "Jump" and (StaggerAnim.Value == true or StunAnim.Value == true) then
965
        Humanoid.Jump = false
966
      end
967
    end)
968
  end
969
  if allowmenutofunction == true then
970
    for _, v in pairs(scrn:GetChildren()) do
971
      if v.ClassName == "Frame" then
972
        for _, b in pairs(v:GetChildren()) do
973
          if b.ClassName == "TextLabel" and b.Name ~= "Text 1" and b.Name ~= "Text 2" and b.Name ~= "Text 3" and b.Name ~= "Text 4" then
974
            coroutine.resume(coroutine.create(function(TheTextLabel)
975
              wait(menuupdatespeed)
976
              for i = 1, 0, -0.1 do
977
                ArtificialHeartbeat.Event:wait()
978
                TheTextLabel.TextTransparency = i
979
                TheTextLabel.TextStrokeTransparency = i
980
              end
981
              TheTextLabel.TextTransparency = 0
982
              TheTextLabel.TextStrokeTransparency = 0
983
            end), b)
984
          end
985
        end
986
      end
987
    end
988
  end
989
  if allowmenutofunction == true and allowabilitestofunction == true then
990
    for _, v in pairs(scrn:GetChildren()) do
991
      if v.ClassName == "Frame" then
992
        for _, b in pairs(v:GetChildren()) do
993
          if b.ClassName == "TextLabel" and b.Name ~= "Health Text" and b.Name ~= "Mana Text" then
994
            coroutine.resume(coroutine.create(function(TheTextLabel)
995
              wait(menuupdatespeed)
996
              for i = 1, 0, -0.1 do
997
                ArtificialHeartbeat.Event:wait()
998
                TheTextLabel.TextTransparency = i
999
                TheTextLabel.TextStrokeTransparency = i
1000
              end
1001
              TheTextLabel.TextTransparency = 0
1002
              TheTextLabel.TextStrokeTransparency = 0
1003
            end), b)
1004
          end
1005
        end
1006
      end
1007
    end
1008
  end
1009
  if allowhopperbin == true then
1010
    if script.Parent.className ~= "HopperBin" then
1011
      Tool = Instance.new("HopperBin")
1012
      Tool.Parent = Backpack
1013
      Tool.Name = "Weapon Name"
1014
      script.Parent = Tool
1015
    end
1016
    Bin = script.Parent
1017
  end
1018
  if disablemovingarms == true then
1019
    RWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
1020
    LWC0 = cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
1021
    RSH, LSH = nil, nil
1022
    if usemotorsinsteadofwelds == true then
1023
      RW = Instance.new("Motor")
1024
      LW = Instance.new("Motor")
1025
    else
1026
      RW = Instance.new("Weld")
1027
      LW = Instance.new("Weld")
1028
    end
1029
    RW.Name = "Right Shoulder"
1030
    LW.Name = "Left Shoulder"
1031
    RSH = Torso["Right Shoulder"]
1032
    LSH = Torso["Left Shoulder"]
1033
    RSH.Parent = Torso
1034
    LSH.Parent = Torso
1035
    RW.Name = "Right Shoulder"
1036
    RW.Part0 = Torso
1037
    RW.C0 = cf(1.5, 0.5, 0)
1038
    RW.C1 = cf(0, 0.5, 0)
1039
    RW.Part1 = Character["Right Arm"]
1040
    RW.Parent = nil
1041
    LW.Name = "Left Shoulder"
1042
    LW.Part0 = Torso
1043
    LW.C0 = cf(-1.5, 0.5, 0)
1044
    LW.C1 = cf(0, 0.5, 0)
1045
    LW.Part1 = Character["Left Arm"]
1046
    LW.Parent = nil
1047
  else
1048
    RW = Torso["Right Shoulder"]
1049
    LW = Torso["Left Shoulder"]
1050
    LH = Torso["Left Hip"]
1051
    RH = Torso["Right Hip"]
1052
    RWC0 = cf(-0.5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(0))
1053
    LWC0 = cf(0.5, 0, 0) * angles(math.rad(0), math.rad(-90), math.rad(0))
1054
  end
1055
  if allowidle == true then
1056
    coroutine.resume(coroutine.create(function()
1057
      while true do
1058
        for i = 0, 1, 0.08 do
1059
          wait()
1060
          idleangle = idleangle + 0.005 * idlen
1061
          idlen = idlen - 0.1
1062
        end
1063
        idlen = 0
1064
        for i = 0, 1, 0.08 do
1065
          wait()
1066
          idleangle = idleangle - 0.005 * idlen
1067
          idlen = idlen - 0.1
1068
        end
1069
        idlen = 0
1070
        idleangle = 0
1071
      end
1072
    end))
1073
  end
1074
  function equipanim()
1075
    attack = true
1076
    local equipvelocity = Instance.new("BodyVelocity", Torso)
1077
    equipvelocity.P = 500
1078
    equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
1079
    equipvelocity.Velocity = Vector3.new(0, 10, 0)
1080
    for i = 0, 1, 0.02 do
1081
      ArtificialHeartbeat.Event:wait()
1082
      MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
1083
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
1084
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1085
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
1086
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
1087
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
1088
      LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
1089
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1090
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1091
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
1092
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
1093
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
1094
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
1095
    end
1096
    coroutine.resume(coroutine.create(function()
1097
      for i = 0, 1, 0.1 do
1098
        wait()
1099
        outerbeingtransparency = outerbeingtransparency - 0.05
1100
      end
1101
      outerbeingtransparency = 0.5
1102
    end))
1103
    equipvelocity.Velocity = Vector3.new(0, 0, 0)
1104
    MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
1105
    MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
1106
    so("http://roblox.com/asset/?id=203691510", Torso, 1, 1)
1107
    so("http://roblox.com/asset/?id=203691653", Torso, 1, 1)
1108
    so("http://roblox.com/asset/?id=203691562", Torso, 1, 1)
1109
    so("http://roblox.com/asset/?id=160740121", Torso, 1, 1.5)
1110
    for i = 0, 1, 0.02 do
1111
      ArtificialHeartbeat.Event:wait()
1112
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1113
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1114
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(90)) * RWC0, 0.15)
1115
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-90)) * LWC0, 0.15)
1116
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1117
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1118
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1119
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1120
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1121
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1122
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1123
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1124
    end
1125
    equipvelocity:Destroy()
1126
    Speed.Value = Speed.Value - 0.1
1127
    Defense.Value = Defense.Value + 0.4
1128
    attack = false
1129
  end
1130
  function unequipanim()
1131
    attack = true
1132
    coroutine.resume(coroutine.create(function()
1133
      Humanoid.MaxHealth = math.huge
1134
      wait(0.1)
1135
      Humanoid.Health = Humanoid.MaxHealth
1136
    end))
1137
    local equipvelocity = Instance.new("BodyVelocity", Torso)
1138
    equipvelocity.P = 500
1139
    equipvelocity.maxForce = vt(math.huge, math.huge, math.huge)
1140
    equipvelocity.Velocity = Vector3.new(0, 1, 0)
1141
    so("http://roblox.com/asset/?id=183763515", Torso, 1, 0.4)
1142
    for i = 0, 1, 0.005 do
1143
      ArtificialHeartbeat.Event:wait()
1144
      MagicBlock(CustomColor, true, Torso.CFrame * cf(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
1145
      BreakEffect(CustomColor, false, Torso.CFrame, 1, 25, 1, 0.05)
1146
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(20 + math.random(-10, 10)), math.rad(0), math.rad(0 + math.random(-10, 10))), 0.15)
1147
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1148
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(100), math.rad(0), math.rad(-60)) * RWC0, 0.15)
1149
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(80), math.rad(0), math.rad(60)) * LWC0, 0.15)
1150
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
1151
      LH.C0 = clerp(LH.C0, cf(-1, 0 - idleangle, -0.5) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.15)
1152
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1153
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1154
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.5), 0.15)
1155
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.5), 0.15)
1156
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
1157
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(2.5, 2.5, 0), 0.15)
1158
    end
1159
    MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.01)
1160
    MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.01)
1161
    so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
1162
    so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.6)
1163
    so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.6)
1164
    for i = 1, 2 do
1165
      so("http://roblox.com/asset/?id=160867463", Torso, 1, 0.8)
1166
      so("http://roblox.com/asset/?id=297472596", Torso, 1, 0.8)
1167
    end
1168
    coroutine.resume(coroutine.create(function()
1169
      for i = 0, 1, 0.01 do
1170
        wait()
1171
        outerbeingtransparency = outerbeingtransparency + 0.005
1172
      end
1173
      outerbeingtransparency = 1
1174
    end))
1175
    Face.Transparency = 1
1176
    for _, v in pairs(Character:children()) do
1177
      if v:IsA("Part") and v.ClassName ~= "Model" then
1178
        coroutine.resume(coroutine.create(function(Part)
1179
          for i = 0, 1, 0.01 do
1180
            wait()
1181
            Part.Transparency = Part.Transparency + 0.01
1182
          end
1183
          Part.Anchored = true
1184
          Part.Transparency = 1
1185
        end), v)
1186
      elseif v:IsA("Hat") then
1187
        coroutine.resume(coroutine.create(function(Hat)
1188
          for i = 0, 1, 0.01 do
1189
            wait()
1190
            Hat.Transparency = Hat.Transparency + 0.01
1191
          end
1192
          Hat.Anchored = true
1193
          Hat.Transparency = 1
1194
        end), v.Handle)
1195
      end
1196
    end
1197
    local deathnum = 0
1198
    for i = 0, 1, 0.005 do
1199
      ArtificialHeartbeat.Event:wait()
1200
      if deathnum >= 10 then
1201
        deathnum = 0
1202-
        local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1202+
        local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1203
        refpart.CFrame = Torso.CFrame * cf(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
1204
        refpart.Anchored = true
1205
        game:GetService("Debris"):AddItem(refpart, 1)
1206
        MagicBlock(CustomColor, true, refpart.CFrame, 30, 30, 30, 0.5, 0.5, 0.5, 0.01)
1207
        MagicSphere(CustomColor, refpart.CFrame, 60, 60, 60, 1, 1, 1, 0.01)
1208
        so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.6)
1209
      end
1210
      BreakEffect(CustomColor, false, Torso.CFrame, 1, 50, 1, 0.05)
1211
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(0 + math.random(-40, 40))), 0.15)
1212
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40)), math.rad(0 + math.random(-40, 40))), 0.15)
1213
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))) * RWC0, 0.15)
1214
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-40 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))) * LWC0, 0.15)
1215
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(-40 + math.random(-40, 40))), 0.15)
1216
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-20 + math.random(-40, 40)), math.rad(0), math.rad(40 + math.random(-40, 40))), 0.15)
1217
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1218
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1219
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1220
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1221
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1222
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1223
      deathnum = deathnum + 1
1224
    end
1225
    Humanoid.MaxHealth = 0
1226
    Humanoid.Health = 0
1227
    equipvelocity.Velocity = Vector3.new(0, 0, 0)
1228
    MagicBlock(CustomColor, true, Torso.CFrame, 75, 75, 75, 0.5, 0.5, 0.5, 0.008)
1229
    MagicSphere(CustomColor, Torso.CFrame, 150, 150, 150, 1, 1, 1, 0.008)
1230
    so("http://roblox.com/asset/?id=203691510", Torso, 1, 0.4)
1231
    so("http://roblox.com/asset/?id=203691653", Torso, 1, 0.4)
1232
    so("http://roblox.com/asset/?id=203691562", Torso, 1, 0.4)
1233
    so("http://roblox.com/asset/?id=160867463", Torso, 1, 1.2)
1234
    attack = false
1235
  end
1236
  if startequipped == true then
1237
    equipped = true
1238
    if disableanimate == true then
1239
      Animate.Disabled = true
1240
      local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1241
      idleanimation:Play()
1242
    end
1243
    if disableanimator == true then
1244
      Animator.Parent = nil
1245
    end
1246
    if disablemovingarms == true then
1247
      RW.Parent = Torso
1248
      LW.Parent = Torso
1249
      RSH.Parent = nil
1250
      LSH.Parent = nil
1251
    end
1252
    Speed.Value = Speed.Value - 0.1
1253
    Defense.Value = Defense.Value + 0.4
1254
  elseif startequippedwithequipanimation == true then
1255
    equipped = true
1256
    if disableanimate == true then
1257
      Animate.Disabled = true
1258
      local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1259
      idleanimation:Play()
1260
    end
1261
    if disableanimator == true then
1262
      Animator.Parent = nil
1263
    end
1264
    if disablemovingarms == true then
1265
      RW.Parent = Torso
1266
      LW.Parent = Torso
1267
      RSH.Parent = nil
1268
      LSH.Parent = nil
1269
    end
1270
    equipanim()
1271
  end
1272
  function StaggerHit()
1273
    attack = true
1274
    attack = false
1275
  end
1276
  function Stagger()
1277
    attack = true
1278
    attack = false
1279
  end
1280
  function Stun()
1281
    attack = true
1282
    attack = false
1283
  end
1284
  function EAbility()
1285
    attack = true
1286
    attack = false
1287
  end
1288
  function attackone()
1289
    attack = true
1290
    attack = false
1291
  end
1292
  function attacktwo()
1293
    attack = true
1294
    attack = false
1295
  end
1296
  function attackthree()
1297
    attack = true
1298
    attack = false
1299
  end
1300
  function attackfour()
1301
    attack = true
1302
    attack = false
1303
  end
1304
  function Move1()
1305
    attack = true
1306
    for i = 0, 1, 0.25 do
1307
      ArtificialHeartbeat.Event:wait()
1308
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1309
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1310
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
1311
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1312
      if Anim ~= "Walk" then
1313
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1314
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1315
      elseif Anim == "Walk" then
1316
        if walkinganim == true then
1317
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1318
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1319
        else
1320
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1321
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1322
        end
1323
      end
1324
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1325
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1326
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1327
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1328
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1329
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1330
    end
1331
    for i = 0, 1, 0.04 do
1332
      ArtificialHeartbeat.Event:wait()
1333
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1334
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1335
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
1336
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1337
      if Anim ~= "Walk" then
1338
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1339
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1340
      elseif Anim == "Walk" then
1341
        if walkinganim == true then
1342
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1343
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1344
        else
1345
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1346
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1347
        end
1348
      end
1349
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1350
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1351
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1352
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1353
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1354
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1355
    end
1356
    local orbnumber = math.random(20, 40)
1357
    coroutine.resume(coroutine.create(function()
1358
      for i = 1, orbnumber do
1359
        wait()
1360
        local orbblastpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
1361
        local orbblastmesh = mesh("SpecialMesh", orbblastpart, "Sphere", "", vt(0, 0, 0), vt(10, 10, 10))
1362
        orbblastpart.Anchored = true
1363
        game:GetService("Debris"):AddItem(orbblastpart, 5)
1364
        orbblastpart.CFrame = cf(Mouse.hit.p + vt(math.random(-10, 10), math.random(50, 100), math.random(-10, 10)))
1365
        MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
1366
        MagicSphere(CustomColor, orbblastpart.CFrame, 10, 10, 10, 0.5, 0.5, 0.5, 0.05)
1367
        so("http://roblox.com/asset/?id=183763498", orbblastpart, 1, 1.2)
1368
        coroutine.resume(coroutine.create(function(Part)
1369
          wait(1)
1370
          local spread = vt(math.random(-16, 16), math.random(-16, 16), math.random(-16, 16)) * (Part.Position - (Part.Position + vt(0, -1, 0))).magnitude / 100
1371
          local TheHit = Part.Position + vt(0, -1, 0)
1372
          local MouseLook = cf((Part.Position + TheHit) / 2, TheHit + spread)
1373
          local hit, pos = rayCast(Part.Position, MouseLook.lookVector, 999, Character)
1374
          local mag = (Part.Position - pos).magnitude
1375
          MagicCylinder(CustomColor, cf((Part.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 1, mag * 5, 1, 0.25, 0, 0.25, 0.025)
1376
          MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
1377
          Part.Parent = nil
1378
          if hit ~= nil then
1379-
            local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1379+
            local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1380
            refpart.CFrame = cf(pos)
1381
            refpart.Anchored = true
1382
            game:GetService("Debris"):AddItem(refpart, 1)
1383
            MagicBlock(CustomColor, true, Part.CFrame, 8, 8, 8, 0.25, 0.25, 0.25, 0.05)
1384
            MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 3, 3, 3, 0.05)
1385
            MagicRing(CustomColor, refpart.CFrame * angles(math.rad(90), math.rad(math.random(-60, 60)), math.rad(math.random(-60, 60))), 1, 1, 1, 1, 1, 1, 0.025)
1386
            so("http://roblox.com/asset/?id=183763487", refpart, 1, 1)
1387
            Damagefunc(hit, 20, 40, 1, "Normal", RootPart, 0, 1, 0, nil, true, true)
1388
            MagniDamage(refpart, 15, 5, 10, 0, "Normal", 0, 1, 0, nil, true, true)
1389
          end
1390
        end), orbblastpart)
1391
      end
1392
    end))
1393
    for i = 0, 1, (0.015 + orbnumber / 10000) / 2 do
1394
      ArtificialHeartbeat.Event:wait()
1395
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1396
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1397
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(0)) * RWC0, 0.15)
1398
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1399
      if Anim ~= "Walk" then
1400
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1401
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1402
      elseif Anim == "Walk" then
1403
        if walkinganim == true then
1404
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1405
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1406
        else
1407
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1408
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1409
        end
1410
      end
1411
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1412
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1413
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1414
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1415
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1416
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1417
    end
1418
    for i = 0, 1, 0.25 do
1419
      ArtificialHeartbeat.Event:wait()
1420
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1421
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1422
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(0)) * RWC0, 0.15)
1423
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1424
      if Anim ~= "Walk" then
1425
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1426
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1427
      elseif Anim == "Walk" then
1428
        if walkinganim == true then
1429
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1430
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1431
        else
1432
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1433
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1434
        end
1435
      end
1436
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1437
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1438
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1439
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1440
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1441
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1442
    end
1443
    attack = false
1444
  end
1445
  function Move2()
1446
    attack = true
1447
    local oldspeedvalue = Speed.Value
1448
    Speed.Value = 0
1449
    for i = 0, 1, 0.25 do
1450
      ArtificialHeartbeat.Event:wait()
1451
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1452
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1453
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1454
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
1455
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1456
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1457
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1458
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1459
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
1460
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
1461
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1462
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1463
    end
1464
    for i = 0, 1, 0.015 do
1465
      ArtificialHeartbeat.Event:wait()
1466
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1467
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1468
      RW.C0 = clerp(RW.C0, cf(1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1469
      LW.C0 = clerp(LW.C0, cf(-1, 0.5 + idleangle, -0.5) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
1470
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1471
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1472
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1473
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1474
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(2, 5, 0.5), 0.15)
1475
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(-2, 5, 0.5), 0.15)
1476
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1477
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1478
    end
1479
    so("http://www.roblox.com/asset/?id=169445121", Torso, 1, 0.6)
1480
    for i = 0, 1, 0.25 do
1481
      ArtificialHeartbeat.Event:wait()
1482
      MagicBlock(CustomColor, true, leftarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
1483
      MagicBlock(CustomColor, true, rightarm2.CFrame * cf(0, -5, 0), 30, 30, 30, 1, 1, 1, 0.05)
1484
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1485
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
1486
      RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1487
      LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
1488
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
1489
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
1490
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1491
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1492
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
1493
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
1494
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
1495
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1496
    end
1497-
    local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1497+
    local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1498
    refpart.CFrame = RootPart.CFrame * cf(0, 500, -20)
1499
    refpart.Anchored = true
1500
    game:GetService("Debris"):AddItem(refpart, 1)
1501
    local TheHit = refpart.Position + vt(0, -1, 0)
1502
    local MouseLook = cf((refpart.Position + TheHit) / 2, TheHit)
1503
    local hit, pos = rayCast(refpart.Position, MouseLook.lookVector, 999, Character)
1504
    local mag = (refpart.Position - pos).magnitude
1505-
    local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1505+
    local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1506
    refpart2.CFrame = cf(pos)
1507
    refpart2.Anchored = true
1508
    game:GetService("Debris"):AddItem(refpart2, 1)
1509
    MagicCylinder(CustomColor, cf((refpart.Position + pos) / 2, pos) * angles(math.rad(90), 0, 0), 5, mag * 5, 5, 0.1, 0, 0.1, 0.025)
1510
    if hit ~= nil then
1511
      MagicBlock(CustomColor, true, refpart2.CFrame, 15, 15, 15, 1.5, 1.5, 1.5, 0.01)
1512
      MagicSphere(CustomColor, refpart2.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
1513
      MagicWave(CustomColor, refpart2.CFrame, 5, 5, 5, 1, 1.5, 1, 0.025)
1514
      MagicRing(CustomColor, refpart2.CFrame * angles(math.rad(90), 0, 0), 2.5, 2.5, 2.5, 2, 2, 2, 0.025)
1515
      so("http://roblox.com/asset/?id=87784452", refpart2, 1, 0.8)
1516
      so("http://roblox.com/asset/?id=183763515", refpart2, 1, 0.8)
1517
      MagniDamage(refpart2, 25, 20, 50, math.random(10, 30), "Normal", 0, 1, 0, nil, true, true)
1518
    end
1519
    for i = 0, 1, 0.02 do
1520
      ArtificialHeartbeat.Event:wait()
1521
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 9 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1522
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.15)
1523
      RW.C0 = clerp(RW.C0, cf(1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1524
      LW.C0 = clerp(LW.C0, cf(-1, 0.25 + idleangle, -0.5) * angles(math.rad(30), math.rad(0), math.rad(30)) * LWC0, 0.15)
1525
      RH.C0 = clerp(RH.C0, cf(1, 0 - idleangle, -0.4) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.15)
1526
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(35)), 0.15)
1527
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1528
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1529
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 7, -0.5), 0.15)
1530
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 7, -0.5), 0.15)
1531
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-1.8, 3.5, 0), 0.15)
1532
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1533
    end
1534
    Speed.Value = Speed.Value + oldspeedvalue
1535
    attack = false
1536
  end
1537
  function Move3()
1538
    attack = true
1539
    local oldspeedvalue = Speed.Value
1540
    Speed.Value = 0
1541
    so("http://www.roblox.com/asset/?id=169445046", rightleg2, 1, 0.6)
1542
    for i = 0, 1, 0.05 do
1543
      ArtificialHeartbeat.Event:wait()
1544
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1545
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
1546
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
1547
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1548
      RH.C0 = clerp(RH.C0, cf(1, -0.5 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.15)
1549
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
1550
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1551
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1552
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1553
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1554
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 2.5, 0), 0.15)
1555
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1556
    end
1557
    for i = 0, 1, 0.05 do
1558
      ArtificialHeartbeat.Event:wait()
1559
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 11.5 + idleangle) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.15)
1560
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), 0.15)
1561
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(20)) * RWC0, 0.15)
1562
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-15), math.rad(0), math.rad(-20)) * LWC0, 0.15)
1563
      RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
1564
      LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(15)), 0.15)
1565
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1566
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1567
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1568
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.15)
1569
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(-2.5, 5, 0), 0.15)
1570
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1571
    end
1572
    MagicSphere(CustomColor, RootPart.CFrame * cf(2.5, -3, -2), 10, 4, 10, 2.5, 1.5, 2.5, 0.025)
1573
    local num = 0
1574-
    local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1574+
    local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1575
    refpart.CFrame = RootPart.CFrame * cf(2.5, 0, -6)
1576
    refpart.Anchored = true
1577
    game:GetService("Debris"):AddItem(refpart, 3)
1578
    for i = 1, 4 do
1579-
      local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1579+
      local refpart2 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1580
      refpart2.CFrame = refpart.CFrame * cf(2.5, 0, num)
1581
      refpart2.Anchored = true
1582
      game:GetService("Debris"):AddItem(refpart2, 1)
1583
      local TheHit = refpart2.Position + vt(0, -1, 0)
1584
      local MouseLook = cf((refpart2.Position + TheHit) / 2, TheHit)
1585
      local hit, pos = rayCast(refpart2.Position, MouseLook.lookVector, 999, Character)
1586
      if hit ~= nil then
1587-
        local refpart3 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1587+
        local refpart3 = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1588
        refpart3.CFrame = cf(pos)
1589
        refpart3.Anchored = true
1590
        game:GetService("Debris"):AddItem(refpart3, 1)
1591
        MagicSphere(CustomColor, refpart3.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
1592
        MagicWave(CustomColor, refpart3.CFrame, 5, 5, 5, 1, 1, 1, 0.025)
1593
        so("http://www.roblox.com/asset/?id=161006093", refpart3, 1, 0.6)
1594
        MagniDamage(refpart3, 20, 20, 30, math.random(5, 20), "Normal", 0, 1, 0, nil, true, true)
1595
      end
1596
      num = num - 20
1597
      wait(0.4)
1598
    end
1599
    Speed.Value = Speed.Value + oldspeedvalue
1600
    attack = false
1601
  end
1602
  function Move4()
1603
    attack = true
1604
    for i = 0, 1, 0.25 do
1605
      ArtificialHeartbeat.Event:wait()
1606
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1607
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1608
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1609
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
1610
      if Anim ~= "Walk" then
1611
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1612
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1613
      elseif Anim == "Walk" then
1614
        if walkinganim == true then
1615
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1616
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1617
        else
1618
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1619
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1620
        end
1621
      end
1622
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1623
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1624
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
1625
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
1626
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1627
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1628
    end
1629
    for i = 0, 1, 0.04 do
1630
      ArtificialHeartbeat.Event:wait()
1631
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1632
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1633
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1634
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
1635
      if Anim ~= "Walk" then
1636
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1637
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1638
      elseif Anim == "Walk" then
1639
        if walkinganim == true then
1640
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1641
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1642
        else
1643
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1644
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1645
        end
1646
      end
1647
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1648
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1649
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
1650
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
1651
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1652
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1653
    end
1654
    local orbpart = part(3, Effects, "SmoothPlastic", 0, 0.5, CustomColor, "Effect", vt())
1655
    local orbmesh = mesh("SpecialMesh", orbpart, "Sphere", "", vt(0, 0, 0), vt(15, 15, 15))
1656
    local orbweld = weld(orbpart, Torso, orbpart, cf(0, 0, 0), cf(0, -15, 0))
1657
    game:GetService("Debris"):AddItem(orbpart, 5)
1658
    so("http://roblox.com/asset/?id=137463716", orbpart, 1, 0.6)
1659
    coroutine.resume(coroutine.create(function(Part, Mesh)
1660
      for i = 0, 0.7, 0.005 do
1661
        ArtificialHeartbeat.Event:wait()
1662
        Mesh.Scale = Mesh.Scale + vt(0.25, 0.25, 0.25)
1663
        MagicBlock(CustomColor, true, orbpart.CFrame, 15, 15, 15, 1, 1, 1, 0.05)
1664
        local orbchargeeffect = part(3, Effects, "SmoothPlastic", 0, 0, CustomColor, "Effect", vt())
1665
        local orbchargeeffectmesh = mesh("SpecialMesh", orbchargeeffect, "Sphere", "", vt(0, 0, 0), vt(2, math.random(10, 15), 2))
1666
        local orbchargecframe = angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) * cf(0, math.random(10, 20), 0)
1667
        orbchargeeffect.CFrame = orbpart.CFrame * orbchargecframe
1668
        orbchargeeffect.Anchored = true
1669
        game:GetService("Debris"):AddItem(orbchargeeffect, 2)
1670
        coroutine.resume(coroutine.create(function(Part, Mesh)
1671
          for i = 0, 1, 0.1 do
1672
            ArtificialHeartbeat.Event:wait()
1673
            Part.Transparency = i
1674
            Part.CFrame = Part.CFrame * cf(0, -1, 0)
1675
          end
1676
          Part.Parent = nil
1677
        end), orbchargeeffect, orbchargeeffectmesh)
1678
      end
1679
      wait(0.5)
1680
      local range = 999
1681
      local MainPos = Part.Position
1682
      local MainPos2 = Mouse.Hit.p
1683
      local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
1684
      local hit, pos = rayCast(MainPos, MouseLook.lookVector, range, ShotTarget.Parent)
1685
      local mag = (MainPos - pos).magnitude
1686
      MagicCylinder(CustomColor, cf((MainPos + pos) / 2, pos) * angles(math.rad(90), 0, 0), 10, mag * 5, 10, 0.25, 0, 0.25, 0.005)
1687
      for i = 1, 5 do
1688
        local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, mag / 5 * (i / 2), 0)
1689
        MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
1690
      end
1691
      for i = 0, 5 do
1692
        local ringcf = cf((MainPos + pos) / 2, pos) * angles(math.rad(-90), 0, 0) * cf(0, -mag / 5 * (i / 2), 0)
1693
        MagicRing(CustomColor, ringcf * angles(math.rad(90), 0, 0), 1, 1, 1, 0.25, 0.25, 0.25, 0.005)
1694
      end
1695
      so("http://roblox.com/asset/?id=183763506", Part, 1, 0.6)
1696
      so("http://roblox.com/asset/?id=178452221", Part, 1, 0.6)
1697
      so("http://www.roblox.com/asset/?id=87767777", Part, 1, 1)
1698
      if hit ~= nil then
1699-
        local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
1699+
        local refpart = part(3, Effects, "SmoothPlastic", 0, 1, BrickColor.new("Steel blue"), "Effect", vt())
1700
        refpart.CFrame = cf(pos)
1701
        refpart.Anchored = true
1702
        game:GetService("Debris"):AddItem(refpart, 1)
1703
        MagicBlock(CustomColor, true, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
1704
        MagicSphere(CustomColor, refpart.CFrame, 15, 15, 15, 4, 4, 4, 0.01)
1705
        so("http://roblox.com/asset/?id=183763506", refpart, 1, 0.6)
1706
        so("http://roblox.com/asset/?id=178452221", refpart, 1, 0.6)
1707
        so("http://www.roblox.com/Asset?ID=87767777", refpart, 1, 1)
1708
        Damagefunc(hit, 30, 70, 50, "Normal", RootPart, 0, 1, 0, nil, true, true)
1709
        MagniDamage(refpart, 20, 10, 30, 40, "Normal", 0, 1, 0, nil, true, true)
1710
      end
1711
      for i = 0, 1, 0.01 do
1712
        ArtificialHeartbeat.Event:wait()
1713
        Mesh.Scale = Mesh.Scale + vt(0.5, 0.5, 0.5)
1714
        Part.Transparency = Part.Transparency + 0.01
1715
      end
1716
      Part.Parent = nil
1717
    end), orbpart, orbmesh)
1718
    for i = 0, 1, 0.004 do
1719
      ArtificialHeartbeat.Event:wait()
1720
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1721
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1722
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1723
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(180), math.rad(0), math.rad(30)) * LWC0, 0.15)
1724
      if Anim ~= "Walk" then
1725
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1726
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1727
      elseif Anim == "Walk" then
1728
        if walkinganim == true then
1729
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1730
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1731
        else
1732
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1733
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1734
        end
1735
      end
1736
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1737
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1738
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
1739
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
1740
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1741
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1742
    end
1743
    for i = 0, 1, 0.25 do
1744
      ArtificialHeartbeat.Event:wait()
1745
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1746
      Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.15)
1747
      RW.C0 = clerp(RW.C0, cf(1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(-30)) * RWC0, 0.15)
1748
      LW.C0 = clerp(LW.C0, cf(-1.25, 1 + idleangle, 0) * angles(math.rad(90), math.rad(0), math.rad(30)) * LWC0, 0.15)
1749
      if Anim ~= "Walk" then
1750
        RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1751
        LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
1752
      elseif Anim == "Walk" then
1753
        if walkinganim == true then
1754
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1755
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
1756
        else
1757
          RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1758
          LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
1759
        end
1760
      end
1761
      head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.15)
1762
      torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.15)
1763
      rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 5, -0.75), 0.15)
1764
      leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 5, -0.75), 0.15)
1765
      rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.15)
1766
      leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.15)
1767
    end
1768
    attack = false
1769
  end
1770
  hold = false
1771
  Mouse.Button1Down:connect(function()
1772
    if attack == true or equipped == false then
1773
      return
1774
    end
1775
    hold = true
1776
    if attacktype == 1 then
1777
      attacktype = 2
1778
      attackone()
1779
    elseif attacktype == 2 then
1780
      attacktype = 3
1781
      attacktwo()
1782
    elseif attacktype == 3 then
1783
      attacktype = 4
1784
      attackthree()
1785
    elseif attacktype == 4 then
1786
      attacktype = 1
1787
      attackfour()
1788
    end
1789
    coroutine.resume(coroutine.create(function()
1790
      for i = 1, 50 do
1791
        if attack == false then
1792
          wait()
1793
        end
1794
      end
1795
      if attack == false then
1796
        attacktype = 1
1797
      end
1798
    end))
1799
  end)
1800
  if allowhopperbin == true then
1801
    function ob1u(Mouse)
1802
      hold = false
1803
    end
1804
  end
1805
  Mouse.KeyDown:connect(function(key)
1806
    if key == "f" and canunequiporequip == true and attack == false then
1807
      if equipped == false then
1808
        equipped = true
1809
        if disableanimate == true then
1810
          Animate.Disabled = true
1811
          local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1812
          idleanimation:Play()
1813
        end
1814
        if disableanimator == true then
1815
          Animator.Parent = nil
1816
        end
1817
        if disablemovingarms == true then
1818
          RW.Parent = Torso
1819
          LW.Parent = Torso
1820
          RSH.Parent = nil
1821
          LSH.Parent = nil
1822
        end
1823
        equipanim()
1824
      elseif equipped == true then
1825
        equipped = false
1826
        unequipanim()
1827
        ArtificialHeartbeat.Event:wait()
1828
        if disablemovingarms == true then
1829
          RW.Parent = nil
1830
          LW.Parent = nil
1831
          RSH.Parent = Torso
1832
          LSH.Parent = Torso
1833
        end
1834
        if disableanimator == true then
1835
          Animator.Parent = Humanoid
1836
        end
1837
        if disableanimate == true then
1838
          Animate.Disabled = false
1839
        end
1840
      end
1841
    end
1842
    if key == "e" and attack == false and equipped == true then
1843
      EAbility()
1844
    end
1845
    if key == "z" and attack == false and equipped == true and cooldown1 >= co1 and mana >= skill1mana then
1846
      subtractmana(skill1mana)
1847
      cooldown1 = 0
1848
      Move1()
1849
    end
1850
    if key == "x" and attack == false and equipped == true and cooldown2 >= co2 and mana >= skill2mana then
1851
      subtractmana(skill2mana)
1852
      cooldown2 = 0
1853
      Move2()
1854
    end
1855
    if key == "c" and attack == false and equipped == true and cooldown3 >= co3 and mana >= skill3mana then
1856
      subtractmana(skill3mana)
1857
      cooldown3 = 0
1858
      Move3()
1859
    end
1860
    if key == "v" and attack == false and equipped == true and cooldown4 >= co4 and mana >= skill4mana then
1861
      subtractmana(skill4mana)
1862
      cooldown4 = 0
1863
      Move4()
1864
    end
1865
    if key == "m" then
1866
      hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
1867
      if hitfloor == nil then
1868
        RootPart.CFrame = RootPart.CFrame * cf(0, 12, 0)
1869
      end
1870
    end
1871
  end)
1872
  if allowhopperbin == true then
1873
    function key2(key)
1874
    end
1875
  end
1876
  if allowhopperbin == true then
1877
    function s(Mouse)
1878
      Mouse.Button1Down:connect(function()
1879
        ob1d(Mouse)
1880
      end)
1881
      Mouse.Button1Up:connect(function()
1882
        ob1u(Mouse)
1883
      end)
1884
      Mouse.KeyDown:connect(key)
1885
      Mouse.KeyUp:connect(key2)
1886
    end
1887
  end
1888
  if allowhopperbin == true then
1889
    function ds(Mouse)
1890
    end
1891
  end
1892
  if allowhopperbin == true then
1893
    Bin.Selected:connect(s)
1894
    Bin.Deselected:connect(ds)
1895
  end
1896
  function updateskills()
1897
    if allowabilitestofunction == true then
1898
      if cooldown1 <= co1 then
1899
        cooldown1 = cooldown1 + 0.03333333333333333
1900
        if cooldown1 >= co1 then
1901
          cooldown1 = co1
1902
        end
1903
      end
1904
      if cooldown2 <= co2 then
1905
        cooldown2 = cooldown2 + 0.03333333333333333
1906
        if cooldown2 >= co2 then
1907
          cooldown2 = co2
1908
        end
1909
      end
1910
      if cooldown3 <= co3 then
1911
        cooldown3 = cooldown3 + 0.03333333333333333
1912
        if cooldown3 >= co3 then
1913
          cooldown3 = co3
1914
        end
1915
      end
1916
      if cooldown4 <= co4 then
1917
        cooldown4 = cooldown4 + 0.03333333333333333
1918
      elseif cooldown4 >= co4 then
1919
        cooldown4 = co4
1920
      end
1921
      if changebarcolorsifnotenoughmana == true then
1922
        if mana <= skill1mana then
1923
          bar4.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
1924
        else
1925
          bar4.BackgroundColor3 = skillcolorscheme
1926
        end
1927
        if mana <= skill2mana then
1928
          bar3.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
1929
        else
1930
          bar3.BackgroundColor3 = skillcolorscheme
1931
        end
1932
        if mana <= skill3mana then
1933
          bar1.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
1934
        else
1935
          bar1.BackgroundColor3 = skillcolorscheme
1936
        end
1937
        if mana <= skill4mana then
1938
          bar2.BackgroundColor3 = c3(0.40784313725490196, 0.40784313725490196, 0.40784313725490196)
1939
        else
1940
          bar2.BackgroundColor3 = skillcolorscheme
1941
        end
1942
      elseif changebarcolorsifnotenoughmana == false then
1943
        bar1.BackgroundColor3 = skillcolorscheme
1944
        bar2.BackgroundColor3 = skillcolorscheme
1945
        bar3.BackgroundColor3 = skillcolorscheme
1946
        bar4.BackgroundColor3 = skillcolorscheme
1947
      end
1948
    end
1949
    if alternatemanaregensystem == false then
1950
      if mana <= maxmana then
1951
        mana = mana + recovermana / 30
1952
      elseif mana >= maxmana then
1953
        mana = maxmana
1954
      end
1955
    elseif alternatemanaregensystem == true then
1956
      if mana >= maxmana then
1957
        mana = maxmana
1958
      elseif manadelay <= manawait then
1959
        manadelay = manadelay + 1
1960
      else
1961
        manadelay = 0
1962
        mana = mana + 1
1963
      end
1964
    end
1965
    if allowstunbar == true then
1966
      if 0 >= StunValue.Value then
1967
        StunValue.Value = 0
1968
      elseif stundelay <= stunwait then
1969
        stundelay = stundelay + 1
1970
      else
1971
        stundelay = 0
1972
        StunValue.Value = StunValue.Value - 1
1973
      end
1974
    elseif allowstunbar == false then
1975
      StunValue.Value = 0
1976
    end
1977
  end
1978
  if allowmenutofunction == true then
1979
    ArtificialHeartbeat.Event:connect(function()
1980
      updateskills()
1981
      if allowabilitestofunction == true then
1982
        framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1983
        framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1984
        framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1985
        framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1986
        bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1987
        bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1988
        bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1989
        bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1990
      end
1991
      manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1992
      manacover:TweenSize(ud(1 * (mana / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1993
      healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1994
      healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1995
      if allowstunbar == true then
1996
        stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1997
        stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1998
      end
1999
      if showhealthmanaandstunnumbers == true then
2000
        manatext.Text = "Mana [" .. mana .. "]"
2001
        healthtext.Text = "Health [" .. Humanoid.Health .. "]"
2002
        if allowstunbar == true then
2003
          stuntext.Text = "Stun [" .. StunValue.Value .. "]"
2004
        end
2005
      end
2006
      if showstats == true then
2007
        defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2008
        damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2009
        speedframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2010
        defensetext.Text = "Defense: " .. Defense.Value
2011
        damagetext.Text = "Damage: " .. Damage.Value
2012
        speedtext.Text = "Speed: " .. Speed.Value
2013
      end
2014
    end)
2015
  end
2016
  ArtificialHeartbeat.Event:connect(function()
2017
    if Humanoid.Health < 100 and dieanim == false then
2018
      dieanim = true
2019
      unequipanim()
2020
    end
2021
    if Humanoid.Health > 0 then
2022
      if walkspeeddependsonspeedvalue == true then
2023
        if 0 > Speed.Value or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true then
2024
          Humanoid.WalkSpeed = 0
2025
        else
2026
          Humanoid.WalkSpeed = 16 * Speed.Value
2027
        end
2028
      end
2029
      if StunValue.Value >= maxstun then
2030
        StunValue.Value = 0
2031
        StunAnim.Value = true
2032
      end
2033
      if StaggerAnim.Value == true and staganim == false then
2034
        coroutine.resume(coroutine.create(function()
2035
          staganim = true
2036
          while attack == true do
2037
            ArtificialHeartbeat.Event:wait()
2038
          end
2039
          Stagger()
2040
          StaggerAnim.Value = false
2041
          staganim = false
2042
        end))
2043
      end
2044
      if StaggerHitAnim.Value == true and staghitanim == false then
2045
        coroutine.resume(coroutine.create(function()
2046
          staghitanim = true
2047
          while attack == true do
2048
            ArtificialHeartbeat.Event:wait()
2049
          end
2050
          StaggerHit()
2051
          StaggerHitAnim.Value = false
2052
          staghitanim = false
2053
        end))
2054
      end
2055
      if StunAnim.Value == true and stunanim == false or 100 <= StunValue.Value then
2056
        coroutine.resume(coroutine.create(function()
2057
          StunValue.Value = 0
2058
          stunanim = true
2059
          while attack == true do
2060
            ArtificialHeartbeat.Event:wait()
2061
          end
2062
          Stun()
2063
          StunAnim.Value = false
2064
          stunanim = false
2065
        end))
2066
      end
2067
      sine = sine + change
2068
      someangle = someangle % 100 + change2 / 10
2069
      local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
2070
      local velderp = RootPart.Velocity.y
2071
      local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
2072
      hitfloor, posfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position - vt(0, 1, 0)).lookVector, 4, Character)
2073
      if donum >= 0.5 then
2074
        handidle = true
2075
      elseif donum <= 0 then
2076
        handidle = false
2077
      end
2078
      if handidle == false then
2079
        donum = donum + 0.002
2080
      else
2081
        donum = donum - 0.002
2082
      end
2083
      if equipped == true or equipped == false then
2084
        if attack == false then
2085
          idle = idle + 1
2086
        else
2087
          idle = 0
2088
        end
2089
        if not (idle >= 500) or attack == false then
2090
        end
2091
        if leftarm == true then
2092
          if Anim == "Walk" and equipped == true and attack == false then
2093
            if alternatewalk == false then
2094
              if walkinganim == true then
2095
                LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2096
              else
2097
                LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2098
              end
2099
            elseif walkinganim == true then
2100
              LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2101
            else
2102
              LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2103
            end
2104
          elseif Anim ~= "Walk" and equipped == true or attack == true then
2105
            LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2106
          end
2107
        end
2108
        if rightarm == true then
2109
          if Anim == "Walk" and equipped == true and attack == false then
2110
            if alternatewalk == false then
2111
              if walkinganim == true then
2112
                RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-60), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2113
              else
2114
                RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2115
              end
2116
            elseif walkinganim == true then
2117
              RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(-45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2118
            else
2119
              RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(45), math.rad(0), math.rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2120
            end
2121
          elseif Anim ~= "Walk" and equipped == true or attack == true then
2122
            RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2123
          end
2124
        end
2125
        if allowwalking == true then
2126
          if Anim == "Walk" and equipped == true then
2127
            if alternatewalk == false then
2128
              if walkinganim == true then
2129
                RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2130
                LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2131
              else
2132
                RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2133
                LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2134
              end
2135
            elseif walkinganim == true then
2136
              RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2137
              LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2138
            else
2139
              RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2140
              LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / 2)
2141
            end
2142
          elseif Anim ~= "Walk" and equipped == true then
2143
            RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2144
            LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2145
          end
2146
        end
2147
        if velderp > 1 and hitfloor == nil then
2148
          Anim = "Jump"
2149
          if attack == false and equipped == true then
2150
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2151
            Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.1)
2152
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)) * RWC0, 0.1)
2153
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)) * LWC0, 0.1)
2154
            RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.1)
2155
            LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, -0.3) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.1)
2156
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
2157
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
2158
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
2159
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
2160
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
2161
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
2162
          end
2163
        elseif velderp < -1 and hitfloor == nil then
2164
          Anim = "Fall"
2165
          if attack == false and equipped == true then
2166
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2167
            Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.1)
2168
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(60)) * RWC0, 0.1)
2169
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)) * LWC0, 0.1)
2170
            RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.1)
2171
            LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
2172
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
2173
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
2174
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
2175
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
2176
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
2177
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
2178
          end
2179
        elseif torvel < 1 and hitfloor ~= nil then
2180
          Anim = "Idle"
2181
          if attack == false and equipped == true then
2182
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
2183
            Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.075)
2184
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.075)
2185
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.075)
2186
            RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
2187
            LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.075)
2188
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.075)
2189
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.075)
2190
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
2191
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.075)
2192
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.075)
2193
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.075)
2194
          end
2195
        elseif torvel > 1 and hitfloor ~= nil then
2196
          Anim = "Walk"
2197
          walk = walk + 0.5
2198
          if walk >= 20 then
2199
            walk = 0
2200
            if walkinganim == true then
2201
              walkinganim = false
2202
            elseif walkinganim == false then
2203
              walkinganim = true
2204
            end
2205
          end
2206
          if attack == false and equipped == true then
2207
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 12 + idleangle) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2208
            Neck.C0 = clerp(Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1)
2209
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(20)) * RWC0, 0.1)
2210
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + idleangle, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)) * LWC0, 0.1)
2211
            if walkinganim == true then
2212
              RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
2213
              LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(75)), 0.1)
2214
            else
2215
              RH.C0 = clerp(RH.C0, cf(1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
2216
              LH.C0 = clerp(LH.C0, cf(-1, -1 - idleangle, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-75)), 0.1)
2217
            end
2218
            head2weld.C1 = clerp(head2weld.C1, cf(0, -2.5, 0) * angles(math.rad(-90), 0, 0), 0.1)
2219
            torso2weld.C1 = clerp(torso2weld.C1, cf(0, 0, 0), 0.1)
2220
            rightarm2weld.C1 = clerp(rightarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
2221
            leftarm2weld.C1 = clerp(leftarm2weld.C1, cf(0, 2.5, -0.5), 0.1)
2222
            rightleg2weld.C1 = clerp(rightleg2weld.C1, cf(0, 5, 0), 0.1)
2223
            leftleg2weld.C1 = clerp(leftleg2weld.C1, cf(0, 5, 0), 0.1)
2224
          end
2225
        end
2226
      end
2227
    end
2228
  end)