View difference between Paste ID: EvUrCJJU and xUg9wrMY
SHOW: | | - or go back to the newest paste.
1-
script.Parent = nil
1+
2-
Character = game.Players.localPlayer.Character
2+
3-
Humanoid = Character.Humanoid
3+
4-
if Humanoid:findFirstChild("Animate") then
4+
5-
  Humanoid:findFirstChild("Animate"):Destroy()
5+
6
woosh = {Heavy1 = "320557353", Heavy2 = "320557382", Heavy3 = "320557453", Heavy4 = "199144226", Heavy5 = "203691447", Heavy6 = "203691467", Heavy7 = "203691492", Light1 = "320557413", Light2 = "320557487", Light3 = "199145095", Light4 = "199145146", Light5 = "199145887", Light6 = "199145913", Light7 = "199145841", Medium1 = "320557518", Medium2 = "320557537", Medium3 = "320557563", Medium4 = "199145204"}
7
music = {Breaking = "179281636", FinalReckoning = "357375770", NotDeadYet = "346175829", Intense = "151514610", JumpP1 = "160536628", JumpP2 = "60536666", SonsOfWar = "158929777", WrathOfSea = "165520893", ProtectorsOfEarth = "160542922", SkyTitans = "179282324", ArchAngel = "144043274", Anticipation = "168614529", TheMartyred = "186849544", AwakeP1 = "335631255", AwakeP2 = "335631297", ReadyAimFireP1 = "342455387", ReadyAimFireP2 = "342455399", DarkLordP1 = "209567483", DarkLordP2 = "209567529", BloodDrainP1 = "162914123", BloodDrainP2 = "162914203", DanceOfSwords = "320473062", Opal = "286415112", Calamity = "190454307", Hypnotica = "155968128", Nemisis = "160453802", Breathe = "276963903", GateToTheRift = "270655227", InfernalBeserking = "244143404", Trust = "246184492", AwakeningTheProject = "245121821", BloodPain = "242545577", Chaos = "247241693", NightmareFictionHighStake = "248062278", TheWhiteWeapon = "247236446", Gale = "256851659", ImperialCode = "256848383", Blitzkrieg = "306431437", RhapsodyRage = "348690251", TheGodFist = "348541501", BattleForSoul = "321185592", TheDarkColossus = "305976780", EmpireOfAngels = "302580452", Kronos = "302205297", Exorcist = "299796054", CrimsonFlames = "297799220", UltimatePower = "295753229", DrivingInTheDark = "295753229", AscendToPower = "293860654", GodOfTheSun = "293612495", DarkRider = "293861765", Vengeance = "293375555", SoundOfWar = "293376196", HellsCrusaders = "293012202", Legend = "293011823", RisingSouls = "290524959"}
8
misc = {GroundSlam = "199145477", LaserSlash = "199145497", RailGunFire = "199145534", Charge1 = "199145659", Charge2 = "169380469", Charge3 = "169380479", EmptyGun = "203691822", GunShoot = "203691837", Stomp1 = "200632875", Stomp2 = "200632561", TelsaCannonCharge = "169445572", TelsaCannonShoot = "169445602", AncientHymm = "245313442"}
9
images = {}
10
wait(0.016666666666667)
11
equipc0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
12
unequipc0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
13
local player = game.Players.localPlayer
14
local char = player.Character
15
local mouse = player:GetMouse()
16
local m = Instance.new("Model", char)
17
local larm = char["Left Arm"]
18
local rarm = char["Right Arm"]
19
local lleg = char["Left Leg"]
20
local rleg = char["Right Leg"]
21
local hed = char.Head
22
local torso = char.Torso
23
local cam = game.Workspace.CurrentCamera
24
local RootPart = char.HumanoidRootPart
25
local equipped = false
26
local attack = false
27
local Anim = "Idle"
28
local idle = 0
29
local sprint = false
30
local battlestance = false
31
local attacktype = 1
32
local state = "none"
33
local torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
34
local velocity = RootPart.Velocity.y
35
local sine = 0
36
local change = 1
37
local on = false
38
local grabbed = false
39
local skill1 = false
40
local skill2 = false
41
local skill3 = false
42
local skill4 = false
43
local cooldown1 = 0
44
local cooldown2 = 0
45
local cooldown3 = 0
46
local cooldown4 = 0
47
local co1 = 10
48
local co2 = 15
49
local co3 = 20
50
local co4 = 35
51
local inputserv = game:GetService("UserInputService")
52
local typing = false
53
local crit = false
54
local critchance = 2
55
local critdamageaddmin = 3
56
local critdamageaddmax = 7
57
local maxstamina = 100
58
local stamina = 0
59
local skill1stam = 10
60
local skill2stam = 20
61
local skill3stam = 35
62
local skill4stam = 50
63
local recovermana = 5
64
local defensevalue = 1
65
local speedvalue = 1
66
local mindamage = 5
67
local maxdamage = 7
68
local damagevalue = 1
69
local maramistcutterchance = 25
70
local cn = CFrame.new
71
local mr = math.rad
72
local angles = CFrame.Angles
73
local ud = UDim2.new
74
local c3 = Color3.new
75
local skillcolorscheme = c3(1, 0.23921568627451, 0.96470588235294)
76
local sounds = {152828706, 263970261, 345340161, 194434237, 238551071}
77
local select = 3
78
local ContentProvider = game:GetService("ContentProvider")
79
local LoadAssets = function(AssetList)
80
  for _,AssetId in pairs(AssetList) do
