View difference between Paste ID: s1rgr1Pp and sm10JPJG
SHOW: | | - or go back to the newest paste.
1
wait(1/60)
2
Player = game:GetService("Players").LocalPlayer
3
Character = Player.Character
4
PlayerGui = Player.PlayerGui
5
Backpack = Player.Backpack
6
Torso = Character.Torso
7
Head = Character.Head
8
Humanoid = Character.Humanoid
9
LeftArm = Character["Left Arm"]
10
LeftLeg = Character["Left Leg"]
11
RightArm = Character["Right Arm"]
12
RightLeg = Character["Right Leg"]
13
LS = Torso["Left Shoulder"]
14
LH = Torso["Left Hip"]
15
RS = Torso["Right Shoulder"]
16
RH = Torso["Right Hip"]
17
Neck = Torso.Neck
18
it = Instance.new
19
vt = Vector3.new
20
cf = CFrame.new
21
euler = CFrame.fromEulerAnglesXYZ
22
angles = CFrame.Angles
23
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
24
necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
25
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
26
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
27
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
28
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
29
RootPart = Character.HumanoidRootPart
30
RootJoint = RootPart.RootJoint
31
RootCF = euler(-1.57, 0, 3.14)
32
attack = false
33
attackdebounce = false
34
isblarghing = false
35
MMouse = nil
36
combo = 0
37
combospeed = 0
38
stop = false
39
local hitfloor, posfloor = nil, nil
40
local idle = 0
41
local Anim = "Idle"
42
local Effects = {}
43
local Weapon = {}
44
local Welds = {}
45
local decreaseatk = 0
46
local decreasedef = 0
47
local decreasemvmt = 0
48
local Mode = "Defensive"
49
local GuardStance = false
50
local Target = nil
51
local manualguardend = false
52
local Fly = false
53
local prop = Instance.new("RocketPropulsion")
54
local move1 = "(Z)\nCannonball"
55
local move2 = "(X)\nWipeout"
56
local move3 = "(C)\nSpeech"
57-
local move4 = "(V)\nnot done confidential"
57+
local move4 = "(V)\Skyscraper Crac"
58
local cooldowns = {}
59
local cooldown1 = 0
60
table.insert(cooldowns, cooldown1)
61
local cooldown2 = 0
62
table.insert(cooldowns, cooldown2)
63
local cooldown3 = 0
64
table.insert(cooldowns, cooldown3)
65
local cooldown4 = 0
66
table.insert(cooldowns, cooldown4)
67
local cooldown5 = 0
68
table.insert(cooldowns, cooldown5)
69
local cooldownsadd = {}
70-
local cooldownadd1 = 0.55
70+
local cooldownadd1 = 0
71
table.insert(cooldownsadd, cooldownadd1)
72-
local cooldownadd2 = 0.2
72+
local cooldownadd2 = 0
73
table.insert(cooldownsadd, cooldownadd2)
74-
local cooldownadd3 = 0.25
74+
local cooldownadd3 = 0
75
table.insert(cooldownsadd, cooldownadd3)
76-
local cooldownadd4 = 0.06
76+
local cooldownadd4 = 0
77
table.insert(cooldownsadd, cooldownadd4)
78-
local cooldownadd5 = 0.06
78+
local cooldownadd5 = 0
79
table.insert(cooldownsadd, cooldownadd5)
80-
local cooldownmax = 100
80+
local cooldownmax = 0
81
player = nil
82
RSH = nil
83
RW = Instance.new("Motor")
84
LW = Instance.new("Motor")
85
RW.Name = "Right Shoulder"
86
LW.Name = "Left Shoulder"
87
LH = Torso["Left Hip"]
88
RH = Torso["Right Hip"]
89
TorsoColor = Torso.BrickColor
90
TorsoRed = TorsoColor.Color.r
91
TorsoGreen = TorsoColor.Color.g
92
NewCol = Color3.new(TorsoRed, TorsoGreen, 1)
93
if Player:findFirstChild("Color1") ~= nil then
94
  NewCol = Player.Color1.Value
95
end
96
print(BrickColor.new(NewCol))
97
local mdec = Instance.new("NumberValue", Decrease)
98
mdec.Name = "DecreaseDef"
99
mdec.Value = 0.5
100
local mdec2 = Instance.new("NumberValue", Decrease)
101
mdec2.Name = "DecreaseMvmt"
102
mdec2.Value = 0.1
103
local Animate = Humanoid.Animator
104
local canjump = true
105
removeControl = function()
106
  canjump = false
107
end
108
resumeControl = function()
109
  canjump = true
110
end
111
Player.Character.Humanoid.Changed:connect(function()
112
  if canjump == false then
113
    Player.Character.Humanoid.Jump = false
114
  end
115
end)
116
swait = function(num)
117
  if num == 0 or num == nil then
118
    Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
119
  else
120
    for i = 0, num do
121
      Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
122
    end
123
  end
124
end
125
ArtificialHB = Instance.new("BindableEvent", script)
126
ArtificialHB.Name = "Heartbeat"
127
128
script:WaitForChild("Heartbeat")
129
130
frame = 1 / 30
131
tf = 0
132
allowframeloss = true
133
tossremainder = false
134
lastframe = tick()
135
script.Heartbeat:Fire()
136
137
game:GetService("RunService").Heartbeat:connect(function(s, p)
138
    tf = tf + s
139
    if tf >= frame then
140
        if allowframeloss then
141
            script.Heartbeat:Fire()
142
            lastframe = tick()
143
        else
144
            for i = 1, math.floor(tf / frame) do
145
                script.Heartbeat:Fire()
146
            end
147
            lastframe = tick()
148
        end
149
        if tossremainder then
150
            tf = 0
151
        else
152
            tf = tf - frame * math.floor(tf / frame)
153
        end
154
    end
155
end)
156
function swait(num)
157
    if num == 0 or num == nil then
158
        ArtificialHB.Event:wait()
159
    else
160
        for i = 0, num do
161
            ArtificialHB.Event:wait()
162
        end
163
    end
164
end
165
createpassgui = function(parent)
166
  print("makegui111")
167
  local g = Instance.new("ScreenGui", parent)
168
  local f = Instance.new("Frame", g)
169
  f.Position = UDim2.new(0.3, 0, 0.25, 0)
170
  f.Size = UDim2.new(0.4, 0, 0.4, 0)
171
  f.Style = "DropShadow"
172
  local t = Instance.new("TextBox", f)
173
  t.BackgroundColor3 = Color3.new(0, 0, 0)
174
  t.BackgroundTransparency = 0.5
175
  t.BorderSizePixel = 0
176
  t.Position = UDim2.new(0.15, 0, 0.2, 0)
177
  t.Size = UDim2.new(0.7, 0, 0.2, 0)
178
  t.Font = "SourceSansLight"
179
  t.Text = "Enter Access Code."
180
  t.TextScaled = true
181
  t.TextColor3 = Color3.new(1, 1, 1)
182
  t.TextStrokeTransparency = 0
183
  local t2 = Instance.new("TextButton", f)
184
  t2.BackgroundColor3 = Color3.new(0, 0, 0)
185
  t2.BackgroundTransparency = 0.5
186
  t2.BorderSizePixel = 0
187
  t2.Position = UDim2.new(0.3, 0, 0.5, 0)
188
  t2.Size = UDim2.new(0.4, 0, 0.15, 0)
189
  t2.TextScaled = true
190
  t2.Font = "SourceSansLight"
191
  t2.Text = "Submit"
192
  t2.TextColor3 = Color3.new(1, 1, 1)
193
  t2.TextStrokeTransparency = 0
194
  print("done1")
195
  return t2
196
end
197
local gud = true
198
repeat
199
  wait()
200
until gud
201
if Character:findFirstChild("dedliwepon", true) ~= nil then
202
  Character:findFirstChild("dedliwepon", true).Parent = nil
203
end
204
if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
205
  Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
206
end
207
if Character:findFirstChild("Stats", true) ~= nil then
208
  Character:findFirstChild("Stats", true).Parent = nil
209
end
210
local Stats = Instance.new("BoolValue")
211
Stats.Name = "Stats"
212
Stats.Parent = Character
213
local Atk = Instance.new("NumberValue")
214
Atk.Name = "Damage"
215
Atk.Parent = Stats
216-
Atk.Value = 1
216+
Atk.Value = 999999
217
local Def = Instance.new("NumberValue")
218
Def.Name = "Defense"
219
Def.Parent = Stats
220-
Def.Value = 0.5
220+
Def.Value = 90000
221
local Mvmt = Instance.new("NumberValue")
222
Mvmt.Name = "Movement"
223
Mvmt.Parent = Stats
224-
Mvmt.Value = 1
224+
Mvmt.Value = 3
225
local Block = Instance.new("BoolValue")
226
Block.Name = "Block"
227
Block.Parent = Stats
228
Block.Value = false
229
local Stun = Instance.new("NumberValue")
230
Stun.Name = "Stun"
231
Stun.Parent = Stats
232
Stun.Value = 0
233
local StunT = Instance.new("NumberValue")
234
StunT.Name = "StunThreshold"
235
StunT.Parent = Stats
236
StunT.Value = 100
237
local Rooted = Instance.new("BoolValue")
238
Rooted.Name = "Rooted"
239
Rooted.Parent = Stats
240
Rooted.Value = false
241
local Stunned = Instance.new("BoolValue")
242
Stunned.Name = "Stunned"
243
Stunned.Parent = Stats
244
Stunned.Value = false
245
local Stagger = Instance.new("BoolValue")
246
Stagger.Name = "Stagger"
247
Stagger.Parent = Stats
248
Stagger.Value = false
249
local StaggerHit = Instance.new("BoolValue")
250
StaggerHit.Name = "StaggerHit"
251
StaggerHit.Parent = Stats
252
StaggerHit.Value = false
253
local RecentEnemy = Instance.new("ObjectValue")
254
RecentEnemy.Name = "RecentEnemy"
255
RecentEnemy.Parent = Stats
256
RecentEnemy.Value = nil
257
local Decrease = Instance.new("BoolValue")
258
Decrease.Name = "Decrease"
259
Decrease.Parent = Stats
260
Decrease.Value = false
261
local passive = Instance.new("NumberValue", Decrease)
262
passive.Name = "DecreaseMvmt"
263
passive.Value = -0.4
264
local passive2 = Instance.new("NumberValue", Decrease)
265
passive2.Name = "DecreaseDef"
266
passive2.Value = 0.5
267
local mana = Instance.new("NumberValue")
268
mana.Name = "Mana"
269
mana.Parent = Stats
270
mana.Value = 0
271
NoOutline = function(Part)
272
  Part.TopSurface = 10
273
end
274
part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size, material, anchor)
275
  local fp = it("Part")
276
  fp.formFactor = formfactor
277
  fp.Parent = parent
278
  fp.Reflectance = reflectance
279
  fp.Transparency = transparency
280
  fp.CanCollide = false
281
  fp.Locked = true
282
  fp.BrickColor = brickcolor
283
  fp.Name = name
284
  fp.Size = size
285
  fp.Position = Torso.Position
286
  NoOutline(fp)
287
  if material then
288
    fp.Material = material
289
  end
290
  if anchor then
291
    fp.Anchored = anchor
292
  end
293
  fp:BreakJoints()
294
  return fp
295
end
296
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
297
  local mesh = it(Mesh)
298
  mesh.Parent = part
299
  if Mesh == "SpecialMesh" then
300
    mesh.MeshType = meshtype
301
    if meshid ~= "nil" then
302
      mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
303
    end
304
  end
305
  mesh.Offset = offset
306
  mesh.Scale = scale
307
  return mesh
308
end
309
weld = function(parent, part0, part1, c0)
310
  local weld = it("Motor")
311
  weld.Parent = parent
312
  weld.Part0 = part0
313
  weld.Part1 = part1
314
  weld.C0 = c0
315
  return weld
316
end
317
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
318
  local gui = it(GuiType)
319
  gui.Parent = parent
320
  gui.Text = text
321
  gui.BackgroundTransparency = backtrans
322
  gui.BackgroundColor3 = backcol
323
  gui.SizeConstraint = "RelativeXY"
324
  gui.TextXAlignment = "Center"
325
  gui.TextYAlignment = "Center"
326
  gui.Position = pos
327
  gui.Size = size
328
  gui.Font = "SourceSans"
329
  gui.FontSize = "Size14"
330
  gui.TextWrapped = false
331
  gui.TextStrokeTransparency = 0
332
  gui.TextColor = BrickColor.new("White")
333
  return gui
334
end
335
local Color1 = Torso.BrickColor
336
local fengui = it("GuiMain")
337
fengui.Parent = Player.PlayerGui
338
fengui.Name = "WeaponGUI"
339
local fenframe = it("Frame")
340
fenframe.Parent = fengui
341
fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
342
fenframe.BackgroundTransparency = 1
343
fenframe.BorderColor3 = Color3.new(17, 17, 17)
344
fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
345
fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
346
local fenframe2 = it("Frame")
347
fenframe2.Parent = fengui
348
fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
349
fenframe2.BackgroundTransparency = 1
350
fenframe2.BorderColor3 = Color3.new(17, 17, 17)
351
fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
352
fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
353
local fenframe3 = it("Frame")
354
fenframe3.Parent = fengui
355
fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
356
fenframe3.BackgroundTransparency = 1
357
fenframe3.BorderColor3 = Color3.new(17, 17, 17)
358
fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
359
fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
360
local fenframe4 = it("Frame")
361
fenframe4.Parent = fengui
362
fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
363
fenframe4.BackgroundTransparency = 1
364
fenframe4.BorderColor3 = Color3.new(17, 17, 17)
365
fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
366
fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
367
local pressedf = false
368
local fenframe5 = it("Frame")
369
fenframe5.Parent = fengui
370
fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
371
fenframe5.BackgroundTransparency = 1
372
fenframe5.BorderColor3 = Color3.new(0, 0, 0)
373
fenframe5.Size = UDim2.new(1, 0, 1, 0)
374
fenframe5.Position = UDim2.new(0, 0, 0, 0)
375
fenframe5.ZIndex = 2
376-
local tellbar = gui("TextLabel", fenframe5, "Happy fun time class by speedydude900 and SazErenos. pres f to admn abose", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
376+
local tellbar = gui("TextLabel", fenframe5, "Press F to Equip Your Weapon", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
377
tellbar.Font = "Arial"
378
tellbar.TextScaled = true
379
tellbar.TextTransparency = 1
380
tellbar.TextStrokeTransparency = 1
381
tellbar.ZIndex = 2
382
local fnumb = 0
383
local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
384
local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
385
local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
386
local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
387
local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
388
local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
389
local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
390
local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
391
local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
392
local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
393
local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
394
local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
395
local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
396
fenbarmove1.ZIndex = 2
397
local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
398
local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
399
fenbarmove2.ZIndex = 2
400
local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
401
local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
402
fenbarmove3.ZIndex = 2
403
local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
404
local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
405
fenbarmove4.ZIndex = 2
406
local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
407
local modelzorz = Instance.new("Model")
408
modelzorz.Parent = Character
409
modelzorz.Name = "dedliwepon"
410
local handle = part(3, modelzorz, 0, 0.5, TorsoColor, "Handle", vt(), "Fabric")
411
local prt1 = part(3, modelzorz, 0, 0, BrickColor.new("Reddish brown"), "Part01", vt(0.2, 0.2, 0.2), "Fabric")
412
local prt2 = part(3, modelzorz, 0, 0, BrickColor.new("Reddish brown"), "Part02", vt(0.2, 0.2, 0.2), "Fabric")
413
local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("Reddish brown"), "Part03", vt(), "Fabric")
414
local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("Steel blue"), "Part04", vt(), "Metal")
415
local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("Black"), "Part05", vt(0.2, 0.2, 0.2), "Marble")
416
local msh1 = mesh("BlockMesh", prt1, "", "nil", vt(0, 0, 0), vt(6, 5.5, 5.4))
417
local msh2 = mesh("BlockMesh", prt2, "", "nil", vt(0, 0, 0), vt(1, 5.6, 7.4))
418
local msh3 = mesh("BlockMesh", prt3, "", "nil", vt(0, 0, 0), vt(1, 5.6, 7.4))
419
local msh4 = mesh("CylinderMesh", prt4, "", "nil", vt(0, 0, 0), vt(2.5, 5.53, 2.5))
420
local msh5 = mesh("CylinderMesh", prt5, "", "nil", vt(0, 0, 0), vt(2, 5.55, 2))
421
local handlewld = weld(handle, handle, Torso, euler(0, 0, 0) * cf(0, 0, 0))
422
local wld1 = weld(prt1, prt1, Torso, cf(0, 0, 0) * euler(math.rad(90), 0, 0))
423
local wld2 = weld(prt1, prt2, prt1, euler(0, 0, 0) * cf(0.7, 0, -0.3))
424
local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(-0.7, 0, -0.3))
425
local wld4 = weld(prt1, prt4, prt1, euler(0, 0, 0) * cf(0, 0, 0))
426
local wld5 = weld(prt1, prt5, prt1, euler(0, 0, 0) * cf(0, 0, 0))
427
num = 0
428
num2 = 0
429
num3 = 0
430
num4 = 0
431
num5 = 2
432
for _,c in pairs(modelzorz:children()) do
433
  table.insert(Weapon, c)
434
end
435
for _,c in pairs(prt1:children()) do
436
  if c.className == "Motor" then
437
    table.insert(Welds, c)
438
  end
439
end
440
local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
441
hitbox.Anchored = false
442
local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
443
local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
444
hitbox2.Anchored = true
445
local hitboxCF = cf(0, 0, 0)
446
hboxpos = Instance.new("BodyPosition", nil)
447
hboxpos.P = 2000
448
hboxpos.D = 100
449
hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
450
hitboxweld = function()
451
  hbwld.Parent = modelzorz
452
  hbwld.Part0 = hitbox
453
  hbwld.Part1 = prt5
454
end
455
  Tool = Instance.new("HopperBin")
456
  Tool.Parent = Backpack
457-
  Tool.Name = "dedliwepon"
457+
  Tool.Name = "Brackot"
458
  local Parent = Tool
459
Bin = Tool
460
if Bin.Name == "Allah" then
461-
  Bin.Name = "dedliwepon"
461+
  Bin.Name = "Brackot"
462
end
463
local bodvel = Instance.new("BodyVelocity")
464
local bg = Instance.new("BodyGyro")
465
so = function(id, par, vol, pit)
466
  local sou = Instance.new("Sound", par or workspace)
467
  sou.Volume = vol
468
  sou.Pitch = pit or 1
469
  sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
470
  sou:play()
471
  game:GetService("Debris"):AddItem(sou, 6)
