View difference between Paste ID: pBLmhiTe and N6vg2bis
SHOW: | | - or go back to the newest paste.
1-
http://puu.sh/qu7L4/c3f67e4652.txt
1+
local s = Instance.new("Sound")
2
 
3
s.Name = "Sound"
4
s.SoundId = "http://www.roblox.com/asset/?id=306154368"
5
s.Volume = 2
6
s.Looped = false
7
s.archivable = false
8
 
9
s.Parent = game.Workspace
10
 
11
wait(1)
12
 
13
s:play()
14
15
Player = game:GetService("Players").LocalPlayer
16
Character = Player.Character
17
PlayerGui = Player.PlayerGui
18
Backpack = Player.Backpack
19
Torso = Character.Torso
20
Head = Character.Head
21
Humanoid = Character.Humanoid
22
LeftArm = Character["Left Arm"]
23
LeftLeg = Character["Left Leg"]
24
RightArm = Character["Right Arm"]
25
RightLeg = Character["Right Leg"]
26
LS = Torso["Left Shoulder"]
27
LH = Torso["Left Hip"]
28
RS = Torso["Right Shoulder"]
29
RH = Torso["Right Hip"]
30
Neck = Torso.Neck
31
it = Instance.new
32
vt = Vector3.new
33
cf = CFrame.new
34
euler = CFrame.fromEulerAnglesXYZ
35
angles = CFrame.Angles
36
mr = math.rad
37
mr2 = math.random
38
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
39
necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
40
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
41
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
42
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
43
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
44
RootPart = Character.HumanoidRootPart
45
RootJoint = RootPart.RootJoint
46
RootCF = euler(-1.57, 0, 3.14)
47
attack = false
48
attackdebounce = false
49
MMouse = Player:GetMouse()
50
combo = 0
51
local hitfloor, posfloor = nil, nil
52
local idle = 0
53
local Anim = "Idle"
54
local Effects = {}
55
local Weapon = {}
56
local Welds = {}
57
local Saber = {}
58
local Buster = {}
59
local decreaseatk = 0
60
local decreasedef = 0
61
local decreasemvmt = 0
62
local manainc = 16
63
local handle = nil
64
local floating = false
65
local testpart = it("Part")
66
testpart.Anchored = true
67
local Mode = "Normal"
68
local cbuster = false
69
local cshoot = false
70
local cdebounce = false
71
local sbreaker = false
72
local shockshoot = false
73
local shockdebounce = false
74
local TehM = nil
75
local sblazing = false
76
local starshoot = false
77
local stardebounce = false
78
local busterlaser = false
79
local sbreakerII = false
80
local galacblazing = false
81
local prising = false
82
local move1 = "(Z)\nChaos Buster"
83
local move2 = "(X)\nShocker Breaker"
84
local move3 = "(C)\nStar Blazing"
85
local move4 = "(V)\n"
86
local cooldowns = {}
87
local cooldown1 = 100
88
table.insert(cooldowns, cooldown1)
89
local cooldown2 = 100
90
table.insert(cooldowns, cooldown2)
91
local cooldown3 = 100
92
table.insert(cooldowns, cooldown3)
93
local cooldown4 = 100
94
table.insert(cooldowns, cooldown4)
95
local cooldownsadd = {}
96
local cooldownadd1 = 0.16
97
table.insert(cooldownsadd, cooldownadd1)
98
local cooldownadd2 = 0.14
99
table.insert(cooldownsadd, cooldownadd2)
100
local cooldownadd3 = 0.12
101
table.insert(cooldownsadd, cooldownadd3)
102
local cooldownadd4 = 0.1
103
table.insert(cooldownsadd, cooldownadd4)
104
local cooldownmax = 100
105
player = nil
106
RSH = nil
107
LSH = nil
108
RW = Instance.new("Motor")
109
LW = Instance.new("Motor")
110
RW.Name = "Right Shoulder"
111
LW.Name = "Left Shoulder"
112
LH = Torso["Left Hip"]
113
RH = Torso["Right Hip"]
114
TorsoColor = Torso.BrickColor
115
NewCol = BrickColor.new("Ghost grey").Color
116
NewCol2 = BrickColor.new("Smoky grey").Color
117
NewCol3 = BrickColor.new("Pearl").Color
118
119
  local mdec = Instance.new("NumberValue", Decrease)
120
  mdec.Name = "DecreaseDef"
121
  mdec.Value = 0.4
122
  local mdec2 = Instance.new("NumberValue", Decrease)
123
  mdec2.Name = "DecreaseMvmt"
124
  mdec2.Value = 0.1
125
  local Neons = {BrickColor.new("Bright red"), BrickColor.new("Bright orange"), BrickColor.new("Bright yellow"), BrickColor.new("Bright green"), BrickColor.new("Bright blue"), BrickColor.new("Royal purple"), BrickColor.new("Bright violet")}
126
  local Animate = Humanoid.Animator
127
  local canjump = true
128
129
  removeControl = function()
130
  canjump = false
131
end
132
133
  resumeControl = function()
134
  canjump = true
135
end
136
137
  Player.Character.Humanoid.Changed:connect(function()
138
  if canjump == false then
139
    Player.Character.Humanoid.Jump = false
140
  end
141
end
142
)
143
144
ArtificialHB = Instance.new("BindableEvent", script)
145
ArtificialHB.Name = "Heartbeat"
146
147
script:WaitForChild("Heartbeat")
148
149
frame = 1 / 40
150
tf = 0
151
allowframeloss = true
152
tossremainder = false
153
lastframe = tick()
154
script.Heartbeat:Fire()
155
156
game:GetService("RunService").Heartbeat:connect(function(s, p)
157
    tf = tf + s
158
    if tf >= frame then
159
        if allowframeloss then
160
            script.Heartbeat:Fire()
161
            lastframe = tick()
162
        else
163
            for i = 1, math.floor(tf / frame) do
164
                script.Heartbeat:Fire()
165
            end
166
            lastframe = tick()
167
        end
168
        if tossremainder then
169
            tf = 0
170
        else
171
            tf = tf - frame * math.floor(tf / frame)
172
        end
173
    end
174
end)
175
176
function swait(num)
177
    if num == 0 or num == nil then
178
        ArtificialHB.Event:wait()
179
    else
180
        for i = 0, num do
181
            ArtificialHB.Event:wait()
182
        end
183
    end
184
end
185
186
  createpassgui = function(parent)
187
  print("makegui111")
188
  local g = Instance.new("ScreenGui", parent)
189
  local f = Instance.new("Frame", g)
190
  f.Position = UDim2.new(0.3, 0, 0.25, 0)
191
  f.Size = UDim2.new(0.4, 0, 0.4, 0)
192
  f.Style = "DropShadow"
193
  local t = Instance.new("TextBox", f)
194
  t.BackgroundColor3 = Color3.new(0, 0, 0)
195
  t.BackgroundTransparency = 0.5
196
  t.BorderSizePixel = 0
197
  t.Position = UDim2.new(0.15, 0, 0.2, 0)
198
  t.Size = UDim2.new(0.7, 0, 0.2, 0)
199
  t.Font = "SourceSansLight"
200
  t.Text = "Enter Access Code."
201
  t.TextScaled = true
202
  t.TextColor3 = Color3.new(1, 1, 1)
203
  t.TextStrokeTransparency = 0
204
  local t2 = Instance.new("TextButton", f)
205
  t2.BackgroundColor3 = Color3.new(0, 0, 0)
206
  t2.BackgroundTransparency = 0.5
207
  t2.BorderSizePixel = 0
208
  t2.Position = UDim2.new(0.3, 0, 0.5, 0)
209
  t2.Size = UDim2.new(0.4, 0, 0.15, 0)
210
  t2.TextScaled = true
211
  t2.Font = "SourceSansLight"
212
  t2.Text = "Submit"
213
  t2.TextColor3 = Color3.new(1, 1, 1)
214
  t2.TextStrokeTransparency = 0
215
  print("done1")
216
  return t2
217
end
218
219
  if Character:findFirstChild("Handles", true) ~= nil then
220
    Character:findFirstChild("Handles", true).Parent = nil
221
  end
222
  if Character:findFirstChild("Chaos Saber", true) ~= nil then
223
    Character:findFirstChild("Chaos Saber", true).Parent = nil
224
  end
225
  if Character:findFirstChild("Chaos Buster", true) ~= nil then
226
    Character:findFirstChild("Chaos Buster", true).Parent = nil
227
  end
228
  if Character:findFirstChild("Chaos Buster Rainbow", true) ~= nil then
229
    Character:findFirstChild("Chaos Buster Rainbow", true).Parent = nil
230
  end
231
  if Character:findFirstChild("Effects", true) ~= nil then
232
    Character:findFirstChild("Effects", true).Parent = nil
233
  end
234
  if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
235
    Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
236
  end
237
  if Character:findFirstChild("Stats", true) ~= nil then
238
    Character:findFirstChild("Stats", true).Parent = nil
239
  end
240
  local Stats = Instance.new("BoolValue")
241
  Stats.Name = "Stats"
242
  Stats.Parent = Character
243
  local Atk = Instance.new("NumberValue")
244
  Atk.Name = "Damage"
245
  Atk.Parent = Stats
246
  Atk.Value = 302
247
  local Def = Instance.new("NumberValue")
248
  Def.Name = "Defense"
249
  Def.Parent = Stats
250
  Def.Value = 140
251
  local Mvmt = Instance.new("NumberValue")
252
  Mvmt.Name = "Movement"
253
  Mvmt.Parent = Stats
254
  Mvmt.Value = 1
255
  local Block = Instance.new("BoolValue")
256
  Block.Name = "Block"
257
  Block.Parent = Stats
258
  Block.Value = false
259
  local Stun = Instance.new("NumberValue")
260
  Stun.Name = "Stun"
261
  Stun.Parent = Stats
262
  Stun.Value = 0
263
  local StunT = Instance.new("NumberValue")
264
  StunT.Name = "StunThreshold"
265
  StunT.Parent = Stats
266
  StunT.Value = 80
267
  local Rooted = Instance.new("BoolValue")
268
  Rooted.Name = "Rooted"
269
  Rooted.Parent = Stats
270
  Rooted.Value = false
271
  local Stunned = Instance.new("BoolValue")
272
  Stunned.Name = "Stunned"
273
  Stunned.Parent = Stats
274
  Stunned.Value = false
275
  local Stagger = Instance.new("BoolValue")
276
  Stagger.Name = "Stagger"
277
  Stagger.Parent = Stats
278
  Stagger.Value = false
279
  local StaggerHit = Instance.new("BoolValue")
280
  StaggerHit.Name = "StaggerHit"
281
  StaggerHit.Parent = Stats
282
  StaggerHit.Value = false
283
  local RecentEnemy = Instance.new("ObjectValue")
284
  RecentEnemy.Name = "RecentEnemy"
285
  RecentEnemy.Parent = Stats
286
  RecentEnemy.Value = nil
287
  local Decrease = Instance.new("BoolValue")
288
  Decrease.Name = "Decrease"
289
  Decrease.Parent = Stats
290
  Decrease.Value = false
291
  local mana = Instance.new("NumberValue")
292
  mana.Name = "Mana"
293
  mana.Parent = Stats
294
  mana.Value = 0
295
  local passive1 = Instance.new("NumberValue", Decrease)
296
  passive1.Name = "DecreaseMvmt"
297
  passive1.Value = -0.1
298
  local passive2 = Instance.new("NumberValue", Decrease)
299
  passive2.Name = "DecreaseDef"
300
  passive2.Value = 0
301
  NoOutline = function(Part)
302
  Part.TopSurface = 10
303
end
304
305
  part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
306
  local fp = it("Part")
307
  fp.formFactor = formfactor
308
  fp.Parent = parent
309
  fp.Reflectance = reflectance
310
  fp.Transparency = transparency
311
  fp.CanCollide = false
312
  fp.Locked = true
313
  fp.BrickColor = brickcolor
314
  fp.Name = name
315
  fp.Size = size
316
  fp.Position = Torso.Position
317
  NoOutline(fp)
318
  fp.Material = "SmoothPlastic"
319
  fp:BreakJoints()
320
  return fp
321
end
322
323
  mesh = function(Mesh, part, meshtype, meshid, offset, scale)
324
  local mesh = it(Mesh)
325
  mesh.Parent = part
326
  if Mesh == "SpecialMesh" then
327
    mesh.MeshType = meshtype
328
    if meshid ~= "nil" then
329
      mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
330
    end
331
  end
332
  mesh.Offset = offset
333
  mesh.Scale = scale
334
  return mesh
335
end
336
337
  weld = function(parent, part0, part1, c0)
338
  local weld = it("Motor")
339
  weld.Parent = parent
340
  weld.Part0 = part0
341
  weld.Part1 = part1
342
  weld.C0 = c0
343
  return weld
344
end
345
346
  gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
347
  local gui = it(GuiType)
348
  gui.Parent = parent
349
  gui.Text = text
350
  gui.BackgroundTransparency = backtrans
351
  gui.BackgroundColor3 = backcol
352
  gui.SizeConstraint = "RelativeXY"
353
  gui.TextXAlignment = "Center"
354
  gui.TextYAlignment = "Center"
355
  gui.Position = pos
356
  gui.Size = size
357
  gui.Font = "SourceSans"
358
  gui.FontSize = "Size14"
359
  gui.TextWrapped = false
360
  gui.TextStrokeTransparency = 0
361
  gui.TextColor = BrickColor.new("White")
362
  return gui
363
end
364
365
  AesthPart = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef)
366
  prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
367
  prt.Material = neon
368
  msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
369
  wld = weld(handle, prt, wldpar, ceef)
370
  v = it("NumberValue", prt)
371
  v.Value = trans
372
  v.Name = "MainTransparency"
373
  return prt, msh, wld
374
end
375
376
  local nr = NumberRange.new
377
  local ns = NumberSequence.new
378
  local cs = ColorSequence.new
379
  local nsk = NumberSequenceKeypoint.new
380
  particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
381
  local fp = it("ParticleEmitter")
382
  fp.Parent = parent
383
  fp.Color = cs(col1, col2)
384
  fp.LightEmission = lightemis
385
  fp.Size = size
386
  fp.Texture = texture
387
  fp.Transparency = transparency
388
  fp.ZOffset = zoffset
389
  fp.Acceleration = accel
390
  fp.Drag = drag
391
  fp.LockedToPart = ltp
392
  fp.VelocityInheritance = velinher
393
  fp.EmissionDirection = emisdir
394
  fp.Enabled = enabled
395
  fp.Lifetime = lifetime
396
  fp.Rate = rate
397
  fp.Rotation = rotation
398
  fp.RotSpeed = rotspeed
399
  fp.Speed = speed
400
  fp.VelocitySpread = velspread
401
  return fp
402
end
403
404
  local Color1 = Torso.BrickColor
405
  local fengui = it("GuiMain")
406
  fengui.Parent = Player.PlayerGui
407
  fengui.Name = "WeaponGUI"
408
  local fenframe = it("Frame")
409
  fenframe.Parent = fengui
410
  fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
411
  fenframe.BackgroundTransparency = 1
412
  fenframe.BorderColor3 = Color3.new(17, 17, 17)
413
  fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
414
  fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
415
  local fenframe2 = it("Frame")
416
  fenframe2.Parent = fengui
417
  fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
418
  fenframe2.BackgroundTransparency = 1
419
  fenframe2.BorderColor3 = Color3.new(17, 17, 17)
420
  fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
421
  fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
422
  local fenframe3 = it("Frame")
423
  fenframe3.Parent = fengui
424
  fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
425
  fenframe3.BackgroundTransparency = 1
426
  fenframe3.BorderColor3 = Color3.new(17, 17, 17)
427
  fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
428
  fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
429
  local fenframe4 = it("Frame")
430
  fenframe4.Parent = fengui
431
  fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
432
  fenframe4.BackgroundTransparency = 1
433
  fenframe4.BorderColor3 = Color3.new(17, 17, 17)
434
  fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
435
  fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
436
  local pressedf = false
437
  local fenframe5 = it("Frame")
438
  fenframe5.Parent = fengui
439
  fenframe5.Parent = nil
440
  fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
441
  fenframe5.BackgroundTransparency = 1
442
  fenframe5.BorderColor3 = Color3.new(0, 0, 0)
443
  fenframe5.Size = UDim2.new(1, 0, 1, 0)
444
  fenframe5.Position = UDim2.new(0, 0, 0, 0)
445
  fenframe5.ZIndex = 2
446
  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))
447
  tellbar.Font = "Arial"
448
  tellbar.TextScaled = true
449
  tellbar.TextTransparency = 1
450
  tellbar.TextStrokeTransparency = 1
451
  tellbar.ZIndex = 2
452
  local fnumb = 0
453
  local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
454
  local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
455
  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))
456
  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))
457
  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))
458
  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))
459
  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))
460
  local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
461
  local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
462
  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))
463
  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))
464
  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))
465
  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))
466
  fenbarmove1.ZIndex = 2
467
  local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
468
  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))
469
  fenbarmove2.ZIndex = 2
470
  local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
471
  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))
472
  fenbarmove3.ZIndex = 2
473
  local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
474
  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))
475
  fenbarmove4.ZIndex = 2
476
  local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
477
  local handles = Instance.new("Model")
478
  handles.Parent = Character
479
  handles.Name = "Handles"
480
  local modelzorz = Instance.new("Model")
481
  modelzorz.Parent = Character
482
  modelzorz.Name = "Chaos Saber"
483
  local model2 = Instance.new("Model")
484
  model2.Parent = Character
485
  model2.Name = "Chaos Buster"
486
  local model3 = Instance.new("Model")
487
  model3.Parent = Character
488
  model3.Name = "Chaos Buster Rainbow"
489
  handle = part(3, handles, 0, 1, BrickColor.new(NewCol), "Handle", vt())
490
  local handle2 = part(3, handles, 0, 1, BrickColor.new(NewCol), "Handle2", vt())
491
  local handle3 = part(3, handles, 0, 1, BrickColor.new(NewCol3), "Handle3", vt())
492
  local handle3a = part(3, handles, 0, 1, BrickColor.new(NewCol3), "Handle3a", vt())
493
  local handle4 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle4", vt())
494
  local handle5 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle5", vt())
495
  local handle6 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle6", vt())
496
  local handle7 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle7", vt())
497
  local handle8 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle8", vt())
498
  local handle9 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle9", vt())
499
  local handle10 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle10", vt())
500
  hmsh3 = mesh("BlockMesh", handle3, "", "", vt(0, 0, 0), vt(25, 3, 1))