81
    ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
82
  end
83
end
84
LoadAssets(sounds)
85
weld = function(part0, part1, c0)
86
  local wld = Instance.new("Weld", part1)
87
  wld.Part0 = part0
88
  wld.Part1 = part1
89
  wld.C0 = c0
90
  return wld
91
end
92
weld(torso, larm, cn(-1.5, 0.5, 0))
93
larm.Weld.C1 = cn(0, 0.65, 0)
94
weld(torso, rarm, cn(1.5, 0.5, 0))
95
rarm.Weld.C1 = cn(0, 0.65, 0)
96
weld(torso, hed, cn(0, 1.5, 0))
97
weld(torso, lleg, cn(-0.5, -1, 0))
98
lleg.Weld.C1 = cn(0, 1, 0)
99
weld(torso, rleg, cn(0.5, -1, 0))
100
rleg.Weld.C1 = cn(0, 1, 0)
101
weld(RootPart, torso, cn(0, -1, 0))
102
torso.Weld.C1 = cn(0, -1, 0)
103
local scrn = Instance.new("ScreenGui", player.PlayerGui)
104
makeframe = function(par, trans, pos, size, color)
105
  local frame = Instance.new("Frame", par)
106
  frame.BackgroundTransparency = trans
107
  frame.BorderSizePixel = 0
108
  frame.Position = pos
109
  frame.Size = size
110
  frame.BackgroundColor3 = color
111
  return frame
112
end
113
makelabel = function(par, text)
114
  local label = Instance.new("TextLabel", par)
115
  label.BackgroundTransparency = 1
116
  label.Size = ud(1, 0, 1, 0)
117
  label.Position = ud(0, 0, 0, 0)
118
  label.TextColor3 = c3(255, 255, 255)
119
  label.TextStrokeTransparency = 0
120
  label.FontSize = Enum.FontSize.Size32
121
  label.Font = Enum.Font.SourceSansBold
122
  label.BorderSizePixel = 0
123
  label.TextScaled = true
124
  label.Text = text