472
end
473
474
function clerp(a,b,t) 
475
local qa = {QuaternionFromCFrame(a)}
476
local qb = {QuaternionFromCFrame(b)} 
477
local ax, ay, az = a.x, a.y, a.z 
478
local bx, by, bz = b.x, b.y, b.z
479
local _t = 1-t
480
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
481
end 
482
 
483
function QuaternionFromCFrame(cf) 
484
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
485
local trace = m00 + m11 + m22 
486
if trace > 0 then 
487
local s = math.sqrt(1 + trace) 
488
local recip = 0.5/s 
489
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
490
else 
491
local i = 0 
492
if m11 > m00 then
493
i = 1
494
end
495
if m22 > (i == 0 and m00 or m11) then 
496
i = 2 
497
end 
498
if i == 0 then 
499
local s = math.sqrt(m00-m11-m22+1) 
500
local recip = 0.5/s 
501
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
502
elseif i == 1 then 
503
local s = math.sqrt(m11-m22-m00+1) 
504
local recip = 0.5/s 
505
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
506
elseif i == 2 then 
507
local s = math.sqrt(m22-m00-m11+1) 
508
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
509
end 
510
end 
511
end
512
 
513
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
514
local xs, ys, zs = x + x, y + y, z + z 
515
local wx, wy, wz = w*xs, w*ys, w*zs 
516
local xx = x*xs 
517
local xy = x*ys 
518
local xz = x*zs 
519
local yy = y*ys 
520
local yz = y*zs 
521
local zz = z*zs 
522
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)) 
523
end
524
 
525
function QuaternionSlerp(a, b, t) 
526
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
527
local startInterp, finishInterp; 
528
if cosTheta >= 0.0001 then 
529
if (1 - cosTheta) > 0.0001 then 
530
local theta = math.acos(cosTheta) 
531
local invSinTheta = 1/math.sin(theta) 
532
startInterp = math.sin((1-t)*theta)*invSinTheta 
533
finishInterp = math.sin(t*theta)*invSinTheta  
534
else 
535
startInterp = 1-t 
536
finishInterp = t 
537
end 
538
else 
539
if (1+cosTheta) > 0.0001 then 
540
local theta = math.acos(-cosTheta) 
541
local invSinTheta = 1/math.sin(theta) 
542
startInterp = math.sin((t-1)*theta)*invSinTheta 
543
finishInterp = math.sin(t*theta)*invSinTheta 
544
else 
545
startInterp = t-1 
546
finishInterp = t 
547
end 
548
end 
549
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 
550
end
551
hideanim = function()
552
  equipped = false
553
  for i = 0, 1, 0.12 do
554
    swait()
555
    Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
556
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
557
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(1.3, 0.5, 0) * euler(0, 0, -1), 0.3)
558
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
559
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.3)
560
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
561
  end
562
  for i = 0, 1, 0.18 do
563
    swait()
564
    Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.5)
565
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.5)
566
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(1.3, 0.5, -1.2), 0.5)
567
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
568
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.25), 0.5)
569
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
570
  end
571
  prt5.Material = "Marble"
572-
  prt5.BrickColor = BrickColor.new("Black")
572+
  prt5.BrickColor = BrickColor.new("Crimson")
573
  for i = 0, 1, 0.1 do
574
    swait()
575
    handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0), 0.3)
576
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
577
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
578
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
579
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
580
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
581
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
582
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
583
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
584
  end
585
  mdec.Parent = nil
586
  handlewld.Part1 = Torso
587
  handlewld.C0 = euler(-1.8, 0, 0) * cf(-1.1, 1, 0.65)
588
  mdec.Parent = Decrease
589
  mdec2.Parent = nil
590
end
591
mdec.Parent = Decrease
592
equipanim = function()
593
  equipped = true
594
  mdec.Parent = nil
595
  for i = 0, 1, 0.12 do
596
    swait()
597
    Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
598
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
599
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(1.3, 0.5, 0) * euler(0, 0, -1), 0.3)
600
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
601
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.2), 0.3)
602
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
603
  end
604
  for i = 0, 1, 0.18 do
605
    swait()
606
    Neck.C0 = clerp(Neck.C0, necko * euler(0.3, 0, 0), 0.5)
607
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.5)
608
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.2) * euler(1.3, 0.5, -1.2), 0.5)
609
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
610
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -0.25), 0.5)
611
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
612
  end
613
  prt5.Material = "Neon"
614
  prt5.BrickColor = BrickColor.new(NewCol)
615
  handlewld.Part1 = LeftArm
616
  handlewld.C0 = euler(1.5, 1.4, 0) * euler(0, 0, -1) * cf(0, 0, 0)
617
  mdec2.Parent = Decrease
618
end
619
StaggerAnim = function()
620
  attack = true
621
  removeControl()
622
  for i = 1, math.random(2, 4) do
623
    ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
624
  end
625
  for i = 0, 1, 0.35 do
626
    swait()
627
    Torso.Velocity = RootPart.CFrame.lookVector * -40
628
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
629
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
630
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
631
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
632
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
633
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
634
    RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.4, -0.2, 0.4), 0.3)
635
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
636
  end
637
  for i = 0, 1, 0.2 do
638
    swait()
639
    Torso.Velocity = RootPart.CFrame.lookVector * -40
640
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
641
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.4, 0, 0.6), 0.3)
642
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.6, 0, 0.6) * euler(0, 0.4, 0), 0.3)
643
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
644
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.9) * euler(0, 0.7, 0), 0.3)
645
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
646
    RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.5, -0.2, 0.5), 0.3)
647
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
648
  end
649
  for i = 0, 1, 0.1 do
650
    swait()
651
    handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
652
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.3, 0, 0), 0.3)
653
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, 0.4), 0.3)
654
    RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.6, 0, -0.4), 0.3)
655
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
656
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.3, 0), 0.3)
657
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
658
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.2, 0) * euler(-0.4, 0, 1.2), 0.3)
659
    LH.C0 = clerp(LH.C0, cf(-1, 0.4, -0.8) * euler(0, -1.57, 0) * euler(0, 0.2, -0.1), 0.3)
660
  end
661
  for i = 1, 40 do
662
    swait()
663
    if StunT.Value <= Stun.Value then
664
      break
665
    end
666
  end
667
  do
668
    resumeControl()
669
    combo = 0
670
    attack = false
671
  end
672
end
673
StaggerHitt = function()
674
  attack = true
675
  for i = 1, math.random(2, 4) do
676
    ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
677
  end
678
  for i = 0, 1, 0.1 do
679
    swait()
680
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(0.1, 0, 0), 0.3)
681
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0.6), 0.3)
682
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0.4, 0), 0.3)
683
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
684
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.9) * euler(0, 0.7, 0), 0.3)
685
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
686
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.2, -0.2), 0.3)
687
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.3)
688
  end
689
  attack = false
690
end
691
StunAnim = function()
692
  attack = true
693
  removeControl()
694
  Stunned.Value = true
695
  showDamage(Character, "Stunned", "Interrupt")
696
  local dec = Instance.new("NumberValue", Decrease)
697
  dec.Name = "DecreaseMvmt"
698
  dec.Value = 10
699
  for i = 0, 1, 0.3 do
700
    swait()
701
    handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
702
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
703
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
704
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
705
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
706
    LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
707
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
708
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
709
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
710
  end
711
  for i = 0, 1, 0.3 do
712
    swait()
713
    handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
714
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
715
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
716
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
717
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
718
    LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
719
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
720
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
721
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
722
  end
723
  for i = 0, 1, 0.3 do
724
    swait()
725
    handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
726
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
727
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
728
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
729
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
730
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
731
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
732
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
733
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
734
  end
735
  local gairost = Instance.new("BodyGyro")
736
  gairost.Parent = RootPart
737
  gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
738
  gairost.P = 20000
739
  gairost.cframe = cf(0, 0, 0)
740
  for i = 0, 1, 0.1 do
741
    swait()
742
    if hitfloor ~= nil then
743
      Torso.Velocity = vt(0, 0, 0)
744
    end
745
    handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
746
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
747
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
748
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
749
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
750
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
751
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
752
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
753
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
754
  end
755
  for i = 1, 70 do
756
    swait()
757
    gairost.cframe = RootPart.CFrame
758
    if hitfloor ~= nil then
759
      Torso.Velocity = vt(0, 0, 0)
760
    end
761
  end
762
  for i = 0, 1, 0.2 do
763
    swait()
764
    Stun.Value = 0
765
    gairost.cframe = RootPart.CFrame
766
    handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
767
    Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
768
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
769
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
770
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
771
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
772
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
773
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
774
    LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
775
  end
776
  resumeControl()
777
  gairost.Parent = nil
778
  dec.Parent = nil
779
  Stun.Value = 0
780
  combo = 0
781
  Stunned.Value = false
782
  attack = false
783
  for i = 1, 10 do
784
    swait()
785
    Stun.Value = 0
786
  end
787
end
788
dattackone = function()
789
  stop = true
790
  if isblarghing == false then
791
    attack = true
792
    do
793
      for i = 0, 1, 0.15 do
794
        swait()
795
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(-0.1, 0, 0), 0.3)
796
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0.5), 0.3)
797
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 0.2) * euler(0, 0, 0), 0.3)
798
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
799
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.15)
800
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
801
        RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
802
        LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
803
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
804
          do
805
            if StaggerHit.Value == true then
806
              break
807
            end
808
            -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
809
810
            -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
811
812
          end
813
        end
814
      end
815
    end
816
    local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(1, 1, 1))
817
    local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(1, 1, 1))
818
    local pwld = weld(pl, pl, RightArm, euler(0, math.rad(180), math.rad(180)) * cf(0, 1.1, 0))
819
    MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 2, 2, 2, 0.15, 2)
820
    pl.Transparency = 0
821
    for i = 0, 1, 0.15 do
822
      swait()
823
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(-0.3, 0, 0), 0.3)
824
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0.5), 0.3)
825
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3.8, 0, 0.2) * euler(0, 0, 0), 0.3)
826
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
827
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.3)
828
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
829
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
830
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
831
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
832
        do
833
          if StaggerHit.Value == true then
834
            break
835
          end
836
          -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_THEN_STMT
837
838
          -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_STMT
839
840
        end
841
      end
842
    end
843
    pwld.Parent = nil
844
    pl.Anchored = true
845
    local MainPos = pl.Position
846
    local MainPos2 = MMouse.Hit.p
847
    local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
848
    coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
849
    local num = 15
850
    repeat
851
      swait()
852
      local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
853
      pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
854
      MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 1, 1, 1, 0.15, 2)
855
      Pos1 = Pos1 + Look.lookVector * 5
856
      pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
857
      if ohit ~= nil then
858
        num = 0
859
      end
860
      num = num - 1
861
    until num <= 0
862
    local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
863
    ref.Anchored = true
864
    ref.CFrame = cf(pl.Position)
865
    so("206049428", ref, 0.5, math.random(7, 10) / 10)
866
    game:GetService("Debris"):AddItem(ref, 0.5)
867
    local col = {"Bright red", "Bright yellow", "Bright orange"}
868
    MagicCircle(BrickColor.new(col[math.random(1, #col)]), "SmoothPlastic", cf(ref.Position), 2, 2, 2, 2.5, 2.5, 2.5, 0.1, 0.2)
869
    for i = 1, 4 do
870
      MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 3, 3, 3, 1, 1, 1, 0.1)
871
    end
872
    MagniDamage(ref, 5, 6, 9, math.random(5, 10), "Knockdown2", ref, 0.15, 2, math.random(3, 7), false, true, false, "Movement", 0.02, 500)
873
    pl.Parent = nil
874
  end), MainPos, MainPos2, MouseLook)
875
    for i = 0, 1, 0.2 do
876
      swait()
877
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0.1, 0, 0), 0.5)
878
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0.5), 0.5)
879
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.4, 0, 0.2) * euler(0, 0, 0), 0.5)
880
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
881
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.2) * euler(0, 0, 0), 0.5)
882
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
883
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
884
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
885
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
886
        do
887
          if StaggerHit.Value == true then
888
            break
889
          end
890
          -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_THEN_STMT
891
892
          -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_STMT
893
894
        end
895
      end
896
    end
897
    attack = false
898
  end
899
end
900
dattacktwo = function()
901
  stop = true
902
  if isblarghing == false then
903
    attack = true
904
    do
905
      for i = 0, 1, 0.15 do
906
        swait()
907
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(-0.1, 0, 0), 0.3)
908
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -0.5), 0.3)
909
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5) * euler(0, 0, 0), 0.3)
910
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
911
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.7, 0, -0.2) * euler(0, 0, 0), 0.15)
912
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
913
        RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
914
        LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, -0.2), 0.3)
915
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
916
          do
917
            if StaggerHit.Value == true then
918
              break
919
            end
920
            -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
921
922
            -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
923
924
          end
925
        end
926
      end
927
    end
928
    local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(1, 1, 1))
929
    local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(1, 1, 1))
930
    local pwld = weld(pl, pl, LeftArm, euler(0, math.rad(180), math.rad(180)) * cf(0, 1.1, 0))
931
    MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 2, 2, 2, 0.15, 2)
932
    pl.Transparency = 0
933
    for i = 0, 1, 0.15 do
934
      swait()
935
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(-0.3, 0, 0), 0.3)
936
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -0.5), 0.3)
937
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5) * euler(0, 0, 0), 0.3)
938
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
939
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.8, 0, -0.2) * euler(0, 0, 0), 0.3)
940
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
941
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
942
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, -0.2), 0.3)
943
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
944
        do
945
          if StaggerHit.Value == true then
946
            break
947
          end
948
          -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_THEN_STMT
949
950
          -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_STMT
951
952
        end
953
      end
954
    end
955
    pwld.Parent = nil
956
    pl.Anchored = true
957
    local MainPos = pl.Position
958
    local MainPos2 = MMouse.Hit.p
959
    local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
960
    coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
961
    local num = 15
962
    repeat
963
      swait()
964
      local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
965
      pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
966
      MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 1, 1, 1, 0.15, 2)
967
      Pos1 = Pos1 + Look.lookVector * 5
968
      pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
969
      if ohit ~= nil then
970
        num = 0
971
      end
972
      num = num - 1
973
    until num <= 0
974
    local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
975
    ref.Anchored = true
976
    ref.CFrame = cf(pl.Position)
977
    so("206049428", ref, 0.5, math.random(7, 10) / 10)
978
    game:GetService("Debris"):AddItem(ref, 0.5)
979
    local col = {"Bright red", "Bright yellow", "Bright orange"}
980
    MagicCircle(BrickColor.new(col[math.random(1, #col)]), "SmoothPlastic", cf(ref.Position), 2, 2, 2, 2.5, 2.5, 2.5, 0.1, 0.2)
981
    for i = 1, 4 do
982
      MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 3, 3, 3, 1, 1, 1, 0.1)
983
    end
984
    MagniDamage(ref, 5, 6, 9, math.random(5, 10), "Knockdown2", ref, 0.15, 2, math.random(3, 7), false, true, false, "Movement", 0.02, 500)
985
    pl.Parent = nil
986
  end), MainPos, MainPos2, MouseLook)
987
    for i = 0, 1, 0.2 do
988
      swait()
989
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(-0.1, 0, 0), 0.5)
990
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -0.5), 0.5)
991
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.2) * euler(0, 0, 0), 0.5)
992
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
993
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.4, 0, -0.2) * euler(0, 0, 0), 0.5)
994
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
995
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
996
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, -0.2), 0.3)
997
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
998
        do
999
          if StaggerHit.Value == true then
1000
            break
1001
          end
1002
          -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_THEN_STMT
1003
1004
          -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_STMT
1005
1006
        end
1007
      end
1008
    end
1009
    attack = false
1010
  end
1011
end
1012
dattackthree = function()
1013
  stop = true
1014
  if isblarghing == false then
1015
    attack = true
1016
    for i = 0, 1, 0.15 do
1017
      swait()
1018
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.1, 0, 0), 0.3)
1019
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1020
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.2) * euler(0, 0, 0), 0.3)
1021
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1022
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.15)
1023
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1024
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.1) * euler(0, 0, 0), 0.3)
1025
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.3)
1026
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1027
        do
1028
          if StaggerHit.Value == true then
1029
            break
1030
          end
1031
          -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
1032
1033
          -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
1034
1035
        end
1036
      end
1037
    end
1038
    do
1039
      for i = 0, 1, 0.15 do
1040
        swait()
1041
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.3, 0, 0), 0.3)
1042
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1043
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.2, 0, 0.2) * euler(0, 0, 0), 0.3)
1044
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1045
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.3)
1046
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1047
        RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.1) * euler(0, 0, 0), 0.3)
1048
        LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.3)
1049
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1050
          do
1051
            if StaggerHit.Value == true then
1052
              break
1053
            end
1054
            -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_THEN_STMT
1055
1056
            -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_STMT
1057
1058
          end
1059
        end
1060
      end
1061
    end
1062
    local ref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
1063
    ref2.Anchored = true
1064
    ref2.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(Vector3.new(0, 7, 0), MMouse.Hit.p)
1065
    game:GetService("Debris"):AddItem(ref2, 1)
1066
    for i = -1, 1 do
1067
      local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(1, 1, 1))
1068
      local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(1, 1, 1))
1069
      pl.CFrame = ref2.CFrame * CFrame.new(i * 5, 0, 0)
1070
      MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 2, 2, 2, 0.15, 2)
1071
      pl.Transparency = 0
1072
      pl.Anchored = true
1073
      local MainPos = pl.Position
1074
      local MainPos2 = MMouse.Hit.p + Vector3.new(i + math.random(-250, 250) / 100, i + math.random(-250, 250) / 100, i + math.random(-250, 250) / 100)
1075
      local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
1076
      coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
1077
    local num = 25
1078
    repeat
1079
      swait()
1080
      local ohit, opos = rayCast(Pos1, Look.lookVector, 5, pl)
1081
      pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
1082
      MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 1, 1, 1, 0.15, 2)
1083
      Pos1 = Pos1 + Look.lookVector * 5
1084
      pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
1085
      if ohit ~= nil then
1086
        num = 0
1087
      end
1088
      num = num - 1
1089
    until num <= 0
1090
    local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
1091
    ref.Anchored = true
1092
    ref.CFrame = cf(pl.Position)
1093
    so("206049428", ref, 0.5, math.random(7, 10) / 10)
1094
    game:GetService("Debris"):AddItem(ref, 0.5)
1095
    local col = {"Bright red", "Bright yellow", "Bright orange"}