501
  hmsh4 = mesh("BlockMesh", handle4, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
502
  hmsh5 = mesh("BlockMesh", handle5, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
503
  hmsh6 = mesh("BlockMesh", handle6, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
504
  hmsh7 = mesh("BlockMesh", handle7, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
505
  hmsh8 = mesh("BlockMesh", handle8, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
506
  hmsh9 = mesh("BlockMesh", handle9, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
507
  hmsh10 = mesh("BlockMesh", handle10, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
508
  local handlewld = weld(handle, handle, Torso, euler(0, 3.14, -2.6) * cf(0, 0, -0.6))
509
  local handlewld2 = weld(handle2, handle2, Torso, euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6))
510
  local handlewld3 = weld(handle3, handle3, Torso, euler(1.57, 0, 0) * cf(-0.5, 0, 0) * euler(0, 0, -0.5) * cf(0, 0, -0.8))
511
  local handlewld3a = weld(handle3a, handle3a, handle3, cf(0, 0, 0))
512
  local handlewld4 = weld(handle4, handle4, handle3a, euler(0, 0, 0) * cf(0, 0, 0))
513
  local handlewld5 = weld(handle5, handle5, handle3a, euler(0, 0, 0) * cf(0, 0, 0))
514
  local handlewld6 = weld(handle6, handle6, handle5, cf(3.35, 0, -0.075))
515
  local handlewld7 = weld(handle7, handle7, handle4, cf(3.35, 0, 0.075))
516
  local handlewld8 = weld(handle8, handle8, handle6, cf(0.291, 0, 0))
517
  local handlewld9 = weld(handle9, handle9, handle7, cf(0.291, 0, 0))
518
  local handlewld10 = weld(handle10, handle10, handle3a, euler(0, mr(-90), 0) * cf(3.141, 0, 0))
519
  local main1, mmsh1, mwld1 = AesthPart(modelzorz, handle, 0, 0, NewCol, "Main1", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
520
  local main2, mmsh2, mwld2 = AesthPart(modelzorz, handle2, 0, 0, NewCol, "Main2", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
521
  local core1, cmsh1, cwld1 = AesthPart(modelzorz, main1, 0, 0, NewCol2, "Core1", "Neon", "SpecialMesh", "Sphere", "nil", 1.25, 0.75, 1, euler(0, 0, 0) * cf(0, -0.8, 0))
522
  local core2, cmsh2, cwld2 = AesthPart(modelzorz, main2, 0, 0, NewCol2, "Core2", "Neon", "SpecialMesh", "Sphere", "nil", 1.25, 0.75, 1, euler(0, 0, 0) * cf(0, -0.8, 0))
523
  local upper1, umsh1, uwld1 = AesthPart(modelzorz, core1, 0, 0, NewCol, "Upper1", "Neon", "SpecialMesh", "Sphere", "nil", 1.75, 0.9, 0.55, euler(0, 0, 0) * cf(0, -0.05, 0))
524
  local upper2, umsh2, uwld2 = AesthPart(modelzorz, core2, 0, 0, NewCol, "Upper1", "Neon", "SpecialMesh", "Sphere", "nil", 1.75, 0.9, 0.55, euler(0, 0, 0) * cf(0, -0.05, 0))
525
  RainbowVals = function(parent, sval, bval)
526
  d = it("NumberValue", parent)
527
  d.Name = "Size"
528
  d.Value = sval
529
  b = it("NumberValue", parent)
530
  b.Name = "Weld"
531
  b.Value = bval
532
  return d, b
533
end
534
535
  rmain1, rmrmsh1, rmwld1 = AesthPart(model3, handle4, 1, 0, NewCol, "RainbowMain", "Neon", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, 0) * cf(0, 0, 0))
536
  rmain1a, rmrmsh1a, rmwld1a = AesthPart(model3, handle5, 1, 0, NewCol, "RainbowMaina", "Neon", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, 0) * cf(0, 0, 0))
537
  rainbow1, rmsh1, rwld1 = AesthPart(model3, rmain1, 0, 0, Neons[7].Color, "Rainbow1", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3, euler(0, mr(90), 0) * cf(-1.55, 0, 0.1))
538
  rainbow1a, rmsh1a, rwld1a = AesthPart(model3, rmain1a, 0, 0, Neons[7].Color, "Rainbow1a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3, euler(0, mr(90), 0) * cf(-1.55, 0, -0.1))
539
  rainbow2, rmsh2, rwld2 = AesthPart(model3, rmain1, 0, 0, Neons[6].Color, "Rainbow2", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.875, 0, 0.1))
540
  rainbow2a, rmsh2a, rwld2a = AesthPart(model3, rmain1a, 0, 0, Neons[6].Color, "Rainbow2a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.875, 0, -0.1))
541
  rainbow3, rmsh3, rwld3 = AesthPart(model3, rmain1, 0, 0, Neons[5].Color, "Rainbow3", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.125, 0, 0.1))
542
  rainbow3a, rmsh3a, rwld3a = AesthPart(model3, rmain1a, 0, 0, Neons[5].Color, "Rainbow3a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.125, 0, -0.1))
543
  rainbow4, rmsh4, rwld4 = AesthPart(model3, rmain1, 0, 0, Neons[4].Color, "Rainbow4", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 4, euler(0, mr(90), 0) * cf(0.65, 0, 0.1))
544
  rainbow4a, rmsh4a, rwld4a = AesthPart(model3, rmain1a, 0, 0, Neons[4].Color, "Rainbow4a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 4, euler(0, mr(90), 0) * cf(0.65, 0, -0.1))
545
  rainbow5, rmsh5, rwld5 = AesthPart(model3, rmain1, 0, 0, Neons[3].Color, "Rainbow5", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(1.425, 0, 0.1))
546
  rainbow5a, rmsh5a, rwld5a = AesthPart(model3, rmain1a, 0, 0, Neons[3].Color, "Rainbow5a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(1.425, 0, -0.1))
547
  rainbow6, rmsh6, rwld6 = AesthPart(model3, rmain1, 0, 0, Neons[2].Color, "Rainbow6", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(2.175, 0, 0.1))
548
  rainbow6a, rmsh6a, rwld6a = AesthPart(model3, rmain1a, 0, 0, Neons[2].Color, "Rainbow6a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(2.175, 0, -0.1))
549
  rainbow7, rmsh7, rwld7 = AesthPart(model3, rmain1, 0, 0, Neons[1].Color, "Rainbow7", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 2.99, euler(0, mr(90), 0) * cf(2.85, 0, 0.1))
550
  rainbow7a, rmsh7a, rwld7a = AesthPart(model3, rmain1a, 0, 0, Neons[1].Color, "Rainbow7a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 2.99, euler(0, mr(90), 0) * cf(2.85, 0, -0.1))
551
  local rw1 = 0.32
552
  local rw2 = 0.395
553
  local rw3 = 0.295
554
  local rs1 = 3
555
  local rs2 = 3.75
556
  local rs3 = 4
557
  local rs4 = 2.99
558
  rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1)
559
  rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1)
560
  rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1, 0, 0.1)
561
  rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1, 0, -0.1)
562
  rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2)
563
  rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2)
564
  rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2, 0, 0.1)
565
  rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2, 0, -0.1)
566
  rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2)
567
  rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2)
568
  rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2, 0, 0.1)
569
  rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2, 0, -0.1)
570
  rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3)
571
  rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3)
572
  rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2, 0, 0.1)
573
  rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2, 0, -0.1)
574
  rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2)
575
  rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2)
576
  rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2, 0, 0.1)
577
  rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2, 0, -0.1)
578
  rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2)
579
  rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2)
580
  rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2, 0, 0.1)
581
  rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2, 0, -0.1)
582
  rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4)
583
  rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4)
584
  rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3, 0, 0.1)
585
  rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3, 0, -0.1)
586
  mwld1.C0 = cf(0, 2, 0)
587
  mwld2.C0 = cf(0, 2, 0)
588
  for i = -1, 1, 2 do
589
    thprt = main1
590
    thprt2 = core1
591
    thprt3 = upper1
592
    thprt4 = handle4
593
    thprt5 = handle6
594
    thprt6 = handle8
595
    if i == 1 then
596
      thprt = main2
597
      thprt2 = core2
598
      thprt3 = upper2
599
      thprt4 = handle5
600
      thprt5 = handle7
601
      thprt6 = handle9
602
    end
603
    prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part01", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
604
    prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part02", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1.05, 0.5, euler(mr(90), mr(-90), 0) * cf(-0.025, 0.75, 0))
605
    prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part03", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1.2, 0.25, euler(mr(-90), mr(-90), 0) * cf(-0.2, 0.675, 0))
606
    prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part04", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 0.95, 0.5, euler(mr(90), mr(90), 0) * cf(-0.225, 0.75, 0))
607
    for d = -1, 1, 2 do
608
      prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part05", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 2, 0.25, euler(mr(180.04), mr(90) * d, 0) * cf(0.075 * d, -0.5, 0))
609
      prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part06", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1, 0.25, euler(mr(73), mr(-90) * d, 0) * cf(0.149 * d, -0.688, 0))
610
    end
611
    prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol2, "Part07", "Neon", "SpecialMesh", "Sphere", "nil", 2, 1, 0.65, euler(0, 0, 0) * cf(0, -0.025, 0))
612
    prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part08", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.75, euler(0, 0, 0) * cf(0, 0.025, 0))
613
    prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part09", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.25, 0.75, euler(0, 0, 0) * cf(0, -0.05, 0))
614
    for d = -1, 1, 2 do
615
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part10", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(0, mr(90) * d, 0) * cf(-0.15 * d, -0.05, 0))
616
    end
617
    for d = -1, 1, 2 do
618
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part11", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.75, euler(mr(180), mr(90) * d, 0) * cf(0.125 * d, 0.05, 0))
619
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part12", "Neon", "BlockMesh", "nil", "nil", 0.75, 0.25, 0.75, euler(mr(0), mr(90) * d, 0) * cf(0.125 * d, 0, 0))
620
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part13", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.5, euler(mr(180), mr(90) * d, 0) * cf(0.25 * d, 0, 0))
621
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part14", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.25, 0.75, euler(mr(0), mr(0) * d, 0) * cf(0.25 * d, -0.05, 0))
622
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part15", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.5, 0.5, euler(mr(180), mr(90) * d, 0) * cf(0.35 * d, -0.075, 0))
623
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part16", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.25, euler(mr(180), mr(90) * d, 0) * cf(0.425 * d, -0.2, 0))
624
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part17", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.25, euler(mr(0), mr(-90) * d, 0) * cf(0.425 * d, -0.35, 0))
625
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part18", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.75, euler(mr(0), mr(0) * d, 0) * cf(0.35 * d, -0.175, 0))
626
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part19", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.5, 0.25, euler(mr(0), mr(-90) * d, 0) * cf(0.375 * d, -0.475, 0))
627
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part20", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.375, 0.5, euler(mr(180), mr(-90) * d, 0) * cf(0.3 * d, -0.462, 0))
628
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part21", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.125, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.3 * d, -0.512, 0))
629
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part22", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.5, euler(mr(90), mr(90) * d, 0) * cf(0.375 * d, -0.275, 0))
630
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part23", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 1, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.35 * d, -0.325, 0))
631
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part24", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.25 * d, -0.15, 0))
632
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part25", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(mr(0), mr(90) * d, 0) * cf(0.1 * d, -0.05, 0))
633
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part26", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(mr(65), mr(-90) * d, 0) * cf(0.294 * d, 0.035, 0))
634
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part27", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.5, euler(mr(115), mr(90) * d, 0) * cf(0.217 * d, -0.012, 0))
635
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part28", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.25, euler(mr(155), mr(90) * d, 0) * cf(0.431 * d, -0.205, 0))
636
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part29", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.25, euler(mr(25), mr(-90) * d, 0) * cf(0.498 * d, -0.229, 0))
637
      prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part30", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.75, euler(mr(195), mr(90) * d, 0) * cf(0.434 * d, -0.387, 0))
638
    end
639
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part31", "Neon", "SpecialMesh", "Torso", "nil", 1, 3, 0.35, euler(mr(180), 0, 0) * cf(0, -0.35, 0))
640
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part32", "Neon", "BlockMesh", "nil", "nil", 2, 7, 0.35, euler(0, 0, 0) * cf(0.1, -1.35, 0))
641
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part33", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(180), mr(90), 0) * cf(0.15, -0.625, 0))
642
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part34", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(0), mr(90), 0) * cf(0.05, -2.075, 0))
643
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part35", "Neon", "BlockMesh", "nil", "nil", 1, 2, 0.35, euler(0, 0, 0) * cf(0.2, -2.25, 0))
644
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part36", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(-90), mr(90), 0) * cf(0.275, -2.65, 0))
645
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part37", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(-90), mr(90), 0) * cf(0.225, -3, 0))
646
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part38", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1.5, euler(mr(-90), mr(90), 0) * cf(0.15, -3.3, 0))
647
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part39", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(90), 0) * cf(0.05, -3.55, 0))
648
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part40", "Neon", "BlockMesh", "nil", "nil", 0.25, 2, 0.35, euler(0, 0, 0) * cf(0.225, -2.65, 0))
649
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part41", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 0.35, euler(0, 0, 0) * cf(0.175, -3, 0))
650
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part42", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, 0, 0) * cf(0.075, -3.375, 0))
651
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part43", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(-90), 0) * cf(0.15, -2.55, 0))
652
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part44", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(90), mr(90), 0) * cf(0.175, -2.65, 0))
653
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part45", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(90), mr(90), 0) * cf(0.125, -3, 0))
654
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part46", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(90), 0) * cf(0.075, -3.225, 0))
655
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part47", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(90), 0) * cf(0.025, -3.375, 0))
656
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part48", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(-90), 0) * cf(-0.025, -3.475, 0))
657
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part49", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1, euler(mr(-90), mr(-90), 0) * cf(-0.1, -3.275, 0))
658
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part50", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(-90), mr(-90), 0) * cf(-0.15, -3.025, 0))
659
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part51", "Neon", "BlockMesh", "nil", "nil", 0.25, 1, 0.35, euler(0, mr(0), 0) * cf(-0.15, -2.775, 0))
660
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part52", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 0.75, euler(mr(90), mr(90), 0) * cf(-0.125, -2.6, 0))
661
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part53", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 1.25, 1, euler(mr(90), mr(90), 0) * cf(0.05, -2.425, 0))
662
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part54", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.35, euler(0, mr(0), 0) * cf(-0.025, -2.575, 0))
663
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part55", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, mr(0), 0) * cf(-0.1, -3.1, 0))
664
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part56", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, mr(0), 0) * cf(-0.05, -3.3, 0))
665
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part57", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 1.25, 0.5, euler(mr(-90), mr(90), 0) * cf(0.15, -2.575, 0))
666
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part58", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 0.25, euler(mr(-90), mr(90), 0) * cf(-0.025, -2.65, 0))
667
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part59", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 2, euler(mr(-90), mr(90), 0) * cf(-0.075, -2.85, 0))
668
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part60", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(90), mr(-90), 0) * cf(-0.1, -2.825, 0))
669
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part61", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1, euler(mr(90), mr(-90), 0) * cf(-0.05, -3.125, 0))
670
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part62", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(-90), 0) * cf(0, -3.3, 0))
671
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part63", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.75, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -2.75, 0))
672
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part64", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.75, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -2.925, 0))
673
    prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part65", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -3.1, 0))
674
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part01", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(2.55, 0, -0.175 * i))
675
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part02", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(1.8, 0, -0.175 * i))
676
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part03", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(1.05, 0, -0.175 * i))
677
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part04", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(0.25, 0, -0.175 * i))
678
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part05", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(-0.5, 0, -0.175 * i))
679
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part06", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(-1.25, 0, -0.175 * i))
680
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part07", "Neon", "BlockMesh", "nil", "nil", 25, 3, 1, euler(0, 0, 0) * cf(0.65, 0, -0.45 * i))
681
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part08", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(2.65, 0, -0.6 * i))
682
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part09", "Neon", "BlockMesh", "nil", "nil", 15, 3, 0.5, euler(0, 0, 0) * cf(0.65, 0, -0.6 * i))
683
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part10", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.35, 0, -0.6 * i))
684
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part11", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(1.65, 0, -0.675 * i))
685
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part12", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(0.65, 0, -0.675 * i))
686
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part13", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-0.35, 0, -0.675 * i))
687
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part14", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(1.65, 0, -0.325 * i))
688
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part15", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(2.65, 0, -0.225 * i))
689
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part16", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.5, 2.5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(2.9, 0, -0.15 * i))
690
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part17", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(2.65, 0, -0.325 * i))
691
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part18", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.35, 0, -0.225 * i))
692
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part19", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-0.35, 0, -0.325 * i))
693
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part20", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.5, 2.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.6, 0, -0.15 * i))
694
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part21", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(-1.35, 0, -0.325 * i))
695
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part22", "Neon", "BlockMesh", "nil", "nil", 3, 1.05, 1.05, euler(mr(45), 0, mr(90)) * cf(3.15, 0, -0.15 * i))
696
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part23", "Neon", "CylinderMesh", "nil", "nil", 1.5, 3, 1.5, euler(0, 0, 0) * cf(3.05, 0, -0.5 * i))
697
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part24", "Neon", "BlockMesh", "nil", "nil", 1.25, 3, 1.25, euler(0, 0, 0) * cf(3.175, 0, -0.525 * i))
698
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part25", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.25, 1.25, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(3.425, 0, -0.525 * i))
699
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part26", "Neon", "CylinderMesh", "nil", "nil", 5.5, 3, 0.5, euler(mr(90), 0, 0) * cf(2.925, 0, -0.8 * i))
700
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part27", "Neon", "CylinderMesh", "nil", "nil", 5.5, 0.5, 0.5, euler(mr(90), 0, 0) * euler(0, mr(-45) * i, 0) * cf(2.89, 0, -1.135 * i))
701
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part28", "Neon", "CylinderMesh", "nil", "nil", 5.5, 1.5, 0.5, euler(mr(90), 0, 0) * euler(0, mr(-90), 0) * cf(2.725, 0, -1.15 * i))
702
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part29", "Neon", "BlockMesh", "nil", "nil", 3, 1.75, 1, euler(mr(90), 0, mr(90)) * cf(-1.95, 0, -0.175 * i))
703
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part30", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1, 1, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.95, 0, -0.45 * i))
704
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part31", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.375, 0, -0.7 * i))
705
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part32", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.55, 0, -0.7 * i))
706
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part33", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 2.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-90) * i, 0) * cf(-1.65, 0, -0.7 * i))
707
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part34", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.55, 0, -0.825 * i))
708
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part35", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.375, 0, -0.825 * i))
709
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part36", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.65, 0, -0.95 * i))
710
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part37", "Neon", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.5, euler(mr(90), mr(90), 0) * cf(-1.8, 0, -0.725 * i))
711
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part38", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.475, 0, -0.95 * i))
712
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part39", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.6, 0, -1.2 * i))
713
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part40", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 1.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-90) * i, 0) * cf(-1.75, 0, -1.1 * i))
714
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part41", "Neon", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.5, euler(mr(90), mr(90), 0) * cf(-1.9, 0, -1.05 * i))
715
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part42", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 1, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(-150) * i, 0) * cf(-2.034, 0, -1.221 * i))
716
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part43", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.775, 0, -1.275 * i))
717
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part44", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.75, 1.5, euler(mr(90), mr(90), 0) * cf(-1.725, 0, -1.2 * i))
718
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part45", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 3, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(55) * i, 0) * cf(-2.387, 0, -0.631 * i))
719
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part46", "Neon", "BlockMesh", "nil", "nil", 1.5, 0.5, 2.5, euler(mr(90), 0, mr(90)) * cf(-2, 0, -0.4 * i))
720
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part47", "Neon", "BlockMesh", "nil", "nil", 3, 0.75, 1.25, euler(mr(90), 0, mr(90)) * cf(-2.175, 0, -0.225 * i))
721
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part48", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 0.75, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-2.375, 0, -0.225 * i))
722
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part49", "Neon", "BlockMesh", "nil", "nil", 3, 0.5, 2.5, euler(mr(90), 0, mr(90)) * cf(-2.3, 0, -0.05 * i))
723
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part50", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 0.5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-2.6, 0, -0.05 * i))
724
    prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part51", "Neon", "BlockMesh", "nil", "nil", 3, 0.25, 0.5, euler(0, 0, mr(90)) * cf(-2.125, 0, -0.15 * i))
725
    prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part52", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.75, 0.75, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(0, 0, 0))
726
    prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part53", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.25, 0.25, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-45) * i, 0) * cf(0.212, 0, 0.212 * i))
727
    prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part54", "Neon", "BlockMesh", "nil", "nil", 1, 0.255, 0.5, euler(0, 0, mr(90)) * euler(0, mr(-45) * i, 0) * cf(0.088, 0, 0.053 * i))
728
    prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part55", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.2, 0.2, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(0.141, 0, -0.038 * i))
729
    prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part56", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(0.141, 0, 0))
730
    prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part57", "Neon", "CylinderMesh", "nil", "nil", 0.7, 1, 0.7, euler(0, 0, 0) * cf(0, 0, 0))
731
    prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part58", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(-0.029, 0, 0.026 * i))
732
    prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part59", "Neon", "BlockMesh", "nil", "nil", 1, 1, 0.25, euler(0, mr(45) * i, 0) * cf(0.124, 0, 0.124 * i))
733
    prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part60", "Neon", "BlockMesh", "nil", "nil", 1, 0.75, 0.2, euler(0, 0, mr(90)) * cf(0.216, 0, -0.05 * i))
734
    prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part61", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0, 0, 0.1 * i))
735
    prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part62", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.4, 0.4, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(0.15, 0, 0))
736
    prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part63", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.4, 0.4, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0.325, 0, 0))
737
    prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part64", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.225, 1.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0.475, 0, -0.038 * i))
738
    prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part65", "Neon", "BlockMesh", "nil", "nil", 0.5, 1.5, 0.1, euler(0, 0, mr(90)) * cf(0.175, 0, -0.05 * i))
739
  end
740
  for _,c in pairs(modelzorz:children()) do
741
    table.insert(Weapon, c)
742
    table.insert(Saber, c)
743
  end
744
  for _,c in pairs(model2:children()) do
745
    table.insert(Weapon, c)
746
    table.insert(Buster, c)
747
  end
748
  for _,c in pairs(model3:children()) do
749
    c.Transparency = 1
750
  end
751
  rmwld1.C0 = cf(0, 0, 0)
752
  rmwld1a.C0 = cf(0, 0, 0)
753
  for _,c in pairs(handle:children()) do
754
    if c.className == "Motor" then
755
      table.insert(Welds, c)
756
    end
757
  end
758
  local hitbox = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt())
759
  hitbox.Anchored = true
760
  local hitboxCF = cf(0, 0, 0)
761
  sizeseq = ns({nsk(0, 0.3), nsk(0.25, 1), nsk(0.6, 0.2), nsk(1, 0)})
762
  transseq = ns({nsk(0, 0), nsk(0.8, 0.5), nsk(1, 1)})
763
  local starsparti = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.5, sizeseq, "http://www.roblox.com/asset/?id=146120327", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(1, 1), 40, nr(-360, 360), nr(-200, 200), nr(8), 180)
764
  starsparti.Parent = Torso
765
  sizeseq = ns({nsk(0, 1), nsk(0.7, 6), nsk(1, 7)})
766
  transseq = ns({nsk(0, 0), nsk(1, 1)})
767
  local lparti1 = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 1, sizeseq, "http://www.roblox.com/asset/?id=243098098", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(0.2, 0.2), 500, nr(-360, 360), nr(0, 0), nr(0), 0)
768
  lparti1.Parent = Torso
769
  sizeseq = ns({nsk(0, 0.5), nsk(1, 0.5)})
770
  transseq = ns({nsk(0, 0), nsk(1, 1)})