125
end
126
framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
127
framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
128
framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
129
framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0.06, 0), skillcolorscheme)
130
bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
131
bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
132
bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
133
bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
134
text1 = makelabel(framesk1, "[3] Meme Aura")
135
text2 = makelabel(framesk2, "[4] Absorb the Memes")
136
text3 = makelabel(framesk3, "[2] The Based God")
137
text4 = makelabel(framesk4, "[1] Reality Check")
138
staminabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0.03, 0), c3(1, 0.23921568627451, 0.96470588235294))
139
staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 0.23921568627451, 0.96470588235294))
140
staminatext = makelabel(staminabar, "Memes")
141
healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0.03, 0), c3(1, 1, 0))
142
healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 0.18039215686275, 0.1921568627451))
143
healthtext = makelabel(healthbar, "Health")
144
local stats = Instance.new("Folder", char)
145
stats.Name = "Stats"
146
local block = Instance.new("BoolValue", stats)
147
block.Name = "Block"
148
block.Value = false
149
local stun = Instance.new("BoolValue", stats)
150
stun.Name = "Stun"
151
stun.Value = false
152
local defense = Instance.new("NumberValue", stats)
153
defense.Name = "Defence"
154
defense.Value = defensevalue
155
local speed = Instance.new("NumberValue", stats)
156
speed.Name = "Speed"
157
speed.Value = speedvalue
158
local damagea = Instance.new("NumberValue", stats)
159
damagea.Name = "Damage"
160
damagea.Value = damagevalue
161
atktype = function(s, e)
162
  coroutine.resume(coroutine.create(function()
163
    attacktype = e
164
    wait(1.5)
165
    attacktype = s
166
  end))
167
end
168
turncrit = function()
169
  coroutine.resume(coroutine.create(function()
170
    print("CRITICAL!")
171
    crit = true
172
    wait(1)
173
    crit = false
174
  end))
175
end
176
subtractstamina = function(k)
177
  if k <= stamina then
178
    stamina = stamina - k
179
  end
180
end
181
swait = function(num)
182
  if num == 0 or num == nil then
183
    game:service("RunService").Heartbeat:wait(0)
184
  else
185
    for i = 0, num do
186
      game:service("RunService").Heartbeat:wait(0)
187
    end
188
  end
189
end
190
Lerp = function(a, b, i)
191
  local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
192
  local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
193
  local calx = com1[1] + (com2[1] - com1[1]) * i
194
  local caly = com1[2] + (com2[2] - com1[2]) * i
195
  local calz = com1[3] + (com2[3] - com1[3]) * i
196
  local cala = com1[4] + (com2[4] - com1[4]) * i
197
  local calb = com1[5] + (com2[5] - com1[5]) * i
198
  local calc = com1[6] + (com2[6] - com1[6]) * i
199
  return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
200
end
201
local Lerp = CFrame.new().lerp
202
randomizer = function(percent)
203
  local randomized = math.random(0, 100)
204
  if randomized <= percent then
205
    return true
206
  else
207
    if percent <= randomized then
208
      return false
209
    end
210
  end
211
end
212
begoneoutlines = function(part)
213
  part.BottomSurface = 10
214
end
215
rayCast = function(pos, dir, maxl, ignore)
216
  return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