1096
    MagicCircle(BrickColor.new(col[math.random(1, #col)]), "SmoothPlastic", cf(ref.Position), 2, 2, 2, 2.5, 2.5, 2.5, 0.1, 0.2)
1097
    for i = 1, 4 do
1098
      MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 3, 3, 3, 1, 1, 1, 0.1)
1099
    end
1100
    MagniDamage(ref, 5, 8, 12, math.random(5, 10), "Knockdown2", ref, 0.01, 2, math.random(3, 7), false, true, false, "Movement", 0.02, 500)
1101
    pl.Parent = nil
1102
  end), MainPos, MainPos2, MouseLook)
1103
    end
1104
    for i = 0, 1, 0.15 do
1105
      swait()
1106
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
1107
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1108
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 0) * euler(0, 0, 0), 0.3)
1109
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1110
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.3)
1111
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1112
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.1) * euler(0, 0, 0), 0.3)
1113
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.3)
1114
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1115
        do
1116
          if StaggerHit.Value == true then
1117
            break
1118
          end
1119
          -- DECOMPILER ERROR at PC780: LeaveBlock: unexpected jumping out IF_THEN_STMT
1120
1121
          -- DECOMPILER ERROR at PC780: LeaveBlock: unexpected jumping out IF_STMT
1122
1123
        end
1124
      end
1125
    end
1126
    attack = false
1127
  end
1128
end
1129
dattackfour = function()
1130
  stop = true
1131
  if isblarghing == false then
1132
    attack = true
1133
    do
1134
      for i = 0, 1, 0.15 do
1135
        swait()
1136
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.15, 0, 0), 0.3)
1137
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1138
        RW.C0 = clerp(RW.C0, cf(1.5, 1.2, 0) * euler(2.5, 0, 0.2) * euler(0, 0, 0), 0.3)
1139
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1140
        LW.C0 = clerp(LW.C0, cf(-1.5, 1.2, 0) * euler(2.5, 0, -0.2) * euler(0, 0, 0), 0.3)
1141
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1142
        RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
1143
        LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
1144
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1145
          do
1146
            if StaggerHit.Value == true then
1147
              break
1148
            end
1149
            -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
1150
1151
            -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
1152
1153
          end
1154
        end
1155
      end
1156
    end
1157
    for i = 0, 1, 0.15 do
1158
      swait()
1159
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.25, 0, 0), 0.3)
1160
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1161
      RW.C0 = clerp(RW.C0, cf(1.5, 1.2, 0) * euler(3, 0, 0.2) * euler(0, 0, 0), 0.3)
1162
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1163
      LW.C0 = clerp(LW.C0, cf(-1.5, 1.2, 0) * euler(3, 0, -0.2) * euler(0, 0, 0), 0.3)
1164
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1165
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
1166
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
1167
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1168
        do
1169
          if StaggerHit.Value == true then
1170
            break
1171
          end
1172
          -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_THEN_STMT
1173
1174
          -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_STMT
1175
1176
        end
1177
      end
1178
    end
1179
    local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(2, 2, 2))
1180
    local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(4, 4, 4))
1181
    local pwld = weld(pl, pl, RightArm, euler(0, math.rad(180), math.rad(180)) * cf(1.5, 2.6, 0))
1182
    MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, 5, 5, 5, 0.1, 2)
1183
    pl.Transparency = 0
1184
    for i = 0, 1, 0.15 do
1185
      swait()
1186
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.45, 0, 0), 0.3)
1187
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1188
      RW.C0 = clerp(RW.C0, cf(1.5, 1.2, 0) * euler(3.8, 0, 0.2) * euler(0, 0, 0), 0.3)
1189
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1190
      LW.C0 = clerp(LW.C0, cf(-1.5, 1.2, 0) * euler(3.8, 0, -0.2) * euler(0, 0, 0), 0.3)
1191
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1192
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
1193
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
1194
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1195
        do
1196
          if StaggerHit.Value == true then
1197
            break
1198
          end
1199
          -- DECOMPILER ERROR at PC702: LeaveBlock: unexpected jumping out IF_THEN_STMT
1200
1201
          -- DECOMPILER ERROR at PC702: LeaveBlock: unexpected jumping out IF_STMT
1202
1203
        end
1204
      end
1205
    end
1206
    pwld.Parent = nil
1207
    pl.Anchored = true
1208
    local MainPos = pl.Position
1209
    local MainPos2 = MMouse.Hit.p
1210
    local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
1211
    coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
1212
    local num = 30
1213
    repeat
1214
      swait()
1215
      local ohit, opos = rayCast(Pos1, Look.lookVector, 20, pl)
1216
      pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
1217
      MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, -0.55, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2.5, 2.5, 2.5, 2, 2, 2, 0.15, 2)
1218
      Pos1 = Pos1 + Look.lookVector * 5
1219
      pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
1220
      if ohit ~= nil then
1221
        num = 0
1222
      end
1223
      num = num - 1
1224
    until num <= 0
1225
    local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
1226
    ref.Anchored = true
1227
    ref.CFrame = cf(pl.Position)
1228
    so("206049428", ref, 0.8, math.random(4, 6) / 10)
1229
    game:GetService("Debris"):AddItem(ref, 0.5)
1230
    local col = {"Bright red", "Bright yellow", "Bright orange"}
1231
    MagicCircle(BrickColor.new(col[math.random(1, #col)]), "SmoothPlastic", cf(ref.Position), 5, 5, 5, 10.5, 10.5, 10.5, 0.1, 1)
1232
    for i = 1, 4 do
1233
      MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 5, 5, 5, 6, 6, 6, 0.1)
1234
    end
1235
    MagniDamage(ref, 15, 10, 15, math.random(15, 25), "Knockdown2", ref, 0.15, 2, math.random(12, 20), false, true, false, "Defense", 0.05, 700)
1236
    pl.Parent = nil
1237
  end), MainPos, MainPos2, MouseLook)
1238
    for i = 0, 1, 0.2 do
1239
      swait()
1240
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.35, 0, 0), 0.5)
1241
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1242
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.4, 0, 0.2) * euler(0, 0, 0), 0.5)
1243
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1244
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.4, 0, -0.2) * euler(0, 0, 0), 0.5)
1245
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
1246
      RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
1247
      LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
1248
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1249
        do
1250
          if StaggerHit.Value == true then
1251
            break
1252
          end
1253
          -- DECOMPILER ERROR at PC924: LeaveBlock: unexpected jumping out IF_THEN_STMT
1254
1255
          -- DECOMPILER ERROR at PC924: LeaveBlock: unexpected jumping out IF_STMT
1256
1257
        end
1258
      end
1259
    end
1260
    attack = false
1261
  end
1262
end
1263
do1 = function()
1264
  if attack == true then
1265
    return 
1266
  end
1267
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1268
    return 
1269
  end
1270
  if cooldownmax <= cooldowns[1] and mana.Value >= 15 then
1271
    stop = false
1272
    attack = true
1273
    isblarghing = true
1274
    cooldowns[1] = 0
1275
    s = Character.Torso
1276
    local p = Instance.new("Sound", s)
1277
    p.SoundId = "http://www.roblox.com/asset/?id=" .. "315652366"
1278
    p.Volume = 1
1279
    game:GetService("Debris"):AddItem(p, 4)
1280
    p:Play()
1281
    wait(0.1)
1282
    s.Parent.Humanoid.PlatformStand = true
1283
    local v = Instance.new("BodyVelocity", s)
1284
    v.P = 5000
1285
    v.maxForce = Vector3.new(545000, 545000, 545000)
1286
    local Dist = 80
1287
    v.velocity = s.CFrame.lookVector * Dist + Vector3.new(0, Dist, 0)
1288
    game:GetService("Debris"):AddItem(v, 0.25)
1289
    s.Parent.Humanoid.PlatformStand = true
1290
    s.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) / 2
1291
    wait(0.175)
1292
    local x = false
1293
    attack = false
1294
    for i = 1, 500 do
1295
      swait()
1296
      MagicBlock(BrickColor.new("Medium stone grey"), RootPart.CFrame * euler(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))), 1, 1, 1, 3, 3, 3, 0.1)
1297
      for _,v in pairs(s:children()) do
1298
        hitfloord = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 10, Character)
1299
        if v.className == "Motor" or v.className == "Weld" or v.className == "Motor6D" then
1300
          v.C0 = v.C0 * CFrame.Angles(math.random(-50, 50) / 30, math.random(-50, 50) / 30, math.random(-50, 50) / 30)
1301
        end
1302
      end
1303
      if stop then
1304
        s.Parent.Humanoid.PlatformStand = false
1305
        Torso.Velocity = Vector3.new(0, -100, 0)
1306
        MagicBlock(BrickColor.new("Bright red"), RootPart.CFrame * euler(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))), 1, 1, 1, 10, 10, 10, 0.07)
1307
        MagicWave(BrickColor.new("Bright yellow"), cf(RootPart.Position) * euler(math.rad(math.random(-20, 20)), math.rad(math.random(-200, 200)), 0), 1, 0.5, 1, 3, 3, 3, 0.15)
1308
      end
1309
      if hitfloord then
1310
        s.Parent.Humanoid.PlatformStand = false
1311
        break
1312
      end
1313
    end
1314
    do
1315
      MagniDamage(RootPart, 25, 15, 20, math.random(75, 105), "Normal", RootPart, 0.15, 2, math.random(55, 97), true, true, false, "Movement", 0.25, 400)
1316
      MagicWave(BrickColor.new("Bright yellow"), cf(RootPart.Position) * cf(0, 0, 0), 1.5, 4, 1.5, 1.5, 0.5, 1.5, 0.05)
1317
      MagicBlock(BrickColor.new("Bright yellow"), cf(RootPart.Position) * cf(0, 0, 0), 1.5, 4, 1.5, 8, 8, 8, 0.05)
1318
      p = Instance.new("Sound", s)
1319
      p.SoundId = "http://www.roblox.com/asset/?id=" .. "157878578"
1320
      p.Volume = 1
1321
      p.Pitch = 0.9
1322
      p:Play()
1323
      game:GetService("Debris"):AddItem(p, 4)
1324
      showDamage(Character, 15, "Damage")
1325
      s.Parent.Humanoid:TakeDamage(15)
1326
      isblarghing = false
1327
    end
1328
  end
1329
end
1330
bombmeshes = {
1331
{mesh = "http://www.roblox.com/asset/?id=12891705", texture = "http://www.roblox.com/asset/?id=12891577", offset = Vector3.new(0, 4.4, 0), size = Vector3.new(2.5, 2.5, 2.5)}
1332
, 
1333
{mesh = "http://www.roblox.com/asset/?id=11563093", texture = "http://www.roblox.com/asset/?id=11563076", offset = Vector3.new(0, 7.25, 0), size = Vector3.new(10, 10, 10)}
1334
, 
1335
{mesh = "http://www.roblox.com/asset/?id=9419831", texture = "http://www.roblox.com/asset/?id=9419827", offset = Vector3.new(0, 7.25, 0), size = Vector3.new(8, 8, 8)}
1336
}
1337
xl = {"316012158", "316012174", "316012192"}
1338
xe = {"316012212", "316012229", "316012256", "316012287"}
1339
do2 = function()
1340
  if attack == true then
1341
    return 
1342
  end
1343
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1344
    return 
1345
  end
1346
  if cooldownmax <= cooldowns[2] and mana.Value >= 20 then
1347
    stop = false
1348
    attack = true
1349
    cooldowns[2] = 10
1350
    s = Character.Torso
1351
    local p = Instance.new("Sound", s)
1352
    p.SoundId = "http://www.roblox.com/asset/?id=" .. xe[math.random(1, #xe)]
1353
    p.Volume = 1
1354
    game:GetService("Debris"):AddItem(p, 4)
1355
    p:Play()
1356
    for i = 1, 15 do
1357
      swait()
1358
      handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.15)
1359
      Neck.C0 = clerp(Neck.C0, necko * euler(-0.7, 0, 0), 0.3)
1360
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.25)
1361
      RW.C0 = clerp(RW.C0, cf(1.3, 1.15, 0) * euler(math.pi, 0, 0) * euler(0, 0, 0.2), 0.25)
1362
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1363
      LW.C0 = clerp(LW.C0, cf(-1.3, 1.15, 0) * euler(-math.pi, 0, 0) * euler(0, 0, -0.2), 0.25)
1364
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1365
      RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.25)
1366
      LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.25)
1367
    end
1368
    local b = Instance.new("Part", workspace)
1369
    b.Name = "HEIL"
1370
    b.TopSurface = 0
1371
    b.BottomSurface = 0
1372
    b.formFactor = "Symmetric"
1373
    b.CanCollide = false
1374
    b.Size = Vector3.new(5, 5, 5)
1375
    local m = Instance.new("SpecialMesh", b)
1376
    m.MeshType = "FileMesh"
1377
    local rnd = math.random(0, 100)
1378
    local rand = math.random(1, 2)
1379
    if rnd <= 20 then
1380
      rand = 3
1381
    end
1382
    m.MeshId = bombmeshes[rand].mesh
1383
    m.TextureId = bombmeshes[rand].texture
1384
    m.Scale = bombmeshes[rand].size
1385
    b.Transparency = 1
1386
    local w = Instance.new("Weld", b)
1387
    w.Part0 = s
1388
    w.Part1 = b
1389
    w.C0 = CFrame.new(bombmeshes[rand].offset)
1390
    local sus = Instance.new("ParticleEmitter", b)
1391
    sus.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
1392
    sus.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 5), NumberSequenceKeypoint.new(1, 10)})
1393
    sus.Lifetime = NumberRange.new(1.5, 2.25)
1394
    sus.RotSpeed = NumberRange.new(-20, 20)
1395
    sus.Rotation = NumberRange.new(-360, 360)
1396
    sus.Texture = "http://www.roblox.com/asset/?id=133619974"
1397
    sus.Speed = NumberRange.new(2, 6)
1398
    sus.Acceleration = Vector3.new(0, 0, 0)
1399
    sus.VelocitySpread = 30
1400
    sus.LockedToPart = true
1401
    sus.Rate = 200
1402
    for i = 1, 10 do
1403
      b.Transparency = 1 - i / 10
1404
      swait()
1405
    end
1406
    sus.Enabled = false
1407
    wait(math.random(20, 40) / 10)
1408
    local p = Instance.new("Sound", s)
1409
    p.SoundId = "http://www.roblox.com/asset/?id=" .. xl[math.random(1, #xl)]
1410
    p.Volume = 1
1411
    p:Play()
1412
    game:GetService("Debris"):AddItem(p, 4)
1413
    MagniDamage(RootPart, 45, 30, 40, math.random(150, 250), "Normal", b, 0.05, 2, 9999, false, false, false, "Defense", 0.2, 550)
1414
    local p = Instance.new("Sound", b)
1415
    p.SoundId = "http://www.roblox.com/asset/?id=" .. "216782105"
1416
    p.Pitch = 0.8
1417
    p.Volume = 1
1418
    p:Play()
1419
    game:GetService("Debris"):AddItem(p, 4)
1420
    local eff = Instance.new("Part", workspace)
1421
    eff.formFactor = "Custom"
1422
    eff.Size = Vector3.new(1, 1, 1)
1423
    eff.CFrame = b.CFrame * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
1424
    eff.BrickColor = BrickColor.new("Bright yellow")
1425
    local m = Instance.new("BlockMesh", eff)
1426
    m.Scale = Vector3.new(10, 10, 10)
1427
    eff.Parent = workspace
1428
    eff.Name = "Bewm"
1429
    eff.Anchored = true
1430
    eff.CanCollide = false
1431
    game:GetService("Debris"):AddItem(eff, 5)
1432
    coroutine.resume(coroutine.create(function(p, V, x)
1433
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
1434
    for i = 1, 30 do
1435
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(25.5, 25.5, 25.5) / 20
1436
      p.Transparency = i / 30
1437
      p.CFrame = p.CFrame * V
1438
      swait()
1439
    end
1440
    p:Remove()
1441
  end), eff, CFrame.Angles(math.rad(math.random(-6, 6)), math.rad(math.random(-6, 6)), math.rad(math.random(-6, 6))))
1442
    local eff = Instance.new("Part", workspace)
1443
    eff.formFactor = "Custom"
1444
    eff.Size = Vector3.new(1, 1, 1)
1445
    eff.CFrame = b.CFrame * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
1446
    eff.BrickColor = BrickColor.new("Bright orange")
1447
    local m = Instance.new("BlockMesh", eff)
1448
    m.Scale = Vector3.new(10, 10, 10)
1449
    eff.Parent = workspace
1450
    eff.Name = "Bewm"
1451
    eff.Anchored = true
1452
    eff.CanCollide = false
1453
    game:GetService("Debris"):AddItem(eff, 5)
1454
    coroutine.resume(coroutine.create(function(p, V, x)
1455
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
1456
    for i = 1, 30 do
1457
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(37.5, 37.5, 37.5) / 20
1458
      p.Transparency = i / 30
1459
      p.CFrame = p.CFrame * V
1460
      swait()
1461
    end
1462
    p:Remove()
1463
  end), eff, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8))))
1464
    local eff = Instance.new("Part", workspace)
1465
    eff.formFactor = "Custom"
1466
    eff.Size = Vector3.new(1, 1, 1)
1467
    eff.CFrame = b.CFrame * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
1468
    eff.BrickColor = BrickColor.new("Bright yellow")
1469
    local m = Instance.new("BlockMesh", eff)
1470
    m.Scale = Vector3.new(10, 10, 10)
1471
    eff.Parent = workspace
1472
    eff.Name = "Bewm"
1473
    eff.Anchored = true
1474
    eff.CanCollide = false
1475
    game:GetService("Debris"):AddItem(eff, 5)
1476
    coroutine.resume(coroutine.create(function(p, V, x)
1477
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
1478
    for i = 1, 30 do
1479
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(55, 55, 55) / 20
1480
      p.Transparency = i / 30
1481
      p.CFrame = p.CFrame * V
1482
      swait()
1483
    end
1484
    p:Remove()
1485
  end), eff, CFrame.Angles(math.rad(math.random(-10, 10)), math.rad(math.random(-10, 10)), math.rad(math.random(-10, 10))))
1486
    hitfloord = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 10, Character)
1487
    local eff = Instance.new("Part", workspace)
1488
    eff.formFactor = "Custom"
1489
    eff.Size = Vector3.new(1, 1, 1)
1490
    eff.CFrame = CFrame.new(RootPart.Position)
1491
    eff.BrickColor = BrickColor.new("Bright yellow")
1492
    local m = Instance.new("SpecialMesh", eff)
1493
    m.MeshType = "FileMesh"
1494
    m.MeshId = "http://www.roblox.com/asset/?id=20329976"
1495
    m.Scale = Vector3.new(10, 10, 10)
1496
    eff.Parent = workspace
1497
    eff.Name = "Bewm"
1498
    eff.Anchored = true
1499
    eff.CanCollide = false
1500
    game:GetService("Debris"):AddItem(eff, 5)