771
  local sparti = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 1, sizeseq, "http://www.roblox.com/asset/?id=82057200", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(1, 1), 50, nr(-360, 360), nr(400, 500), nr(5), 180)
772
  sparti.Parent = Torso
773
  local effects = it("Model", modelzorz)
774
  effects.Name = "Effects"
775
  hboxpos = Instance.new("BodyPosition", nil)
776
  hboxpos.P = 2000
777
  hboxpos.D = 100
778
  hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
779
    Tool = Instance.new("HopperBin")
780
    Tool.Parent = Backpack
781
    Tool.Name = "Dreamer"
782
    Bin = Tool
783
  local bodvel = Instance.new("BodyVelocity")
784
  local bg = Instance.new("BodyGyro")
785
  so = function(id, par, vol, pit)
786
  local sou = Instance.new("Sound", par or workspace)
787
  sou.Volume = vol
788
  sou.Pitch = pit or 1
789
  sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
790
  coroutine.resume(coroutine.create(function(Sound)
791
    swait()
792
    Sound:play()
793
  end
794
), sou)
795
  game:GetService("Debris"):AddItem(sou, 6)
796
end
797
798
function clerp(a,b,t) 
799
local qa = {QuaternionFromCFrame(a)}
800
local qb = {QuaternionFromCFrame(b)} 
801
local ax, ay, az = a.x, a.y, a.z 
802
local bx, by, bz = b.x, b.y, b.z
803
local _t = 1-t
804
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
805
end 
806
 
807
function QuaternionFromCFrame(cf) 
808
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
809
local trace = m00 + m11 + m22 
810
if trace > 0 then 
811
local s = math.sqrt(1 + trace) 
812
local recip = 0.5/s 
813
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
814
else 
815
local i = 0 
816
if m11 > m00 then
817
i = 1
818
end
819
if m22 > (i == 0 and m00 or m11) then 
820
i = 2 
821
end 
822
if i == 0 then 
823
local s = math.sqrt(m00-m11-m22+1) 
824
local recip = 0.5/s 
825
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
826
elseif i == 1 then 
827
local s = math.sqrt(m11-m22-m00+1) 
828
local recip = 0.5/s 
829
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
830
elseif i == 2 then 
831
local s = math.sqrt(m22-m00-m11+1) 
832
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
833
end 
834
end 
835
end
836
 
837
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
838
local xs, ys, zs = x + x, y + y, z + z 
839
local wx, wy, wz = w*xs, w*ys, w*zs 
840
local xx = x*xs 
841
local xy = x*ys 
842
local xz = x*zs 
843
local yy = y*ys 
844
local yz = y*zs 
845
local zz = z*zs 
846
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)) 
847
end
848
 
849
function QuaternionSlerp(a, b, t) 
850
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
851
local startInterp, finishInterp; 
852
if cosTheta >= 0.0001 then 
853
if (1 - cosTheta) > 0.0001 then 
854
local theta = math.acos(cosTheta) 
855
local invSinTheta = 1/math.sin(theta) 
856
startInterp = math.sin((1-t)*theta)*invSinTheta 
857
finishInterp = math.sin(t*theta)*invSinTheta  
858
else 
859
startInterp = 1-t 
860
finishInterp = t 
861
end 
862
else 
863
if (1+cosTheta) > 0.0001 then 
864
local theta = math.acos(-cosTheta) 
865
local invSinTheta = 1/math.sin(theta) 
866
startInterp = math.sin((t-1)*theta)*invSinTheta 
867
finishInterp = math.sin(t*theta)*invSinTheta 
868
else 
869
startInterp = t-1 
870
finishInterp = t 
871
end 
872
end 
873
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 
874
end
875
876
  hideanim = function()
877
  equipped = false
878
  if Mode == "Sabers" then
879
    UnSword()
880
  end
881
  for i = 0, 1, 0.1 do
882
    swait()
883
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
884
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
885
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
886
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
887
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
888
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
889
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
890
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
891
  end
892
  mdec2.Parent = nil
893
  mdec.Parent = Decrease
894
  Humanoid.JumpPower = 50
895
end
896
897
  mdec.Parent = Decrease
898
  equipanim = function()
899
  equipped = true
900
  floating = false
901
  Humanoid.JumpPower = 60
902
  local dec = Instance.new("NumberValue", Decrease)
903
  dec.Name = "DecreaseMvmt"
904
  dec.Value = 10
905
  so("341336144", LeftArm, 1, 1)
906
  so("341336144", RightArm, 1, 1)
907
  rara = 4
908
  local col = 1
909
  local colnum = 0
910
  for i = 0, 1, 0.1 do
911
    swait()
912
    colnum = colnum + 1
913
914
    if #Neons - 1 < col and (colnum) % 2 == 0 then
915
      col = 1
916
    end
917
    if (colnum) % 2 == 0 then
918
      col = col + 1
919
    end
920
    MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
921
    MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
922
    rara = rara + 1
923
    if rara % 6 == 0 then
924
      hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
925
      if hitfloor2 ~= nil then
926
        MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 1, 2, 1, 1, -0.1, 1, 0.1)
927
      end
928
    end
929
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.3, 0, 0), 0.3)
930
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1) * euler(-0.05, 0, 0), 0.1)
931
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.4) * euler(0, -1.57, 0), 0.3)
932
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4) * euler(0, 1.57, 0), 0.3)
933
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0.1), 0.3)
934
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.05, 0, -0.05), 0.3)
935
  end
936
  for i = 0, 1, 0.1 do
937
    swait()
938
    colnum = colnum + 1
939
940
    if #Neons - 1 < col and (colnum) % 2 == 0 then
941
      col = 1
942
    end
943
    if (colnum) % 2 == 0 then
944
      col = col + 1
945
    end
946
    MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
947
    MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
948
    rara = rara + 1
949
    if rara % 6 == 0 then
950
      hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
951
      if hitfloor2 ~= nil then
952
        MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 1, 2, 1, 1, -0.1, 1, 0.1)
953
      end
954
    end
955
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.4, 0, 0), 0.3)
956
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.2) * euler(-0.05, 0, 0), 0.1)
957
    RW.C0 = clerp(RW.C0, cf(1.2, 0.7, -0.4) * euler(2.9, 0, 0) * euler(0, 0, -0.5) * euler(0, 1.5, 0), 0.25)
958
    LW.C0 = clerp(LW.C0, cf(-1.2, 0.7, -0.4) * euler(2.9, 0, 0) * euler(0, 0, 0.5) * euler(0, -1.5, 0), 0.25)
959
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0.1), 0.3)
960
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.05, 0, -0.05), 0.3)
961
  end
962
  mdec.Parent = nil
963
  mdec2.Parent = Decrease
964
  hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
965
  if hitfloor2 ~= nil then
966
    MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 4, 2, 4, 0.7, -0.08, 0.7, 0.05)
967
  end
968
  MagicCircle(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 10, 10, 10, 4, 4, 4, 0.1, 1)
969
  MagicCircle(Neons[col], RightArm.CFrame * cf(0, -1, 0), 10, 10, 10, 4, 4, 4, 0.1, 1)
970
  so("341336138", LeftArm, 1, 1)
971
  so("341336138", RightArm, 1, 1)
972
  so("341336243", LeftArm, 1, 1)
973
  so("341336243", RightArm, 1, 1)
974
  for i = 0, 1, 0.1 do
975
    swait()
976
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
977
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.4) * euler(-0.05, 0, 0), 0.2)
978
    if i < 0.3 then
979
      RW.C0 = clerp(RW.C0, cf(1, 0.5, 0.3) * euler(-0.2, 0, 1) * euler(0, -1.5, 0), 0.4)
980
      LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.3) * euler(-0.2, 0, -1) * euler(0, 1.5, 0), 0.4)
981
    else
982
      RW.C0 = clerp(RW.C0, cf(1, 0.5, 0.3) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.2)
983
      LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.3) * euler(0.4, 0, -0.4) * euler(0, 1.5, 0), 0.2)
984
    end
985
    RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.4)
986
    LH.C0 = clerp(LH.C0, cf(-0.95, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.05), 0.4)
987
  end
988
  dec.Parent = nil
989
  floating = true
990
end
991
992
  StaggerAnim = function()
993
  attack = true
994
  removeControl()
995
  local dosaber = false
996
  if Mode == "Sabers" then
997
    dosaber = true
998
  end
999
  Mode = "Stagger"
1000
  for i = 1, math.random(2, 4) do
1001
    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)
1002
  end
1003
  for i = 0, 1, 0.35 do
1004
    swait()
1005
    if dosaber == true then
1006
      for d = 1, #Saber do
1007
        Saber[d].Transparency = i
1008
      end
1009
    end
1010
    do
1011
      do
1012
        Torso.Velocity = RootPart.CFrame.lookVector * -40
1013
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
1014
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
1015
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
1016
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1017
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
1018
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1019
        RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
1020
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
1021
1022
      end
1023
    end
1024
  end
1025
  if dosaber == true then
1026
    for d = 1, #Saber do
1027
      Saber[d].Transparency = 1
1028
    end
1029
    handlewld.Part1 = Torso
1030
    handlewld2.Part1 = Torso
1031
    handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
1032
    handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
1033
    mwld1.C0 = cf(0, 2, 0)
1034
    mwld2.C0 = cf(0, 2, 0)
1035
    floating = true
1036
  end
1037
  for i = 1, 0, -0.2 do
1038
    swait()
1039
    if dosaber == true then
1040
      for d = 1, #Saber do
1041
        Saber[d].Transparency = i
1042
      end
1043
    end
1044
    do
1045
      do
1046
        Torso.Velocity = RootPart.CFrame.lookVector * -40
1047
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
1048
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
1049
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
1050
        RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1051
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
1052
        LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
1053
        RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
1054
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
1055
1056
      end
1057
    end
1058
  end
1059
  for d = 1, #Saber do
1060
    Saber[d].Transparency = 0
1061
  end
1062
  for i = 0, 1, 0.1 do
1063
    swait()
1064
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
1065
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
1066
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
1067
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1068
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
1069
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1070
    RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
1071
    LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
1072
  end
1073
  for i = 1, 40 do
1074
    swait()
1075
    if StunT.Value <= Stun.Value then
1076
      break
1077
    end
1078
  end
1079
  do
1080
    Mode = "Normal"
1081
    resumeControl()
1082
    combo = 0
1083
    attack = false
1084
  end
1085
end
1086
1087
  StaggerHitt = function()
1088
  attack = true
1089
  for i = 1, math.random(2, 4) do
1090
    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)
1091
  end
1092
  for i = 0, 1, 0.1 do
1093
    swait()
1094
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
1095
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
1096
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
1097
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1098
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
1099
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1100
    RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
1101
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
1102
  end
1103
  attack = false
1104
end
1105
1106
  StunAnim = function()
1107
  attack = true
1108
  removeControl()
1109
  Stunned.Value = true
1110
  showDamage(Character, "Stunned", "Interrupt")
1111
  local dec = Instance.new("NumberValue", Decrease)
1112
  dec.Name = "DecreaseMvmt"
1113
  dec.Value = 10
1114
  for i = 0, 1, 0.3 do
1115
    swait()
1116
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
1117
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
1118
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
1119
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1120
    LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
1121
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1122
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
1123
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
1124
  end
1125
  for i = 0, 1, 0.3 do
1126
    swait()
1127
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
1128
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
1129
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
1130
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1131
    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)
1132
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1133
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
1134
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
1135
  end
1136
  for i = 0, 1, 0.3 do
1137
    swait()
1138
    Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
1139
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
1140
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
1141
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1142
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
1143
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
1144
    RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
1145
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
1146
  end
1147
  local gairost = Instance.new("BodyGyro")
1148
  gairost.Parent = RootPart
1149
  gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
1150
  gairost.P = 20000
1151
  gairost.cframe = cf(0, 0, 0)
1152
  for i = 0, 1, 0.1 do
1153
    swait()
1154
    if hitfloor ~= nil then
1155
      Torso.Velocity = vt(0, 0, 0)
1156
    end
1157
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
1158
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
1159
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
1160
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1161
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
1162
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1163
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
1164
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
1165
  end
1166
  for i = 1, 70 do
1167
    swait()
1168
    gairost.cframe = RootPart.CFrame
1169
    if hitfloor ~= nil then
1170
      Torso.Velocity = vt(0, 0, 0)
1171
    end
1172
  end
1173
  for i = 0, 1, 0.2 do
1174
    swait()
1175
    Stun.Value = 0
1176
    gairost.cframe = RootPart.CFrame
1177
    Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
1178
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
1179
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
1180
    RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1181
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
1182
    LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
1183
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
1184
    LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
1185
  end
1186
  resumeControl()
1187
  gairost.Parent = nil
1188
  dec.Parent = nil
1189
  Stun.Value = 0
1190
  combo = 0
1191
  Stunned.Value = false
1192
  attack = false
1193
  for i = 1, 10 do
1194
    swait()
1195
    Stun.Value = 0
1196
  end
1197
end
1198
1199
  UnSword = function()
1200
  combo = 0
1201
  for i = 0, 1, 0.1 do
1202
    swait()
1203
    mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1204
    mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1205
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.5)
1206
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.5)
1207
    RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(1.4, 0, 0.7) * euler(0, 1.3, 0), 0.5)
1208
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.8, 0, -0.8) * euler(0, -1.5, 0), 0.5)
1209
    RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.5)
1210
    LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.15), 0.5)
1211
    for d = 1, #Saber do
1212
      Saber[d].Transparency = i
1213
    end
1214
  end
1215
  for d = 1, #Saber do
1216
    Saber[d].Transparency = 1
1217
  end
1218
  handlewld.Part1 = Torso
1219
  handlewld2.Part1 = Torso
1220
  handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
1221
  handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
1222
  mwld1.C0 = cf(0, 2, 0)
1223
  mwld2.C0 = cf(0, 2, 0)
1224
  floating = true
1225
  Mode = "Normal"
1226
  for i = 1, 0, -0.2 do
1227
    swait()
1228
    for d = 1, #Saber do
1229
      Saber[d].Transparency = i
1230
    end
1231
  end
1232
  for d = 1, #Saber do
1233
    Saber[d].Transparency = 0
1234
  end
1235
end
1236
1237
  attackone = function()
1238
  floating = false
1239
  Mode = "Sabers"
1240
  for i = 0, 1, 0.3 do
1241
    swait()
1242
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
1243
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.3)
1244
    RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 1.2) * euler(0, 0, 0), 0.3)
1245
    LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -1.6) * euler(0, 2, 0), 0.3)
1246
    RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.3)
1247
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
1248
    for d = 1, #Saber do
1249
      Saber[d].Transparency = i
1250
    end
1251
  end
1252
  for d = 1, #Saber do
1253
    Saber[d].Transparency = 1
1254
  end
1255
  handlewld.Part1 = LeftArm
1256
  handlewld2.Part1 = RightArm
1257
  handlewld.C0 = euler(0, 0, -1.57) * euler(0, 1.57, 0) * cf(0, 1, 0)
1258
  handlewld2.C0 = euler(0, 0, -1.57) * euler(0, 1.57, 0) * cf(0, 1, 0)
1259
  mwld1.C0 = cf(0, 0, 0)
1260
  mwld2.C0 = cf(0, 0, 0)
1261
  so("341336274", main1, 0.6, 1.2)
1262
  so("341336274", main2, 0.6, 1.2)
1263
  for i = 1, 0, -0.3 do
1264
    swait()
1265
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
1266
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.3)
1267
    RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 1.2) * euler(0, 0, 0), 0.3)
1268
    LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -1.6) * euler(0, 2, 0), 0.3)
1269
    RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.3)
1270
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
1271
    for d = 1, #Saber do
1272
      Saber[d].Transparency = i
1273
    end
1274
  end
1275
  for d = 1, #Saber do
1276
    Saber[d].Transparency = 0
1277
  end
1278
  hitbox.Parent = modelzorz
1279
  hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
1280
  teh = math.random(-30, 30) / 100
1281
  so("341336307", main1, 0.6, 1.4 + teh)
1282
  so("341336485", main1, 0.6, 1 + teh)
1283
  for i = 0, 1, 0.12 do
1284
    swait()
1285
    hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
1286
    MagniDamage(hitbox, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
1287
    mwld1.C0 = clerp(mwld1.C0, cf(0, 0.2, 0) * euler(0, 0, -1), 0.4)
1288
    mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0.5), 0.4)
1289
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.4)
1290
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, -0.8), 0.4)
1291
    RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(2.5, 0, 0.6) * euler(0, -1, 0), 0.4)
1292
    LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0.4, 0, -1.6) * euler(0, 2.5, 0) * euler(-2.5, 0, 0), 0.4)
1293
    RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, -0.1), 0.4)
1294
    LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0.1) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(-0.1, 0, 0.05), 0.4)
1295
    if Stagger.Value ~= true and StunT.Value > Stun.Value then
1296
      do
1297
        if StaggerHit.Value == true then
1298
          break
1299
        end
1300
      end
1301
    end
1302
  end
1303
  if Stagger.Value ~= true and StunT.Value > Stun.Value then
1304
      teh = math.random(-30, 30) / 100
1305
      so("341336307", main2, 0.6, 1.4 + teh)
1306
      so("341336485", main2, 0.6, 1 + teh)
1307
      for i = 0, 1, 0.12 do
1308
        swait()
1309
        hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
1310
        MagniDamage(hitbox, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
1311
        mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
1312
        mwld2.C0 = clerp(mwld2.C0, cf(0, 0.3, 0) * euler(0, 0, -0.5), 0.4)
1313
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.4)
1314
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.4)
1315
        RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(2.5, 0, 0.6) * euler(0, 0.2, 0) * euler(-2, 0, 0), 0.4)
1316
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0.4, 0), 0.4)
1317
        RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.4)
1318
        LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.4)
1319
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1320
          do
1321
            if StaggerHit.Value == true then
1322
              break
1323
            end
1324
          end
1325
        end
1326
      end
1327
      hitbox.Parent = nil
1328
    end
1329
end
1330
1331
  attacktwo = function()
1332
  for i = 0, 1, 0.15 do
1333
    swait()
1334
    mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
1335
    mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
1336
    Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6) * euler(0.1, 0, 0), 0.4)
1337
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.4)
1338
    RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(0.6, 0, 0.7) * euler(0, 1, 0) * euler(0.4, 0, 0), 0.4)
1339
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.8) * euler(0, 2, 0), 0.4)
1340
    RH.C0 = clerp(RH.C0, cf(0.9, -0.7, 0.2) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.4)
1341
    LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.2, 0, 0.15), 0.4)
1342
    if Stagger.Value ~= true and StunT.Value > Stun.Value then
1343
      do
1344
        if StaggerHit.Value == true then
1345
          break
1346
        end
1347
      end
1348
    end
1349
  end
1350
  if Stagger.Value ~= true and StunT.Value > Stun.Value then
1351
      hitbox.Parent = modelzorz
1352
      hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
1353
      teh = math.random(-30, 30) / 100
1354
      so("341336307", main1, 0.6, 1.4 + teh)
1355
      so("341336485", main1, 0.6, 1 + teh)
1356
      for i = 0, 1, 0.12 do
1357
        swait()
1358
        hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
1359
        MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
1360
        mwld1.C0 = clerp(mwld1.C0, cf(0, 0.3, 0) * euler(0, 0, -0.4), 0.4)
1361
        mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
1362
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.1, 0, 0), 0.4)
1363
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.8) * euler(0.2, 0, 0), 0.4)
1364
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(0, -1, 0) * euler(0, 0, 0), 0.4)
1365
        LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1, 0, -0.8) * euler(0, 2.5, 0) * euler(-2, 0, 0), 0.4)
1366
        RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.3), 0.4)
1367
        LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, 0.2) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(0.1, 0, -0.15), 0.4)
1368
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1369
          do
1370
            if StaggerHit.Value == true then
1371
              break
1372
            end
1373
          end
1374
        end
1375
      end
1376
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1377
          teh = math.random(-30, 30) / 100
1378
          so("341336307", main2, 0.6, 1.4 + teh)
1379
          so("341336485", main2, 0.6, 1 + teh)
1380
          for i = 0, 1, 0.12 do
1381
            swait()
1382
            hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
1383
            MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
1384
            mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
1385
            mwld2.C0 = clerp(mwld2.C0, cf(0, 0.3, 0) * euler(0, 0, -0.4), 0.4)
1386
            Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.1, 0, 0), 0.4)
1387
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
1388
            RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, 1.57) * euler(0, -1.5, 0) * euler(-2, 0, 0), 0.4)
1389
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.8) * euler(0, -0.2, 0) * euler(0, 0, 0), 0.4)
1390
            RH.C0 = clerp(RH.C0, cf(0.8, -0.7, 0.3) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, 0.1), 0.4)
1391
            LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.6, 0) * euler(-0.2, 0, 0.3), 0.4)
1392
            if Stagger.Value ~= true and StunT.Value > Stun.Value then
1393
              do
1394
                if StaggerHit.Value == true then
1395
                  break
1396
                end
1397
              end
1398
            end
1399
          end
1400
          hitbox.Parent = nil
1401
        end
1402
      end
1403
end
1404
1405
  attackthree = function()
1406
  for i = 0, 1, 0.15 do