217
end
218
makeeffect = function(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
219
  local p = Instance.new("Part", par or workspace)
220
  p.CFrame = pos1
221
  p.Anchored = true
222
  p.Material = "Plastic"
223
  p.CanCollide = false
224
  p.TopSurface = 0
225
  p.Size = Vector3.new(1, 1, 1)
226
  p.BottomSurface = 0
227
  p.Transparency = trans
228
  p.FormFactor = "Custom"
229
  begoneoutlines(p)
230
  local mesh = Instance.new("SpecialMesh", p)
231
  mesh.Scale = size
232
  if id ~= nil and type == nil then
233
    mesh.MeshId = "rbxassetid://" .. id
234
  else
235
    if id == nil and type ~= nil then
236
      mesh.MeshType = type
237
    else
238
      if id == nil and type == nil then
239
        mesh.MeshType = "Brick"
240
      end
241
    end
242
  end
243
  coroutine.wrap(function()
244
    for i = 0, delay1, 0.1 do
245
      wait(0.016666666666667)
246
      p.CFrame = p.CFrame
247
      mesh.Scale = mesh.Scale + howmuch
248
      p.Transparency = p.Transparency + trans1
249
    end
250
    p:Destroy()
251
  end)()
252
  return p
253
end
254
clangy = function(cframe)
255
  wait(0.016666666666667)
256
  local clang = {}
257
  local dis = 0
258
  local part = Instance.new("Part", nil)
259
  part.CFrame = cframe
260
  part.Anchored = true
261
  part.CanCollide = false
262
  part.BrickColor = BrickColor.new("New Yeller")
263
  part.FormFactor = "Custom"
264
  part.Name = "clanger"
265
  part.Size = Vector3.new(0.2, 0.2, 0.2)
266
  part.TopSurface = 10
267
  part.BottomSurface = 10
268
  part.RightSurface = 10
269
  part.LeftSurface = 10
270
  part.BackSurface = 10
271
  part.FrontSurface = 10
272
  part:BreakJoints()
273
  local mesh = Instance.new("BlockMesh", part)
274
  coroutine.wrap(function()
275
    for i = 1, 7 do
276
      do
277
        wait(0.016666666666667)
278
        dis = dis + 0.2
279
        local partc = part:clone()
280
        partc.Parent = workspace
281
        partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
282
        partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
283
        table.insert(clang, partc)
284
      end
285
    end
286
    for i,v in pairs(clang) do
287
      coroutine.wrap(function()
288
      for i = 1, 10 do
289
        wait(0.01)
290
        v.Transparency = v.Transparency + 0.1
291
      end
292
      v:destroy()
293
    end)()
294
    end
295
  end)()
296
end
297
circle = function(color, pos1)
298
  local p = Instance.new("Part", m)
299
  p.BrickColor = BrickColor.new(color)
300
  p.CFrame = pos1
301
  p.Anchored = true
302
  p.Material = "Plastic"
303
  p.CanCollide = false
304
  p.TopSurface = 0
305
  p.Size = Vector3.new(1, 1, 1)
306
  p.BottomSurface = 0
307
  p.Transparency = 0.35
308
  p.FormFactor = "Custom"
309
  local mesh = Instance.new("CylinderMesh", p)
310
  mesh.Scale = Vector3.new(0, 0, 0)
311
  coroutine.wrap(function()
312
    for i = 0, 5, 0.1 do
313
      wait(0.016666666666667)
314
      p.CFrame = p.CFrame
315
      mesh.Scale = mesh.Scale + Vector3.new(0.5, 0, 0.5)
316
      p.Transparency = p.Transparency + 0.025
317
    end
318
    p:Destroy()
319
  end)()
320
end
321
firespaz1 = function(color, pos1)
322
  local p = Instance.new("Part", m)
323
  p.BrickColor = BrickColor.new(color)
324
  p.CFrame = pos1
325
  p.Anchored = true
326
  p.Material = "Plastic"
327
  p.CanCollide = false
328
  p.TopSurface = 0
329
  p.Size = Vector3.new(1, 1, 1)
330
  p.BottomSurface = 0
331
  p.Transparency = 0.5
332
  p.FormFactor = "Custom"
333
  local mesh = Instance.new("BlockMesh", p)
334
  mesh.Scale = Vector3.new(1, 1, 1)
335
  coroutine.wrap(function()
336
    for i = 0, 15, 0.1 do
337
      wait(0.033333333333333)
338
      p.CFrame = p.CFrame * CFrame.new(0, 0.1, 0)
339
      mesh.Scale = mesh.Scale - Vector3.new(0.1, 0.1, 0.1)
340
      p.Transparency = p.Transparency + 0.025
341
    end
342
    p:Destroy()
343
  end)()
344
end
345
pickrandom = function(tablesa)
346
  local randomized = tablesa[math.random(1, #tablesa)]
347
  return randomized
348
end
349
sound = function(id, pitch, volume, par, last)
350
  local s = Instance.new("Sound", par or torso)
351
  s.SoundId = "rbxassetid://" .. id
352
  s.Pitch = pitch or 1
353
  s.Volume = volume or 1
354
  s.PlayOnRemove = false
355
  s.Looped = true
356
  wait()
357
  s:Play()
358
  s.Pitch = 0
359
  if last then
360
    game.Debris:AddItem(s, last)
361
  end
362
  return s
363
end
364
local lol = sound("263970261", 1, 1, torso)
365
clangy = function(cframe)
366
  wait(0.016666666666667)
367
  local clang = {}
368
  local dis = 0
369
  local part = Instance.new("Part", nil)
370
  part.CFrame = cframe
371
  part.Anchored = true
372
  part.CanCollide = false
373
  part.BrickColor = BrickColor.new("New Yeller")
374
  part.FormFactor = "Custom"
375
  part.Name = "clanger"
376
  part.Size = Vector3.new(0.2, 0.2, 0.2)
377
  part.TopSurface = 10
378
  part.BottomSurface = 10
379
  part.RightSurface = 10
380
  part.LeftSurface = 10
381
  part.BackSurface = 10
382
  part.FrontSurface = 10
383
  part:BreakJoints()
384
  local mesh = Instance.new("BlockMesh", part)
385
  coroutine.wrap(function()
386
    for i = 1, 7 do
387
      do
388
        wait(0.016666666666667)
389
        dis = dis + 0.2
390
        local partc = part:clone()
391
        partc.Parent = workspace
392
        partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
393
        partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
394
        table.insert(clang, partc)
395
      end
396
    end
397
    for i,v in pairs(clang) do
398
      coroutine.wrap(function()
399
      for i = 1, 10 do
400
        wait(0.01)
401
        v.Transparency = v.Transparency + 0.1
402
      end
403
      v:destroy()
404
    end)()
405
    end
406
  end)()
407
end
408
so = function(id, par, vol, pit)
409
  coroutine.resume(coroutine.create(function()
410
    local sou = Instance.new("Sound", par or workspace)
411
    sou.Volume = vol
412
    sou.Pitch = pit or 1
413
    sou.SoundId = id
414
    wait()
415
    sou:play()
416
    game:GetService("Debris"):AddItem(sou, 6)
417
  end))
418
end
419
getclosest = function(obj, dis, player)
420
  if player.Torso.CFrame.p - obj.magnitude >= dis then
421
    do return not player end
422
    do
423
      local list = {}
424
      for i,v in pairs(workspace:GetChildren()) do
425
        if v:IsA("Model") and v:findFirstChild("Torso") and v ~= char and v.Torso.Position - obj.magnitude <= dis then
426
          table.insert(list, v)
427
        end
428
      end
429
      do return list end
430
      -- DECOMPILER ERROR: 3 unprocessed JMP targets
431
    end
432
  end
433
end
434
makegui = function(cframe, text)
435
  local a = math.random(-10, 10) / 100
436
  local c = Instance.new("Part")
437
  c.Transparency = 1
438
  Instance.new("BodyGyro").Parent = c
439
  c.Parent = m
440
  c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
441
  local f = Instance.new("BodyPosition")
442
  f.P = 2000
443
  f.D = 100
444
  f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
445
  f.position = c.Position + Vector3.new(0, 3, 0)
446
  f.Parent = c
447
  game:GetService("Debris"):AddItem(c, 6.5)
448
  c.CanCollide = false
449
  m.Parent = workspace
450
  c.CanCollide = false
451
  local bg = Instance.new("BillboardGui", m)
452
  bg.Adornee = c
453
  bg.Size = UDim2.new(1, 0, 1, 0)
454
  bg.StudsOffset = Vector3.new(0, 0, 0)
455
  bg.AlwaysOnTop = false
456
  local tl = Instance.new("TextLabel", bg)
457
  tl.BackgroundTransparency = 1
458
  tl.Size = UDim2.new(1, 0, 1, 0)
459
  tl.Text = text
460
  tl.Font = "SourceSansBold"
461
  tl.FontSize = "Size42"
462
  if crit == true then
463
    tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
464
  else
465
    tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
466
  end
467
  tl.TextStrokeTransparency = 0
468
  tl.TextScaled = true
469
  tl.TextWrapped = true
470
  coroutine.wrap(function()
471
    wait(2)
472
    for i = 1, 10 do
473
      swait()
474
      tl.TextTransparency = tl.TextTransparency + 0.1
475
    end
476
  end)()
477
end
478
tag = function(hum, player)
479
  local creator = Instance.new("ObjectValue", hum)
480
  creator.Value = player
481
  creator.Name = "creator"
482
end
483
untag = function(hum)
484
  if hum ~= nil then
485
    local tag = hum:findFirstChild("creator")
486
    if tag ~= nil then
487
      tag.Parent = nil
488
    end
489
  end
490
end
491
tagplayer = function(h)
492
  coroutine.wrap(function()
493
    tag(h, player)
494
    wait(1)
495
    untag(h)
496
  end)()
497
end
498
damage = function(hit, mind, maxd, knock, type, prop)
499
  do
500
    if hit.Name:lower() == "hitbox" then
501
      local pos = CFrame.new(0, 0, -1)
502
      do
503
        sound(pickrandom(clangsounds), math.random(100, 150) / 100, 0.25, torso, 6)
504
        coroutine.wrap(function()
505
    for i = 1, 4 do
506
      clangy(torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
507
    end
508
  end)()
509
      end
510
    end
511
    if hit.Parent == nil then
512
      return 
513
    end
514
    local h = hit.Parent:FindFirstChild("Humanoid")
515
    for i,v in pairs(hit.Parent:children()) do
516
      if v:IsA("Humanoid") then
517
        h = v
518
      end
519
    end
520
    if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
521
      h = hit.Parent.Parent:FindFirstChild("Humanoid")
522
    end
523
    if hit.Parent:IsA("Hat") then
524
      hit = hit.Parent.Parent:findFirstChild("Head")
525
    end
526
    local D = math.random(mind, maxd) * damagea.Value
527
    if h then
528
      if h.Parent:FindFirstChild("Stats") then
529
        D = D / h.Parent:FindFirstChild("Stats").Defence.Value
530
      else
531
      end
532
    end
533
    if h.Parent:FindFirstChild("Stats") or h then
534
      makegui(h.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
535
    end
536
    if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
537
      if type == 1 then
538
        tagplayer(h)
539
        local asd = randomizer(critchance)
540
        if asd == true then
541
          turncrit()
542
        end
543
        if crit == false then
544
          h.Health = h.Health - D
545
        else
546
          h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
547
        end
548
        so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
549
        local vp = Instance.new("BodyVelocity")
550
        vp.P = 500
551
        vp.maxForce = Vector3.new(math.huge, 0, math.huge)
552
        vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
553
        if knock > 0 then
554
          vp.Parent = hit.Parent.Torso
555
        end
556
        game:GetService("Debris"):AddItem(vp, 0.5)
557
      else
558
        do
559
          if type == 2 then
560
            so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
561
            local asd = randomizer(critchance)
562
            if asd == true then
563
              turncrit()
564
            end
565
            if crit == false then
566
              h.Health = h.Health - D
567
            else
568
              h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
569
            end
570
            tagplayer(h)
571
          else
572
            do
573
              if type == 3 then
574
                tagplayer(h)
575
                local asd = randomizer(critchance)
576
                if asd == true then
577
                  turncrit()
578
                end
579
                if crit == false then
580
                  h.Health = h.Health - D
581
                else
582
                  h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
583
                end
584
                char.Humanoid.Health = char.Humanoid.Health + D / 2
585
                so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
586
                for i = 1, 10 do
587
                  firespaz1("Bright red", hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
588
                end
589
              else
590
                do
591
                  if type == 4 then
592
                    h.Health = h.Health + D
593
                    so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
594
                    circle("Dark green", h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
595
                  end
596
                end
597
              end
598
            end
599
          end
600
        end
601
      end
602
    end
603
  end
604
end
605
subtrackstamina = function(k)
606
  if k <= stamina then
607
    stamina = stamina - k
608
  end
609
end
610
mouse.Button1Down:connect(function()
611
  if attack ~= false or equipped == true then
612
  end
613
end)
614
mouse.KeyDown:connect(function(k)
615
  k = k:lower()
616
  if k == "f" then
617
    if equipped == false then
618
      equipped = true
619
      lol.Pitch = 1
620
    else
621
      if equipped then
622
        equipped = false
623
        lol.Pitch = 0
624
      end
625
    end
626
  end
627
  if k == "e" then
628
    if equipped == false then
629
      lol:Stop()
630
      lol = sound(sounds[select], 1, 1, torso)
631
      if select == #sounds then
632
        select = 1
633
      else
634
        select = select + 1
635
      end
636
    else
637
      if equipped then
638
        lol:Stop()
639
        lol = sound(sounds[select], 1, 1, torso)
640
        if select == #sounds then
641
          select = 1
642
        else
643
          select = select + 1
644
        end
645
        lol.Pitch = 1
646
      end
647
    end
648
  end
649
end)
650
inputserv.InputBegan:connect(function(k)
651
  if k.KeyCode == Enum.KeyCode.One and equipped == true and attack == false and typing == false and co1 <= cooldown1 and skill1stam <= stamina then
652
    subtractstamina(skill1stam)
653
    cooldown1 = 0
654
  else
655
    if k.KeyCode == Enum.KeyCode.Two and equipped == true and attack == false and typing == false and co2 <= cooldown2 and skill2stam <= stamina then
656
      subtractstamina(skill2stam)
657
      cooldown2 = 0
658
    else
659
      if k.KeyCode == Enum.KeyCode.Three and equipped == true and attack == false and typing == false and co3 <= cooldown3 and skill3stam <= stamina then
660
        subtractstamina(skill3stam)
661
        cooldown3 = 0
662
      else
663
        if k.KeyCode == Enum.KeyCode.Four and equipped == true and attack == false and typing == false and co4 <= cooldown4 and skill4stam <= stamina then
664
          subtractstamina(skill4stam)
665
          cooldown4 = 0
666
        end
667
      end
668
    end
669
  end
670
end)
671
inputserv.InputBegan:connect(function(k)
672
  if k.KeyCode == Enum.KeyCode.Slash then
673
    local fin = nil
674
    do
675
      typing = true
676
      fin = inputserv.InputBegan:connect(function(k)
677
    if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
678
      typing = false
679
      fin:disconnect()
680
    end
681
  end)
682
    end
683
  end
684
end)
685
updateskills = function()
686
  if cooldown1 <= co1 then
687
    cooldown1 = cooldown1 + 0.033333333333333
688
  end
689
  if cooldown2 <= co2 then
690
    cooldown2 = cooldown2 + 0.033333333333333
691
  end
692
  if cooldown3 <= co3 then
693
    cooldown3 = cooldown3 + 0.033333333333333
694
  end
695
  if cooldown4 <= co4 then
696
    cooldown4 = cooldown4 + 0.033333333333333
697
  end
698
  if stamina <= maxstamina then
699
    stamina = stamina + recovermana / 30
700
  end
701
end
702
game:GetService("RunService").Heartbeat:connect(function()
703
  updateskills()
704
  healthcover:TweenSize(ud(1 * (char.Humanoid.Health / char.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.5)
705
  staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), "Out", "Quad", 0.5)
706
  bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
707
  bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
708
  bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
709
  bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
710
  torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
711
  velocity = RootPart.Velocity.y
712
  sine = sine + change
713
  hit = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
714
  char.Humanoid.WalkSpeed = 16 * speed.Value
715
  if equipped == true or equipped == false then
716
    if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then
717
      Anim = "Jump"
718
      if attack == false then
719
        torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(0.3, 0, 0), 0.2)
720
        hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0.3, 0, 0), 0.2)
721
        rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(-0.4, 0, 0.3), 0.2)
722
        larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(-0.4, 0, -0.3), 0.2)
723
        lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, 0) * angles(-0.4, 0, -0.3), 0.2)
724
        rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(-0.4, 0, 0.3), 0.2)