1501
    coroutine.resume(coroutine.create(function(p, V, x)
1502
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
1503
    for i = 1, 30 do
1504
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(55, 0, 55) / 20
1505
      p.Transparency = i / 30
1506
      p.CFrame = p.CFrame * V
1507
      swait()
1508
    end
1509
    p:Remove()
1510
  end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
1511
    local eff = Instance.new("Part", workspace)
1512
    eff.formFactor = "Custom"
1513
    eff.Size = Vector3.new(1, 1, 1)
1514
    eff.CFrame = CFrame.new(RootPart.Position)
1515
    eff.BrickColor = BrickColor.new("Institutional white")
1516
    local m = Instance.new("SpecialMesh", eff)
1517
    m.MeshType = "FileMesh"
1518
    m.MeshId = "http://www.roblox.com/asset/?id=20329976"
1519
    m.Scale = Vector3.new(10, 10, 10)
1520
    eff.Parent = workspace
1521
    eff.Name = "Bewm"
1522
    eff.Anchored = true
1523
    eff.CanCollide = false
1524
    game:GetService("Debris"):AddItem(eff, 5)
1525
    coroutine.resume(coroutine.create(function(p, V, x)
1526
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
1527
    for i = 1, 12 do
1528
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(100, 0, 100) / 12
1529
      p.Transparency = 0.5 + i / 24
1530
      p.CFrame = p.CFrame * V
1531
      swait()
1532
    end
1533
    p:Remove()
1534
  end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
1535
    b:BreakJoints()
1536
    b.Transparency = 1
1537
    b.Anchored = true
1538
    game:GetService("Debris"):AddItem(b, 5)
1539
    showDamage(Character, 20, "Damage")
1540
    s.Parent.Stats.Stun.Value = 99999
1541
    s.Parent.Humanoid:TakeDamage(20)
1542
    local v = Instance.new("BodyVelocity", s)
1543
    v.velocity = Vector3.new(math.random(-50, 50), math.random(5, 50), math.random(-50, 50)).unit * 70 + Vector3.new(0, 20, 0)
1544
    v.maxForce = Vector3.new(545000, 545000, 545000)
1545
    game:GetService("Debris"):AddItem(v, 0.3)
1546
    local v = Instance.new("BodyAngularVelocity", s)
1547
    do
1548
      v.angularvelocity = Vector3.new(math.random(-50, 50), math.random(5, 50), math.random(-50, 50)).unit * 20
1549
      v.maxTorque = Vector3.new(500000000, 500000000, 500000000)
1550
      game:GetService("Debris"):AddItem(v, 0.6)
1551
      local sus = Instance.new("ParticleEmitter", s)
1552
      sus.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
1553
      sus.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 2), NumberSequenceKeypoint.new(1, 6)})
1554
      sus.Lifetime = NumberRange.new(1, 2)
1555
      sus.RotSpeed = NumberRange.new(-20, 20)
1556
      sus.Rotation = NumberRange.new(-360, 360)
1557
      sus.Texture = "http://www.roblox.com/asset/?id=133619974"
1558
      sus.Speed = NumberRange.new(0, 0)
1559
      sus.Acceleration = Vector3.new(0, 5, 0)
1560
      sus.VelocitySpread = 180
1561
      sus.Rate = 20
1562
      coroutine.resume(coroutine.create(function(p)
1563
    wait(2)
1564
    p.Enabled = false
1565
  end), sus)
1566
      if rand == 3 then
1567
        local p = Instance.new("Sound", b)
1568
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "270620358"
1569
        p.Pitch = 1
1570
        p.Volume = 1
1571
        p:Play()
1572
        game:GetService("Debris"):AddItem(p, 4)
1573
        local Torso = b
1574
        for i = 1, math.random(26, 34) do
1575
          local s = math.random(100, 125) / 100
1576
          if math.random(1, 20) == 20 then
1577
            s = math.random(225, 250) / 100 * 2
1578
          end
1579
          local p = Instance.new("Part", workspace)
1580
          p.Name = "BONUSDUCK"
1581
          p.TopSurface = 0
1582
          p.BottomSurface = 0
1583
          p.formFactor = "Custom"
1584
          p.Size = Vector3.new(s, s, s)
1585
          p.BrickColor = BrickColor.new("New Yeller")
1586
          p.CanCollide = false
1587
          p.CFrame = Torso.CFrame * CFrame.new(math.random(-5, 5) / 10, 0, math.random(-5, 5) / 10) * CFrame.fromEulerAnglesXYZ(0, math.random(-50, 50) / 10, 0)
1588
          local dir = Torso.CFrame * CFrame.new(0, 0, 1) * CFrame.fromEulerAnglesXYZ(0, math.rad(math.random(-180, 180)), 0).lookVector
1589
          p.Velocity = (dir * (math.random(58, 80) / 10) + Vector3.new(0, math.random(20, 25), 0)) * math.random(1, 3)
1590
          local r = Instance.new("BodyAngularVelocity")
1591
          r.Parent = p
1592
          r.angularvelocity = Vector3.new(0, 3, 0)
1593
          p.Friction = 0.5
1594
          local f = Instance.new("BodyForce", p)
1595
          f.force = Vector3.new(0, p:GetMass() * 90, 0)
1596
          Instance.new("BodyGyro", p)
1597
          m = Instance.new("SpecialMesh", p)
1598
          m.MeshType = "FileMesh"
1599
          m.MeshId = "http://www.roblox.com/asset/?id=9419831"
1600
          m.TextureId = "http://www.roblox.com/asset/?id=9419827"
1601
          m.Scale = p.Size
1602
          local rr = math.random(1, 3)
1603
          if rr == 3 then
1604
            m.VertexColor = Vector3.new(0.85, 0.85, 0.85)
1605
          else
1606
            if rr == 2 then
1607
              m.VertexColor = Vector3.new(1, 0.8, 0.8)
1608
            else
1609
              if rr == 1 then
1610
                m.VertexColor = Vector3.new(0.8, 1, 0.8)
1611
              end
1612
            end
1613
          end
1614
          game:GetService("RunService").Heartbeat:wait()
1615
          coroutine.resume(coroutine.create(function(e)
1616
    wait(1)
1617
    e.CanCollide = true
1618
    game:GetService("Debris"):AddItem(e, 17.5)
1619
    e.Touched:connect(function(hit)
1620
      if hit.Parent and hit.Parent:FindFirstChild("Humanoid") and e:FindFirstChild("BONUSDUCK") == nil then
1621
        hit.Parent.Humanoid:TakeDamage(-2.5)
1622
        if hit.Parent:FindFirstChild("Decrease") then
1623
          s = Instance.new("IntValue", hit.Parent.Decrease)
1624
          s.Name = "DecreaseAtk"
1625
          s.Value = -0.02
1626
          game:GetService("Debris"):AddItem(s, 30)
1627
        end
1628
        pp = Instance.new("BoolValue", e)
1629
        pp.Name = "BONUSDUCK"
1630
        e.Transparency = 1
1631
        e.Anchored = true
1632
        e.CanCollide = false
1633
        local ss = Instance.new("Sparkles", e)
1634
        local so = {"261637666", "261637644", "261637620", "261637599", "261637593"}
1635
        local sp = Instance.new("Sound", e)
1636
        sp.Volume = -0.15 + e.Size.x
1637
        sp.SoundId = "http://www.roblox.com/asset/?id=" .. so[math.random(1, 5)]
1638
        sp:Play()
1639
        wait(0.33)
1640
        ss.Enabled = false
1641
        wait(1)
1642
        e:Remove()
1643
      end
1644
    end)
1645
    wait(10 + math.random(0, 20) / 20)
1646
    if e.Parent and e:FindFirstChild("BONUSDUCK") == nil then
1647
      for i = 1, 4 do
1648
        e.Transparency = 1
1649
        wait(0.2)
1650
        e.Transparency = 0
1651
        wait(0.2)
1652
      end
1653
      e.Parent = nil
1654
    end
1655
  end), p)
1656
        end
1657
        -- DECOMPILER ERROR at PC1398: LeaveBlock: unexpected jumping out IF_THEN_STMT
1658
1659
        -- DECOMPILER ERROR at PC1398: LeaveBlock: unexpected jumping out IF_STMT
1660
1661
      end
1662
    end
1663
  end
1664
  attack = false
1665
end
1666
do3 = function()
1667
  speech = {316403490, 316403787, 316403844, 316403916}
1668
  if attack == true then
1669
    return 
1670
  end
1671
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1672
    return 
1673
  end
1674
  if cooldownmax <= cooldowns[3] and mana.Value >= 25 then
1675
    attack = true
1676
    removeControl()
1677
    local dec = Instance.new("NumberValue", Decrease)
1678
    dec.Name = "DecreaseMvmt"
1679
    dec.Value = 10
1680
    mana.Value = mana.Value - 25
1681
    num = 0
1682
    local dec2 = Instance.new("NumberValue", Decrease)
1683
    dec2.Name = "DecreaseDef"
1684
    dec2.Value = -1.25
1685
    local pod = part(3, workspace, 0, 0, BrickColor.new("Reddish brown"), "Podium", vt(2, 2.5, 2), "WoodPlanks", true)
1686
    pod.CFrame = Torso.CFrame * CFrame.new(0, -1.8, -2)
1687
    for i = 1, 4 do
1688
      MagicCloud(BrickColor.new("White"), cf(pod.Position) * cf(math.random(-80, 80) / 100, math.random(-100, 150) / 100, math.random(-80, 80) / 100) * euler(math.rad(math.random(-180, 180)), math.rad(math.random(-180, 180)), math.rad(math.random(-180, 180))), 3, 5, 5, 0.1, 0.1, 0.1, 0.05)
1689
    end
1690
    pod.Rotation = Torso.Rotation
1691
    pod.CanCollide = true
1692
    local pod2 = part(3, workspace, 0, 0, BrickColor.new("Reddish brown"), "Podium", vt(2, 1, 2), "WoodPlanks", true)
1693
    local msh = mesh("SpecialMesh", pod2, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
1694
    pod2.CFrame = pod.CFrame * CFrame.new(0, 1.75, 0)
1695
    pod2.Rotation = pod.Rotation + Vector3.new(0, 180, 0)
1696
    pod2.CanCollide = true
1697
    speeching = true
1698
    local snd = Instance.new("Sound", Head)
1699
    snd.Volume = 1
1700
    snd.SoundId = "http://www.roblox.com/asset/?id=" .. speech[math.random(1, #speech)]
1701
    game:GetService("Debris"):AddItem(snd, snd.TimeLength + 5)
1702
    for i = 0, 1, 0.1 do
1703
      swait()
1704
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
1705
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1706
      RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.3)
1707
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1708
      LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
1709
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1710
      RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
1711
      LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
1712
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1713
        do
1714
          if StaggerHit.Value == true then
1715
            break
1716
          end
1717
          -- DECOMPILER ERROR at PC441: LeaveBlock: unexpected jumping out IF_THEN_STMT
1718
1719
          -- DECOMPILER ERROR at PC441: LeaveBlock: unexpected jumping out IF_STMT
1720
1721
        end
1722
      end
1723
    end
1724
    snd:Play()
1725
    numofanim = 0
1726
    deb = false
1727
    while speeching do
1728
      swait()
1729
      num = num + 1
1730
      local rng = math.random(0, 100)
1731
      if 90 + numofanim < rng and deb == false then
1732
        coroutine.resume(coroutine.create(function()
1733
    deb = true
1734
    local anim = math.random(0, 100)
1735
    if anim <= 25 then
1736
      numofanim = numofanim + 2
1737
      for i = 0, 1, 0.1 do
1738
        swait()
1739
        Neck.C0 = clerp(Neck.C0, necko * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
1740
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1741
        RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(2.3, 0, 0.2) * euler(0, 0, 0), 0.3)
1742
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1743
        LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
1744
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1745
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
1746
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
1747
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1748
          do
1749
            if StaggerHit.Value == true then
1750
              break
1751
            end
1752
            -- DECOMPILER ERROR at PC211: LeaveBlock: unexpected jumping out IF_THEN_STMT
1753
1754
            -- DECOMPILER ERROR at PC211: LeaveBlock: unexpected jumping out IF_STMT
1755
1756
          end
1757
        end
1758
      end
1759
      for i = 0, 1, 0.025 do
1760
        swait()
1761
      end
1762
      for i = 0, 1, 0.1 do
1763
        swait()
1764
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
1765
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1766
        RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.3)
1767
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1768
        LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
1769
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1770
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
1771
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
1772
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1773
          do
1774
            if StaggerHit.Value == true then
1775
              break
1776
            end
1777
            -- DECOMPILER ERROR at PC418: LeaveBlock: unexpected jumping out IF_THEN_STMT
1778
1779
            -- DECOMPILER ERROR at PC418: LeaveBlock: unexpected jumping out IF_STMT
1780
1781
          end
1782
        end
1783
      end
1784
    else
1785
      if anim > 25 and anim <= 50 then
1786
        numofanim = numofanim + 2
1787
        local reps = math.random(2, 4)
1788
        local repsdone = 0
1789
        repeat
1790
          for i = 0, 1, 0.15 do
1791
            swait()
1792
            Neck.C0 = clerp(Neck.C0, necko * euler(0.15, 0.1, 0) * euler(0, 0, 0), 0.15)
1793
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.15)
1794
            RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(2, 0, -0.15) * euler(0, 0, 0), 0.15)
1795
            RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
1796
            LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.15)
1797
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
1798
            RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.15)
1799
            LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.15)
1800
            if Stagger.Value ~= true and StunT.Value > Stun.Value then
1801
              do
1802
                if StaggerHit.Value == true then
1803
                  break
1804
                end
1805
                -- DECOMPILER ERROR at PC632: LeaveBlock: unexpected jumping out IF_THEN_STMT
1806
1807
                -- DECOMPILER ERROR at PC632: LeaveBlock: unexpected jumping out IF_STMT
1808
1809
              end
1810
            end
1811
          end
1812
          for i = 0, 1, 0.1 do
1813
            swait()
1814
            Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0) * euler(0, 0, 0), 0.5)
1815
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1816
            RW.C0 = clerp(RW.C0, cf(1.35, 0.3, -0.5) * euler(1.4, 0, -0.15) * euler(0, 0, 0), 0.7)
1817
            RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
1818
            LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.5)
1819
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
1820
            RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.5)
1821
            LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.5)
1822
            if Stagger.Value ~= true and StunT.Value > Stun.Value then
1823
              do
1824
                if StaggerHit.Value == true then
1825
                  break
1826
                end
1827
                -- DECOMPILER ERROR at PC832: LeaveBlock: unexpected jumping out IF_THEN_STMT
1828
1829
                -- DECOMPILER ERROR at PC832: LeaveBlock: unexpected jumping out IF_STMT
1830
1831
              end
1832
            end
1833
          end
1834
          repsdone = repsdone + 1
1835
        until repsdone == reps
1836
      else
1837
        do
1838
          if anim > 50 and anim <= 75 then
1839
            numofanim = numofanim + 2
1840
            for i = 0, 1, 0.1 do
1841
              swait()
1842
              Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0) * euler(0, 0, 0), 0.3)
1843
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1844
              RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.3)
1845
              RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1846
              LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
1847
              LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1848
              RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
1849
              LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
1850
              if Stagger.Value ~= true and StunT.Value > Stun.Value then
1851
                do
1852
                  if StaggerHit.Value == true then
1853
                    break
1854
                  end
1855
                  -- DECOMPILER ERROR at PC1043: LeaveBlock: unexpected jumping out IF_THEN_STMT
1856
1857
                  -- DECOMPILER ERROR at PC1043: LeaveBlock: unexpected jumping out IF_STMT
1858
1859
                end
1860
              end
1861
            end
1862
            for i = 0, 1, 0.25 do
1863
              swait()
1864
            end
1865
            for i = 0, 1, 0.1 do
1866
              swait()
1867
              Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.5)
1868
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1869
              RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.5)
1870
              RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
1871
              LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.5)
1872
              LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
1873
              RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.5)
1874
              LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.5)
1875
              if Stagger.Value ~= true and StunT.Value > Stun.Value then
1876
                do
1877
                  if StaggerHit.Value == true then
1878
                    break
1879
                  end
1880
                  -- DECOMPILER ERROR at PC1250: LeaveBlock: unexpected jumping out IF_THEN_STMT
1881
1882
                  -- DECOMPILER ERROR at PC1250: LeaveBlock: unexpected jumping out IF_STMT
1883
1884
                end
1885
              end
1886
            end
1887
          end
1888
          deb = false
1889
        end
1890
      end
1891
    end
1892
  end))
1893
      end
1894
      if snd.TimeLength * 30 <= num then
1895
        speeching = false
1896
      end
1897
    end
1898
    do
1899
      do
1900
        local col = {"Bright red", "Bright yellow", "Bright orange"}