1407
    swait()
1408
    mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1409
    mwld2.C0 = clerp(mwld2.C0, cf(0, 0.1, 0) * euler(0, 0, 0.4), 0.5)
1410
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.5, 0, 0), 0.5)
1411
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0.8) * euler(0, 0, 0.1) * euler(-0.2, 0, 0), 0.5)
1412
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(2.8, 0, 0), 0.5)
1413
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.7) * euler(0, 0.5, 0) * euler(0, 0, 0.6), 0.5)
1414
    RH.C0 = clerp(RH.C0, cf(1.1, -0.7, -0.2) * euler(0, 1.57, 0) * euler(0, -0.1, 0) * euler(-0.05, 0, 0.15), 0.5)
1415
    LH.C0 = clerp(LH.C0, cf(-0.95, -0.7, -0.1) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.1), 0.5)
1416
    if Stagger.Value ~= true and StunT.Value > Stun.Value then
1417
      do
1418
        if StaggerHit.Value == true then
1419
          break
1420
        end
1421
      end
1422
    end
1423
  end
1424
  if Stagger.Value ~= true and StunT.Value > Stun.Value then
1425
      hitbox.Parent = modelzorz
1426
      hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
1427
      teh = math.random(-30, 30) / 100
1428
      so("341336307", main2, 0.6, 1.4 + teh)
1429
      so("341336485", main2, 0.6, 1 + teh)
1430
      for i = 0, 1, 0.12 do
1431
        swait()
1432
        hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
1433
        MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
1434
        mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1435
        mwld2.C0 = clerp(mwld2.C0, cf(0, 0.2, 0) * euler(0, 0, -0.4), 0.5)
1436
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.2, 0, 0), 0.5)
1437
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.5, -0.8) * euler(0, 0, 0.1) * euler(0.2, 0, 0), 0.5)
1438
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(0.3, 0, 0), 0.5)
1439
        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 1.7, 0), 0.5)
1440
        RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.2) * euler(0, 1.57, 0) * euler(0, -0.1, 0) * euler(-0.05, 0, -0.1), 0.5)
1441
        LH.C0 = clerp(LH.C0, cf(-0.95, -0.5, -0.6) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.5)
1442
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1443
          do
1444
            if StaggerHit.Value == true then
1445
              break
1446
            end
1447
          end
1448
        end
1449
      end
1450
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1451
          teh = math.random(-30, 30) / 100
1452
          so("341336307", main1, 0.6, 1.4 + teh)
1453
          so("341336485", main1, 0.6, 1 + teh)
1454
          for i = 0, 1, 0.12 do
1455
            swait()
1456
            hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
1457
            MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
1458
            mwld1.C0 = clerp(mwld1.C0, cf(0, 0.1, 0) * euler(0, 0, -0.4), 0.5)
1459
            mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
1460
            Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.2, 0, 0), 0.5)
1461
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.5, -0.8) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.5)
1462
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(-0.3, 0, 0.6), 0.5)
1463
            LW.C0 = clerp(LW.C0, cf(-0.6, 0.5, -0.5) * euler(1.57, 0, -1.57) * euler(0, 1.7, 0) * euler(-2.8, 0, 0), 0.5)
1464
            RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.2) * euler(0, 1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.1), 0.5)
1465
            LH.C0 = clerp(LH.C0, cf(-0.95, -0.5, -0.6) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.2, 0, 0.4), 0.5)
1466
            if Stagger.Value ~= true and StunT.Value > Stun.Value then
1467
              do
1468
                if StaggerHit.Value == true then
1469
                  break
1470
                end
1471
              end
1472
            end
1473
          end
1474
          hitbox.Parent = nil
1475
        end
1476
      end
1477
end
1478
1479
  attackfour = function()
1480
  so("341336200", main1, 0.6, 1)
1481
  so("341336200", main2, 0.6, 1)
1482
  RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, 0, 0), 0.3)
1483
  LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 0, 0), 0.3)
1484
  local tehn = math.random(1, 7)
1485
  local rara = 0
1486
  for i = 0, 1, 0.05 do
1487
    swait()
1488
    rara = rara + 1
1489
    if (rara) % 2 == 0 then
1490
      if tehn > 6 then
1491
        tehn = 1
1492
      else
1493
        tehn = tehn + 1
1494
      end
1495
    end
1496
    da1 = math.random(150, 250) / 100
1497
    da2 = math.random(700, 900) / 100
1498
    MagicCircle(Neons[tehn], main1.CFrame * cf(0, 3, 0), 5, 10, 5, da1, da2, da1, 0.2)
1499
    MagicCircle(Neons[tehn], main2.CFrame * cf(0, 3, 0), 5, 10, 5, da1, da2, da1, 0.2)
1500
    mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1501
    mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
1502
    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
1503
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
1504
    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0), 0.3)
1505
    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0), 0.3)
1506
    RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.3)
1507
    LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.3)
1508
    if Stagger.Value ~= true and StunT.Value > Stun.Value then
1509
      do
1510
        if StaggerHit.Value == true then
1511
          break
1512
        end
1513
      end
1514
    end
1515
  end
1516
  if Stagger.Value ~= true and StunT.Value > Stun.Value then
1517
      hitbox.Parent = modelzorz
1518
      hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
1519
      so("341336307", main1, 1, 1.2)
1520
      so("341336307", main2, 1, 1.2)
1521
      for i = 0, 1, 0.2 do
1522
        swait()
1523
        hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
1524
        MagniDamage(hitbox, 2, 8, 10, math.random(6, 8), "Normal", RootPart, 0.2, 2, (math.random(4, 6)), nil, true)
1525
        hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
1526
        MagniDamage(hitbox, 2, 8, 10, math.random(6, 8), "Normal", RootPart, 0.2, 2, (math.random(4, 6)), nil, true)
1527
        mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.8)
1528
        mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.8)
1529
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.8)
1530
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.8)
1531
        RW.C0 = clerp(RW.C0, cf(0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0) * euler(-2.2, 0, 0), 0.8)
1532
        LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0) * euler(-2.2, 0, 0), 0.8)
1533
        RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.8)
1534
        LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.8)
1535
        if Stagger.Value ~= true and StunT.Value > Stun.Value then
1536
          do
1537
            if StaggerHit.Value == true then
1538
              break
1539
            end
1540
          end
1541
        end
1542
      end
1543
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1544
          for i = 1, 3 do
1545
            Star(main2, 50)
1546
            Star(main1, 50)
1547
          end
1548
          hitbox.Parent = nil
1549
          local ref1 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
1550
          ref1.Anchored = true
1551
          ref1.CFrame = cf(main1.Position)
1552
          game:GetService("Debris"):AddItem(ref1, 1)
1553
          so("341336243", ref1, 1, 1)
1554
          local ref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
1555
          ref2.Anchored = true
1556
          ref2.CFrame = cf(main2.Position)
1557
          game:GetService("Debris"):AddItem(ref2, 1)
1558
          so("341336243", ref1, 1, 1)
1559
          for i = 0, 1, 0.2 do
1560
            swait()
1561
            mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.5)
1562
            mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.5)
1563
            Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.5)
1564
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.5)
1565
            RW.C0 = clerp(RW.C0, cf(0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0) * euler(-2.2, 0, 0), 0.5)
1566
            LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0) * euler(-2.2, 0, 0), 0.5)
1567
            RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.5)
1568
            LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.5)
1569
            if Stagger.Value ~= true and StunT.Value > Stun.Value then
1570
              do
1571
                if StaggerHit.Value == true then
1572
                  break
1573
                end
1574
              end
1575
            end
1576
          end
1577
          for i = 0, 1, 0.3 do
1578
            swait()
1579
            for d = 1, #Saber do
1580
              Saber[d].Transparency = i
1581
            end
1582
          end
1583
          for d = 1, #Saber do
1584
            Saber[d].Transparency = 1
1585
          end
1586
          handlewld.Part1 = Torso
1587
          handlewld2.Part1 = Torso
1588
          handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
1589
          handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
1590
          mwld1.C0 = cf(0, 2, 0)
1591
          mwld2.C0 = cf(0, 2, 0)
1592
          floating = true
1593
          Mode = "Normal"
1594
          for i = 1, 0, -0.2 do
1595
            swait()
1596
            for d = 1, #Saber do
1597
              Saber[d].Transparency = i
1598
            end
1599
          end
1600
          for d = 1, #Saber do
1601
            Saber[d].Transparency = 0
1602
          end
1603
        end
1604
      end
1605
end
1606
1607
  PowerRising = function()
1608
  attack = true
1609
  if Mode == "Sabers" then
1610
    UnSword()
1611
  end
1612
  local dec = Instance.new("NumberValue", Decrease)
1613
  dec.Name = "DecreaseMvmt"
1614
  dec.Value = 10
1615
  manainc = 12
1616
  local col = 1
1617
  local colnum = 0
1618
  local dopart = 0
1619
  cooldownsadd[1] = 0.18
1620
  cooldownsadd[2] = 0.16
1621
  cooldownsadd[3] = 0.14
1622
  prising = true
1623
  local prref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
1624
  prref.Anchored = true
1625
  while prising == true do
1626
      swait()
1627
      dopart = dopart + 1
1628
      if (dopart) % 4 == 0 then
1629
        colnum = colnum + 1
1630
        if (colnum) % 2 == 0 then
1631
          col = math.random(1, 7)
1632
        end
1633
        MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 0.6, 0.6, 0.6, 0.05, 1)
1634
        MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 0.6, 0.6, 0.6, 0.05, 1)
1635
        prref.CFrame = cf(RootPart.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
1636
        local phitfloor, pposfloor = rayCast(prref.Position, CFrame.new(prref.Position, prref.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
1637
        if phitfloor ~= nil then
1638
          MagicCircle(Neons[col], cf(pposfloor), 1, 1, 1, 1, 5, 1, 0.1)
1639
        end
1640
      end
1641
      do
1642
        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.3, 0, 0), 0.1)
1643
        RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(1, 0, 1.3) * euler(0, -1.57, 0), 0.1)
1644
        LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(1, 0, -1.3) * euler(0, 1.57, 0), 0.1)
1645
        RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.1)
1646
        LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.1)
1647
        if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
1648
          break
1649
        end
1650
      end
1651
  end
1652
  cooldownsadd[1] = 0.16
1653
  cooldownsadd[2] = 0.14
1654
  cooldownsadd[3] = 0.12
1655
  manainc = 16
1656
  dec.Parent = nil
1657
  attack = false
1658
end
1659
1660
  Star = function(mainpart, rand)
1661
  local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
1662
  stref.Anchored = true
1663
  stref.Material = "Neon"
1664
  stref.CFrame = cf(mainpart.Position)
1665
  local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(3, 3, 3))
1666
  hitbox.CFrame = mainpart.CFrame * cf(math.random(-100, 100) / 100, 2 + math.random(-200, 200) / 100, math.random(-100, 100) / 100)
1667
  table.insert(Effects, {RootPart.CFrame.lookVector + vt(math.random(-rand, rand) / 100, math.random(-rand, rand) / 100, math.random(-rand, rand) / 100), "Shoot", 80, hitbox.Position, 7, 9, 0, math.random(1, 7), stref, euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
1668
end
1669
1670
  do1 = function()
1671
  if attack == true then
1672
    return 
1673
  end
1674
    attack = true
1675
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
1676
    return 
1677
  end
1678
  if cooldowns[1] >= 50 then
1679
    if Mode == "Sabers" then
1680
      UnSword()
1681
    end
1682
    cbuster = true
1683
    Humanoid.AutoRotate = false
1684
    for i = 0, 1, 0.1 do
1685
      swait()
1686
      LeftArm.Transparency = i
1687
      for d = 1, #Buster do
1688
        Buster[d].Transparency = i
1689
      end
1690
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.3)
1691
      RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.3)
1692
      LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.5) * euler(1.3, 0, -1) * euler(0, 0, 0), 0.3)
1693
      RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
1694
      LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
1695
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
1696
        do
1697
          if StaggerHit.Value == true then
1698
            break
1699
          end
1700
        end
1701
      end
1702
    end
1703
    local rara1 = Instance.new("NumberValue", Decrease)
1704
    rara1.Name = "DecreaseMvmt"
1705
    rara1.Value = 0.4
1706
    local rara2 = Instance.new("NumberValue", Decrease)
1707
    rara2.Name = "DecreaseDef"
1708
    rara2.Value = -0.1
1709
    handlewld3.Part1 = LeftArm
1710
    handlewld3.C0 = euler(0, 0, mr(-90)) * euler(0, mr(40), 0) * cf(0, 0, 0)
1711
    LeftArm.Transparency = 1
1712
    for d = 1, #Buster do
1713
      Buster[d].Transparency = 1
1714
    end
1715
    for i = 1, 0, -0.2 do
1716
      swait()
1717
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.5)
1718
      for d = 1, #Buster do
1719
        Buster[d].Transparency = i
1720
      end
1721
    end
1722
    for d = 1, #Buster do
1723
      Buster[d].Transparency = 0
1724
    end
1725
    cshoot = false
1726
    cdebounce = false
1727
    local dashoot = 0
1728
    local laser1 = part(3, nil, 0, 0.5, BrickColor.new("Really red"), "Effect", vt())
1729
    laser1.Material = "Neon"
1730
    laser1.Anchored = true
1731
    local laser2 = laser1:Clone()
1732
    local laser3 = laser1:Clone()
1733
    local laser4 = laser1:Clone()
1734
    local lmsh1 = mesh("CylinderMesh", laser1, "", "", vt(0, 0, 0), vt(1, 1, 1))
1735
    local lmsh2 = mesh("CylinderMesh", laser2, "", "", vt(0, 0, 0), vt(1, 1, 1))
1736
    local lmsh3 = mesh("CylinderMesh", laser3, "", "", vt(0, 0, 0), vt(1, 1, 1))
1737
    local lmsh4 = (mesh("CylinderMesh", laser4, "", "", vt(0, 0, 0), vt(1, 1, 1)))
1738
    local l2cf, l3cf, l4cf = nil, nil, nil
1739
    while cbuster == true and cooldowns[1] > 10 do
1740
              swait()
1741
                    if MMouse ~= nil then
1742
                      local mpos = handle3.CFrame * euler(0, 0, 0)
1743
                      local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
1744
                      local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
1745
                      handlewld3a.Part0 = handle3
1746
                      handlewld3a.Part1 = handle3a
1747
                      handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.3)
1748
                    end
1749
              if busterlaser == true then
1750
                busterlaser = false
1751
                so("306247678", Torso, 1, 0.5)
1752
                for _,c in pairs(model3:children()) do
1753
                  c.Transparency = 0
1754
                end
1755
                local dec = Instance.new("NumberValue", Decrease)
1756
                dec.Name = "DecreaseMvmt"
1757
                dec.Value = 0
1758
                for d = 1, 7 do
1759
                  for i = 1, 0, -0.25 do
1760
                    swait()
1761
                    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0, 0), 0.3)
1762
                    do
1763
                      do
1764
                        if d == 1 then
1765
                          rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
1766
                          rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
1767
                          rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
1768
                          rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
1769
                        else
1770
                          if d == 2 then
1771
                            rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1772
                            rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1773
                            rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
1774
                            rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
1775
                          else
1776
                            if d == 3 then
1777
                              rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1778
                              rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1779
                              rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
1780
                              rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
1781
                            else
1782
                              if d == 4 then
1783
                                rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
1784
                                rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
1785
                                rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
1786
                                rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
1787
                              else
1788
                                if d == 5 then
1789
                                  rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1790
                                  rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1791
                                  rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
1792
                                  rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
1793
                                else
1794
                                  if d == 6 then
1795
                                    rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1796
                                    rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1797
                                    rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
1798
                                    rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
1799
                                  else
1800
                                    if d == 7 then
1801
                                      rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
1802
                                      rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
1803
                                      rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
1804
                                      rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
1805
                                    end
1806
                                  end
1807
                                end
1808
                              end
1809
                            end
1810
                          end
1811
                        end
1812
                      end
1813
                    end
1814
                  end
1815
                end
1816
                local mainpos = MMouse.Hit.p
1817
                for i = 0, 3, 0.2 do
1818
                  swait()
1819
                  if mainpos ~= nil then
1820
                    local mpos = handle3.CFrame * euler(0, 0, 0)
1821
                    local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
1822
                    local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
1823
                    handlewld3a.Part0 = handle3
1824
                    handlewld3a.Part1 = handle3a
1825
                    handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.8)
1826
                  end
1827
                  do
1828
                    do
1829
                      if i < 1 then
1830
                        handlewld4.C0 = clerp(handlewld4.C0, cf(0, 0, 0.1), 0.4)
1831
                        handlewld5.C0 = clerp(handlewld5.C0, cf(0, 0, -0.1), 0.4)
1832
                        handlewld6.C0 = euler(0, mr(-45) * i, 0) * cf(3.35, 0, -0.075 - 0.065 * i)
1833
                        handlewld7.C0 = euler(0, mr(45) * i, 0) * cf(3.35, 0, 0.075 + 0.065 * i)
1834
                      end
1835
                    end
1836
                  end
1837
                end
1838
                mana.Value = mana.Value - 15
1839
                cooldowns[1] = cooldowns[1] - 30
1840
                for i = 1, 3 do
1841
                  so("341336476", handle10, 10, 1)
1842
                end
1843
                local refl = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
1844
                refl.Anchored = true
1845
                for d = 1, 7 do
1846
                  for i = 0, 1, 0.25 do
1847
                    swait()
1848
                    if mainpos ~= nil then
1849
                      local mpos = handle3.CFrame * euler(0, 0, 0)
1850
                      local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
1851
                      local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
1852
                      handlewld3a.Part0 = handle3
1853
                      handlewld3a.Part1 = handle3a
1854
                      handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 0.5)
1855
                      for i = 1, 5 do
1856
                        tehcf = cf(0, 0, -1.5)
1857
                        if i == 2 then
1858
                          tehcf = cf(0, 3, -1.5)
1859
                        else
1860
                          if i == 3 then
1861
                            tehcf = cf(0, -3, -1.5)
1862
                          else
1863
                            if i == 4 then
1864
                              tehcf = cf(3, 0, -1.5)
1865
                            else
1866
                              if i == 5 then
1867
                                tehcf = cf(-3, 0, -1.5)
1868
                              end
1869
                            end
1870
                          end
1871
                        end
1872
                        refl.CFrame = handle10.CFrame * tehcf
1873
                        local mainpos = refl.Position
1874
                        local dist = 500
1875
                        raa = math.random(1, 7)
1876
                        if i == 1 then
1877
                          MagicCircle(Neons[raa], refl.CFrame, 30, 30, 10, 0, 0, 0, 0.3)
1878
                        end
1879
                        local bounce = 10
1880
                        repeat
1881
                          bounce = bounce - 1
1882
                          local hit, pos = rayCast(mainpos, refl.CFrame.lookVector, dist, Character)
1883
                          local targl = mainpos - pos
1884
                          local magl = targl.magnitude
1885
                          dist = dist - magl
1886
                          local mag = (mainpos - pos).magnitude
1887
                          if i == 1 then
1888
                            MagicCylinder(Neons[raa], CFrame.new((mainpos + pos) / 2, pos) * angles(1.57, 0, 0), 30, mag * 5, 30, 0, 0, 0, 0.3)
1889
                          end
1890
                          mainpos = pos
1891
                          if hit ~= nil then
1892
                            Damagefunc(hit, 8, 10, 0, "Normal", RootPart, 0.2, 1, (math.random(8, 10)), nil, nil, true)
1893
                          end
1894
                        until dist <= 0 or hit == nil or bounce < 1
1895
                      end
1896
                    end
1897
                    do
1898
                      do
1899
                        if d == 7 then
1900
                          rainbow6.Transparency = 1
1901
                          rainbow6a.Transparency = 1
1902
                          rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
1903
                          rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
1904
                          rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
1905
                          rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
1906
                        else
1907
                          if d == 6 then
1908
                            rainbow5.Transparency = 1
1909
                            rainbow5a.Transparency = 1
1910
                            rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1911
                            rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1912
                            rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
1913
                            rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
1914
                          else
1915
                            if d == 5 then
1916
                              rainbow4.Transparency = 1
1917
                              rainbow4a.Transparency = 1
1918
                              rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1919
                              rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1920
                              rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
1921
                              rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
1922
                            else
1923
                              if d == 4 then
1924
                                rainbow3.Transparency = 1
1925
                                rainbow3a.Transparency = 1
1926
                                rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
1927
                                rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
1928
                                rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
1929
                                rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
1930
                              else
1931
                                if d == 3 then
1932
                                  rainbow2.Transparency = 1
1933
                                  rainbow2a.Transparency = 1
1934
                                  rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1935
                                  rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1936
                                  rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
1937
                                  rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
1938
                                else
1939
                                  if d == 2 then
1940
                                    rainbow1.Transparency = 1
1941
                                    rainbow1a.Transparency = 1
1942
                                    rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1943
                                    rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
1944
                                    rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
1945
                                    rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
1946
                                  else
1947
                                    if d == 1 then
1948
                                      rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
1949
                                      rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
1950
                                      rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
1951
                                      rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
1952
                                    end
1953
                                  end
1954
                                end
1955
                              end
1956
                            end
1957
                          end
1958
                        end