725
      end
726
    else
727
      if RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then
728
        Anim = "Fall"
729
        if attack == false then
730
          torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(-0.1, 0, 0), 0.2)
731
          hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(-0.1, 0, 0), 0.2)
732
          rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, 0.7), 0.2)
733
          larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, -0.7), 0.2)
734
          lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, 0) * angles(0, 0, -0.1), 0.2)
735
          rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(0, 0, 0.1), 0.2)
736
        end
737
      else
738
        if torsovelocity < 1 and hit ~= nil and stun.Value ~= true then
739
          Anim = "Idle"
740
          if attack == false then
741
            if equipped == true then
742
              change = 1
743
              torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5, 0) * angles(-0.25 + 0.1 * math.cos(sine / 22), 0, 0), 0.2)
744
              hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0.25 - 0.1 * math.cos(sine / 22), 0, 0), 0.2)
745
              rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5, 0) * angles(1.55 - 0.1 * math.cos(sine / 22), 0, 0.8 + 0.1 * math.cos(sine / 22)), 0.2)
746
              larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5, 0) * angles(1.55 - 0.1 * math.cos(sine / 22), 0, -0.8 - 0.1 * math.cos(sine / 22)), 0.2)
747
              lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.55, -0.5, -0.25) * angles(0.25 - 0.1 * math.cos(sine / 22), 0.25, -0.1), 0.2)