1901
        MagicCircle(BrickColor.new(col[math.random(1, #col)]), "SmoothPlastic", cf(pod.Position), 5, 5, 5, 10.5, 10.5, 10.5, 0.1, 1)
1902
        for i = 1, 4 do
1903
          MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(pod.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 5, 5, 5, 6, 6, 6, 0.1)
1904
        end
1905
        so("216782105", pod, 0.5, 1.5)
1906
        MagniDamage(pod, 15, 15, 20, math.random(35, 55), "Normal", pod, 0.15, 2, math.random(55, 97), true, true, false)
1907
        MagniBuff(RootPart, 45, "Defense", -0.65, 800)
1908
        MagniBuff(RootPart, 45, "Movement", -0.25, 800)
1909
        MagniBuff(RootPart, 45, "Damage", -0.8, 800)
1910
        showDamage(Character, 10, "Damage")
1911
        Character.Humanoid:TakeDamage(10)
1912
        Stagger.Value = true
1913
        cooldowns[3] = 0
1914
        pod.Parent = nil
1915
        pod2.Parent = nil
1916
        dec.Parent = nil
1917
        dec2.Parent = nil
1918
        attack = false
1919
        resumeControl()
1920
      end
1921
    end
1922
  end
1923
end
1924
do4 = function()
1925
  if attack == true then
1926
    return 
1927
  end
1928
if Player.Name == Player.Name then
1929
    if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1930
      return 
1931
    end
1932
    local hitfloord, posfloord = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 10, Character)
1933
    if cooldownmax <= cooldowns[4] and mana.Value >= 50 then
1934
      attack = true
1935
      stop = true
1936
      mana.Value = mana.Value - 50
1937
      local s = game.Players.LocalPlayer.Character.Torso
1938
      do
1939
        local p = Instance.new("Sound", s)
1940
        p.SoundId = "http://www.roblox.com/asset/?id=" .. xl[math.random(1, #xl)]
1941
        p.Volume = 1
1942
        game:GetService("Debris"):AddItem(p, 4)
1943
        p:Play()
1944
        local sl = Instance.new("IntValue", s.Parent.Stats.Decrease)
1945
        sl.Name = "DecreaseMvmt"
1946
        sl.Value = 100
1947
        local xdir = RootPart.CFrame.lookVector
1948
        local xpos = posfloord - Vector3.new(0, 66, 0) + xdir * 25
1949
        local building = Instance.new("Model", workspace)
1950
        local p = Instance.new("Part", building)
1951
        p.TopSurface = 0
1952
        p.BottomSurface = 0
1953
        p.Anchored = true
1954
        p.CanCollide = true
1955
        p.formFactor = "Symmetric"
1956
        p.Material = "Concrete"
1957
        p.Size = Vector3.new(30, 90, 30)
1958
        p.CFrame = CFrame.new(xpos, xpos + RootPart.CFrame.lookVector * 5)
1959
        building.PrimaryPart = p
1960
        local ps = Instance.new("Part", workspace)
1961
        ps.Anchored = true
1962
        ps.CanCollide = false
1963
        ps.CFrame = CFrame.new(posfloord + RootPart.CFrame.lookVector * 25)
1964
        ps.Size = Vector3.new(33, 1, 33)
1965
        ps.Transparency = 1
1966
        local pem = Instance.new("ParticleEmitter", ps)
1967
        pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
1968
        pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 5), NumberSequenceKeypoint.new(1, 10)})
1969
        pem.Lifetime = NumberRange.new(2.5, 3.5)
1970
        pem.RotSpeed = NumberRange.new(-100, 100)
1971
        pem.Rotation = NumberRange.new(-350, 350)
1972
        pem.Texture = "http://www.roblox.com/asset/?id=133619974"
1973
        pem.Speed = NumberRange.new(0, 0)
1974
        pem.Acceleration = Vector3.new(0, 0, 0)
1975
        pem.VelocitySpread = 180
1976
        pem.Rate = 250
1977
        pem.Enabled = false
1978
        for y = -1, 3 do
1979
          for r = -1, 1 do
1980
            local p = Instance.new("Part", building)
1981
            p.TopSurface = 0
1982
            p.BottomSurface = 0
1983
            p.Anchored = true
1984
            p.CanCollide = false
1985
            p.formFactor = "Custom"
1986
            p.Size = Vector3.new(30.1, 8, 8)
1987
            p.CFrame = building.PrimaryPart.CFrame * CFrame.new(0, 14 * y - 8, 10 * r)
1988
            p.BrickColor = BrickColor.new("Pastel light blue")
1989
            p.Reflectance = 0.33
1990
            p.Material = "SmoothPlastic"
1991
          end
1992
        end
1993
        local cam = workspace.CurrentCamera
1994
        cam.CameraType = "Scriptable"
1995
        cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 120, 0) - xdir * 100, building.PrimaryPart.CFrame * CFrame.new(0, 100, 0), 4)
1996
        for i = 1, 15 do
1997
          swait()
1998
          handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.1)
1999
          Neck.C0 = clerp(Neck.C0, necko * euler(0.7, 0, 0), 0.3)
2000
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.2)
2001
          RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(-0.6, 0, 0) * euler(0, 0, 0.4), 0.2)
2002
          RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2003
          LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(0.6, 0, 0) * euler(0, 0, -0.4), 0.2)
2004
          LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2005
          RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.2)
2006
          LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.2)
2007
          building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100)))
2008
        end
2009
        pem.Enabled = true
2010
        for i = 1, 25 do
2011
          swait()
2012
          handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.05)
2013
          Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.05)
2014
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.05)
2015
          RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(0, 0, 0) * euler(0, 0, 0.4), 0.05)
2016
          RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.05)
2017
          LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(0.6, 0, 0) * euler(0, 0, -0.5), 0.05)
2018
          LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.05)
2019
          RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.05)
2020
          LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.05)
2021
          building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 15, math.random(-100, 100) / 100)))
2022
        end
2023
        for i = 1, 40 do
2024
          swait()
2025
          handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.05)
2026
          Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.1)
2027
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.1)
2028
          RW.C0 = clerp(RW.C0, cf(1.3, 1, 0) * euler(2.5, 0, 0) * euler(0, 0, 0.4), 0.1)
2029
          RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
2030
          LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(0.6, 0, 0) * euler(0, 0, -0.5), 0.1)
2031
          LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
2032
          RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.1)
2033
          LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.1)
2034
          building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 40, math.random(-100, 100) / 100)))
2035
        end
2036
        do
2037
          for i = 1, 25 do
2038
            swait()
2039
            building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 80, math.random(-100, 100) / 100)))
2040
          end
2041
        end
2042
        pem.Enabled = false
2043
        game:GetService("Debris"):AddItem(ps, 5)
2044
        for i = 1, 15 do
2045
          swait()
2046
          handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.25)
2047
          Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0), 0.3)
2048
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.5, 0, 0), 0.35)
2049
          RW.C0 = clerp(RW.C0, cf(1.5, 1, 0) * euler(0, 0, 0) * euler(0.3, 0, 0.6), 0.35)
2050
          RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2051
          LW.C0 = clerp(LW.C0, cf(-1.5, 1, 0) * euler(-0.5, 0, 0) * euler(0, 0, -0.7), 0.35)
2052
          LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2053
          RH.C0 = clerp(RH.C0, cf(1, 0.25, -0.5) * euler(0.55, 0, 0) * euler(0, math.pi / 2.2, 0), 0.35)
2054
          LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * euler(-0.7, 0, 0) * euler(0, -math.pi / 1.8, 0), 0.35)
2055
        end
2056
        for _,v in pairs(workspace:children()) do
2057
          if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
2058
            local h, t = v.Humanoid, v.Torso
2059
            if h.Health > 0 and game.Players:GetPlayerFromCharacter(v) ~= nil then
2060
          end
2061
end
2062
end
2063
        local eff = Instance.new("Part", workspace)
2064
        eff.formFactor = "Custom"
2065
        eff.Size = Vector3.new(1, 1, 1)
2066
        eff.CFrame = CFrame.new(posfloord)
2067
        eff.BrickColor = BrickColor.new("Bright yellow")
2068
        local m = Instance.new("SpecialMesh", eff)
2069
        m.MeshType = "FileMesh"
2070
        m.MeshId = "http://www.roblox.com/asset/?id=20329976"
2071
        m.Scale = Vector3.new(10, 10, 10)
2072
        eff.Parent = workspace
2073
        eff.Name = "Bewm"
2074
        eff.Anchored = true
2075
        eff.CanCollide = false
2076
        game:GetService("Debris"):AddItem(eff, 5)
2077
        coroutine.resume(coroutine.create(function(p, V, x)
2078
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
2079
    for i = 1, 30 do
2080
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(55, 0, 55) / 20
2081
      p.Transparency = i / 30
2082
      p.CFrame = p.CFrame * V
2083
      swait()
2084
    end
2085
    p:Remove()
2086
  end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
2087
        local sbs = Instance.new("BodyPosition", RootPart)
2088
        sbs.P = 3000
2089
        sbs.D = 1000
2090
        sbs.maxForce = Vector3.new(500000, 500000000, 500000)
2091
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 2000, 0)
2092
        local gl = Instance.new("BodyGyro", RootPart)
2093
        gl.P = 8000
2094
        gl.D = 400
2095
        gl.maxTorque = Vector3.new(50000000, 0, 50000000)
2096
        gl.cframe = RootPart.CFrame
2097
        local sk = Instance.new("Part", workspace)
2098
        sk.Name = "D"
2099
        sk.CanCollide = false
2100
        sk.Anchored = true
2101
        sk.Transparency = 1
2102
        sk.Size = Vector3.new(1, 1, 1)
2103
        sk.CFrame = RootPart.CFrame
2104
        local p = Instance.new("Sound", sk)
2105
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "134012322"
2106
        p.Volume = 1
2107
        p.Pitch = 0.8
2108
        game:GetService("Debris"):AddItem(sk, 4)
2109
        for i = 1, 5 do
2110
          swait()
2111
          handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.4)
2112
          Neck.C0 = clerp(Neck.C0, necko * euler(-0.7, 0, 0), 0.4)
2113
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.4)
2114
          RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(-0.2, 0, 0) * euler(0, 0, 0.1), 0.4)
2115
          RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
2116
          LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(math.pi * 0.95, 0, 0) * euler(0, 0, -0.2), 0.4)
2117
          LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
2118
          RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.3) * euler(0, math.pi / 2, 0), 0.4)
2119
          LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.3) * euler(0, -math.pi / 2, 0), 0.4)
2120
        end
2121
        wait(0.5)
2122
        cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 100, 0) - xdir * 65, building.PrimaryPart.CFrame * CFrame.new(0, 60, 0), 2)
2123
        wait(0.5)
2124
        local pz = Instance.new("Sound", building.PrimaryPart)
2125
        pz.SoundId = "http://www.roblox.com/asset/?id=" .. "167273611"
2126
        pz.Pitch = 1
2127
        pz.Volume = 1
2128
        pz:Play()
2129
        wait(1)
2130
        handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 1)
2131
        Neck.C0 = clerp(Neck.C0, necko * euler(-0.7, 0, 0), 1)
2132
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 1)
2133
        RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(-math.pi, 0, 0) * euler(0, 0, 0.5), 1)
2134
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 1)
2135
        LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(math.pi, 0, 0) * euler(0, 0, -0.5), 1)
2136
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 1)
2137
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 1)
2138
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 1)
2139
        sbs:Destroy()
2140
        RootPart.Anchored = true
2141
        gl:Destroy()
2142
        local start = building.PrimaryPart.CFrame * CFrame.new(0, 810, 0)
2143
        local xpart = Instance.new("Part", s.Parent)
2144
        xpart.Name = "ROAD ROLLER DA!"
2145
        xpart.TopSurface = 0
2146
        xpart.BottomSurface = 0
2147
        xpart.Anchored = true
2148
        xpart.CanCollide = false
2149
        xpart.Size = Vector3.new(1, 1, 1)
2150
        local xm = Instance.new("SpecialMesh", xpart)
2151
        xm.MeshType = "FileMesh"
2152
        xm.Scale = Vector3.new(7.5, 7.5, 7.5)
2153
        xm.TextureId = "http://www.roblox.com/asset?id=113216977"
2154
        xm.MeshId = "http://www.roblox.com/asset?id=113216991"
2155
        for i = 1, 47 do
2156
          swait()
2157
          pz.Volume = 0.05 + i * 0.2
2158
          cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 140, 0) - xdir * 90, s.CFrame, 5.1 - i * 0.1)
2159
          RootPart.CFrame = start * CFrame.new(0, -i * 3.5 - i ^ 1.65 + 5, 0) * CFrame.Angles(-math.pi, 0, 0)
2160
          xpart.CFrame = RootPart.CFrame * CFrame.new(0, 2, 2) * CFrame.Angles(math.pi, 0, 0)
2161
        end
2162
        game:GetService("Debris"):AddItem(pz, 3)
2163
        local p = Instance.new("Sound", s)
2164
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "165970126"
2165
        p.Volume = 1
2166
        p.Pitch = 0.85
2167
        game:GetService("Debris"):AddItem(p, 4)
2168
        p:Play()
2169
        local p = Instance.new("Sound", workspace)
2170
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "165970126"
2171
        p.Volume = 0.05
2172
        p.Pitch = 0.85
2173
        game:GetService("Debris"):AddItem(p, 4)
2174
        p:Play()
2175
        MagniDamage(RootPart, 55, 20, 30, math.random(50, 100), "Normal", building.PrimaryPart, 0.05, 2, 9999, false, false, false, "Defense", 0, 0)
2176
        MagniDamage(building.PrimaryPart, 55, 20, 30, math.random(100, 150), "Normal", building.PrimaryPart, 0.05, 2, 9999, false, false, false, "Defense", 0, 0)
2177
        local p = Instance.new("Sound", RootPart)
2178
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "216782105"
2179
        p.Pitch = 0.8
2180
        p.Volume = 1
2181
        p:Play()
2182
        game:GetService("Debris"):AddItem(p, 4)
2183
        local p = Instance.new("Sound", s)
2184
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "169628396"
2185
        p.Volume = 1
2186
        p.Pitch = 0.8
2187
        game:GetService("Debris"):AddItem(p, 4)
2188
        p:Play()
2189
        local p = Instance.new("Sound", workspace)
2190
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "169628396"
2191
        p.Volume = 0.05
2192
        p.Pitch = 0.8
2193
        game:GetService("Debris"):AddItem(p, 4)
2194
        p:Play()
2195
        local pem = Instance.new("ParticleEmitter", building.PrimaryPart)
2196
        pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2197
        pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 8), NumberSequenceKeypoint.new(1, 10)})
2198
        pem.Lifetime = NumberRange.new(2.5, 3.5)
2199
        pem.RotSpeed = NumberRange.new(-69, 69)
2200
        pem.Rotation = NumberRange.new(-350, 350)
2201
        pem.Texture = "http://www.roblox.com/asset/?id=133619974"
2202
        pem.Speed = NumberRange.new(2, 12)
2203
        pem.Acceleration = Vector3.new(0, -10, 0)
2204
        pem.VelocitySpread = 180
2205
        pem.Rate = 5
2206
        pem.Enabled = true
2207
        spawn(function()
2208
    wait()
2209
    pem:Emit(200)
2210
  end)
2211
        local kek = {"http://www.roblox.com/asset/?id=48803786", "http://www.roblox.com/asset/?id=116579230", "http://www.roblox.com/asset/?id=187884226", "http://www.roblox.com/asset/?id=2426617"}
2212
        for _,v in pairs(building:children()) do
2213
          if v.BrickColor == BrickColor.new("Pastel light blue") then
2214
            do
2215
              if _ % 3 == 0 then
2216
                local p = Instance.new("Sound", v)
2217
                p.SoundId = "http://www.roblox.com/asset/?id=" .. "144884907"
2218
                p.Pitch = math.random(65, 80) / 100
2219
                p.Volume = 1
2220
                p:Play()
2221
                game:GetService("Debris"):AddItem(p, 4)
2222
              end
2223
              local sks = Instance.new("Part", building)
2224
              sks.Name = "DIIC"
2225
              sks.Anchored = true
2226
              sks.CanCollide = false
2227
              sks.formFactor = "Custom"
2228
              sks.Size = Vector3.new(0.2, 8, 8)
2229
              sks.BrickColor = BrickColor:Red()
2230
              sks.CFrame = v.CFrame * CFrame.new(15, 0, 0)
2231
              sks.Transparency = 1
2232
              local pem = Instance.new("ParticleEmitter", sks)
2233
              pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2234
              pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.15), NumberSequenceKeypoint.new(1, 0.15)})
2235
              pem.Lifetime = NumberRange.new(3.5, 4)
2236
              pem.RotSpeed = NumberRange.new(-110, 110)
2237
              pem.Rotation = NumberRange.new(-350, 350)
2238
              pem.Texture = "http://www.roblox.com/asset/?id=316915922"
2239
              pem.Speed = NumberRange.new(5, 50)
2240
              pem.Acceleration = Vector3.new(0, -20, 0)
2241
              pem.VelocitySpread = 80
2242
              pem.Rate = 0
2243
              pem.LightEmission = -0.2
2244
              pem.Enabled = true
2245
              pem.EmissionDirection = "Right"
2246
              spawn(function()
2247
    wait()
2248
    pem:Emit(50)
2249
  end)
2250
              local pem = Instance.new("ParticleEmitter", sks)
2251
              pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2252
              pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1), NumberSequenceKeypoint.new(1, 0.1)})
2253
              pem.Lifetime = NumberRange.new(3.5, 4)
2254
              pem.RotSpeed = NumberRange.new(-110, 110)
2255
              pem.Rotation = NumberRange.new(-350, 350)
2256
              pem.Texture = "http://www.roblox.com/asset/?id=316915935"
2257
              pem.Speed = NumberRange.new(5, 50)
2258
              pem.Acceleration = Vector3.new(0, -22, 0)
2259
              pem.VelocitySpread = 70
2260
              pem.Rate = 0
2261
              pem.LightEmission = -0.2
2262
              pem.Enabled = true
2263
              pem.EmissionDirection = "Right"
2264
              spawn(function()
2265
    wait()
2266
    pem:Emit(50)
2267
  end)
2268
              local pem = Instance.new("ParticleEmitter", sks)
2269
              pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2270
              pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0.2)})
2271
              pem.Lifetime = NumberRange.new(3.5, 4)
2272
              pem.RotSpeed = NumberRange.new(-110, 110)
2273
              pem.Rotation = NumberRange.new(-350, 350)
2274
              pem.Texture = "http://www.roblox.com/asset/?id=316915947"
2275
              pem.Speed = NumberRange.new(5, 55)
2276
              pem.Acceleration = Vector3.new(0, -20, 0)
2277
              pem.VelocitySpread = 60
2278
              pem.Rate = 0
2279
              pem.LightEmission = -0.2
2280
              pem.Enabled = true
2281
              pem.EmissionDirection = "Right"
2282
              spawn(function()
2283
    wait()
2284
    pem:Emit(50)
2285
  end)
2286
              local sks = Instance.new("Part", building)
2287
              sks.Name = "DIIC"
2288
              sks.Anchored = true
2289
              sks.CanCollide = false
2290
              sks.formFactor = "Custom"
2291
              sks.Size = Vector3.new(0.2, 8, 8)
2292
              sks.BrickColor = BrickColor:Red()
2293
              sks.CFrame = v.CFrame * CFrame.new(-15, 0, 0)
2294
              sks.Transparency = 1
2295
              local pem = Instance.new("ParticleEmitter", sks)
2296
              pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2297
              pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.15), NumberSequenceKeypoint.new(1, 0.15)})
2298
              pem.Lifetime = NumberRange.new(3.5, 4)
2299
              pem.RotSpeed = NumberRange.new(-110, 110)
2300
              pem.Rotation = NumberRange.new(-350, 350)
2301
              pem.Texture = "http://www.roblox.com/asset/?id=316915922"
2302
              pem.Speed = NumberRange.new(5, 50)
2303
              pem.Acceleration = Vector3.new(0, -20, 0)
2304
              pem.VelocitySpread = 80
2305
              pem.Rate = 0
2306
              pem.LightEmission = -0.2
2307
              pem.Enabled = true
2308
              pem.EmissionDirection = "Left"
2309
              spawn(function()
2310
    wait()
2311
    pem:Emit(50)
2312
  end)
2313
              local pem = Instance.new("ParticleEmitter", sks)
2314
              pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2315
              pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1), NumberSequenceKeypoint.new(1, 0.1)})
2316
              pem.Lifetime = NumberRange.new(3.5, 4)