1959
                      end
1960
                    end
1961
                  end
1962
                end
1963
                for _,c in pairs(model3:children()) do
1964
                  c.Transparency = 1
1965
                end
1966
                for i = 0, 1, 0.1 do
1967
                  swait()
1968
                  if mainpos ~= nil then
1969
                    local mpos = handle3.CFrame * euler(0, 0, 0)
1970
                    local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
1971
                    local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
1972
                    handlewld3a.Part0 = handle3
1973
                    handlewld3a.Part1 = handle3a
1974
                    handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.5)
1975
                  end
1976
                  do
1977
                    do
1978
                      if i < 1 then
1979
                        handlewld4.C0 = clerp(handlewld4.C0, cf(0, 0, 0), 0.4)
1980
                        handlewld5.C0 = clerp(handlewld5.C0, cf(0, 0, 0), 0.4)
1981
                        handlewld6.C0 = clerp(handlewld6.C0, cf(3.35, 0, -0.075), 0.4)
1982
                        handlewld7.C0 = clerp(handlewld7.C0, cf(3.35, 0, 0.075), 0.4)
1983
                      end
1984
                    end
1985
                  end
1986
                end
1987
                Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 1)
1988
                RootJoint.C1 = clerp(RootJoint.C1, RootCF, 1)
1989
                dec.Parent = nil
1990
                handlewld4.C0 = cf(0, 0, 0)
1991
                handlewld5.C0 = cf(0, 0, 0)
1992
                handlewld6.C0 = clerp(handlewld6.C0, cf(3.35, 0, -0.075), 1)
1993
                handlewld7.C0 = clerp(handlewld7.C0, cf(3.35, 0, 0.075), 1)
1994
              end
1995
              if Stagger.Value ~= true and StunT.Value > Stun.Value then
1996
                if StaggerHit.Value ~= true and cshoot == true then
1997
                  cdebounce = true
1998
                  cshoot = false
1999
while cdebounce do
2000
swait()
2001
                if cdebounce == true and dashoot < 27 then
2002
                  if dashoot == 0 then
2003
                    l2cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
2004
                    l3cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
2005
                    l4cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
2006
                  end
2007
                  dashoot = dashoot + 1
2008
                  local hit, pos = rayCast(handle10.Position, handle10.CFrame.lookVector, 500, Character)
2009
                  local hit2, pos2 = rayCast(handle10.Position, handle10.CFrame.lookVector + l2cf, 500, Character)
2010
                  local hit3, pos3 = rayCast(handle10.Position, handle10.CFrame.lookVector + l3cf, 500, Character)
2011
                  local hit4, pos4 = rayCast(handle10.Position, handle10.CFrame.lookVector + l4cf, 500, Character)
2012
                  if (dashoot) % 3 == 0 and dashoot < 20 then
2013
                    so("341336333", handle10, 1, 1)
2014
                  end
2015
                  if dashoot == 20 or dashoot == 22 or dashoot == 24 or dashoot == 26 then
2016
                    cooldowns[1] = cooldowns[1] - 4
2017
                    handlewld8.C0 = euler(0, mr(-20), 0) * cf(0.291, 0, 0)
2018
                    handlewld9.C0 = euler(0, mr(20), 0) * cf(0.291, 0, 0)
2019
                    so("341336385", handle10, 1, 1)
2020
                    table.insert(Effects, {handle10.CFrame.lookVector, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
2021
                    table.insert(Effects, {handle10.CFrame.lookVector + l2cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
2022
                    table.insert(Effects, {handle10.CFrame.lookVector + l3cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
2023
                    table.insert(Effects, {handle10.CFrame.lookVector + l4cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
2024
                  else
2025
                    handlewld8.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
2026
                    handlewld9.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
2027
                  end
2028
                  local mag = (handle10.Position - pos).magnitude
2029
                  laser1.Parent = effects
2030
                  laser1.CFrame = cf((handle10.Position + pos) / 2, pos) * angles(1.57, 0, 0)
2031
                  lmsh1.Scale = vt(0.5, mag * 5, 0.5)
2032
                  local mag2 = (handle10.Position - pos2).magnitude
2033
                  laser2.Parent = effects
2034
                  laser2.CFrame = cf((handle10.Position + pos2) / 2, pos2) * angles(1.57, 0, 0)
2035
                  lmsh2.Scale = vt(0.5, mag2 * 5, 0.5)
2036
                  local mag3 = (handle10.Position - pos3).magnitude
2037
                  laser3.Parent = effects
2038
                  laser3.CFrame = cf((handle10.Position + pos3) / 2, pos3) * angles(1.57, 0, 0)
2039
                  lmsh3.Scale = vt(0.5, mag3 * 5, 0.5)
2040
                  local mag4 = (handle10.Position - pos4).magnitude
2041
                  laser4.Parent = effects
2042
                  laser4.CFrame = cf((handle10.Position + pos4) / 2, pos4) * angles(1.57, 0, 0)
2043
                  lmsh4.Scale = vt(0.5, mag4 * 5, 0.5)
2044
                else
2045
                  do
2046
                    laser1.Parent = nil
2047
                    laser2.Parent = nil
2048
                    laser3.Parent = nil
2049
                    laser4.Parent = nil
2050
                    cdebounce = false
2051
                    dashoot = 0
2052
                    if MMouse ~= nil then
2053
                      local mpos = handle3.CFrame * euler(0, 0, 0)
2054
                      local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
2055
                      local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
2056
                      handlewld3a.Part0 = handle3
2057
                      handlewld3a.Part1 = handle3a
2058
                      handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.3)
2059
                    end
2060
                    end
2061
                  end
2062
                  end
2063
                  end
2064
                  end
2065
                      if Anim == "Idle" then
2066
                        RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.3)
2067
                        RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
2068
                        LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
2069
                      end
2070
          if Anim == "Walk" or Anim == "Run" then
2071
            RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4) * euler(0, 0, 0), 0.3)
2072
            RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
2073
            LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
2074
          end
2075
        if Anim == "Jump" then
2076
          RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.8) * euler(0, 0, 0), 0.3)
2077
          RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
2078
          LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
2079
        end
2080
      if Anim == "Fall" then
2081
        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, -1.5, 0), 0.2)
2082
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
2083
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
2084
      end
2085
            end
2086
    Humanoid.AutoRotate = true
2087
    cbuster = false
2088
    rara1.Parent = nil
2089
    rara2.Parent = nil
2090
    handlewld8.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
2091
    handlewld9.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
2092
    laser1.Parent = nil
2093
    laser2.Parent = nil
2094
    laser3.Parent = nil
2095
    laser4.Parent = nil
2096
    LW.Part0 = ch.Torso
2097
    LW.Part1 = ch["Left Arm"]
2098
    handlewld3.Part0 = handle3
2099
    handlewld3.Part1 = LeftArm
2100
    for i = 0, 1, 0.1 do
2101
      swait()
2102
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.3)
2103
      for d = 1, #Buster do
2104
        Buster[d].Transparency = i
2105
      end
2106
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
2107
        do
2108
          if StaggerHit.Value == true then
2109
            break
2110
          end
2111
        end
2112
      end
2113
    end
2114
    handlewld3a.C0 = clerp(handlewld3a.C0, cf(0, 0, 0), 1)
2115
    handlewld3.Part1 = Torso
2116
    handlewld3.C0 = euler(1.57, 0, 0) * cf(-0.5, 0, 0) * euler(0, 0, -0.5) * cf(0, 0, -0.8)
2117
    for i = 1, 0, -0.1 do
2118
      swait()
2119
      LeftArm.Transparency = i
2120
      for d = 1, #Buster do
2121
        Buster[d].Transparency = i
2122
      end
2123
    end
2124
    LeftArm.Transparency = 0
2125
    for d = 1, #Buster do
2126
      Buster[d].Transparency = 0
2127
    end
2128
  end
2129
    attack = false
2130
end
2131
2132
  do2 = function()
2133
	if sbreaker == true then
2134
	sbreaker = false
2135
	end
2136
  if attack == true then
2137
    return 
2138
  end
2139
    attack = true
2140
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
2141
    return 
2142
  end
2143
  if cooldowns[2] >= 70 then
2144
    if Mode == "Sabers" then
2145
      UnSword()
2146
    end
2147
    local rara1 = Instance.new("NumberValue", Decrease)
2148
    rara1.Name = "DecreaseMvmt"
2149
    rara1.Value = -0.05
2150
    local rara2 = Instance.new("NumberValue", Decrease)
2151
    rara2.Name = "DecreaseDef"
2152
    rara2.Value = 0.1
2153
    so("341336144", LeftArm, 1, 1)
2154
    so("341336144", RightArm, 1, 1)
2155
    sbreaker = true
2156
    local sbref1 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
2157
    local sbrwld1 = weld(sbref1, sbref1, LeftArm, cf(0, 1, 0))
2158
    local sbref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
2159
    local sbrwld2 = weld(sbref2, sbref2, RightArm, cf(0, 1, 0))
2160
    local da1 = lparti1:Clone()
2161
    da1.Parent = sbref1
2162
    local da2 = lparti1:Clone()
2163
    da2.Parent = sbref2
2164
    da1.Enabled = true
2165
    da2.Enabled = true
2166
    for i = 0, 1, 0.1 do
2167
      swait()
2168
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
2169
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
2170
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
2171
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
2172
        do
2173
          if StaggerHit.Value == true then
2174
            break
2175
          end
2176
        end
2177
      end
2178
    end
2179
    shockshoot = false
2180
    shockdebounce = false
2181
    local dashoot = 3
2182
    local sref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
2183
    sref.Anchored = true
2184
    TehM = nil
2185
    while sbreaker == true and cooldowns[2] > 20 do
2186
        swait()
2187
        if sbreakerII == true then
2188
          sbreakerII = false
2189
          for i = 0, 1, 0.1 do
2190
            swait()
2191
            da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2192
            da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2193
            RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3, 0, -0.2) * euler(0, 0, 0), 0.3)
2194
            LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.3, 0, 0.2) * euler(0, 0, 0), 0.3)
2195
          end
2196
          cooldowns[2] = cooldowns[2] - 30
2197
          mana.Value = mana.Value - 10
2198
          for i = 1, 3 do
2199
            MouseLook = cf((RootPart.Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
2200
            local hit, pos = rayCast(RootPart.Position, MouseLook.lookVector, 200, Character)
2201
            rand = cf(math.random(-1500, 1500) / 100, 10, math.random(-1500, 1500) / 100)
2202
            sref.CFrame = cf(pos) * rand
2203
            local hit2, pos2 = rayCast(sref.Position, CFrame.new(sref.Position, sref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
2204
            local d1 = part(3, effects, 0, 0.5, BrickColor.new("White"), "Effect", vt())
2205
            d1.Anchored = true
2206
            d1.CFrame = cf(pos2)
2207
            d1.Material = "Neon"
2208
            msh = mesh("CylinderMesh", d1, "nil", "nil", vt(0, 0, 0), vt(100, 5, 100))
2209
            d2 = d1:Clone()
2210
            d2.Transparency = 1
2211
            d2.Parent = d1
2212
            d2.CFrame = cf(d1.Position)
2213
            d2.BrickColor = BrickColor.new("New Yeller")
2214
            table.insert(Effects, {d1, "SatelliteStrike2", d2, d2.Mesh, 0, 0})
2215
          end
2216
        end
2217
        do
2218
          if shockshoot == true then
2219
            shockshoot = false
2220
            shockdebounce = true
2221
          end
2222
          if shockdebounce == true and dashoot < 25 then
2223
            dashoot = dashoot + 1
2224
            if (dashoot) % 4 == 0 and dashoot < 20 then
2225
              cooldowns[2] = cooldowns[2] - 3
2226
              MouseLook = cf((RootPart.Position + TehM) / 2, TehM)
2227
              local hit, pos = rayCast(RootPart.Position, MouseLook.lookVector, 200, Character)
2228
              rand = cf(math.random(-1500, 1500) / 100, 10, math.random(-1500, 1500) / 100)
2229
              if dashoot == 4 then
2230
                rand = cf(0, 10, 0)
2231
              end
2232
              sref.CFrame = cf(pos) * rand
2233
              local hit2, pos2 = rayCast(sref.Position, CFrame.new(sref.Position, sref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
2234
              local d1 = part(3, effects, 0, 0.5, BrickColor.new("White"), "Effect", vt())
2235
              d1.Anchored = true
2236
              d1.CFrame = cf(pos2)
2237
              d1.Material = "Neon"
2238
              msh = mesh("CylinderMesh", d1, "nil", "nil", vt(0, 0, 0), vt(50, 5, 50))
2239
              d2 = d1:Clone()
2240
              d2.Transparency = 1
2241
              d2.Parent = d1
2242
              d2.CFrame = cf(d1.Position)
2243
              d2.BrickColor = BrickColor.new("New Yeller")
2244
              table.insert(Effects, {d1, "SatelliteStrike", d2, d2.Mesh, 0, 0})
2245
            end
2246
          else
2247
            do
2248
              shockdebounce = false
2249
              dashoot = 3
2250
              da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2251
              da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2252
              RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
2253
              LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
2254
              if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
2255
                break
2256
              end
2257
            end
2258
          end
2259
        end
2260
              if Anim == "Idle" then
2261
                RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
2262
                LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
2263
                    end
2264
                if Anim == "Walk" or Anim == "Run" then
2265
                  RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
2266
                  LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
2267
                    end
2268
                  if Anim == "Jump" then
2269
                    RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
2270
                    LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
2271
                    end
2272
                    if Anim == "Fall" then
2273
                      RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
2274
                      LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
2275
                    end
2276
      end
2277
    sbreaker = false
2278
    rara1.Parent = nil
2279
    rara2.Parent = nil
2280
    sbrwld1.Parent = nil
2281
    sbrwld2.Parent = nil
2282
    sbref1.Anchored = true
2283
    sbref2.Anchored = true
2284
    da1.Enabled = false
2285
    da2.Enabled = false
2286
    game:GetService("Debris"):AddItem(sbref1, 5)
2287
    game:GetService("Debris"):AddItem(sbref2, 5)
2288
  end
2289
    attack = false
2290
end
2291
2292
  do3 = function()
2293
  if attack == true then
2294
    return 
2295
  end
2296
    attack = true
2297
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
2298
    return 
2299
  end
2300
  if cooldowns[3] >= 80 then
2301
    if Mode == "Sabers" then
2302
      UnSword()
2303
    end
2304
    local rara1 = Instance.new("NumberValue", Decrease)
2305
    rara1.Name = "DecreaseMvmt"
2306
    rara1.Value = 0.1
2307
    local rara2 = Instance.new("NumberValue", Decrease)
2308
    rara2.Name = "DecreaseDef"
2309
    rara2.Value = 0.05
2310
    so("341336144", LeftArm, 1, 1)
2311
    so("341336144", RightArm, 1, 1)
2312
    sblazing = true
2313
    local sbref1 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt(1, 1, 1))
2314
    local sbrwld1 = weld(sbref1, sbref1, LeftArm, cf(0, 1, 0))
2315
    local sbref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt(1, 1, 1))
2316
    local sbrwld2 = weld(sbref2, sbref2, RightArm, cf(0, 1, 0))
2317
    local da1 = sparti:Clone()
2318
    da1.Parent = sbref1
2319
    local da2 = sparti:Clone()
2320
    da2.Parent = sbref2
2321
    da1.Enabled = true
2322
    da2.Enabled = true
2323
    for i = 0, 1, 0.1 do
2324
      swait()
2325
      Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
2326
      RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
2327
      LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
2328
      if Stagger.Value ~= true and StunT.Value > Stun.Value then
2329
        do
2330
          if StaggerHit.Value == true then
2331
            break
2332
          end
2333
        end
2334
      end
2335
    end
2336
    starshoot = false
2337
    stardebounce = false
2338
    local dashoot = 0
2339
    local sref = part(3, nil, 0, 0.5, BrickColor.new("Black"), "Reference", vt())
2340
    sref.Anchored = true
2341
    TehM = nil
2342
    while sblazing == true and cooldowns[3] > 20 do
2343
              swait()
2344
              if galacblazing == true then
2345
                galacblazing = false
2346
                for i = 0, 1, 0.1 do
2347
                  swait()
2348
                  RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(2.8, 0, 0.4) * euler(0, 0, 0), 0.3)
2349
                  LW.C0 = clerp(LW.C0, cf(-1.5, 0.6, 0) * euler(2.8, 0, -0.4) * euler(0, 0, 0), 0.3)
2350
                  Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.6, 0, 0), 0.3)
2351
                  da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2352
                  da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2353
                  if math.random(1, 2) == 1 then
2354
                    da1.RotSpeed = nr(400, 500)
2355
                  else
2356
                    da1.RotSpeed = nr(-500, -400)
2357
                  end
2358
                  if math.random(1, 2) == 1 then
2359
                    da2.RotSpeed = nr(400, 500)
2360
                  else
2361
                    da2.RotSpeed = nr(-500, -400)
2362
                  end
2363
                end
2364
                cooldowns[3] = cooldowns[3] - 20
2365
                mana.Value = mana.Value - 20
2366
                sref.CFrame = cf(RootPart.Position) * cf(0, 50, 0)
2367
                sref.CFrame = cf(sref.Position, MMouse.Hit.p)
2368
                local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
2369
                stref.Anchored = true
2370
                stref.Material = "Neon"
2371
                stref.CFrame = sref.CFrame
2372
                local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(90, 90, 90))
2373
                so("341336159", stref, 1, 0.4)
2374
                table.insert(Effects, {stref.CFrame.lookVector, "Shoot4", 150, sref.Position, 7, 9, 0, math.random(1, 7), stref, math.random(-50, 50), 0})
2375
              end
2376
            do
2377
              if Stagger.Value ~= true and StunT.Value > Stun.Value then
2378
                if StaggerHit.Value ~= true or starshoot == true then
2379
                  starshoot = false
2380
                  stardebounce = true
2381
                  cooldowns[3] = cooldowns[3] - 10
2382
                  sref.CFrame = cf(RootPart.Position) * cf(math.random(-3000, 3000) / 100, math.random(500, 5000) / 100, math.random(-3000, 3000) / 100)
2383
                  sref.CFrame = cf(sref.Position, MMouse.Hit.p)
2384
                  local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
2385
                  stref.Anchored = true
2386
                  stref.Material = "Neon"
2387
                  stref.CFrame = sref.CFrame
2388
                  local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(30, 30, 30))
2389
                  so("341336159", stref, 1, 1)
2390
                  table.insert(Effects, {stref.CFrame.lookVector, "Shoot3", 150, sref.Position, 7, 9, 0, math.random(1, 7), stref, math.random(-50, 50), 0})
2391
                end
2392
                do
2393
                  if stardebounce == true and dashoot < 10 then
2394
                    dashoot = dashoot + 1
2395
                  else
2396
                    stardebounce = false
2397
                    dashoot = 0
2398
                  end
2399
                  da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2400
                  da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
2401
                  if math.random(1, 2) == 1 then
2402
                    da1.RotSpeed = nr(400, 500)
2403
                  else
2404
                    da1.RotSpeed = nr(-500, -400)
2405
                  end
2406
                  if math.random(1, 2) == 1 then
2407
                    da2.RotSpeed = nr(400, 500)
2408
                  else
2409
                    da2.RotSpeed = nr(-500, -400)
2410
                  end
2411
                  Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
2412
                  RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
2413
                  LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
2414
                  if Anim == "Idle" then
2415
                    RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
2416
                    LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
2417
                  end
2418
                end
2419
          if Anim == "Walk" or Anim == "Run" then
2420
            RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
2421
            LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
2422
          end
2423
        end
2424
        if Anim == "Jump" then
2425
          RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
2426
          LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
2427
        end
2428
      end
2429
      if Anim == "Fall" then
2430
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
2431
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
2432
      end
2433
    end
2434
    sblazing = false
2435
    rara1.Parent = nil
2436
    rara2.Parent = nil
2437
    sref.Parent = nil
2438
    sbrwld1.Parent = nil
2439
    sbrwld2.Parent = nil
2440
    sbref1.Anchored = true
2441
    sbref2.Anchored = true
2442
    da1.Enabled = false
2443
    da2.Enabled = false
2444
    game:GetService("Debris"):AddItem(sbref1, 5)
2445
    game:GetService("Debris"):AddItem(sbref2, 5)
2446
  end
2447
    attack = false
2448
end
2449
2450
  do4 = function()
2451
  if attack == true then
2452
    return 
2453
  end
2454
  if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
2455
    return 
2456
  end
2457
  cooldowns[4] = 0
2458
end
2459
2460
  findNearestTorso = function(pos, distance)
2461
  local list = (game.Workspace:children())
2462
  local torso = nil
2463
  local dist = distance
2464
  local temp, human, temp2 = nil, nil, nil
2465
  for x = 1, #list do
2466
    temp2 = list[x]
2467
    canfind = true
2468
    if game.Players:GetPlayerFromCharacter(temp2) ~= nil and game.Players:GetPlayerFromCharacter(temp2).TeamColor == Player.TeamColor and Player.Neutral == false then
2469
      canfind = false
2470
    end
2471
    canfind = true
2472
    if temp2.className == "Model" and temp2 ~= Character and canfind == true then
2473
      temp = temp2:findFirstChild("Torso")