748
              rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.55, -0.5, -0.25) * angles(0.25 - 0.1 * math.cos(sine / 22), -0.25, 0.1), 0.2)
749
            else
750
              if equipped == false then
751
                change = 1
752
                torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
753
                hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(5 * math.cos(sine / 25)), math.rad(0), 0), 0.2)
754
                rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(10) + math.sin(sine / 22) / 5, 0, 0), 0.2)
755
                larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.65, 0) * CFrame.Angles(math.rad(10) + math.sin(sine / 22) / 5, 0, 0), 0.2)
756
                lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
757
                rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
758
              end
759
            end
760
          end
761
        else
762
          if torsovelocity > 2 and torsovelocity < 18 and hit ~= nil and stun.Value ~= true then
763
            Anim = "Walk"
764
            if attack == false then
765
              if equipped == true then
766
                change = 1
767
                torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5, 0) * angles(-0.25, 0.25 * math.cos(sine / 3), 0), 0.2)
768
                hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0.25 - 0.1 * math.cos(sine / 22), 0, 0), 0.2)
769
                rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.25, 0.5, 0) * angles(1.55, 0, 0.9 - 1.4 * math.cos(sine / 3)), 0.2)
770
                larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.25, 0.5, 0) * angles(1.55, 0, -0.9 - 1.4 * math.cos(sine / 3)), 0.2)