2317
              pem.RotSpeed = NumberRange.new(-110, 110)
2318
              pem.Rotation = NumberRange.new(-350, 350)
2319
              pem.Texture = "http://www.roblox.com/asset/?id=316915935"
2320
              pem.Speed = NumberRange.new(5, 50)
2321
              pem.Acceleration = Vector3.new(0, -22, 0)
2322
              pem.VelocitySpread = 70
2323
              pem.Rate = 0
2324
              pem.LightEmission = -0.2
2325
              pem.Enabled = true
2326
              pem.EmissionDirection = "Left"
2327
              spawn(function()
2328
    wait()
2329
    pem:Emit(50)
2330
  end)
2331
              local pem = Instance.new("ParticleEmitter", sks)
2332
              pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
2333
              pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0.2)})
2334
              pem.Lifetime = NumberRange.new(3.5, 4)
2335
              pem.RotSpeed = NumberRange.new(-110, 110)
2336
              pem.Rotation = NumberRange.new(-350, 350)
2337
              pem.Texture = "http://www.roblox.com/asset/?id=316915947"
2338
              pem.Speed = NumberRange.new(5, 55)
2339
              pem.Acceleration = Vector3.new(0, -20, 0)
2340
              pem.VelocitySpread = 60
2341
              pem.Rate = 0
2342
              pem.LightEmission = -0.2
2343
              pem.Enabled = true
2344
              pem.EmissionDirection = "Left"
2345
              spawn(function()
2346
    wait()
2347
    pem:Emit(50)
2348
  end)
2349
              local thed = Instance.new("Decal", v)
2350
              thed.Face = "Left"
2351
              thed.Texture = kek[math.random(1, #kek)]
2352
              do
2353
                local thed = Instance.new("Decal", v)
2354
                thed.Face = "Right"
2355
                thed.Texture = kek[math.random(1, #kek)]
2356
                -- DECOMPILER ERROR at PC2831: LeaveBlock: unexpected jumping out DO_STMT
2357
2358
                -- DECOMPILER ERROR at PC2831: LeaveBlock: unexpected jumping out IF_THEN_STMT
2359
2360
                -- DECOMPILER ERROR at PC2831: LeaveBlock: unexpected jumping out IF_STMT
2361
2362
              end
2363
            end
2364
          end
2365
        end
2366
        local eff = Instance.new("Part", workspace)
2367
        eff.formFactor = "Custom"
2368
        eff.Size = Vector3.new(1, 1, 1)
2369
        eff.CFrame = CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0, 35, 0))
2370
        eff.BrickColor = BrickColor.new("Institutional white")
2371
        local m = Instance.new("SpecialMesh", eff)
2372
        m.MeshType = "FileMesh"
2373
        m.MeshId = "http://www.roblox.com/asset/?id=20329976"
2374
        m.Scale = Vector3.new(10, 10, 10)
2375
        eff.Parent = workspace
2376
        eff.Name = "Bewm"
2377
        eff.Anchored = true
2378
        eff.CanCollide = false
2379
        game:GetService("Debris"):AddItem(eff, 5)
2380
        coroutine.resume(coroutine.create(function(p, V, x)
2381
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
2382
    for i = 1, 20 do
2383
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(65, 0, 65) / 20
2384
      p.Transparency = i / 20
2385
      p.CFrame = p.CFrame * V
2386
      swait()
2387
    end
2388
    p:Remove()
2389
  end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
2390
        local eff = Instance.new("Part", workspace)
2391
        eff.formFactor = "Custom"
2392
        eff.Size = Vector3.new(1, 1, 1)
2393
        eff.CFrame = CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0, 35, 0))
2394
        eff.BrickColor = BrickColor.new("Institutional white")
2395
        local m = Instance.new("SpecialMesh", eff)
2396
        m.MeshType = "FileMesh"
2397
        m.MeshId = "http://www.roblox.com/asset/?id=20329976"
2398
        m.Scale = Vector3.new(10, 10, 10)
2399
        eff.Parent = workspace
2400
        eff.Name = "Bewm"
2401
        eff.Anchored = true
2402
        eff.CanCollide = false
2403
        game:GetService("Debris"):AddItem(eff, 5)
2404
        coroutine.resume(coroutine.create(function(p, V, x)
2405
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
2406
    for i = 1, 10 do
2407
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(145, 0, 145) / 10
2408
      p.Transparency = 0.5 + i / 20
2409
      p.CFrame = p.CFrame * V
2410
      swait()
2411
    end
2412
    p:Remove()
2413
  end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
2414
        local eff = Instance.new("Part", workspace)
2415
        eff.formFactor = "Custom"
2416
        eff.Size = Vector3.new(1, 1, 1)
2417
        eff.CFrame = CFrame.new(building.PrimaryPart.CFrame.p + Vector3.new(0, 40, 0))
2418
        eff.BrickColor = BrickColor.new("Institutional white")
2419
        local m = Instance.new("SpecialMesh", eff)
2420
        m.MeshType = "FileMesh"
2421
        m.MeshId = "http://www.roblox.com/asset/?id=20329976"
2422
        m.Scale = Vector3.new(10, 10, 10)
2423
        eff.Parent = workspace
2424
        eff.Name = "Bewm"
2425
        eff.Anchored = true
2426
        eff.CanCollide = false
2427
        game:GetService("Debris"):AddItem(eff, 5)
2428
        coroutine.resume(coroutine.create(function(p, V, x)
2429
    local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
2430
    for i = 1, 10 do
2431
      p.Mesh.Scale = p.Mesh.Scale + Vector3.new(125, 0, 125) / 10
2432
      p.Transparency = 0.5 + i / 20
2433
      p.CFrame = p.CFrame * V
2434
      swait()
2435
    end
2436
    p:Remove()
2437
  end), eff, CFrame.Angles(0, -math.rad(math.random(-10, 9) * 3 + 5), 0))
2438
        for _,v in pairs(workspace:children()) do
2439
          if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
2440
            local h, t = v.Humanoid, v.Torso
2441
          end
2442
        end
2443
        handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 1)
2444
        Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0), 0.3)
2445
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.5, 0, 0), 1)
2446
        RW.C0 = clerp(RW.C0, cf(1.5, 1, 0) * euler(0, 0, 0) * euler(0.3, 0, 0.6), 1)
2447
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2448
        LW.C0 = clerp(LW.C0, cf(-1.5, 1, 0) * euler(-0.5, 0, 0) * euler(0, 0, -0.7), 1)
2449
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2450
        RH.C0 = clerp(RH.C0, cf(1, 0.25, -0.5) * euler(0.55, 0, 0) * euler(0, math.pi / 2.2, 0), 1)
2451
        LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * euler(-0.7, 0, 0) * euler(0, -math.pi / 1.8, 0), 1)
2452
        for i = 1, 3 do
2453
          building:SetPrimaryPartCFrame(CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0, 2.5, 0)))
2454
          -- DECOMPILER ERROR at PC3348: Overwrote pending register: R44 in 'AssignReg'
2455
2456
          RootPart.CFrame = start * CFrame.new(0, -758.86938347034 - i * 2.5, 0) * CFrame.Angles(0, 0, 0)
2457
          xpart.CFrame = RootPart.CFrame * CFrame.new(0, -2, 2) * CFrame.Angles(0, 0, 0)
2458
          -- DECOMPILER ERROR at PC3375: Overwrote pending register: R44 in 'AssignReg'
2459
2460
          cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 0, 0) - xdir * 90, CFrame.new(s.Position), 0.5)
2461
          swait()
2462
        end
2463
        wait(0.5)
2464
        local p = Instance.new("Sound", RootPart)
2465
        p.SoundId = "http://www.roblox.com/asset/?id=" .. "169628396"
2466
        p.Volume = 1
2467
        p.Pitch = 1
2468
        game:GetService("Debris"):AddItem(p, 30)
2469
        p:Play()
2470
        cam:Interpolate(xpart.CFrame * CFrame.new(10, 10, -10), xpart.CFrame + Vector3.new(0, 2, 0), 1)
2471
        wait(4)
2472
        xpart:Remove()
2473
        RootPart.Anchored = false
2474
        cam.CameraType = "Custom"
2475
        sl.Parent = nil
2476
        attack = false
2477
        stop = false
2478
        cooldowns[4] = 0
2479
        wait(3)
2480
        building:Destroy()
2481
      end
2482
    end
2483
  end
2484
end
2485
taunt = function()
2486
  if attack == true then
2487
    return 
2488
  end
2489
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
2490
    return 
2491
  end
2492
  if cooldownmax <= cooldowns[5] and mana.Value >= 20 then
2493
    stop = false
2494
    attack = true
2495
    cooldowns[5] = 40
2496
    s = Character.Torso
2497
    local p = Instance.new("Sound", s)
2498
    p.SoundId = "http://www.roblox.com/asset/?id=" .. "318111747"
2499
    p.Volume = 1
2500
    game:GetService("Debris"):AddItem(p, 4)
2501
    p:Play()
2502
    for i = 1, 15 do
2503
      swait()
2504
      handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.1)
2505
      Neck.C0 = clerp(Neck.C0, necko * euler(-0.7, 0, 0), 0.2)
2506
      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.2)
2507
      RW.C0 = clerp(RW.C0, cf(1.3, 1.15, 0) * euler(math.pi * 0.99, 0, 0) * euler(0, 0, 0.2), 0.2)
2508
      RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2509
      LW.C0 = clerp(LW.C0, cf(-1.3, 1.15, 0) * euler(math.pi * 0.99, 0, 0) * euler(0, 0, -0.2), 0.2)
2510
      LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
2511
      RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.2)
2512
      LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.2)
2513
    end
2514
    local b = Instance.new("Part", workspace)
2515
    b.Name = "HEILx2"
2516
    b.TopSurface = 0
2517
    b.BottomSurface = 0
2518
    b.formFactor = "Symmetric"
2519
    b.CanCollide = false
2520
    b.Size = Vector3.new(3, 2, 2)
2521
    local m = Instance.new("SpecialMesh", b)
2522
    m.MeshType = "FileMesh"
2523
    m.MeshId = "http://www.roblox.com/asset/?id=192488915"
2524
    m.TextureId = "http://www.roblox.com/asset/?id=192488947"
2525
    local wa = Instance.new("Weld", b)
2526
    wa.Part0 = s.Parent["Right Arm"]
2527
    wa.Part1 = b
2528
    wa.C0 = CFrame.new(-1.65, -1.2, 0) * CFrame.Angles(math.pi * 1.025, 0, 0.2)
2529
    b.Transparency = 0
2530
    local p = Instance.new("Sound", s)
2531
    p.SoundId = "http://www.roblox.com/asset/?id=" .. "111124523"
2532
    p.Volume = 1
2533
    p.Pitch = math.random(80, 90) / 100
2534
    game:GetService("Debris"):AddItem(p, 4)
2535
    p:Play()
2536
    wait(0.5)
2537
    local p = Instance.new("Sound", s)
2538
    p.SoundId = "http://www.roblox.com/asset/?id=" .. "190126363"
2539
    p.Volume = 1
2540
    p.Pitch = math.random(80, 90) / 100
2541
    game:GetService("Debris"):AddItem(p, 4)
2542
    wait(0.2)
2543
    local trx = math.random(0, 100)
2544
    if trx <= 10 then
2545
      local bb = Instance.new("Part", b)
2546
      bb.Name = "HEIL"
2547
      bb.TopSurface = 0
2548
      bb.BottomSurface = 0
2549
      bb.formFactor = "Symmetric"
2550
      bb.CanCollide = false
2551
      bb.Size = Vector3.new(1, 1, 1)
2552
      local m = Instance.new("SpecialMesh", bb)
2553
      m.MeshType = "FileMesh"
2554
      m.MeshId = "http://www.roblox.com/asset/?id=9419831"
2555
      m.TextureId = "http://www.roblox.com/asset/?id=9419827"
2556
      m.Scale = Vector3.new(0.7, 0.7, 0.7)
2557
      local w = Instance.new("Weld", b)
2558
      w.Part0 = b
2559
      w.Part1 = bb
2560
      w.C0 = CFrame.new(0, 0.74, -0.25) * CFrame.Angles(0, 0, 0)
2561
      bb.Transparency = 0
2562
      local p = Instance.new("Sound", s)
2563
      p.SoundId = "http://www.roblox.com/asset/?id=" .. "111124523"
2564
      p.Volume = 1
2565
      p.Pitch = math.random(100, 110) / 100
2566
      game:GetService("Debris"):AddItem(p, 4)
2567
      p:Play()
2568
      wait(0.4)
2569
      local p = Instance.new("Sound", s)
2570
      p.SoundId = "http://www.roblox.com/asset/?id=" .. xe[math.random(1, #xe)]
2571
      p.Volume = 1
2572
      p.Pitch = 1.4
2573
      game:GetService("Debris"):AddItem(p, 4)
2574
      p:Play()
2575
      wait(1.5)
2576
    end
2577
    do
2578
      local topkek = {317667032, 317667048, 317667070, 317670161}
2579
      local dix = {13.8, 12, 12.35, 15}
2580
      local rando = math.random(1, 4)
2581
      if trx <= 10 then
2582
        local poop = {}
2583
        for i = 1, 33 do
2584
          local p = Instance.new("Sound", b)
2585
          p.SoundId = "http://www.roblox.com/asset/?id=" .. topkek[rando]
2586
          p.Volume = 1
2587
          p.Pitch = 1
2588
          if rando == 4 then
2589
            p.Pitch = 6.66
2590
          end
2591
          table.insert(poop, p)
2592
        end
2593
        wait(0.25)
2594
        for _,v in pairs(poop) do
2595
          v:Play()
2596
        end
2597
        wait(dix[rando] * 0.9 - 2.5)
2598
        wait(0.1)
2599
      else
2600
        do
2601
          do
2602
            local p = Instance.new("Sound", b)
2603
            p.SoundId = "http://www.roblox.com/asset/?id=" .. topkek[rando]
2604
            p.Volume = 1
2605
            p.Pitch = 1
2606
            if rando == 4 then
2607
              p.Pitch = 6.66
2608
            end
2609
            p:Play()
2610
            print(rando)
2611
            wait(dix[rando] * 0.9 - 2.5)
2612
            wait(0.1)
2613
            local thed = {142539074, 142539082, 142539090}
2614
            local p = Instance.new("Sound", s)
2615
            p.SoundId = "http://www.roblox.com/asset/?id=" .. thed[math.random(1, #thed)]
2616
            p.Volume = 1
2617
            p.Pitch = 1
2618
            game:GetService("Debris"):AddItem(p, 4)
2619
            p:Play()
2620
            local borb = Instance.new("NumberValue", s.Parent.Stats.Decrease)
2621
            borb.Name = "DecreaseMvmt"
2622
            borb.Value = 100
2623
            for i = 1, 15 do
2624
              swait()
2625
              handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.1)
2626
              Neck.C0 = clerp(Neck.C0, necko * euler(-1, 0, 0), 0.15)
2627
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.8) * euler(-1.4, 0, 0), 0.15)
2628
              RW.C0 = clerp(RW.C0, cf(1.3, 1.15, 0) * euler(math.pi * 1.15, 0, 0) * euler(0, 0, 0.1), 0.15)
2629
              RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
2630
              LW.C0 = clerp(LW.C0, cf(-1.3, 1.15, 0) * euler(math.pi * 1.15, 0, 0) * euler(0, 0, -0.1), 0.15)
2631
              LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
2632
              RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.5) * euler(-1.4, 0, 0.1) * euler(0, math.pi / 2, 0), 0.15)
2633
              LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.5) * euler(-1.4, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.15)
2634
            end
2635
            wait(0.1)
2636
            for i = 1, 10 do
2637
              swait()
2638
              handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.4, 0), 0.1)
2639
              Neck.C0 = clerp(Neck.C0, necko * euler(-1, 0, 0), 0.3)
2640
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.8) * euler(1.4, 0, 0), 0.3)
2641
              RW.C0 = clerp(RW.C0, cf(1.3, 1.15, 0) * euler(math.pi * 0.8, 0, 0) * euler(0, 0, 0.1), 0.3)
2642
              RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
2643
              LW.C0 = clerp(LW.C0, cf(-1.3, 1.15, 0) * euler(math.pi * 0.8, 0, 0) * euler(0, 0, -0.1), 0.3)
2644
              LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
2645
              RH.C0 = clerp(RH.C0, cf(1, -0.9, 0) * euler(1.4, 0, 0.1) * euler(0, math.pi / 2, 0), 0.3)
2646
              LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(1.4, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.3)
2647
              if i == 6 then
2648
                wa:Destroy()
2649
                local vb = Instance.new("BodyVelocity", b)
2650
                vb.P = 4000
2651
                vb.maxForce = Vector3.new(545000, 545000, 545000)
2652
                vb.velocity = RootPart.CFrame.lookVector * 220 + Vector3.new(0, 5, 0)
2653
                game:GetService("Debris"):AddItem(vb, 0.25)
2654
                local vb = Instance.new("BodyAngularVelocity", b)
2655
                vb.maxTorque = Vector3.new(500000, 500000, 500000)
2656
                vb.angularvelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2657
                game:GetService("Debris"):AddItem(vb, 0.25)
2658
                b.CanCollide = true
2659
                local sz = script.THEJUKES:clone()
2660
                sz.Disabled = false
2661
                sz.Parent = b
2662
                local tt = Instance.new("ObjectValue", sz)
2663
                tt.Name = "creator"
2664
                tt.Value = s.Parent
2665
              end
2666
            end
2667
            wait(0.2)
2668
            borb.Parent = nil
2669
            game:GetService("Debris"):AddItem(b, 5)
2670
            attack = false
2671
          end
2672
        end
2673
      end
2674
    end
2675
  end
2676
end
2677
DecreaseStat = function(Model, Stat, Amount, Duration)
2678
  if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
2679
    Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
2680
    d = Instance.new("NumberValue", Model.Stats.Decrease)
2681
    dur = Instance.new("NumberValue", d)
2682
    dur.Name = "Duration"
2683
    dur.Value = Duration
2684
    game:GetService("Debris"):AddItem(d, 20)
2685
    if Stat == "Damage" then
2686
      d.Name = "DecreaseAtk"
2687
    else
2688
      if Stat == "Defense" then
2689
        d.Name = "DecreaseDef"
2690
      else
2691
        if Stat == "Movement" then
2692
          d.Name = "DecreaseMvmt"
2693
        end
2694
      end
2695
    end
2696
    if Model:findFirstChild("Torso") ~= nil then
2697
      display = ""
2698
      if Stat == "Damage" then
2699
        if Amount > 0 then
2700
          display = "-Damage"
2701
        else
2702
          display = "+Damage"
2703
        end