2474
      human = temp2:findFirstChild("Humanoid")
2475
      if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
2476
        torso = temp
2477
        dist = (temp.Position - pos).magnitude
2478
      end
2479
    end
2480
  end
2481
  return torso, dist
2482
end
2483
2484
  DecreaseStat = function(Model, Stat, Amount, Duration)
2485
  if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
2486
    Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
2487
    d = Instance.new("NumberValue", Model.Stats.Decrease)
2488
    dur = Instance.new("NumberValue", d)
2489
    dur.Name = "Duration"
2490
    dur.Value = Duration
2491
    game:GetService("Debris"):AddItem(d, 20)
2492
    if Stat == "Damage" then
2493
      d.Name = "DecreaseAtk"
2494
    else
2495
      if Stat == "Defense" then
2496
        d.Name = "DecreaseDef"
2497
      else
2498
        if Stat == "Movement" then
2499
          d.Name = "DecreaseMvmt"
2500
        end
2501
      end
2502
    end
2503
    if Model:findFirstChild("Torso") ~= nil then
2504
      display = ""
2505
      if Stat == "Damage" then
2506
        if Amount > 0 then
2507
          display = "-Damage"
2508
        else
2509
          display = "+Damage"
2510
        end
2511
      else
2512
        if Stat == "Defense" then
2513
          if Amount > 0 then
2514
            display = "-Defense"
2515
          else
2516
            display = "+Defense"
2517
          end
2518
        else
2519
          if Stat == "Movement" then
2520
            if Amount > 0 then
2521
              display = "-Movement"
2522
            else
2523
              display = "+Movement"
2524
            end
2525
          end
2526
        end
2527
      end
2528
      showDamage(Model, display, "Debuff")
2529
    end
2530
    d.Value = Amount
2531
  end
2532
end
2533
2534
  GetDist = function(Part1, Part2, magni)
2535
  local targ = Part1.Position - Part2.Position
2536
  local mag = targ.magnitude
2537
  if mag <= magni then
2538
    return true
2539
  else
2540
    return false
2541
  end
2542
end
2543
2544
  MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
2545
  for _,c in pairs(workspace:children()) do
2546
    local hum = c:findFirstChild("Humanoid")
2547
    if hum ~= nil then
2548
      local head = nil
2549
      for _,d in pairs(c:children()) do
2550
        if d.className == "Model" and ranged ~= true then
2551
          head = d:findFirstChild("Hitbox")
2552
          if d.Parent == Character then
2553
            break
2554
          end
2555
          if head ~= nil then
2556
            local targ = head.Position - Part.Position
2557
            local mag = targ.magnitude
2558
            if mag <= magni and c.Name ~= Player.Name then
2559
              ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
2560
              ref.Anchored = true
2561
              ref.CFrame = cf(head.Position)
2562
              game:GetService("Debris"):AddItem(ref, 1)
2563
              hitnum = math.random(1, 5)
2564
              if hitnum == 1 then
2565
                so("199148971", ref, 1, 1)
2566
              else
2567
                if hitnum == 2 then
2568
                  so("199149025", ref, 1, 1)
2569
                else
2570
                  if hitnum == 3 then
2571
                    so("199149072", ref, 1, 1)
2572
                  else
2573
                    if hitnum == 4 then
2574
                      so("199149109", ref, 1, 1)
2575
                    else
2576
                      if hitnum == 5 then
2577
                        so("199149119", ref, 1, 1)
2578
                      end
2579
                    end
2580
                  end
2581
                end
2582
              end
2583
              StaggerHit.Value = true
2584
            end
2585
          end
2586
        end
2587
        do
2588
          if d.className == "Part" then
2589
            head = d
2590
            if head ~= nil then
2591
              local targ = head.Position - Part.Position
2592
              local mag = targ.magnitude
2593
              if mag <= magni and c.Name ~= Player.Name then
2594
                if stun == nil then
2595
                  stun = math.random(5, 10)
2596
                end
2597
                local Rang = nil
2598
                if Ranged == false then
2599
                  Rang = true
2600
                end
2601
                local stag = nil
2602
                if shbash == true then
2603
                  stag = true
2604
                end
2605
                Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
2606
              end
2607
            end
2608
          end
2609
        end
2610
      end
2611
    end
2612
  end
2613
end
2614
2615
  MagniBuff = function(Part, magni, Dec, DecAm, Dur)
2616
  DecreaseStat(Character, Dec, DecAm, Dur)
2617
  for _,c in pairs(workspace:children()) do
2618
    local hum = c:findFirstChild("Humanoid")
2619
    if hum ~= nil then
2620
      local head = c:findFirstChild("Torso")
2621
      if head ~= nil then
2622
        local targ = head.Position - Part.Position
2623
        local mag = targ.magnitude
2624
        cando = true
2625
        if mag <= magni then
2626
          if Player.Neutral == false then
2627
            if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
2628
              if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
2629
                cando = true
2630
              else
2631
                cando = false
2632
              end
2633
            else
2634
              cando = false
2635
            end
2636
            if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
2637
              cando = true
2638
            end
2639
          else
2640
            cando = false
2641
          end
2642
          if cando == true then
2643
            DecreaseStat(head.Parent, Dec, DecAm, Dur)
2644
          end
2645
        end
2646
      end
2647
    end
2648
  end
2649
end
2650
2651
  rayCast = function(Pos, Dir, Max, Ignore)
2652
  return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
2653
end
2654
2655
  local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
2656
  LastPoint = Point
2657
  effect = function(Color, Ref, LP, P1, returnn, size, thing1)
2658
  if LP == nil or P1 == nil then
2659
    return 
2660
  end
2661
  local effectsmsh = Instance.new("SpecialMesh")
2662
  effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
2663
  effectsmsh.MeshType = "Head"
2664
  effectsmsh.Name = "Mesh"
2665
  local effectsg = Instance.new("Part")
2666
  NoOutline(effectsg)
2667
  effectsg.formFactor = 3
2668
  effectsg.CanCollide = false
2669
  effectsg.Name = "Eff"
2670
  effectsg.Locked = true
2671
  effectsg.Anchored = true
2672
  effectsg.Size = Vector3.new(0.5, 1, 0.5)
2673
  effectsg.Parent = workspace
2674
  effectsmsh.Parent = effectsg
2675
  effectsg.BrickColor = BrickColor.new(Color)
2676
  effectsg.Reflectance = Ref
2677
  local point1 = P1
2678
  local mg = (LP.p - point1.p).magnitude
2679
  effectsg.Size = Vector3.new(0.5, mg, 0.5)
2680
  effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
2681
  effectsmsh.Scale = Vector3.new(size, 1, size)
2682
  game:GetService("Debris"):AddItem(effectsg, 2)
2683
  if returnn then
2684
    return effectsg
2685
  end
2686
  if not returnn then
2687
    if thing1 == 1 then
2688
      table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
2689
    else
2690
      if thing1 == 2 then
2691
        table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
2692
      else
2693
        if thing1 == 3 then
2694
          table.insert(Effects, {effectsg, "Cylinder", 0, 0, 0, 0.1, effectsmsh})
2695
        end
2696
      end
2697
    end
2698
  end
2699
end
2700
2701
  effect2 = function(Color, Ref, LP, P1, returnn, size, raa)
2702
  if LP == nil or P1 == nil then
2703
    return 
2704
  end
2705
  MshTypee = "CylinderMesh"
2706
  if raa == 2 then
2707
    MshTypee = "BlockMesh"
2708
  end
2709
  local effectsmsh = Instance.new(MshTypee)
2710
  effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
2711
  effectsmsh.Name = "Mesh"
2712
  local effectsg = Instance.new("Part")
2713
  NoOutline(effectsg)
2714
  if raa == 2 then
2715
    effectsg.Material = "Neon"
2716
  end
2717
  effectsg.formFactor = 3
2718
  effectsg.CanCollide = false
2719
  effectsg.Name = "Eff"
2720
  effectsg.Locked = true
2721
  effectsg.Anchored = true
2722
  effectsg.Size = Vector3.new(0.5, 1, 0.5)
2723
  effectsg.Parent = workspace
2724
  effectsmsh.Parent = effectsg
2725
  effectsg.BrickColor = BrickColor.new(Color)
2726
  effectsg.Reflectance = Ref
2727
  local point1 = P1
2728
  local mg = (LP.p - point1.p).magnitude
2729
  effectsg.Size = Vector3.new(0.5, mg, 0.5)
2730
  effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
2731
  effectsmsh.Scale = Vector3.new(size, 1, size)
2732
  game:GetService("Debris"):AddItem(effectsg, 5)
2733
  if returnn then
2734
    return effectsg
2735
  end
2736
  if not returnn then
2737
    if raa == 2 then
2738
      table.insert(Effects, {effectsg, "Cylinder", 0.05, -0.05, 0, -0.05, effectsmsh})
2739
    else
2740
      table.insert(Effects, {effectsg, "Cylinder", 0.1, -0.2, 0, -0.2, effectsmsh})
2741
    end
2742
  end
2743
end
2744
2745
  local CFrameFromTopBack = function(at, top, back)
2746
  local right = top:Cross(back)
2747
  return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
2748
end
2749
2750
  Triangle = function(a, b, c)
2751
  local edg1 = c - a:Dot(b - a.unit)
2752
  local edg2 = a - b:Dot(c - b.unit)
2753
  local edg3 = b - c:Dot(a - c.unit)
2754
  if edg1 <= b - a.magnitude and edg1 >= 0 then
2755
    a = a
2756
  else
2757
    if edg2 <= c - b.magnitude and edg2 >= 0 then
2758
      a = b
2759
    else
2760
      if edg3 <= a - c.magnitude and edg3 >= 0 then
2761
        a = c
2762
      else
2763
        assert(false, "unreachable")
2764
      end
2765
    end
2766
  end
2767
local len1 = (c-a):Dot((b-a).unit)
2768
local len2 = (b-a).magnitude - len1
2769
local width = (a + (b-a).unit*len1 - c).magnitude
2770
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
2771
  local list = {}
2772
  if len1 > 0.01 then
2773
    local w1 = Instance.new("WedgePart", m)
2774
    w1.Name = "Triangle"
2775
    game:GetService("Debris"):AddItem(w1, 5)
2776
    w1.Material = "SmoothPlastic"
2777
    w1.FormFactor = "Custom"
2778
    w1.BrickColor = BrickColor.new("Medium blue")
2779
    w1.Transparency = 0
2780
    w1.Reflectance = 0
2781
    w1.Material = "SmoothPlastic"
2782
    w1.CanCollide = false
2783
    NoOutline(w1)
2784
    local sz = Vector3.new(0.2, width, len1)
2785
    w1.Size = sz
2786
    local sp = Instance.new("SpecialMesh", w1)
2787
    sp.MeshType = "Wedge"
2788
    sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
2789
    w1:BreakJoints()
2790
    w1.Anchored = true
2791
    w1.Parent = workspace
2792
    w1.Transparency = 0.7
2793
    table.insert(Effects, {w1, "Disappear", 0.05})
2794
    w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
2795
    table.insert(list, w1)
2796
  end
2797
  do
2798
    if len2 > 0.01 then
2799
      local w2 = Instance.new("WedgePart", m)
2800
      w2.Name = "Triangle"
2801
      game:GetService("Debris"):AddItem(w2, 5)
2802
      w2.Material = "SmoothPlastic"
2803
      w2.FormFactor = "Custom"
2804
      w2.BrickColor = BrickColor.new("Medium blue")
2805
      w2.Transparency = 0
2806
      w2.Reflectance = 0
2807
      w2.Material = "SmoothPlastic"
2808
      w2.CanCollide = false
2809
      NoOutline(w2)
2810
      local sz = Vector3.new(0.2, width, len2)
2811
      w2.Size = sz
2812
      local sp = Instance.new("SpecialMesh", w2)
2813
      sp.MeshType = "Wedge"
2814
      sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
2815
      w2:BreakJoints()
2816
      w2.Anchored = true
2817
      w2.Parent = workspace
2818
      w2.Transparency = 0.7
2819
      table.insert(Effects, {w2, "Disappear", 0.05})
2820
      w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
2821
      table.insert(list, w2)
2822
    end
2823
    do
2824
      return unpack(list)
2825
    end
2826
  end
2827
end
2828
2829
  MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
2830
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2831
  prt.Anchored = true
2832
  prt.CFrame = cframe
2833
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
2834
  game:GetService("Debris"):AddItem(prt, 10)
2835
  if Type == 1 or Type == nil then
2836
    table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
2837
  else
2838
    if Type == 2 then
2839
      table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
2840
    else
2841
      if Type == 3 then
2842
        table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame})
2843
      else
2844
        if Type == 4 then
2845
          table.insert(Effects, {prt, "Block4", delay, x3, y3, z3, msh, 1})
2846
        end
2847
      end
2848
    end
2849
  end
2850
end
2851
2852
  MagicBlock2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
2853
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2854
  prt.Material = "Neon"
2855
  prt.Anchored = true
2856
  prt.CFrame = cframe
2857
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
2858
  game:GetService("Debris"):AddItem(prt, 10)
2859
  if Type == 1 or Type == nil then
2860
    table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
2861
  else
2862
    if Type == 2 then
2863
      table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
2864
    else
2865
      if Type == 3 then
2866
        table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame})
2867
      end
2868
    end
2869
  end
2870
end
2871
2872
  MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2873
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2874
  prt.Material = "Neon"
2875
  prt.Anchored = true
2876
  prt.CFrame = cframe
2877
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
2878
  game:GetService("Debris"):AddItem(prt, 10)
2879
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2880
end
2881
2882
  MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
2883
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2884
  prt.Anchored = true
2885
  prt.CFrame = cframe
2886
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
2887
  game:GetService("Debris"):AddItem(prt, 10)
2888
  table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
2889
end
2890
2891
  MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2892
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2893
  prt.Material = "Neon"
2894
  prt.Anchored = true
2895
  prt.CFrame = cframe
2896
  local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
2897
  game:GetService("Debris"):AddItem(prt, 10)
2898
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2899
end
2900
2901
  MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2902
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2903
  prt.Anchored = true
2904
  prt.CFrame = cframe
2905
  local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
2906
  game:GetService("Debris"):AddItem(prt, 10)
2907
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2908
end
2909
2910
  ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
2911
  local prt = part(3, effects, 0, 1, brickcolor, "Effect", vt())
2912
  prt.Anchored = true
2913
  prt.CFrame = cframe
2914
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
2915
  game:GetService("Debris"):AddItem(prt, 10)
2916
  table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
2917
end
2918
2919
  MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2920
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2921
  prt.Anchored = true
2922
  prt.CFrame = cframe
2923
  local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
2924
  game:GetService("Debris"):AddItem(prt, 10)
2925
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2926
end
2927
2928
  MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2929
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2930
  prt.Anchored = true
2931
  prt.CFrame = cframe
2932
  local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
2933
  game:GetService("Debris"):AddItem(prt, 10)
2934
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2935
end
2936
2937
  BreakEffect = function(brickcolor, cframe, x1, y1, z1)
2938
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
2939
  prt.Anchored = true
2940
  prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2941
  game:GetService("Debris"):AddItem(prt, 10)
2942
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
2943
  local num = math.random(10, 50) / 1000
2944
  table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
2945
end
2946
2947
  MagicStar = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2948
  local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
2949
  prt.Material = "Neon"
2950
  prt.Anchored = true
2951
  prt.CFrame = cframe
2952
  local msh = mesh("SpecialMesh", prt, "FileMesh", "45428961", vt(0, 0, 0), vt(x1, y1, z1))
2953
  game:GetService("Debris"):AddItem(prt, 10)
2954
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
2955
end
2956
2957
  Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
2958
  local magz = (p0 - p1).magnitude
2959
  local curpos = p0
2960
  local trz = {-ofs, ofs}
2961
  for i = 1, tym do
2962
    local li = Instance.new("Part", effects)
2963
    li.TopSurface = 0
2964
    li.BottomSurface = 0
2965
    li.Anchored = true
2966
    li.Transparency = tra or 0.4
2967
    li.BrickColor = BrickColor.new(col)
2968
    li.formFactor = "Custom"
2969
    li.CanCollide = false
2970
    li.Size = Vector3.new(th, th, magz / tym)
2971
    local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
2972
    local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
2973
    li.Material = "Neon"
2974
    if tym == i then
2975
      local magz2 = (curpos - p1).magnitude
2976
      li.Size = Vector3.new(th, th, magz2)
2977
      li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
2978
          table.insert(Effects, {li, "Disappear", last})
2979
    else
2980
      do
2981
        do
2982
          li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
2983
          curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
2984
          game.Debris:AddItem(li, 10)
2985
          table.insert(Effects, {li, "Disappear", last})
2986
        end
2987
      end
2988
    end
2989
  end
2990
end
2991
2992
  Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
2993
  if hit.Parent == nil then
2994
    return 
2995
  end
2996
  if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
2997
    ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
2998
    ref.Anchored = true
2999
    ref.CFrame = cf(hit.Position)
3000
    game:GetService("Debris"):AddItem(ref, 1)
3001
    hitnum = math.random(1, 5)
3002
    if hitnum == 1 then
3003
      so("199148971", ref, 1, 1)
3004
    else
3005
      if hitnum == 2 then
3006
        so("199149025", ref, 1, 1)
3007
      else
3008
        if hitnum == 3 then
3009
          so("199149072", ref, 1, 1)
3010
        else
3011
          if hitnum == 4 then
3012
            so("199149109", ref, 1, 1)
3013
          else
3014
            if hitnum == 5 then
3015
              so("199149119", ref, 1, 1)
3016
            end
3017
          end
3018
        end
3019
      end
3020
    end
3021
    StaggerHit.Value = true
3022
  end
3023
  h = hit.Parent:FindFirstChild("Humanoid")
3024
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
3025
    if hit.Parent:findFirstChild("DebounceHit") ~= nil then
3026
      return 
3027
    end
3028
    c = Instance.new("ObjectValue")
3029
    c.Name = "creator"
3030
    c.Value = game:service("Players").LocalPlayer
3031
    c.Parent = h
3032
    RecentEnemy.Value = hit.Parent
3033
    game:GetService("Debris"):AddItem(c, 0.5)
3034
    minim = minim * Atk.Value
3035
    maxim = maxim * Atk.Value
3036
    Damage = 0
3037
    if minim == maxim then
3038
      Damage = maxim
3039
    else
3040
      Damage = math.random(minim, maxim)
3041
    end
3042
    blocked = false
3043
    enblock = nil
3044
    local EStats = hit.Parent:findFirstChild("Stats")
3045
    if EStats ~= nil then
3046
      invis = EStats:findFirstChild("Invisibility")
3047
      isinvis = EStats:findFirstChild("IsInvisible")
3048
      if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
3049
        invis.Value = 0
3050
      end
3051
      enblock = EStats:findFirstChild("Block")
3052
      if enblock ~= nil and enblock.Value == true then
3053
        blocked = true
3054
      end
3055
      if EStats:findFirstChild("Defense") ~= nil then
3056
        Damage = Damage / EStats.Defense.Value
3057
        if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
3058
          hitnum = math.random(1, 5)
3059
          if hitnum == 1 then
3060
            so("199149321", hit, 1, 1)
3061
          else
3062
            if hitnum == 2 then
3063
              so("199149338", hit, 1, 1)
3064
            else
3065
              if hitnum == 3 then
3066
                so("199149367", hit, 1, 1)
3067
              else
3068
                if hitnum == 4 then
3069
                  so("199149409", hit, 1, 1)
3070
                else
3071
                  if hitnum == 5 then
3072
                    so("199149452", hit, 1, 1)
3073
                  end
3074
                end
3075
              end
3076
            end
3077
          end
3078
        else
3079
          if ranged == false or ranged == nil and blocked ~= true then
3080
            hitnum = math.random(1, 6)
3081
            if hitnum == 1 then
3082
              so("199149137", hit, 1, 1)
3083
            else
3084
              if hitnum == 2 then
3085
                so("199149186", hit, 1, 1)
3086
              else
3087
                if hitnum == 3 then
3088
                  so("199149221", hit, 1, 1)
3089
                else
3090
                  if hitnum == 4 then
3091
                    so("199149235", hit, 1, 1)
3092
                  else
3093
                    if hitnum == 5 then
3094
                      so("199149269", hit, 1, 1)
3095
                    else
3096
                      if hitnum == 6 then
3097
                        so("199149297", hit, 1, 1)
3098
                      end
3099
                    end
3100
                  end
3101
                end
3102
              end
3103
            end
3104
          end
3105
        end
3106
        if Damage <= 3 and staghit == true and ranged ~= true then
3107
          StaggerHit.Value = true
3108
        end
3109
      end
3110
      if EStats:findFirstChild("Stun") ~= nil then
3111
        if blocked == true then
3112
          incstun = incstun / 2
3113
        end
3114
        if EStats.Stun.Value < EStats.StunThreshold.Value then
3115
          EStats.Stun.Value = EStats.Stun.Value + incstun
3116
        end
3117
      end
3118
      if EStats:findFirstChild("Stagger") ~= nil and stagger == true then
3119
        EStats.Stagger.Value = true
3120
      end
3121
    end
3122
    if blocked == true then
3123
      showDamage(hit.Parent, "Block", "Damage")