771
                lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.55, -0.5, -0.25) * angles(1 * math.cos(sine / 3), -0.25 * math.cos(sine / 3), 0), 0.2)
772
                rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.55, -0.5, -0.25) * angles(-1 * math.cos(sine / 3), -0.25 * math.cos(sine / 3), 0), 0.2)
773
              else
774
                if equipped == false then
775
                  change = 2
776
                  torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
777
                  hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
778
                  rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(85 * math.cos(sine / 5)), math.rad(0), 0), 0.2)
779
                  larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.65, 0) * CFrame.Angles(math.rad(-85 * math.cos(sine / 5)), math.rad(0), 0), 0.2)
780
                  lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(85 * math.cos(sine / 5)), 0, 0), 0.2)
781
                  rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-85 * math.cos(sine / 5)), 0, 0), 0.2)
782
                end
783
              end
784
            end
785
          else
786
            if torsovelocity >= 18 and hit ~= nil and stun.Value ~= true then
787
              Anim = "Run"
788
              if attack == false then
789
                torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(0, 0, 0), 0.2)
790
                hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0, 0, 0), 0.2)
791
                rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
792
                larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
793
                lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, 0) * angles(0, 0, 0), 0.2)
794
                rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(0, 0, 0), 0.2)
795
              end
796
            else
797
              if stun.Value == true and attack == false then
798
                char.Humanoid.WalkSpeed = 0
799
                torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -3, 0) * angles(mr(40), 0, 0), 0.2)
800
                hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(mr(-20), 0, 0), 0.2)
801
                rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
802
                larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
803
                lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -0.3, -0.7) * angles(mr(-10), 0, 0), 0.2)
804
                rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, 0) * angles(mr(50), 0, 0), 0.2)
805
              end
806
            end
807
          end
808
        end
809
      end
810
    end
811
  end
812
  if sprint == true and stun.Value ~= true and equipped == false and on == false then
813
    char.Humanoid.WalkSpeed = 20
814
  else
815
    if sprint == false and stun.Value ~= true and attack ~= true then
816
      char.Humanoid.WalkSpeed = 16 * speed.Value
817
    end
818
  end
819
end)