2704
      else
2705
        if Stat == "Defense" then
2706
          if Amount > 0 then
2707
            display = "-Defense"
2708
          else
2709
            display = "+Defense"
2710
          end
2711
        else
2712
          if Stat == "Movement" then
2713
            if Amount > 0 then
2714
              display = "-Movement"
2715
            else
2716
              display = "+Movement"
2717
            end
2718
          end
2719
        end
2720
      end
2721
      showDamage(Model, display, "Debuff")
2722
    end
2723
    d.Value = Amount
2724
  end
2725
end
2726
GetDist = function(Part1, Part2, magni)
2727
  local targ = Part1.Position - Part2.Position
2728
  local mag = targ.magnitude
2729
  if mag <= magni then
2730
    return true
2731
  else
2732
    return false
2733
  end
2734
end
2735
MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
2736
  for _,c in pairs(workspace:children()) do
2737
    local hum = c:findFirstChild("Humanoid")
2738
    if hum ~= nil then
2739
      local head = nil
2740
      for _,d in pairs(c:children()) do
2741
        if d.className == "Model" and ranged ~= true then
2742
          head = d:findFirstChild("Hitbox")
2743
          if d.Parent == Character then
2744
            break
2745
          end
2746
          if head ~= nil then
2747
            local targ = head.Position - Part.Position
2748
            local mag = targ.magnitude
2749
            if mag <= magni and c.Name ~= Player.Name then
2750
              ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
2751
              ref.Anchored = true
2752
              ref.CFrame = cf(head.Position)
2753
              game:GetService("Debris"):AddItem(ref, 1)
2754
              hitnum = math.random(1, 5)
2755
              if hitnum == 1 then
2756
                so("199148971", ref, 1, 1)
2757
              else
2758
                if hitnum == 2 then
2759
                  so("199149025", ref, 1, 1)
2760
                else
2761
                  if hitnum == 3 then
2762
                    so("199149072", ref, 1, 1)
2763
                  else
2764
                    if hitnum == 4 then
2765
                      so("199149109", ref, 1, 1)
2766
                    else
2767
                      if hitnum == 5 then
2768
                        so("199149119", ref, 1, 1)
2769
                      end
2770
                    end
2771
                  end
2772
                end
2773
              end
2774
              StaggerHit.Value = true
2775
            end
2776
          end
2777
        end
2778
        do
2779
          if d.className == "Part" then
2780
            head = d
2781
            if head ~= nil then
2782
              local targ = head.Position - Part.Position
2783
              local mag = targ.magnitude
2784
              if mag <= magni and c.Name ~= Player.Name then
2785
                if stun == nil then
2786
                  stun = math.random(5, 10)
2787
                end
2788
                local Rang = nil
2789
                if Ranged == false then
2790
                  Rang = true
2791
                end
2792
                local stag = nil
2793
                if shbash == true then
2794
                  stag = true
2795
                end
2796
                Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
2797
              end
2798
            end
2799
          end
2800
          do
2801
            -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
2802
2803
          end
2804
        end
2805
      end
2806
    end
2807
  end
2808
end
2809
MagniBuff = function(Part, magni, Dec, DecAm, Dur, others)
2810
  if Player.Neutral == true then
2811
    DecreaseStat(Character, Dec, DecAm / 2, Dur)
2812
  end
2813
  for _,c in pairs(workspace:children()) do
2814
    local hum = c:findFirstChild("Humanoid")
2815
    if hum ~= nil then
2816
      local head = c:findFirstChild("Torso")
2817
      if head ~= nil then
2818
        local targ = head.Position - Part.Position
2819
        local mag = targ.magnitude
2820
        -- DECOMPILER ERROR at PC67: Unhandled construct in 'MakeBoolean' P1
2821
2822
        if others == nil and mag <= magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
2823
          DecreaseStat(head.Parent, Dec, DecAm, Dur)
2824
        end
2825
      end
2826
    end
2827
    if Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and mag <= magni and head.Parent ~= Character and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
2828
      DecreaseStat(head.Parent, Dec, DecAm, Dur)
2829
    end
2830
  end
2831
end
2832
rayCast = function(Pos, Dir, Max, Ignore)
2833
  return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
2834
end
2835
local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
2836
LastPoint = Point
2837
effect = function(Color, Ref, LP, P1, returnn)
2838
  if LP == nil or P1 == nil then
2839
    return 
2840
  end
2841
  local effectsmsh = Instance.new("CylinderMesh")
2842
  effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
2843
  effectsmsh.Name = "Mesh"
2844
  local effectsg = Instance.new("Part")
2845
  NoOutline(effectsg)
2846
  effectsg.formFactor = 3
2847
  effectsg.CanCollide = false
2848
  effectsg.Name = "Eff"
2849
  effectsg.Locked = true
2850
  effectsg.Anchored = true
2851
  effectsg.Size = Vector3.new(0.5, 1, 0.5)
2852
  effectsg.Parent = workspace
2853
  effectsmsh.Parent = effectsg
2854
  effectsg.BrickColor = BrickColor.new(Color)
2855
  effectsg.Reflectance = Ref
2856
  local point1 = P1
2857
  local mg = point1.p.magnitude
2858
  effectsg.Size = Vector3.new(0.5, mg, 0.5)
2859
  effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
2860
  effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
2861
  game:GetService("Debris"):AddItem(effectsg, 2)
2862
  if returnn then
2863
    return effectsg
2864
  end
2865
  if not returnn then
2866
    table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
2867
  end
2868
end
2869
MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2870
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2871
  prt.Anchored = true
2872
  prt.CFrame = cframe
2873
  local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
2874
  game:GetService("Debris"):AddItem(prt, 10)
2875
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2876
end
2877
MagicSpike = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2878
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2879
  prt.Anchored = true
2880
  prt.CFrame = cframe
2881
  local msh = mesh("SpecialMesh", prt, "FileMesh", "1033714", vt(0, 0, 0), vt(x1, y1, z1))
2882
  game:GetService("Debris"):AddItem(prt, 10)
2883
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2884
end
2885
MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
2886
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2887
  prt.Anchored = true
2888
  prt.CFrame = cframe
2889
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
2890
  game:GetService("Debris"):AddItem(prt, 10)
2891
  if Type == 1 or Type == nil then
2892
    table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
2893
  else
2894
    if Type == 2 then
2895
      table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
2896
    end
2897
  end
2898
end
2899
MagicCloud = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2900
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2901
  prt.Anchored = true
2902
  prt.CFrame = cframe
2903
  local msh = mesh("SpecialMesh", prt, "FileMesh", "1095708", vt(0, 0, 0), vt(x1, y1, z1))
2904
  game:GetService("Debris"):AddItem(prt, 10)
2905
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2906
end
2907
MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
2908
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2909
  prt.Anchored = true
2910
  prt.Material = material
2911
  prt.CFrame = cframe
2912
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
2913
  game:GetService("Debris"):AddItem(prt, 10)
2914
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2915
end
2916
MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2917
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2918
  prt.Anchored = true
2919
  prt.CFrame = cframe
2920
  local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
2921
  game:GetService("Debris"):AddItem(prt, 10)
2922
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2923
end
2924
MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2925
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2926
  prt.Anchored = true
2927
  prt.CFrame = cframe
2928
  local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
2929
  game:GetService("Debris"):AddItem(prt, 10)
2930
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2931
end
2932
ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
2933
  local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
2934
  prt.Anchored = true
2935
  prt.CFrame = cframe
2936
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
2937
  game:GetService("Debris"):AddItem(prt, 10)
2938
  table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
2939
end
2940
MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2941
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
2942
  prt.Anchored = true
2943
  prt.CFrame = cframe
2944
  local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
2945
  game:GetService("Debris"):AddItem(prt, 10)
2946
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2947
end
2948
  Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
2949
  if hit.Parent == nil then
2950
    return 
2951
  end
2952
  if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
2953
    ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
2954
    ref.Anchored = true
2955
    ref.CFrame = cf(hit.Position)
2956
    game:GetService("Debris"):AddItem(ref, 1)
2957
    hitnum = math.random(1, 5)
2958
    if hitnum == 1 then
2959
      so("199148971", ref, 1, 1)
2960
    else
2961
      if hitnum == 2 then
2962
        so("199149025", ref, 1, 1)
2963
      else
2964
        if hitnum == 3 then
2965
          so("199149072", ref, 1, 1)
2966
        else
2967
          if hitnum == 4 then
2968
            so("199149109", ref, 1, 1)
2969
          else
2970
            if hitnum == 5 then
2971
              so("199149119", ref, 1, 1)
2972
            end
2973
          end
2974
        end
2975
      end
2976
    end
2977
    StaggerHit.Value = true
2978
  end
2979
  h = hit.Parent:FindFirstChild("Humanoid")
2980
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
2981
    if hit.Parent:findFirstChild("DebounceHit") ~= nil then
2982
      return 
2983
    end
2984
    c = Instance.new("ObjectValue")
2985
    c.Name = "creator"
2986
    c.Value = game:service("Players").LocalPlayer
2987
    c.Parent = h
2988
    RecentEnemy.Value = hit.Parent
2989
    game:GetService("Debris"):AddItem(c, 0.5)
2990
    minim = minim * Atk.Value
2991
    maxim = maxim * Atk.Value
2992
    Damage = 0
2993
    if minim == maxim then
2994
      Damage = maxim
2995
    else
2996
      Damage = math.random(minim, maxim)
2997
    end
2998
    blocked = false
2999
    enblock = nil
3000
    local EStats = hit.Parent:findFirstChild("Stats")
3001
    if EStats ~= nil then
3002
      invis = EStats:findFirstChild("Invisibility")
3003
      isinvis = EStats:findFirstChild("IsInvisible")
3004
      if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
3005
        invis.Value = 0
3006
      end
3007
      enblock = EStats:findFirstChild("Block")
3008
      if enblock ~= nil and enblock.Value == true then
3009
        blocked = true
3010
      end
3011
      if EStats:findFirstChild("Defense") ~= nil then
3012
        Damage = Damage / EStats.Defense.Value
3013
        if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
3014
          hitnum = math.random(1, 5)
3015
          if hitnum == 1 then
3016
            so("199149321", hit, 1, 1)
3017
          else
3018
            if hitnum == 2 then
3019
              so("199149338", hit, 1, 1)
3020
            else
3021
              if hitnum == 3 then
3022
                so("199149367", hit, 1, 1)
3023
              else
3024
                if hitnum == 4 then
3025
                  so("199149409", hit, 1, 1)
3026
                else
3027
                  if hitnum == 5 then
3028
                    so("199149452", hit, 1, 1)
3029
                  end
3030
                end
3031
              end
3032
            end
3033
          end
3034
        else
3035
          if ranged == false or ranged == nil and blocked ~= true then
3036
            hitnum = math.random(1, 6)
3037
            if hitnum == 1 then
3038
              so("199149137", hit, 1, 1)
3039
            else
3040
              if hitnum == 2 then
3041
                so("199149186", hit, 1, 1)
3042
              else
3043
                if hitnum == 3 then
3044
                  so("199149221", hit, 1, 1)
3045
                else
3046
                  if hitnum == 4 then
3047
                    so("199149235", hit, 1, 1)
3048
                  else
3049
                    if hitnum == 5 then
3050
                      so("199149269", hit, 1, 1)
3051
                    else
3052
                      if hitnum == 6 then
3053
                        so("199149297", hit, 1, 1)
3054
                      end
3055
                    end
3056
                  end
3057
                end
3058
              end
3059
            end
3060
          end
3061
        end
3062
        if Damage <= 3 and staghit == true and ranged ~= true then
3063
          StaggerHit.Value = true
3064
        end
3065
      end
3066
      if EStats:findFirstChild("Stun") ~= nil then
3067
        if blocked == true then
3068
          incstun = incstun / 2
3069
        end
3070
        if EStats.Stun.Value < EStats.StunThreshold.Value then
3071
          EStats.Stun.Value = EStats.Stun.Value + incstun
3072
        end
3073
      end
3074
      if EStats:findFirstChild("Stagger") ~= nil and stagger == true then
3075
        EStats.Stagger.Value = true
3076
      end
3077
    end
3078
    if blocked == true then
3079
      showDamage(hit.Parent, "Block", "Damage")
3080
      if ranged ~= true then
3081
        enblock.Value = false
3082
        Stagger.Value = true
3083
        hitnum = math.random(1, 2)
3084
        if hitnum == 1 then
3085
          so("199148933", hit, 1, 1)
3086
        else
3087
          if hitnum == 2 then
3088
            so("199148947", hit, 1, 1)
3089
          end
3090
        end
3091
      end
3092
    else
3093
      Damage = math.floor(Damage)
3094
      coroutine.resume(coroutine.create(function(Hum, Dam)
3095
	hit.Parent.Humanoid:TakeDamage(Damage)
3096
  end
3097
), h, Damage)
3098
      showDamage(hit.Parent, Damage, "Damage")
3099
      if DecreaseState ~= nil then
3100
        if DecreaseState == "Temporal" then
3101
          DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
3102
          DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
3103
        else
3104
          if DecreaseState == "Temporal2" then
3105
            DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
3106
            DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
3107
          else
3108
            DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
3109
          end
3110
        end
3111
      end
3112
      if Type == "NormalDecreaseMvmt1" then
3113
        DecreaseStat(hit.Parent, "Movement", 0.1, 200)
3114
      end
3115
      if Type == "Knockdown" then
3116
        hum = hit.Parent.Humanoid
3117
        hum.PlatformStand = true
3118
        coroutine.resume(coroutine.create(function(HHumanoid)
3119
    swait(1)
3120
    HHumanoid.PlatformStand = false
3121
  end
3122
), hum)
3123
        local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
3124
        local bodvol = Instance.new("BodyVelocity")
3125
        bodvol.velocity = angle * knockback
3126
        bodvol.P = 5000
3127
        bodvol.maxForce = Vector3.new(8000, 8000, 8000)
3128
        bodvol.Parent = hit
3129
        rl = Instance.new("BodyAngularVelocity")
3130
        rl.P = 3000
3131
        rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
3132
        rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
3133
        rl.Parent = hit
3134
        game:GetService("Debris"):AddItem(bodvol, 0.5)
3135
        game:GetService("Debris"):AddItem(rl, 0.5)
3136
      else
3137
        do
3138
          if Type == "Knockdown2" then
3139
            hum = hit.Parent.Humanoid
3140
            local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
3141
            local bodvol = Instance.new("BodyVelocity")
3142
            bodvol.velocity = angle * knockback
3143
            bodvol.P = 5000
3144
            bodvol.maxForce = Vector3.new(8000, 8000, 8000)
3145
            bodvol.Parent = hit
3146
            game:GetService("Debris"):AddItem(bodvol, 0.5)
3147
          else
3148
            do
3149
              if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
3150
                vp = Instance.new("BodyVelocity")
3151
                vp.P = 500
3152
                vp.maxForce = Vector3.new(math.huge, 0, math.huge)
3153
                if KnockbackType == 1 then
3154
                  vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
3155
                else
3156
                  if KnockbackType == 2 then
3157
                    vp.velocity = Property.CFrame.lookVector * knockback
3158
                  end
3159
                end
3160
                game:GetService("Debris"):AddItem(vp, 0.5)
3161
                if knockback > 0 then
3162
                  vp.Parent = hit.Parent.Torso
3163
                end
3164
              end
3165
              debounce = Instance.new("BoolValue")
3166
              debounce.Name = "DebounceHit"
3167
              debounce.Parent = hit.Parent
3168
              debounce.Value = true
3169
              game:GetService("Debris"):AddItem(debounce, Delay)
3170
              c = Instance.new("ObjectValue")
3171
              c.Name = "creator"
3172
              c.Value = Player
3173
              c.Parent = h
3174
              game:GetService("Debris"):AddItem(c, 0.5)
3175
              CRIT = false
3176
            end
3177
          end
3178
        end
3179
      end
3180
    end
3181
  end
3182
end
3183
showDamage = function(Char, Dealt, Type)
3184
  m = Instance.new("Model")
3185
  m.Name = "Effect"
3186
  c = Instance.new("Part")
3187
  c.Transparency = 1
3188
  c.Name = "Head"
3189
  c.TopSurface = 0
3190
  c.BottomSurface = 0
3191
  c.formFactor = "Plate"
3192
  c.Size = Vector3.new(1, 0.4, 1)
3193
  b = Instance.new("BillboardGui", c)
3194
  b.Size = UDim2.new(5, 0, 5, 0)
3195
  b.AlwaysOnTop = true
3196
  damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
3197
  if Type == "Damage" then
3198
    damgui.Font = "SourceSans"
3199
    if Dealt == "Block" then
3200
      damgui.TextColor3 = BrickColor.new("Bright blue").Color
3201
    else
3202
      if Dealt < 3 then
3203
        damgui.TextColor3 = BrickColor.new("White").Color
3204
      else
3205
        if Dealt >= 3 and Dealt < 20 then
3206
          damgui.TextColor3 = BrickColor.new("Bright yellow").Color
3207
        else
3208
          damgui.TextColor3 = BrickColor.new("Really red").Color
3209
          damgui.Font = "SourceSansBold"
3210
        end
3211
      end
3212
    end
3213
  else
3214
    if Type == "Debuff" then
3215
      damgui.TextColor3 = BrickColor.new("White").Color
3216
    else
3217
      if Type == "Interrupt" then
3218
        damgui.TextColor3 = BrickColor.new("New Yeller").Color
3219
      end
3220
    end
3221
  end
3222
  damgui.TextScaled = true
3223
  ms = Instance.new("CylinderMesh")
3224
  ms.Scale = Vector3.new(0.8, 0.8, 0.8)
3225
  ms.Parent = c
3226
  c.Reflectance = 0
3227
  Instance.new("BodyGyro").Parent = c
3228
  c.Parent = m
3229
  if Char:findFirstChild("Head") ~= nil then
3230
    c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
3231
  else
3232
    if Char.Parent:findFirstChild("Head") ~= nil then
3233
      c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
3234
    end
3235
  end
3236
  f = Instance.new("BodyPosition")
3237
  f.P = 2000
3238
  f.D = 100
3239
  f.maxForce = Vector3.new(545000, 545000, 545000)
3240
  if Type == "Damage" then
3241
    f.position = c.Position + Vector3.new(0, 3, 0)
3242
  else
3243
    if Type == "Debuff" or Type == "Interrupt" then
3244
      f.position = c.Position + Vector3.new(0, 5, 0)
3245
    end
3246
  end
3247
  f.Parent = c
3248
  game:GetService("Debris"):AddItem(m, 5)
3249
  table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
3250
  c.CanCollide = false
3251
  m.Parent = workspace
3252
  c.CanCollide = false