3124
      if ranged ~= true then
3125
        enblock.Value = false
3126
        Stagger.Value = true
3127
        hitnum = math.random(1, 2)
3128
        if hitnum == 1 then
3129
          so("199148933", hit, 1, 1)
3130
        else
3131
          if hitnum == 2 then
3132
            so("199148947", hit, 1, 1)
3133
          end
3134
        end
3135
      end
3136
    else
3137
      Damage = math.floor(Damage)
3138
      coroutine.resume(coroutine.create(function(Hum, Dam)
3139
	hit.Parent.Humanoid:TakeDamage(Damage)
3140
  end
3141
), h, Damage)
3142
      showDamage(hit.Parent, Damage, "Damage")
3143
      if DecreaseState ~= nil then
3144
        if DecreaseState == "Temporal" then
3145
          DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
3146
          DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
3147
        else
3148
          if DecreaseState == "Temporal2" then
3149
            DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
3150
            DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
3151
          else
3152
            DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
3153
          end
3154
        end
3155
      end
3156
      if Type == "NormalDecreaseMvmt1" then
3157
        DecreaseStat(hit.Parent, "Movement", 0.1, 200)
3158
      end
3159
      if Type == "Knockdown" then
3160
        hum = hit.Parent.Humanoid
3161
        hum.PlatformStand = true
3162
        coroutine.resume(coroutine.create(function(HHumanoid)
3163
    swait(1)
3164
    HHumanoid.PlatformStand = false
3165
  end
3166
), hum)
3167
        local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
3168
        local bodvol = Instance.new("BodyVelocity")
3169
        bodvol.velocity = angle * knockback
3170
        bodvol.P = 5000
3171
        bodvol.maxForce = Vector3.new(8000, 8000, 8000)
3172
        bodvol.Parent = hit
3173
        rl = Instance.new("BodyAngularVelocity")
3174
        rl.P = 3000
3175
        rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
3176
        rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
3177
        rl.Parent = hit
3178
        game:GetService("Debris"):AddItem(bodvol, 0.5)
3179
        game:GetService("Debris"):AddItem(rl, 0.5)
3180
      else
3181
        do
3182
          if Type == "Knockdown2" then
3183
            hum = hit.Parent.Humanoid
3184
            local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
3185
            local bodvol = Instance.new("BodyVelocity")
3186
            bodvol.velocity = angle * knockback
3187
            bodvol.P = 5000
3188
            bodvol.maxForce = Vector3.new(8000, 8000, 8000)
3189
            bodvol.Parent = hit
3190
            game:GetService("Debris"):AddItem(bodvol, 0.5)
3191
          else
3192
            do
3193
              if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
3194
                vp = Instance.new("BodyVelocity")
3195
                vp.P = 500
3196
                vp.maxForce = Vector3.new(math.huge, 0, math.huge)
3197
                if KnockbackType == 1 then
3198
                  vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
3199
                else
3200
                  if KnockbackType == 2 then
3201
                    vp.velocity = Property.CFrame.lookVector * knockback
3202
                  end
3203
                end
3204
                game:GetService("Debris"):AddItem(vp, 0.5)
3205
                if knockback > 0 then
3206
                  vp.Parent = hit.Parent.Torso
3207
                end
3208
              end
3209
              debounce = Instance.new("BoolValue")
3210
              debounce.Name = "DebounceHit"
3211
              debounce.Parent = hit.Parent
3212
              debounce.Value = true
3213
              game:GetService("Debris"):AddItem(debounce, Delay)
3214
              c = Instance.new("ObjectValue")
3215
              c.Name = "creator"
3216
              c.Value = Player
3217
              c.Parent = h
3218
              game:GetService("Debris"):AddItem(c, 0.5)
3219
              CRIT = false
3220
            end
3221
          end
3222
        end
3223
      end
3224
    end
3225
  end
3226
end
3227
3228
  showDamage = function(Char, Dealt, Type)
3229
  m = Instance.new("Model")
3230
  m.Name = "Effect"
3231
  c = Instance.new("Part")
3232
  c.Transparency = 1
3233
  c.Name = "Head"
3234
  c.TopSurface = 0
3235
  c.BottomSurface = 0
3236
  c.formFactor = "Plate"
3237
  c.Size = Vector3.new(1, 0.4, 1)
3238
  b = Instance.new("BillboardGui", c)
3239
  b.Size = UDim2.new(5, 0, 5, 0)
3240
  b.AlwaysOnTop = true
3241
  damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
3242
  if Type == "Damage" then
3243
    damgui.Font = "SourceSans"
3244
    if Dealt == "Block" then
3245
      damgui.TextColor3 = BrickColor.new("Bright blue").Color
3246
    else
3247
      if Dealt < 3 then
3248
        damgui.TextColor3 = BrickColor.new("White").Color
3249
      else
3250
        if Dealt >= 3 and Dealt < 20 then
3251
          damgui.TextColor3 = BrickColor.new("Bright yellow").Color
3252
        else
3253
          damgui.TextColor3 = BrickColor.new("Really red").Color
3254
          damgui.Font = "SourceSansBold"
3255
        end
3256
      end
3257
    end
3258
  else
3259
    if Type == "Debuff" then
3260
      damgui.TextColor3 = BrickColor.new("White").Color
3261
    else
3262
      if Type == "Interrupt" then
3263
        damgui.TextColor3 = BrickColor.new("New Yeller").Color
3264
      end
3265
    end
3266
  end
3267
  damgui.TextScaled = true
3268
  ms = Instance.new("CylinderMesh")
3269
  ms.Scale = Vector3.new(0.8, 0.8, 0.8)
3270
  ms.Parent = c
3271
  c.Reflectance = 0
3272
  Instance.new("BodyGyro").Parent = c
3273
  c.Parent = m
3274
  if Char:findFirstChild("Head") ~= nil then
3275
    c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
3276
  else
3277
    if Char.Parent:findFirstChild("Head") ~= nil then
3278
      c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
3279
    end
3280
  end
3281
  f = Instance.new("BodyPosition")
3282
  f.P = 2000
3283
  f.D = 100
3284
  f.maxForce = Vector3.new(545000, 545000, 545000)
3285
  if Type == "Damage" then
3286
    f.position = c.Position + Vector3.new(0, 3, 0)
3287
  else
3288
    if Type == "Debuff" or Type == "Interrupt" then
3289
      f.position = c.Position + Vector3.new(0, 5, 0)
3290
    end
3291
  end
3292
  f.Parent = c
3293
  game:GetService("Debris"):AddItem(m, 5)
3294
  table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
3295
  c.CanCollide = false
3296
  m.Parent = workspace
3297
  c.CanCollide = false
3298
end
3299
3300
  combo = 0
3301
  ob1d = function(mouse)
3302
  if cshoot == false and cdebounce == false then
3303
    cshoot = true
3304
  end
3305
  if shockshoot == false and shockdebounce == false then
3306
    shockshoot = true
3307
    TehM = MMouse.Hit.p
3308
  end
3309
  if starshoot == false and stardebounce == false then
3310
    starshoot = true
3311
    TehM = MMouse.Hit.p
3312
  end
3313
  if attack == true or equipped == false then
3314
    return 
3315
  end
3316
attack = true
3317
  hold = true
3318
  if combo == 0 then
3319
    combo = 1
3320
    attackone()
3321
  else
3322
    if combo == 1 then
3323
      combo = 2
3324
      attacktwo()
3325
    else
3326
      if combo == 2 then
3327
        combo = 3
3328
        attackthree()
3329
      else
3330
        if combo == 3 then
3331
          combo = 0
3332
          attackfour()
3333
        end
3334
      end
3335
    end
3336
  end
3337
attack = false
3338
end
3339
3340
  ob1u = function(mouse)
3341
  hold = false
3342
end
3343
3344
  buttonhold = false
3345
  fenbarmove1.MouseButton1Click:connect(do1)
3346
  fenbarmove2.MouseButton1Click:connect(do2)
3347
  fenbarmove3.MouseButton1Click:connect(do3)
3348
  fenbarmove4.MouseButton1Click:connect(do4)
3349
  eul = 0
3350
  equipped = false
3351
  key = function(key)
3352
  if key == "q" and Player.Name == "Fenrier" then
3353
    cooldowns[1] = 100
3354
    cooldowns[2] = 100
3355
    cooldowns[3] = 100
3356
    cooldowns[4] = 100
3357
  end
3358
  if key == "z" and cbuster == true then
3359
    cbuster = false
3360
    return 
3361
  end
3362
  if key == "x" and sbreaker == true then
3363
    sbreaker = false
3364
    return 
3365
  end
3366
  if key == "c" and sblazing == true then
3367
    sblazing = false
3368
    return 
3369
  end
3370
  if key == "e" then
3371
    if prising == true then
3372
      prising = false
3373
      return 
3374
    end
3375
    if cbuster == true and mana.Value > 15 then
3376
      busterlaser = true
3377
      return 
3378
    end
3379
    if sbreaker == true and mana.Value > 10 then
3380
      sbreakerII = true
3381
      return 
3382
    end
3383
    if sblazing == true and mana.Value > 20 then
3384
      galacblazing = true
3385
      return 
3386
    end
3387
  end
3388
  if attack == true then
3389
    return 
3390
  end
3391
  if key == "f" then
3392
    attack = true
3393
    pressedf = true
3394
    fnumb = 0
3395
repeat swait() until effects:FindFirstChild("Effect") == nil
3396
    if equipped == false then
3397
      RSH = ch.Torso["Right Shoulder"]
3398
      LSH = ch.Torso["Left Shoulder"]
3399
      RSH.Parent = nil
3400
      LSH.Parent = nil
3401
      RW.Name = "Right Shoulder"
3402
      RW.Part0 = ch.Torso
3403
      RW.C0 = cf(1.5, 0.5, 0)
3404
      RW.C1 = cf(0, 0.5, 0)
3405
      RW.Part1 = ch["Right Arm"]
3406
      RW.Parent = ch.Torso
3407
      LW.Name = "Left Shoulder"
3408
      LW.Part0 = ch.Torso
3409
      LW.C0 = cf(-1.5, 0.5, 0)
3410
      LW.C1 = cf(0, 0.5, 0)
3411
      LW.Part1 = ch["Left Arm"]
3412
      LW.Parent = ch.Torso
3413
      Animate.Parent = nil
3414
      equipanim()
3415
      equipped = true
3416
    else
3417
      equipped = false
3418
      hideanim()
3419
      LH.C1 = LHC1
3420
      RH.C1 = RHC1
3421
      Animate.Parent = Humanoid
3422
      swait(0)
3423
      RW.Parent = nil
3424
      LW.Parent = nil
3425
      RSH.Parent = player.Character.Torso
3426
      LSH.Parent = player.Character.Torso
3427
    end
3428
    attack = false
3429
  end
3430
  if equipped == false then
3431
    return 
3432
  end
3433
  if key == "e" then
3434
    PowerRising()
3435
  end
3436
  if key == "q" then
3437
    mana.Value = 100
3438
  end
3439
  if key == "z" then
3440
    do1()
3441
  end
3442
  if key == "x" then
3443
    do2()
3444
  end
3445
  if key == "c" then
3446
    do3()
3447
  end
3448
  if key == "v" then
3449
    do4()
3450
  end
3451
end
3452
3453
  key2 = function(key)
3454
end
3455
3456
  s = function(mouse)
3457
  mouse.Button1Down:connect(function()
3458
    ob1d(mouse)
3459
  end
3460
)
3461
  mouse.Button1Up:connect(function()
3462
    ob1u(mouse)
3463
  end
3464
)
3465
  mouse.KeyDown:connect(key)
3466
  mouse.KeyUp:connect(key2)
3467
  player = Player
3468
  ch = Character
3469
end
3470
3471
  ds = function(mouse)
3472
end
3473
3474
  Bin.Selected:connect(s)
3475
  Bin.Deselected:connect(ds)
3476
  print("Dreamer loaded.")
3477
  local mananum = 0
3478
  local donum = 0
3479
  local stunnum = 0
3480
  local staggeranim = false
3481
  local stunanim = false
3482
  local walk = 0
3483
  local walkforw = true
3484
  local fnum = 0
3485
  local domodel = false
3486
  local gef = 10
3487
  local col = 1
3488
  local colnum = 0
3489
  while true do
3490
    swait()
3491
    for _,c in pairs(model3:children()) do
3492
      if c.className == "Part" then
3493
        if c.BrickColor == Neons[1] then
3494
          c.BrickColor = Neons[2]
3495
        else
3496
          if c.BrickColor == Neons[2] then
3497
            c.BrickColor = Neons[3]
3498
          else
3499
            if c.BrickColor == Neons[3] then
3500
              c.BrickColor = Neons[4]
3501
            else
3502
              if c.BrickColor == Neons[4] then
3503
                c.BrickColor = Neons[5]
3504
              else
3505
                if c.BrickColor == Neons[5] then
3506
                  c.BrickColor = Neons[6]
3507
                else
3508
                  if c.BrickColor == Neons[6] then
3509
                    c.BrickColor = Neons[7]
3510
                  else
3511
                    if c.BrickColor == Neons[7] then
3512
                      c.BrickColor = Neons[1]
3513
                    end
3514
                  end
3515
                end
3516
              end
3517
            end
3518
          end
3519
        end
3520
      end
3521
    end
3522
    starsparti.Color = cs(Neons[math.random(1, 7)].Color, Color3.new(1, 1, 1))
3523
    if Mode == "Sabers" then
3524
      passive1.Value = 0
3525
      passive2.Value = -0.1
3526
    else
3527
      passive1.Value = -0.1
3528
      passive2.Value = 0
3529
    end
3530
    if (Head:findFirstChild("Running")) ~= nil then
3531
      if floating == true then
3532
        Head.Running.Volume = 0
3533
        Humanoid.JumpPower = 60
3534
      else
3535
        Head.Running.Volume = 0.5
3536
        Humanoid.JumpPower = 50
3537
      end
3538
    end
3539
    colnum = colnum + 1
3540
    if #Neons - 1 < col and (colnum) % 2 == 0 then
3541
      col = 1
3542
    end
3543
    if (colnum) % 2 == 0 then
3544
      col = col + 1
3545
    end
3546
    gef = gef + 1
3547
    if (gef) % 10 == 0 and 0 < Humanoid.Health then
3548
      hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
3549
      if hitfloor2 ~= nil and equipped == true and floating == true and Mode == "Normal" then
3550
        MagicWave(BrickColor.new("Institutional white"), cf(posfloor2) * euler(0, math.random(-50, 50), 0), 1, 2, 1, 0.7, -0.05, 0.7, 0.15)
3551
      end
3552
    end
3553
    if Humanoid.Health <= 0 then
3554
      attack = true
3555
      resumeControl()
3556
      modelzorz.Parent = workspace
3557
      model2.Parent = workspace
3558
      game:GetService("Debris"):AddItem(modelzorz, 30)
3559
      game:GetService("Debris"):AddItem(model2, 30)
3560
      if domodel == false then
3561
        domodel = true
3562
        for i = 1, #Weapon do
3563
          Weapon[i].Parent = modelzorz
3564
          Weapon[i].CanCollide = true
3565
        end
3566
        for i = 1, #Welds do
3567
          Welds[i].Parent = main1
3568
        end
3569
      end
3570
    end
3571
    do
3572
      if fnumb < 21 then
3573
        fnumb = fnumb + 1
3574
        if pressedf == false then
3575
          fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
3576
          tellbar.TextTransparency = tellbar.TextTransparency - 0.05
3577
          tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
3578
        else
3579
          if fnumb == 20 then
3580
            fenframe5.Parent = nil
3581
            print("daigui")
3582
          end
3583
          fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
3584
          tellbar.TextTransparency = tellbar.TextTransparency + 0.05
3585
          tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
3586
        end
3587
      end
3588
      if Stagger.Value == true and staggeranim == false then
3589
        coroutine.resume(coroutine.create(function()
3590
  staggeranim = true
3591
  while attack == true do
3592
    swait()
3593
  end
3594
  StaggerAnim()
3595
  StaggerHit.Value = false
3596
  Stagger.Value = false
3597
  staggeranim = false
3598
end
3599
))
3600
      end
3601
      if StaggerHit.Value == true and staggeranim == false then
3602
        coroutine.resume(coroutine.create(function()
3603
  staggeranim = true
3604
  while attack == true do
3605
    swait()
3606
  end
3607
  StaggerHitt()
3608
  StaggerHit.Value = false
3609
  Stagger.Value = false
3610
  staggeranim = false
3611
end
3612
))
3613
      end
3614
      if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
3615
        Humanoid.WalkSpeed = 0
3616
      else
3617
        Humanoid.WalkSpeed = 16 * Mvmt.Value
3618
      end
3619
      if StunT.Value <= Stun.Value and stunanim == false then
3620
        coroutine.resume(coroutine.create(function()
3621
  stunanim = true
3622
  while attack == true do
3623
    swait()
3624
  end
3625
  StunAnim()
3626
  Stun.Value = 0
3627
  stunanim = false
3628
end
3629
))
3630
      end
3631
      local stunnum2 = 40
3632
      if stunnum2 <= stunnum then
3633
        if 0 < Stun.Value then
3634
          Stun.Value = Stun.Value - 1
3635
        end
3636
        stunnum = 0
3637
      end
3638
      stunnum = stunnum + 1
3639
      if 0.5 <= donum then
3640
        handidle = true
3641
      else
3642
        if donum <= 0 then
3643
          handidle = false
3644
        end
3645
      end
3646
      if handidle == false then
3647
        donum = donum + 0.003
3648
      else
3649
        donum = donum - 0.003
3650
      end
3651
      local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
3652
      local velderp = RootPart.Velocity.y
3653
      hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
3654
      if equipped == true then
3655
        if Anim == "Walk" and floating == false then
3656
          if walkforw == true then
3657
            RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
3658
            LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
3659
          else
3660
            RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
3661
            LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
3662
          end
3663
        else
3664
          RH.C1 = clerp(RH.C1, RHC1, 0.2)
3665
          LH.C1 = clerp(LH.C1, LHC1, 0.2)
3666
        end
3667
        if 1 < RootPart.Velocity.y and hitfloor == nil then
3668
          Anim = "Jump"
3669
          if Mode == "Normal" and floating == true then
3670
            RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 - (donum)) * euler(-0.1, 0, 0), 0.3)
3671
          end
3672
          if attack == false then
3673
            if Mode == "Normal" then
3674
              MagicBlock2(Neons[col], LeftLeg.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
3675
              MagicBlock2(Neons[col], RightLeg.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
3676
              Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4 - (donum) / 2, 0, 0), 0.3)
3677
              RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.8 + (donum) / 4) * euler(0, 0, 0), 0.3)
3678
              LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -0.8 - (donum) / 4) * euler(0, 0, 0), 0.3)
3679
              RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.1 + (donum) / 7), 0.3)
3680
              LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.05 - (donum) / 7), 0.3)
3681
            else
3682
              mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3683
              mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3684
              Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2, 0, 0), 0.25)
3685
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.25)
3686
              RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -0.6, 0) * euler(0, 0, -0.2), 0.25)
3687
              LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 0.6, 0) * euler(0, 0, 0.2), 0.25)
3688
              RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.25)
3689
              LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
3690
            end
3691
          end
3692
        else
3693
          if RootPart.Velocity.y < -1 and hitfloor == nil then
3694
            Anim = "Fall"
3695
            if Mode == "Normal" and floating == true then
3696
              RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
3697
            end
3698
            if attack == false then
3699
              if Mode == "Normal" then
3700
                Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
3701
                Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
3702
                RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, -1.5, 0), 0.2)
3703
                LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
3704
                RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
3705
                LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
3706
              else
3707
                Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
3708
                Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
3709
                RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
3710
                RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 0.4) * euler(0, -1, 0) * euler(0, 0, 0.6), 0.25)
3711
                LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.8, 0, -0.4) * euler(0, 1, 0) * euler(0, 0, -0.6), 0.25)
3712
                RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
3713
                LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
3714
              end
3715
            end
3716
          else
3717
            if torvel < 1 and hitfloor ~= nil then
3718
              Anim = "Idle"
3719
              if Mode == "Normal" and floating == true then
3720
                RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 - (donum)) * euler(-0.05, 0, 0), 0.3)
3721
              end
3722
              if attack == false then
3723
                if Mode == "Normal" then
3724
                  Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2 - (donum) / 8, 0, 0), 0.3)
3725
                  RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4 + (donum) / 4) * euler(0, -1.5, 0), 0.3)
3726
                  LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -0.4 - (donum) / 4) * euler(0, 1.5, 0), 0.3)
3727
                  RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.1 + (donum) / 7), 0.3)
3728
                  LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.05 - (donum) / 7), 0.3)
3729
                else
3730
                  mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3731
                  mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3732
                  Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.2)
3733
                  RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.4) * euler(0.2 + (donum) / 4, 0, 0), 0.2)
3734
                  RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(1, 0, 0.7 - (donum) / 3) * euler(0, 1, 0), 0.2)
3735
                  LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.4, 0, -0.8 + (donum) / 3) * euler(0, -1, 0), 0.2)
3736
                  RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1 + (donum) / 4), 0.2)
3737
                  LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.15 - (donum) / 4), 0.2)
3738
                end
3739
              end
3740
            else
3741
              if 2 < torvel and torvel < 30 and hitfloor ~= nil then
3742
                Anim = "Walk"
3743
                walk = walk + 1
3744
                if 15 - 5 * Mvmt.Value <= walk then
3745
                  walk = 0
3746
                  if walkforw == true then
3747
                    walkforw = false
3748
                  else
3749
                    if walkforw == false then
3750
                      walkforw = true
3751
                    end
3752
                  end
3753
                end
3754
                testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 6, 0)
3755
                newpos = vt(RootPart.Position.X, RootPart.Position.Y, RootPart.Position.Z)
3756
                MoveCF = cf(testpart.Position, newpos)
3757
                local mpos = testpart.CFrame * euler(0, 0, 0)
3758
                local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
3759
                local x, y, z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
3760
                if Mode == "Normal" and floating == true then
3761
                  RootJoint.C0 = clerp(RootJoint.C0, cf(0, 1.4 - (donum), 0) * CFrame.Angles(x, y, 0) * euler(0, 3.14, 0), 0.3)
3762
                end
3763
                if attack == false then
3764
                  if Mode == "Normal" then
3765
                    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2 + (donum) / 2, 0, 0), 0.3)
3766
                    RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4 + (donum) / 4) * euler(0, 0, 0), 0.3)
3767
                    LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(-0.2, 0, -0.4 - (donum) / 4) * euler(0, 0, 0), 0.3)
3768
                    RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2 - (donum) / 2) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.5 - (donum) / 2), 0.3)
3769
                    LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2 - (donum) / 2) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.5 + (donum) / 2), 0.3)
3770
                  else
3771
                    mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3772
                    mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3773
                    Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
3774
                    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
3775
                    RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -1, 0), 0.25)
3776
                    LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 1, 0), 0.25)
3777
                    RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25)
3778
                    LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25)
3779
                  end
3780
                end
3781
              else
3782
                do
3783
                  if 30 <= torvel and hitfloor ~= nil then
3784
                    Anim = "Run"
3785
                    if Mode == "Normal" and floating == true then
3786
                      RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.4 - (donum)) * euler(0.4, 0, 0), 0.3)
3787
                    end
3788
                    if attack == false then
3789
                      if Mode == "Normal" then
3790
                        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2 + (donum) / 2, 0, 0), 0.3)
3791
                        RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4 + (donum) / 4) * euler(0, 0, 0), 0.3)
3792
                        LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(-0.2, 0, -0.4 - (donum) / 4) * euler(0, 0, 0), 0.3)
3793
                        RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2 - (donum) / 2) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.5 - (donum) / 2), 0.3)
3794
                        LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2 - (donum) / 2) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.5 + (donum) / 2), 0.3)
3795
                      else
3796
                        mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3797
                        mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
3798
                        Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
3799
                        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
3800
                        RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -1, 0), 0.25)
3801
                        LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 1, 0), 0.25)
3802
                        RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25)
3803
                        LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25)
3804
                      end
3805
                    end
3806
                  end
3807
                  end
3808
                  end
3809
             	 end
3810
        end
3811
          end
3812
                  fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
3813
                  fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
3814
                  fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
3815
                  fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
3816
                  fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
3817
                  fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3818
                  fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3819
                  fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3820
                  fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
3821
                  for _,c in pairs(Decrease:children()) do
3822
                    if (c:findFirstChild("Duration")) ~= nil then
3823
                      c.Duration.Value = c.Duration.Value - 1
3824
                      if c.Duration.Value <= 0 then
3825
                        c.Parent = nil
3826
                      end
3827
                    end
3828
                    if c.Name == "DecreaseAtk" then
3829
                      decreaseatk = decreaseatk + c.Value
3830
                    else
3831
                      if c.Name == "DecreaseDef" then
3832
                        decreasedef = decreasedef + c.Value
3833
                      else
3834
                        if c.Name == "DecreaseMvmt" then
3835
                          decreasemvmt = decreasemvmt + c.Value
3836
                        end
3837
                      end
3838
                    end
3839
                  end
3840
                  Atk.Value = 400 - (decreaseatk)
3841
                  if Atk.Value <= 432 then
3842
                    Atk.Value = 110
3843
                  end
3844
                  Def.Value = 141422 - (decreasedef)
3845
                  if Def.Value <= 0 then
3846
                    Def.Value = 0.01
3847
                  end
3848
                  Mvmt.Value = 1 - (decreasemvmt)
3849
                  if Mvmt.Value <= 0 then
3850
                    Mvmt.Value = 0
3851
                  end
3852
                  decreaseatk = 0
3853
                  decreasedef = 0
3854
                  decreasemvmt = 0
3855
                  AtkVal = Atk.Value * 100
3856
                  AtkVal = math.floor(AtkVal)
3857
                  AtkVal = AtkVal / 100
3858
                  fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
3859
                  DefVal = Def.Value * 100
3860
                  DefVal = math.floor(DefVal)
3861
                  DefVal = DefVal / 100
3862
                  fenbardef.Text = "Defense\n(" .. DefVal .. ")"
3863
                  MvmtVal = Mvmt.Value * 100
3864
                  MvmtVal = math.floor(MvmtVal)
3865
                  MvmtVal = MvmtVal / 100
3866
                  if Rooted.Value == true then
3867
                    MvmtVal = 0
3868
                  end
3869
                  fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
3870
                  if StunT.Value <= Stun.Value then
3871
                    fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
3872
                  else
3873
                    fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
3874
                  end
3875
                  fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
3876
                  if 100 <= mana.Value then
3877
                    mana.Value = 100
3878
                  else
3879
                    if mananum <= manainc then
3880
                      mananum = mananum + 1
3881
                    else
3882
                      mananum = 0
3883
                      mana.Value = mana.Value + 1
3884
                    end
3885
                  end
3886
                  for i = 1, #cooldowns do
3887
                    if cooldownmax <= cooldowns[i] then
3888
                      cooldowns[i] = cooldownmax
3889
                    else
3890
                      cooldowns[i] = cooldowns[i] + cooldownsadd[i]
3891
                    end
3892
                  end
3893
                end
3894
if #Effects>0 then
3895
for e=1,#Effects do
3896
if Effects[e]~=nil then
3897
local Thing=Effects[e]
3898
                        if Thing ~= nil then
3899
                          local Part = Thing[1]
3900
                          local Mode = Thing[2]
3901
                          local Delay = Thing[3]
3902
                          local IncX = Thing[4]
3903
                          local IncY = Thing[5]
3904
                          local IncZ = Thing[6]
3905
                          if Thing[2] == "CylinderClang" then
3906
                            if Thing[3] <= 1 then
3907
                              Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
3908
                              Thing[7] = Thing[1].CFrame
3909
                              effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
3910
                              Thing[8] = Thing[7]
3911
                              Thing[3] = Thing[3] + Thing[4]
3912
                            else
3913
                              Part.Parent = nil
3914
                              table.remove(Effects, e)
3915
                            end
3916
                          end
3917
                          if Thing[2] == "showDamage" then
3918
                            if Thing[6] < Thing[5] then
3919
                              Thing[6] = Thing[6] + 1
3920
                            else
3921
                              if Thing[6] < Thing[7] then
3922
                                Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
3923
                                Thing[6] = Thing[6] + 1
3924
                              else
3925
                                if Thing[6] < Thing[8] then
3926
                                  Thing[6] = Thing[6] + 1
3927
                                else
3928
                                  if Thing[6] < Thing[9] then
3929
                                    Thing[6] = Thing[6] + 1
3930
                                    Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
3931
                                    Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
3932
                                    Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
3933
                                  else
3934
                                    Thing[1].Parent = nil
3935
                                    table.remove(Effects, e)
3936
                                  end
3937
                                end
3938
                              end
3939
                            end
3940
                          end
3941
                          if Thing[2] == "CloneEf" then
3942
                            if Thing[3] <= 500 then
3943
                              Thing[3] = Thing[3] + 1
3944
                              if 10 <= Thing[4] then
3945
                                Thing[4] = 0
3946
                              end
3947
                              Thing[4] = Thing[4] + 1
3948
                            else
3949
                              table.remove(Effects, e)
3950
                            end
3951
                          end
3952
                          if Thing[2] == "SatelliteStrike" then
3953
                            if Thing[5] < 100 then
3954
                              Thing[5] = Thing[5] + 2
3955
                              Thing[6] = Thing[6] + 1
3956
                              if 2 < Thing[6] then
3957
                                Thing[6] = 0
3958
                                if Thing[3].BrickColor == BrickColor.new("New Yeller") then
3959
                                  Thing[3].Transparency = 0.8
3960
                                  Thing[3].BrickColor = BrickColor.new("Really red")
3961
                                else
3962
                                  Thing[3].Transparency = 0.8
3963
                                  Thing[3].BrickColor = BrickColor.new("New Yeller")
3964
                                end
3965
                              end
3966
                            else
3967
                              refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
3968
                              refda.Anchored = true
3969
                              refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
3970
                              game:GetService("Debris"):AddItem(refda, 1)
3971
                              local mag = (refda.Position - Thing[1].Position).magnitude
3972
                              MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 40, mag * 5, 40, 0, 0, 0, 0.3)
3973
                              Lightning(refda.Position, Thing[1].Position, 15, 5, "Bright yellow", 3.5, 0.2, 0.05)
3974
                              MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 40, 40, 40, -1, -1, -1, 0.08, 1)
3975
                              refda.CFrame = cf(Thing[1].Position)
3976
                              MagniDamage(refda, 5, 10, 12, 0, "Knockdown2", refda, 0.1, 1, (math.random(10, 12)), nil, nil, true)
3977
                              refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
3978
                              MagniDamage(refda, 5, 10, 12, 0, "Knockdown2", refda, 0.1, 1, (math.random(10, 12)), nil, nil, true)
3979
                              refda.CFrame = cf(Thing[1].Position)
3980
                              so("341336446", refda, 1, math.random(100, 120) / 100)
3981
                              so("341336459", refda, 1, math.random(100, 120) / 100)
3982
                              Thing[1].Parent = nil
3983
                              table.remove(Effects, e)
3984
                            end
3985
                          end
3986
                          do
3987
                            if Thing[2] == "SatelliteStrike2" then
3988
                              if Thing[5] < 100 then
3989
                                Thing[5] = Thing[5] + 2
3990
                                Thing[6] = Thing[6] + 1
3991
                                if 2 < Thing[6] then
3992
                                  Thing[6] = 0
3993
                                  if Thing[3].BrickColor == BrickColor.new("New Yeller") then
3994
                                    Thing[3].Transparency = 0.8
3995
                                    Thing[3].BrickColor = BrickColor.new("Really red")
3996
                                  else
3997
                                    Thing[3].Transparency = 0.8
3998
                                    Thing[3].BrickColor = BrickColor.new("New Yeller")
3999
                                  end
4000
                                end
4001
                              else
4002
                                refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
4003
                                refda.Anchored = true
4004
                                refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
4005
                                game:GetService("Debris"):AddItem(refda, 1)
4006
                                local mag = (refda.Position - Thing[1].Position).magnitude
4007
                                MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 60, mag * 5, 60, 0, 0, 0, 0.1)
4008
                                Lightning(refda.Position, Thing[1].Position, 25, 5, "Bright yellow", 5, 0.2, 0.03)
4009
                                MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 80, 80, 80, -1, -1, -1, 0.06, 1)
4010
                                refda.CFrame = cf(Thing[1].Position)
4011
                                MagniDamage(refda, 10, 14, 16, 0, "Knockdown2", refda, 0.1, 1, (math.random(14, 18)), nil, nil, true)
4012
                                refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
4013
                                MagniDamage(refda, 10, 14, 16, 0, "Knockdown2", refda, 0.1, 1, (math.random(14, 18)), nil, nil, true)
4014
                                refda.CFrame = cf(Thing[1].Position)
4015
                                so("341336446", refda, 1, math.random(70, 90) / 100)
4016
                                so("341336459", refda, 1, math.random(50, 80) / 100)
4017
                                Thing[1].Parent = nil
4018
                                table.remove(Effects, e)
4019
                              end
4020
                            end
4021
                            do
4022
                              if Thing[2] == "Shoot" then
4023
                                Thing[11] = Thing[11] + 0.02
4024
                                local Look = Thing[1]
4025
                                local hit, pos = rayCast(Thing[4], Look, Thing[11], modelzorz)
4026
                                local mag = (Thing[4] - pos).magnitude
4027
                                if 6 < Thing[8] then
4028
                                  Thing[8] = 1
4029
                                else
4030
                                  Thing[8] = Thing[8] + 1
4031
                                end
4032
                                MagicCylinder(Neons[Thing[8]], CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
4033
                                Thing[9].BrickColor = Neons[Thing[8]]
4034
                                Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * cf(0, 0, -1) * Thing[10]
4035
                                Thing[4] = Thing[4] + Look * Thing[11]
4036
                                Thing[3] = Thing[3] - 1
4037
                                if hit ~= nil then
4038
                                  Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0.1, 2, (math.random(1, 3)), nil, nil, true)
4039
                                end
4040
                                if Thing[3] <= 0 then
4041
                                  Thing[9].Parent = nil
4042
                                  table.remove(Effects, e)
4043
                                end
4044
                              end
4045
                              do
4046
                                if Thing[2] == "Shoot2" then
4047
                                  local Look = Thing[1]
4048
                                  local hit, pos = rayCast(Thing[4], Look, 4, Character)
4049
                                  local mag = (Thing[4] - pos).magnitude
4050
                                  if 6 < Thing[8] then
4051
                                    Thing[8] = 1
4052
                                  else
4053
                                    Thing[8] = Thing[8] + 1
4054
                                  end
4055
                                  MagicCircle(BrickColor.new(NewCol3), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 4, 4, 4, -0.5, -0.5, -0.5, 0.5)
4056
                                  Thing[4] = Thing[4] + Look * 4
4057
                                  Thing[3] = Thing[3] - 1
4058
                                  if hit ~= nil then
4059
                                    Thing[3] = 0
4060
                                    Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0.1, 2, (math.random(1, 5)), nil, nil, true)
4061
                                  end
4062
                                  if Thing[3] <= 0 then
4063
                                    table.remove(Effects, e)
4064
                                  end
4065
                                end
4066
                                do
4067
                                  if Thing[2] == "Shoot3" then
4068
                                    local Look = Thing[1]
4069
                                    local hit, pos = rayCast(Thing[4], Look, 1.5, modelzorz)
4070
                                    local mag = (Thing[4] - pos).magnitude
4071
                                    if 6 < Thing[8] then
4072
                                      Thing[8] = 1
4073
                                    else
4074
                                      Thing[8] = Thing[8] + 1
4075
                                    end
4076
                                    Thing[11] = Thing[11] + 0.05
4077
                                    Thing[9].BrickColor = Neons[Thing[8]]
4078
                                    Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(0, mr(90), 0) * euler(Thing[10], 0, 0) * euler(0, Thing[11], 0)
4079
                                    MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 25, 25, 25, 2, 2, 2, 0.25)
4080
                                    Thing[4] = Thing[4] + Look * 1.5
4081
                                    Thing[3] = Thing[3] - 1
4082
                                    if hit ~= nil then
4083
                                      Thing[3] = 0
4084
                                    end
4085
                                    if Thing[3] <= 0 then
4086
                                      MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 30, 30, 30, 4, 4, 4, 0.1)
4087
                                      MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 100, 100, 100, 0, 0, 0, 0.05)
4088
                                      local staaaaref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
4089
                                      staaaaref.Anchored = true
4090
                                      staaaaref.CFrame = cf(Thing[9].Position)
4091
                                      game:GetService("Debris"):AddItem(staaaaref, 1)
4092
                                      so("341336499", staaaaref, 0.8, 2)
4093
                                      MagniDamage(staaaaref, 10, 10, 12, math.random(10, 20), "Knockdown2", staaaaref, 0.1, 1, (math.random(4, 6)), nil, nil, true, "Damage", 0.1, 200)
4094
                                      Thing[9].Parent = nil
4095
                                      table.remove(Effects, e)
4096
                                    end
4097
                                  end
4098
                                  do
4099
                                    if Thing[2] == "Shoot4" then
4100
                                      local Look = Thing[1]
4101
                                      local hit, pos = rayCast(Thing[4], Look, 1.5, modelzorz)
4102
                                      local mag = (Thing[4] - pos).magnitude
4103
                                      if 6 < Thing[8] then
4104
                                        Thing[8] = 1
4105
                                      else
4106
                                        Thing[8] = Thing[8] + 1
4107
                                      end
4108
                                      Thing[11] = Thing[11] + 0.05
4109
                                      Thing[9].BrickColor = Neons[Thing[8]]
4110
                                      Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(0, mr(90), 0) * euler(Thing[10], 0, 0) * euler(0, Thing[11], 0)
4111
                                      MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 80, 80, 80, 2, 2, 2, 0.25)
4112
                                      Thing[4] = Thing[4] + Look * 1.5
4113
                                      Thing[3] = Thing[3] - 1
4114
                                      if hit ~= nil then
4115
                                        Thing[3] = 0
4116
                                      end
4117
                                      if Thing[3] <= 0 then
4118
                                        MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 90, 90, 90, 4, 4, 4, 0.1)
4119
                                        MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 200, 200, 200, 0, 0, 0, 0.1)
4120
                                        MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 150, 150, 150, 10, 10, 10, 0.08)
4121
                                        MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 100, 100, 100, 15, 15, 15, 0.06)
4122
                                        local staaaaref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
4123
                                        staaaaref.Anchored = true
4124
                                        staaaaref.CFrame = cf(Thing[9].Position)
4125
                                        game:GetService("Debris"):AddItem(staaaaref, 1)
4126
                                        so("341336499", staaaaref, 0.8, 1)
4127
                                        MagniDamage(staaaaref, 20, 15, 18, math.random(30, 50), "Knockdown2", staaaaref, 0.1, 1, (math.random(8, 10)), nil, nil, true, "Damage", 0.1, 400)
4128
                                        Thing[9].Parent = nil
4129
                                        table.remove(Effects, e)
4130
                                      end
4131
                                    end
4132
                                    do
4133
                                      do
4134
                                        if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "CloneEf" and Thing[2] ~= "Blink" and Thing[2] ~= "ShootIce" and Thing[2] ~= "Freeze" and Thing[2] ~= "Shoot" and Thing[2] ~= "Shoot2" and Thing[2] ~= "Shoot3" and Thing[2] ~= "Shoot4" and Thing[2] ~= "SatelliteStrike" and Thing[2] ~= "SatelliteStrike2" then
4135
                                          if Thing[1].Transparency <= 1 then
4136
                                            if Thing[2] == "Block1" then
4137
                                              Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
4138
                                              Mesh = Thing[7]
4139
                                              Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
4140
                                              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4141
                                            else
4142
                                              if Thing[2] == "Block2" then
4143
                                                Thing[1].CFrame = Thing[1].CFrame
4144
                                                Mesh = Thing[7]
4145
                                                Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
4146
                                                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4147
                                              else
4148
                                                if Thing[2] == "Block3" then
4149
                                                  Thing[8] = Thing[8] * cf(0, 1, 0)
4150
                                                  Thing[1].CFrame = Thing[8] * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
4151
                                                  Mesh = Thing[7]
4152
                                                  Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
4153
                                                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4154
                                                else
4155
                                                  if Thing[2] == "Block4" then
4156
                                                    if #Neons - 1 < Thing[8] then
4157
                                                      Thing[8] = 1
4158
                                                    else
4159
                                                      Thing[8] = Thing[8] + 1
4160
                                                    end
4161
                                                    Thing[1].BrickColor = Neons[Thing[8]]
4162
                                                    Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
4163
                                                    Mesh = Thing[7]
4164
                                                    Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
4165
                                                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4166
                                                  else
4167
                                                    if Thing[2] == "Cylinder" then
4168
                                                      Mesh = Thing[7]
4169
                                                      Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
4170
                                                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4171
                                                    else
4172
                                                      if Thing[2] == "Shatter" then
4173
                                                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4174
                                                        Thing[4] = Thing[4] * cf(0, Thing[7], 0)
4175
                                                        Thing[1].CFrame = Thing[4] * euler(Thing[6], 0, 0)
4176
                                                        Thing[6] = Thing[6] + Thing[5]
4177
                                                      else
4178
                                                        if Thing[2] == "Blood" then
4179
                                                          Mesh = Thing[7]
4180
                                                          Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
4181
                                                          Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
4182
                                                          Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4183
                                                        else
4184
                                                          if Thing[2] == "Elec" then
4185
                                                            Mesh = Thing[7]
4186
                                                            Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
4187
                                                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4188
                                                          else
4189
                                                            if Thing[2] == "Disappear" then
4190
                                                              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
4191
                                                            end
4192
                                                          end
4193
                                                        end
4194
                                                      end
4195
                                                    end
4196
                                                  end
4197
                                                end
4198
                                              end
4199
                                            end
4200
                                          else
4201
                                            Part.Parent = nil
4202
                                            table.remove(Effects, e)
4203
                                          end
4204
                                        end
4205
                                      end
4206
                                    end
4207
                                  end
4208
                                end
4209
                              end
4210
                            end
4211
                          end
4212
                        end
4213
                      end
4214
                    end
4215
                  end
4216
            end
4217
              end