3253
end
3254
combo = 0
3255
ob1d = function(mouse)
3256
  if GuardStance == true and MMouse.Target ~= nil then
3257
    if MMouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent.Parent:findFirstChild("Torso") ~= nil then
3258
      Target = MMouse.Target.Parent.Parent
3259
      GuardStance = false
3260
    end
3261
    if MMouse.Target.Parent:findFirstChild("Humanoid") ~= nil and MMouse.Target.Parent:findFirstChild("Torso") ~= nil then
3262
      Target = MMouse.Target.Parent
3263
      GuardStance = false
3264
    end
3265
  end
3266
  if attack == true or equipped == false then
3267
    return 
3268
  end
3269
  hold = true
3270
  if Mode == "Defensive" then
3271
    if combo == 0 then
3272
      combo = 1
3273
      dattackone()
3274
    else
3275
      if combo == 1 then
3276
        combo = 2
3277
        dattacktwo()
3278
      else
3279
        if combo == 2 then
3280
          combo = 3
3281
          dattackthree()
3282
        else
3283
          if combo == 3 then
3284
            combo = 0
3285
            dattackfour()
3286
          end
3287
        end
3288
      end
3289
    end
3290
  end
3291
  coroutine.resume(coroutine.create(function()
3292
    for i = 1, 50 do
3293
      if attack == false then
3294
        swait()
3295
      end
3296
    end
3297
    if attack == false then
3298
      combo = 0
3299
    end
3300
  end))
3301
end
3302
ob1u = function(mouse)
3303
  hold = false
3304
end
3305
buttonhold = false
3306
fenbarmove1.MouseButton1Click:connect(do1)
3307
fenbarmove2.MouseButton1Click:connect(do2)
3308
fenbarmove3.MouseButton1Click:connect(do3)
3309
fenbarmove4.MouseButton1Click:connect(do4)
3310
eul = 0
3311
equipped = false
3312
key = function(key)
3313
  if key == "x" and Fly == true then
3314
    Fly = false
3315
    Target = nil
3316
  end
3317
  if key == string.char(8) and Fly == true then
3318
    Fly = false
3319
    Target = nil
3320
  end
3321
  if key == "x" and GuardStance == true then
3322
    manualguardend = true
3323
    GuardStance = false
3324
  end
3325
  if attack == true then
3326
    return 
3327
  end
3328
  if key == "f" then
3329
    pressedf = true
3330
    fnumb = 0
3331
    attack = true
3332
    if equipped == false then
3333
      equipped = true
3334
      RSH = ch.Torso["Right Shoulder"]
3335
      LSH = ch.Torso["Left Shoulder"]
3336
      RSH.Parent = nil
3337
      LSH.Parent = nil
3338
      RW.Name = "Right Shoulder"
3339
      RW.Part0 = ch.Torso
3340
      RW.C0 = cf(1.5, 0.5, 0)
3341
      RW.C1 = cf(0, 0.5, 0)
3342
      RW.Part1 = ch["Right Arm"]
3343
      RW.Parent = ch.Torso
3344
      LW.Name = "Left Shoulder"
3345
      LW.Part0 = ch.Torso
3346
      LW.C0 = cf(-1.5, 0.5, 0)
3347
      LW.C1 = cf(0, 0.5, 0)
3348
      LW.Part1 = ch["Left Arm"]
3349
      LW.Parent = ch.Torso
3350
      Animate.Parent = nil
3351
      equipanim()
3352
    else
3353
      equipped = false
3354
      hideanim()
3355
      LH.C1 = LHC1
3356
      RH.C1 = RHC1
3357
      Animate.Parent = Humanoid
3358
      swait(0)
3359
      RW.Parent = nil
3360
      LW.Parent = nil
3361
      RSH.Parent = player.Character.Torso
3362
      LSH.Parent = player.Character.Torso
3363
    end
3364
    attack = false
3365
  end
3366
  if equipped == false then
3367
    return 
3368
  end
3369
  if key == "z" then
3370
    do1()
3371
  end
3372
  if key == "x" then
3373
    do2()
3374
  end
3375
  if key == "c" then
3376
    do3()
3377
  end
3378
  if key == "v" then
3379
    do4()
3380
  end
3381
  if key == "h" and (Player.Name == "speedydude900" or Player.Name == "Player" or Player.Name == "Player1") then
3382
    mana.Value = 100
3383
    cooldowns[1] = 100
3384
    cooldowns[2] = 100
3385
    cooldowns[3] = 100
3386
    cooldowns[4] = 100
3387
    cooldowns[5] = 100
3388
  end
3389
  if key == "g" then
3390
    taunt()
3391
  end
3392
  if attack == false then
3393
    RecentEnemy.Value = nil
3394
  end
3395
end
3396
key2 = function(key)
3397
end
3398
s = function(mouse)
3399
  mouse.Button1Down:connect(function()
3400
    ob1d(mouse)
3401
  end)
3402
  mouse.Button1Up:connect(function()
3403
    ob1u(mouse)
3404
  end)
3405
  mouse.KeyDown:connect(key)
3406
  mouse.KeyUp:connect(key2)
3407
  player = Player
3408
  ch = Character
3409
  MMouse = mouse
3410
end
3411
ds = function(mouse)
3412
end
3413
Bin.Selected:connect(s)
3414
Bin.Deselected:connect(ds)
3415
print("Major loaded.")
3416
local mananum = 0
3417
local donum = 0
3418
local stunnum = 0
3419
local staggeranim = false
3420
local stunanim = false
3421
local passivenum = 0
3422
local walk = 0
3423
local walkforw = true
3424
while 1 do
3425
  swait()
3426
  if Humanoid.Health <= 0 then
3427
    attack = true
3428
    resumeControl()
3429
    modelzorz.Parent = workspace
3430
    game:GetService("Debris"):AddItem(modelzorz, 30)
3431
    for i = 1, #Weapon do
3432
      Weapon[i].Parent = modelzorz
3433
      Weapon[i].CanCollide = true
3434
    end
3435
    for i = 1, #Welds do
3436
      if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
3437
        Welds[i].Parent = nil
3438
      else
3439
        Welds[i].Parent = prt1
3440
      end
3441
    end
3442
  end
3443
  do
3444
    if fnumb < 21 then
3445
      fnumb = fnumb + 1
3446
      if pressedf == false then
3447
        fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
3448
        tellbar.TextTransparency = tellbar.TextTransparency - 0.05
3449
        tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
3450
      else
3451
        if fnumb == 20 then
3452
          fenframe5.Parent = nil
3453
          print("daigui")
3454
        end
3455
        fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
3456
        tellbar.TextTransparency = tellbar.TextTransparency + 0.05
3457
        tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
3458
      end
3459
    end
3460
    if hbwld.Parent == nil then
3461
      hitbox2.Name = "Hitbox"
3462
    else
3463
      hitbox2.Name = "Hitbox2"
3464
    end
3465
    hitbox2.Parent = hitbox.Parent
3466
    hitbox2.Size = hitbox.Size
3467
    hitbox2.CFrame = hitboxCF
3468
    hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
3469
    passivenum = passivenum + 1
3470
    if 80 <= passivenum then
3471
      passivenum = 0
3472
    end
3473
    if Stagger.Value == true and staggeranim == false then
3474
      coroutine.resume(coroutine.create(function()
3475
  staggeranim = true
3476
  while attack == true do
3477
    swait()
3478
  end
3479
  StaggerAnim()
3480
  StaggerHit.Value = false
3481
  Stagger.Value = false
3482
  staggeranim = false
3483
end))
3484
    end
3485
    if StaggerHit.Value == true and staggeranim == false then
3486
      coroutine.resume(coroutine.create(function()
3487
  staggeranim = true
3488
  while attack == true do
3489
    swait()
3490
  end
3491
  StaggerHitt()
3492
  StaggerHit.Value = false
3493
  Stagger.Value = false
3494
  staggeranim = false
3495
end))
3496
    end
3497
    if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
3498
      Humanoid.WalkSpeed = 0
3499
    else
3500
      Humanoid.WalkSpeed = 16 * Mvmt.Value
3501
    end
3502
    if StunT.Value <= Stun.Value and stunanim == false then
3503
      coroutine.resume(coroutine.create(function()
3504
  stunanim = true
3505
  while attack == true do
3506
    swait()
3507
  end
3508
  StunAnim()
3509
  Stun.Value = 0
3510
  stunanim = false
3511
end))
3512
    end
3513
    local stunnum2 = 20
3514
    if Mode == "Defensive" then
3515
      stunnum2 = 20
3516
    else
3517
      stunnum2 = 60
3518
    end
3519
    if stunnum2 <= stunnum then
3520
      if 0 < Stun.Value then
3521
        Stun.Value = Stun.Value - 1
3522
      end
3523
      stunnum = 0
3524
    end
3525
    stunnum = stunnum + 1
3526
    if 0.5 <= donum then
3527
      handidle = true
3528
    else
3529
      if donum <= 0 then
3530
        handidle = false
3531
      end
3532
    end
3533
    if handidle == false then
3534
      donum = donum + 0.006
3535
    else
3536
      donum = donum - 0.006
3537
    end
3538
    local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
3539
    local velderp = RootPart.Velocity.y
3540
    hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
3541
    if equipped == true then
3542
      if attack == false then
3543
        idle = idle + 1
3544
      else
3545
        idle = 0
3546
      end
3547
      if (500 <= idle and attack ~= false) or Anim == "Walk" then
3548
        if walkforw == true then
3549
          RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
3550
          LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
3551
          if attack == false then
3552
            RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(-1, 0, 0), Mvmt.Value * 10 / 50)
3553
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(1, 0, 0), Mvmt.Value * 10 / 50)
3554
          else
3555
            RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3556
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3557
          end
3558
        else
3559
          RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
3560
          LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
3561
          if attack == false then
3562
            RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(1, 0, 0), Mvmt.Value * 10 / 50)
3563
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(-1, 0, 0), Mvmt.Value * 10 / 50)
3564
          else
3565
            RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3566
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3567
          end
3568
        end
3569
      else
3570
        RH.C1 = clerp(RH.C1, RHC1, 0.2)
3571
        LH.C1 = clerp(LH.C1, LHC1, 0.2)
3572
        RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3573
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3574
      end
3575
      if 1 < RootPart.Velocity.y and hitfloor == nil then
3576
        Anim = "Jump"
3577
        if attack == false then
3578
          handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
3579
          Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
3580
          Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
3581
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
3582
          RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.2), 0.2)
3583
          RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3584
          LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.2)
3585
          LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3586
          RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
3587
          LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
3588
        end
3589
      else
3590
        if RootPart.Velocity.y < -1 and hitfloor == nil then
3591
          Anim = "Fall"
3592
          if attack == false then
3593
            handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
3594
            Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
3595
            Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
3596
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
3597
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8), 0.2)
3598
            RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3599
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
3600
            LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
3601
            RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
3602
            LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
3603
          end
3604
        else
3605
          if torvel < 1 and hitfloor ~= nil then
3606
            Anim = "Idle"
3607
            if attack == false then
3608
              Neck.C0 = clerp(Neck.C0, necko * euler(0.35, 0, 0), 0.15)
3609
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.15)
3610
              RW.C0 = clerp(RW.C0, cf(1.45, 0.4 + (donum) / 3, -0.2) * euler(0, 0.3, 0.2), 0.15)
3611
              RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
3612
              LW.C0 = clerp(LW.C0, cf(-1.45, 0.4 + (donum) / 3, -0.2) * euler(0, -0.3, -0.2), 0.15)
3613
              LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
3614
              RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, -0.15, 0), 0.2)
3615
              LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.15, 0), 0.2)
3616
            end
3617
          else
3618
            if 2 < torvel and torvel < 30 and hitfloor ~= nil then
3619
              Anim = "Walk"
3620
              walk = walk + 1
3621
              if 15 - 5 * Mvmt.Value <= walk then
3622
                walk = 0
3623
                if walkforw == true then
3624
                  walkforw = false
3625
                else
3626
                  if walkforw == false then
3627
                    walkforw = true
3628
                  end
3629
                end
3630
              end
3631
              if attack == false then
3632
                Neck.C0 = clerp(Neck.C0, necko * euler(0.25, 0, 0), 0.2)
3633
                RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
3634
                RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.1, 0, 0.1), 0.2)
3635
                LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.1, 0, -0.1), 0.2)
3636
                RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
3637
                LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
3638
              end
3639
            else
3640
              if 30 <= torvel and hitfloor ~= nil then
3641
                Anim = "Run"
3642
                if attack == false then
3643
                  Neck.C0 = clerp(Neck.C0, necko * euler(0.25, 0, 0), 0.2)
3644
                  RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
3645
                  RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.1, 0, 0.1), 0.2)
3646
                  LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.1, 0, -0.1), 0.2)
3647
                  RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
3648
                  LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
3649
                end
3650
              end
3651
            end
3652
          end
3653
        end
3654
      end
3655
    end
3656
    if 0 < #Effects then
3657
      for e = 1, #Effects do
3658
        if Effects[e] ~= nil then
3659
          local Thing = Effects[e]
3660
          if Thing ~= nil then
3661
            local Part = Thing[1]
3662
            local Mode = Thing[2]
3663
            local Delay = Thing[3]
3664
            local IncX = Thing[4]
3665
            local IncY = Thing[5]
3666
            local IncZ = Thing[6]
3667
            if Thing[2] == "CylinderClang" then
3668
              if Thing[3] <= 1 then
3669
                Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
3670
                Thing[7] = Thing[1].CFrame
3671
                effect("New Yeller", 0, Thing[8], Thing[7])
3672
                Thing[8] = Thing[7]
3673
                Thing[3] = Thing[3] + Thing[4]
3674
              else
3675
                Part.Parent = nil
3676
                table.remove(Effects, e)
3677
              end
3678
            end
3679
            if Thing[2] == "showDamage" then
3680
              if Thing[6] < Thing[5] then
3681
                Thing[6] = Thing[6] + 1
3682
              else
3683
                if Thing[6] < Thing[7] then
3684
                  Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
3685
                  Thing[6] = Thing[6] + 1
3686
                else
3687
                  if Thing[6] < Thing[8] then
3688
                    Thing[6] = Thing[6] + 1
3689
                  else
3690
                    if Thing[6] < Thing[9] then
3691
                      Thing[6] = Thing[6] + 1
3692
                      Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
3693
                      Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
3694
                      Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
3695
                    else
3696
                      Thing[1].Parent = nil
3697
                      table.remove(Effects, e)
3698
                    end
3699
                  end
3700
                end
3701
              end
3702
            end
3703
            if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" then
3704
              if Thing[1].Transparency <= 1 then
3705
                if Thing[2] == "Block1" then
3706
                  Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
3707
                  Mesh = Thing[7]
3708
                  Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3709
                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3710
                else
3711
                  if Thing[2] == "Block2" then
3712
                    Thing[1].CFrame = Thing[1].CFrame
3713
                    Mesh = Thing[7]
3714
                    Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3715
                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3716
                  else
3717
                    if Thing[2] == "Cylinder" then
3718
                      Mesh = Thing[7]
3719
                      Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3720
                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3721
                    else
3722
                      if Thing[2] == "Blood" then
3723
                        Mesh = Thing[7]
3724
                        Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
3725
                        Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
3726
                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3727
                      else
3728
                        if Thing[2] == "Elec" then
3729
                          Mesh = Thing[7]
3730
                          Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
3731
                          Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3732
                        else
3733
                          if Thing[2] == "Disappear" then
3734
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3735
                          end
3736
                        end
3737
                      end
3738
                    end
3739
                  end
3740
                end
3741
              else
3742
                Part.Parent = nil
3743
                table.remove(Effects, e)
3744
              end
3745
            end
3746
          end
3747
        end
3748
      end
3749
    end
3750
    do
3751
      fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
3752
      fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
3753
      fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
3754
      fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
3755
      fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
3756
      fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3757
      fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3758
      fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3759
      fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3760
      for _,c in pairs(Decrease:children()) do
3761
        if (c:findFirstChild("Duration")) ~= nil then
3762
          c.Duration.Value = c.Duration.Value - 1
3763
          if c.Duration.Value <= 0 then
3764
            c.Parent = nil
3765
          end
3766
        end
3767
        if c.Name == "DecreaseAtk" then
3768
          decreaseatk = decreaseatk + c.Value
3769
        else
3770
          if c.Name == "DecreaseDef" then
3771
            decreasedef = decreasedef + c.Value
3772
          else
3773
            if c.Name == "DecreaseMvmt" then
3774
              decreasemvmt = decreasemvmt + c.Value
3775
            end
3776
          end
3777
        end
3778
      end
3779
      Atk.Value = 1 - (decreaseatk)
3780
      if Atk.Value <= 0 then
3781
        Atk.Value = 0
3782
      end
3783
      Def.Value = 1 - (decreasedef)
3784
      if Def.Value <= 0 then
3785
        Def.Value = 0.01
3786
      end
3787
      Mvmt.Value = 1 - (decreasemvmt)
3788
      if Mvmt.Value <= 0 then
3789
        Mvmt.Value = 0
3790
      end
3791
      decreaseatk = 0
3792
      decreasedef = 0
3793
      decreasemvmt = 0
3794
      AtkVal = Atk.Value * 100
3795
      AtkVal = math.floor(AtkVal)
3796
      AtkVal = AtkVal / 100
3797
      fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
3798
      DefVal = Def.Value * 100
3799
      DefVal = math.floor(DefVal)
3800
      DefVal = DefVal / 100
3801
      fenbardef.Text = "Defense\n(" .. DefVal .. ")"
3802
      MvmtVal = Mvmt.Value * 100
3803
      MvmtVal = math.floor(MvmtVal)
3804
      MvmtVal = MvmtVal / 100
3805
      if Rooted.Value == true then
3806
        MvmtVal = 0
3807
      end
3808
      fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
3809
      if StunT.Value <= Stun.Value then
3810
        fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
3811
      else
3812
        fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
3813
      end
3814
      fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
3815
      if 100 <= mana.Value then
3816
        mana.Value = 100
3817
      else
3818
        if mananum <= 9 then
3819
          mananum = mananum + 5
3820
        else
3821
          mananum = 0
3822
          mana.Value = mana.Value + 3
3823
        end
3824
      end
3825
      for i = 1, #cooldowns do
3826
        if cooldownmax <= cooldowns[i] then
3827
          cooldowns[i] = cooldownmax
3828
        else
3829
          cooldowns[i] = cooldowns[i] + cooldownsadd[i]
3830
        end
3831
      end
3832
      -- DECOMPILER ERROR at PC4541: LeaveBlock: unexpected jumping out DO_STMT
3833
3834
      -- DECOMPILER ERROR at PC4541: LeaveBlock: unexpected jumping out DO_STMT
3835
3836
    end
3837
  end
3838
end