View difference between Paste ID: PFxqJ9WJ and 36pqAVw3
SHOW: | | - or go back to the newest paste.
1
Effects         = {} --sound effects, for advanced players.
2
local Player    = game.Players.localPlayer
3
local Character = Player.Character
4
local Humanoid  = Character.Humanoid
5
z               = Instance.new("Sound", Character)
6-
z.SoundId       = "rbxassetid://447492777"--
6+
z.SoundId       = "rbxassetid://187227291"--
7
z.Looped        = true --False for a one-time song.
8
z.Pitch         = 1.0
9
z.Volume        = 1.6
10
wait(.1)
11
z:Play()
12
------------------------
13
wait(0.016666666666667)
14
Effects = {}
15
local Player = game.Players.localPlayer
16
local Character = Player.Character
17
local Humanoid = Character.Humanoid
18
local mouse = Player:GetMouse()
19
local m = Instance.new("Model", Character)
20
m.Name = "WeaponModel"
21
local LeftArm = Character["Left Arm"]
22
local RightArm = Character["Right Arm"]
23
local LeftLeg = Character["Left Leg"]
24
local RightLeg = Character["Right Leg"]
25
local Head = Character.Head
26
local Torso = Character.Torso
27
local cam = game.Workspace.CurrentCamera
28
local RootPart = Character.HumanoidRootPart
29
local RootJoint = RootPart.RootJoint
30
local equipped = false
31
local attack = false
32
local Anim = "Idle"
33
local idle = 0
34
local attacktype = 1
35
local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
36
local velocity = RootPart.Velocity.y
37
local sine = 0
38
local change = 1
39
local grabbed = false
40
local cf = CFrame.new
41
local mr = math.rad
42
local angles = CFrame.Angles
43
local ud = UDim2.new
44
local vt = Vector3.new
45
local c3 = Color3.new
46
local mana = 0
47
local mananum = 0
48
local it = Instance.new
49
local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
50
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
51
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
52
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
53
xenabled = true
54
cenabled = true
55
venabled = true
56
zenabled = true
57
RSH = nil
58
RW = Instance.new("Weld")
59
LW = Instance.new("Weld")
60
RH = Torso["Right Hip"]
61
LH = Torso["Left Hip"]
62
RSH = Torso["Right Shoulder"]
63
LSH = Torso["Left Shoulder"]
64
RSH.Parent = nil
65
LSH.Parent = nil
66
RW.Name = "RW"
67
RW.Part0 = Torso
68
RW.C0 = cf(1.5, 0.5, 0)
69
RW.C1 = cf(0, 0.5, 0)
70
RW.Part1 = RightArm
71
RW.Parent = Torso
72
LW.Name = "LW"
73
LW.Part0 = Torso
74
LW.C0 = cf(-1.5, 0.5, 0)
75
LW.C1 = cf(0, 0.5, 0)
76
LW.Part1 = LeftArm
77
LW.Parent = Torso
78
clerp = function(a, b, t)
79
  return a:lerp(b, t)
80
end
81
82
83
----------------------------------------------------
84
z = Instance.new("Sound", Character)
85
z.SoundId = "rbxassetid://428255459"--
86
z.Looped = true
87
z.Pitch = 1
88
z.Volume = 1
89
wait(.1)
90
z:Play()
91
----------------------------------------------------
92
93
ArtificialHB = Instance.new("BindableEvent", script)
94
ArtificialHB.Name = "Heartbeat"
95
script:WaitForChild("Heartbeat")
96
  frame = 0.016666666666667
97
tf = 0
98
allowframeloss = false
99
tossremainder = false
100
lastframe = tick()
101
script.Heartbeat:Fire()
102
game:GetService("RunService").Heartbeat:connect(function(s, p)
103
  tf = tf + s
104
  if frame <= tf then
105
    if allowframeloss then
106
      script.Heartbeat:Fire()
107
      lastframe = tick()
108
    else
109
      for i = 1, math.floor(tf / frame) do
110
        script.Heartbeat:Fire()
111
      end
112
      lastframe = tick()
113
    end
114
    if tossremainder then
115
      tf = 0
116
    else
117
      tf = tf - frame * math.floor(tf / frame)
118
    end
119
  end
120
end
121
)
122
swait = function(num)
123
  if num == 0 or num == nil then
124
    ArtificialHB.Event:wait()
125
  else
126
    for i = 0, num do
127
      ArtificialHB.Event:wait()
128
    end
129
  end
130
end
131
132
133
134
135
136
137
Magik = function(part)
138
	Spawn(function()
139
		local function lerp(a,b,c)
140
			return a+(b-a)*c	
141
		end
142
		local function rndRange(rng)
143
			return math.random(-rng*1000,rng*1000)/1000	
144
		end
145
		local magik = Instance.new("Part", part)
146
		magik.Anchored = true
147
		magik.Locked = true
148
		magik.Material = "Neon"
149
		magik.FormFactor = "Custom"
150
		magik.Size = Vector3.new(1.2, 1.2, 1.2)
151
		magik.TopSurface = "Smooth"
152
		magik.BottomSurface = "Smooth"
153
		magik.Transparency = 0
154
		magik.CanCollide = false
155
156
             magik.BrickColor = BrickColor.new("Royal purple")
157
		
158
		local mr = math.rad
159
		local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
160
		local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
161
		magik.CFrame = cf
162
		for i = 0, 1, .05 do
163
			local newTrans = lerp(.8, 1, i)
164
			local ns = lerp(1,1.2,i)
165
			magik.Transparency = newTrans
166
			magik.Size = Vector3.new(ns,ns,ns)
167
			magik.CFrame = cf
168
			wait()
169
	    end
170
		magik:Destroy()
171
		wait()
172
    end)
173
end
174
----------------------------------------------------
175
Magik2 = function(part)
176
	Spawn(function()
177
		local function lerp(a,b,c)
178
			return a+(b-a)*c	
179
		end
180
		local function rndRange(rng)
181
			return math.random(-rng*1000,rng*1000)/1000	
182
		end
183
		local magik2 = Instance.new("Part",part)
184
		magik2.Anchored = true
185
		magik2.Locked = true
186
		magik2.FormFactor = "Custom"
187
		magik2.Size = Vector3.new(1.2, 1.2, 1.2)
188
		magik2.TopSurface = "Smooth"
189
		magik2.BottomSurface = "Smooth"
190
		magik2.Transparency = 0
191
		magik2.Material = "Neon"
192
		magik2.CanCollide = false
193
194
195
        magik2.BrickColor = BrickColor.new("Really black")
196
197
198
		local mr = math.rad
199
		local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
200
		local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
201
		magik2.CFrame = cf
202
		for i = 0, 1, .05 do
203
			local newTrans = lerp(.8, 1, i)
204
			local ns = lerp(1,1.2,i)
205
			magik2.Transparency = newTrans
206
			magik2.Size = Vector3.new(ns,ns,ns)
207
			magik2.CFrame = cf
208
			wait()
209
	    end
210
		magik2:Destroy()
211
    end)
212
end
213
214
215
216
Spawn(function()
217
	while wait(.1) do
218
		Magik(RightArm)	
219
	end
220
end)
221
222
Spawn(function()
223
	while wait(.1) do
224
		Magik2(RightArm)	
225
	end
226
end)
227
228
229
230
231
232
233
234
235
FloatPart = function()
236
	local Part = Instance.new('Part',Torso)
237
	Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
238
	Part.Anchored = true
239
	Part.Material = 'Neon'
240
	Part.CanCollide = false
241
	Part.BrickColor = BrickColor.new(PrimaryColor)
242
	local Mesh = Instance.new('SpecialMesh',Part)
243
	Mesh.Scale = Vector3.new(4,4,.2)
244
	Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
245
	Mesh.VertexColor = Vector3.new(0,170,255)
246
	spawn(function()
247
		for i = 1,30 do
248
			Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
249
			Part.Transparency = Part.Transparency + .035
250
			game["Run Service"].RenderStepped:wait()
251
		end
252
		Part:Destroy()
253
	end)
254
end;
255
256
DubPart = function()
257
	local Part = Instance.new('Part',Torso)
258
	Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
259
	Part.Anchored = true
260
	Part.CanCollide = false
261
	Part.Material = 'Neon'
262
	Part.BrickColor = BrickColor.new(SecondaryColor)
263
	local Mesh = Instance.new('SpecialMesh',Part)
264
	Mesh.Scale = Vector3.new(7,7,.2)
265
	Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
266
	Mesh.VertexColor = Vector3.new(0,170,255)
267
	spawn(function()
268
		for i = 1,30 do
269
			Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
270
			Part.Transparency = Part.Transparency + .035
271
			game["Run Service"].RenderStepped:wait()
272
		end
273
		Part:Destroy()
274
	end)
275
end;
276
277
Fade = function(Item,t)
278
	spawn(function()
279
		for i = 1,20 do
280
			Item.Transparency = Item.Transparency + .05
281
			if t then
282
				wait(t)
283
			else 
284
				wait()
285
			end
286
		end
287
		Item:Destroy()
288
	end)
289
end
290
291
Particle = function(PrimaryColor)
292
	local Part = Instance.new('Part',Torso)
293
	Part.BrickColor = BrickColor.new(PrimaryColor)
294
	Part.Anchored = true
295
	Part.Transparency = .3
296
	Part.CanCollide = false
297
	Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
298
	local Mesh = Instance.new('BlockMesh',Part)
299
	Mesh.Scale = Vector3.new(.05,.1,.1)
300
	spawn(function()
301
		for i = 1,40 do
302
			Part.Transparency = Part.Transparency + .0125
303
			Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0)
304
			game["Run Service"].RenderStepped:wait()
305
		end
306
		Part:Destroy()
307
	end)
308
end;
309
310
--[[spawn(function()
311
	while wait() do
312
		wait(.05)
313
		FloatPart()
314
		wait(.08)
315
		FloatPart()
316
		wait(.05)
317
		DubPart()
318
		wait(.08)
319
	end
320
end)]]
321
322
game["Run Service"].RenderStepped:connect(function(_)
323
	Particle("Royal purple")
324
	Particle("Really black")
325
	--Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0)
326
end)
327
328
329
330
particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
331
  local fp = it("ParticleEmitter")
332
  fp.Parent = parent
333
  fp.Color = cs(col1, col2)
334
  fp.LightEmission = lightemis
335
  fp.Size = size
336
  fp.Texture = texture
337
  fp.Transparency = transparency
338
  fp.ZOffset = zoffset
339
  fp.Acceleration = accel
340
  fp.Drag = drag
341
  fp.LockedToPart = ltp
342
  fp.VelocityInheritance = velinher
343
  fp.EmissionDirection = emisdir
344
  fp.Enabled = enabled
345
  fp.Lifetime = lifetime
346
  fp.Rate = rate
347
  fp.Rotation = rotation
348
  fp.RotSpeed = rotspeed
349
  fp.Speed = speed
350
  fp.VelocitySpread = velspread
351
  return fp
352
end
353
354
355
356
357
local fengui = it("GuiMain")
358
fengui.Parent = Player.PlayerGui
359
fengui.Name = "WeaponGUI"
360
local fenframe1 = it("TextLabel")
361
fenframe1.Parent = fengui
362
fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
363
fenframe1.BackgroundTransparency = 0.3
364
fenframe1.BorderSizePixel = 5
365
fenframe1.BorderColor3 = Color3.new(1, 1, 1)
366
fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
367
fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
368
fenframe1.Text = "Z"
369
fenframe1.TextWrapped = true
370
fenframe1.FontSize = 7
371
fenframe1.TextColor3 = Color3.new(1, 1, 1)
372
local fenframe1a = it("TextLabel")
373
fenframe1a.Parent = fengui
374
fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
375
fenframe1a.BackgroundTransparency = 0.3
376
fenframe1a.BorderSizePixel = 5
377
fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
378
fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
379
fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
380
fenframe1a.Text = ""
381
local fenframe2 = it("TextLabel")
382
fenframe2.Parent = fengui
383
fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
384
fenframe2.BackgroundTransparency = 0.3
385
fenframe2.BorderSizePixel = 5
386
fenframe2.BorderColor3 = Color3.new(1, 1, 1)
387
fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
388
fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
389
fenframe2.Text = "X"
390
fenframe2.TextWrapped = true
391
fenframe2.FontSize = 7
392
fenframe2.TextColor3 = Color3.new(1, 1, 1)
393
local fenframe2a = it("TextLabel")
394
fenframe2a.Parent = fengui
395
fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
396
fenframe2a.BackgroundTransparency = 0.3
397
fenframe2a.BorderSizePixel = 5
398
fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
399
fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
400
fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
401
fenframe2a.Text = ""
402
local fenframe3 = it("TextLabel")
403
fenframe3.Parent = fengui
404
fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
405
fenframe3.BackgroundTransparency = 0.3
406
fenframe3.BorderSizePixel = 5
407
fenframe3.BorderColor3 = Color3.new(1, 1, 1)
408
fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
409
fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
410
fenframe3.Text = "C"
411
fenframe3.TextWrapped = true
412
fenframe3.FontSize = 7
413
fenframe3.TextColor3 = Color3.new(1, 1, 1)
414
local fenframe3a = it("TextLabel")
415
fenframe3a.Parent = fengui
416
fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
417
fenframe3a.BackgroundTransparency = 0.3
418
fenframe3a.BorderSizePixel = 5
419
fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
420
fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
421
fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
422
fenframe3a.Text = ""
423
local fenframe4 = it("TextLabel")
424
fenframe4.Parent = fengui
425
fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
426
fenframe4.BackgroundTransparency = 0.3
427
fenframe4.BorderSizePixel = 5
428
fenframe4.BorderColor3 = Color3.new(1, 1, 1)
429
fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
430
fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
431
fenframe4.Text = "V"
432
fenframe4.TextWrapped = true
433
fenframe4.FontSize = 7
434
fenframe4.TextColor3 = Color3.new(1, 1, 1)
435
local fenframe4a = it("TextLabel")
436
fenframe4a.Parent = fengui
437
fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
438
fenframe4a.BackgroundTransparency = 0.3
439
fenframe4a.BorderSizePixel = 5
440
fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
441
fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
442
fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
443
fenframe4a.Text = ""
444
fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
445
fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
446
fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
447
fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
448
local RbxUtility = LoadLibrary("RbxUtility")
449
local Create = RbxUtility.Create
450
RemoveOutlines = function(part)
451
  part.TopSurface = 10
452
end
453
454
CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
455
  local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
456
  RemoveOutlines(Part)
457
  return Part
458
end
459
460
CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
461
  local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
462
  if Mesh == "SpecialMesh" then
463
    Msh.MeshType = MeshType
464
    Msh.MeshId = MeshId
465
  end
466
  return Msh
467
end
468
469
CreateWeld = function(Parent, Part0, Part1, C0, C1)
470
  local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
471
  return Weld
472
end
473
474
Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
475
  if hit.Parent == nil then
476
    return 
477
  end
478
  local h = hit.Parent:FindFirstChild("Humanoid")
479
  for _,v in pairs(hit.Parent:children()) do
480
    if v:IsA("Humanoid") then
481
      h = v
482
    end
483
  end
484
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
485
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
486
      return 
487
    end
488
    local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
489
    game:GetService("Debris"):AddItem(c, 0.5)
490
    if HitSound ~= nil and HitPitch ~= nil then
491
      CreateSound(HitSound, hit, 1, HitPitch)
492
    end
493
    local Damage = math.random(minim, maxim)
494
    local blocked = false
495
    local block = hit.Parent:findFirstChild("Block")
496
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
497
      blocked = true
498
      block.Value = block.Value - 1
499
      print(block.Value)
500
    end
501
    if blocked == false then
502
      HitHealth = h.Health
503
      h.Health = h.Health - Damage
504
      if mana < 100 then
505
        mana = mana + math.random(5, 10)
506
      end
507
      if mana > 100 then
508
        mana = 100
509
      end
510
      if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then
511
      end
512
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
513
    else
514
      h.Health = h.Health - Damage / 2
515
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
516
    end
517
    if Type == "Knockdown" then
518
      local hum = hit.Parent.Humanoid
519
      hum.PlatformStand = true
520
      coroutine.resume(coroutine.create(function(HHumanoid)
521
    swait(1)
522
    HHumanoid.PlatformStand = false
523
  end
524
), hum)
525
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
526
      local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
527
      local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
528
      game:GetService("Debris"):AddItem(bodvol, 0.5)
529
      game:GetService("Debris"):AddItem(rl, 0.5)
530
    else
531
      do
532
        if Type == "Normal" then
533
          local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
534
          if knockback > 0 then
535
            vp.Parent = hit.Parent.Torso
536
          end
537
          game:GetService("Debris"):AddItem(vp, 0.5)
538
        else
539
          do
540
            if Type == "Up" then
541
              local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
542
              game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
543
            else
544
              do
545
                if Type == "DarkUp" then
546
                  coroutine.resume(coroutine.create(function()
547
    for i = 0, 1, 0.1 do
548
      swait()
549
      BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
550
    end
551
  end
552
))
553
                  local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
554
                  game:GetService("Debris"):AddItem(bodyVelocity, 1)
555
                else
556
                  do
557
                    if Type == "Snare" then
558
                      local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
559
                      game:GetService("Debris"):AddItem(bp, 1)
560
                    else
561
                      do
562
                        if Type == "Freeze" then
563
                          local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
564
                          local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
565
                          hit.Parent.Torso.Anchored = true
566
                          coroutine.resume(coroutine.create(function(Part)
567
    swait(1.5)
568
    Part.Anchored = false
569
  end
570
), hit.Parent.Torso)
571
                          game:GetService("Debris"):AddItem(BodPos, 3)
572
                          game:GetService("Debris"):AddItem(BodGy, 3)
573
                        end
574
                        do
575
                          local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
576
                          game:GetService("Debris"):AddItem(debounce, Delay)
577
                          c = Instance.new("ObjectValue")
578
                          c.Name = "creator"
579
                          c.Value = Player
580
                          c.Parent = h
581
                          game:GetService("Debris"):AddItem(c, 0.5)
582
                        end
583
                      end
584
                    end
585
                  end
586
                end
587
              end
588
            end
589
          end
590
        end
591
      end
592
    end
593
  end
594
end
595
596
ShowDamage = function(Pos, Text, Time, Color)
597
  local Rate = 0.033333333333333
598
  if not Pos then
599
    local Pos = Vector3.new(0, 0, 0)
600
  end
601
  local Text = Text or ""
602
  local Time = Time or 2
603
  if not Color then
604
    local Color = Color3.new(1, 0, 1)
605
  end
606
  local EffectPart = CreatePart(workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
607
  EffectPart.Anchored = true
608
  local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
609
  local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
610
  game.Debris:AddItem(EffectPart, Time + 0.1)
611
  EffectPart.Parent = game:GetService("Workspace")
612
  delay(0, function()
613
    local Frames = Time / Rate
614
    for Frame = 1, Frames do
615
      wait(Rate)
616
      local Percent = Frame / Frames
617
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
618
      TextLabel.TextTransparency = Percent
619
    end
620
    if EffectPart and EffectPart.Parent then
621
      EffectPart:Destroy()
622
    end
623
  end
624
)
625
end
626
627
MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
628
  for _,c in pairs(workspace:children()) do
629
    local hum = c:findFirstChild("Humanoid")
630
    if hum ~= nil then
631
      local head = c:findFirstChild("Torso")
632
      if head ~= nil then
633
        local targ = head.Position - Part.Position
634
        local mag = targ.magnitude
635
        if mag <= magni and c.Name ~= Player.Name then
636
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
637
        end
638
      end
639
    end
640
  end
641
end
642
643
Handle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "Handle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
644
HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.982839942, 0.146006823, 0.234023571, 0.211453959, -0.977137685, 0.0221185088, -0.0402157828, -0.0313093588, -0.99870044, 0.976560295, 0.210289627, -0.0459168404))
645
CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
646
FakeHandle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "FakeHandle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
647
FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
648
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(0.200000003, 1, 0.200000003))
649
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.07288361e-006, 0.683865368, -4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
650
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(2, 0.5, 2))
651
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
652
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31791997, -0.975689411, 2.925138, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
653
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
654
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.729999959, 1))
655
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.4692868, -3.70743895, -1.52587891e-005, 0.916809797, -0.399324507, 1.15483999e-006, 0.399324447, 0.916809678, -4.00096178e-006, 5.56348823e-007, 4.12762165e-006, 1))
656
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
657
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
658
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31796861, -0.99111104, 3.62495184, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
659
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
660
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
661
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.64674854, -0.903340101, -0.354405403, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
662
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
663
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
664
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155968666, -0.981806874, 5.01632404, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
665
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
666
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
667
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.015683651, -0.99636519, 4.31590414, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
668
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
669
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
670
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.2746892, -0.975648642, 2.9260354, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
671
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
672
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
673
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.27468133, -0.991158009, 3.62575912, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
674
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
675
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
676
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155587196, -1.11407149, 4.663311, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
677
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
678
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
679
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0131573677, 0.00466442108, 4.61167336, -1.74657907e-006, -1.09747052e-005, -1.00000012, 0.764525652, -0.644593418, 5.77419996e-006, -0.644593358, -0.764525771, 9.49576497e-006))
680
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
681
Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
682
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.6467495, -0.918762922, 0.345379829, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
683
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
684
Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(0.200000003, 0.200000003, 0.200000003))
685
ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00376915932, -3.44346094, -0.00172424316, -1.00000012, -1.70432031e-006, 1.69267878e-007, 1.70432031e-006, -1.00000012, -2.12341547e-007, 1.75088644e-007, -2.12341547e-007, 1.00000012))
686
CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.300000012, 0.200000003))
687
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
688
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.31130219e-006, -3.5749507, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
689
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 0.400000006))
690
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 4.57000017, 0.200000003))
691
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.96046448e-007, -1.50000107, 9.53674316e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
692
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
693
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 1.16999996, 1))
694
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68149614, -0.0198745728, -1.09672546e-005, 0.0220478568, 0.999756992, -2.0749867e-006, -0.999756932, 0.0220478605, -1.48452818e-006, -1.42678618e-006, 2.10851431e-006, 1.00000012))
695
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
696
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
697
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71543217, -0.0690839291, -9.53674316e-006, 0.19052954, 0.981681645, -1.97067857e-006, -0.981681526, 0.190529525, -1.91386789e-006, -1.49046537e-006, 2.29105353e-006, 1.00000012))
698
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.899999976))
699
Part22 = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part22", Vector3.new(1, 0.729999959, 1))
700
PartWeld = CreateWeld(m, FakeHandle, Part22, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.51120782, -3.69066477, -7.15255737e-006, 0.911903143, 0.410405785, -3.35276127e-007, -0.410405725, 0.911903143, -1.79186463e-006, -4.35044058e-007, 1.76206231e-006, 1.00000012))
701
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
702
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
703
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71087646, -0.0231897831, -6.19888306e-006, 0.318961442, 0.947767794, -1.48266554e-006, -0.947767675, 0.318961442, -2.70921737e-006, -2.10118014e-006, 2.26870179e-006, 1.00000012))
704
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.850000024))
705
Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.769999981, 1))
706
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68154573, -0.4009372, -5.7220459e-006, 0.516243339, 0.856442034, -8.04662704e-007, -0.856442034, 0.516243339, -4.18536365e-006, -3.15741636e-006, 2.8423965e-006, 1.00000012))
707
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
708
Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 2.57999992, 0.200000003))
709
PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.4570694e-006, 1.91385686, 4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
710
CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
711
Hitbox = CreatePart(m, Enum.Material.Marble, 0, 1, "Black", "Hitbox", Vector3.new(2.4000001, 3.67000008, 0.399999976))
712
HitboxWeld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.76720476, 3.04898357, 0.00860214233, -0.699169815, 0.713988841, 0.0371726528, -0.713755548, -0.700063348, 0.0215496495, 0.0414094217, -0.0114653222, 0.999076545))
713
rayCast = function(Position, Direction, Range, Ignore)
714
  return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
715
end
716
717
718
Spawn(function()
719
	while wait() do
720
		Magik(LeftArm)	
721
	end
722
end)
723
724
Spawn(function()
725
	while wait() do
726
		Magik2(LeftArm)	
727
	end
728
end)
729
730
731
CreateSound = function(id, parent, vol, pit, looped)
732
  coroutine.resume(coroutine.create(function()
733
    local sou = Instance.new("Sound", parent or workspace)
734
    sou.Volume = vol
735
    sou.Pitch = pit or 1
736
    sou.SoundId = id
737
    sou.Looped = looped
738
    swait()
739
    sou:play()
740
    game:GetService("Debris"):AddItem(sou, 6)
741
  end
742
))
743
end
744
745
746
local getclosest = function(obj, distance)
747
  local last, lastx = distance + 1, nil
748
  for i,v in pairs(workspace:GetChildren()) do
749
    if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
750
      local t = v.Torso
751
      local dist = t.Position - obj.Position.magnitude
752
      if dist <= distance and dist < last then
753
        last = dist
754
        lastx = v
755
      end
756
    end
757
  end
758
  return lastx
759
end
760
761
BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
762
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
763
  prt.Anchored = true
764
  prt.CFrame = cframe
765
  local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
766
  game:GetService("Debris"):AddItem(prt, 10)
767
  if Type == 1 or Type == nil then
768
    table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
769
  else
770
    if Type == 2 then
771
      table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
772
    end
773
  end
774
end
775
776
SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
777
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
778
  prt.Anchored = true
779
  prt.CFrame = cframe
780
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
781
  game:GetService("Debris"):AddItem(prt, 10)
782
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
783
end
784
785
RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
786
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
787
  prt.Anchored = true
788
  prt.CFrame = cframe * CFrame.new(x1, y1, z1)
789
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
790
  game:GetService("Debris"):AddItem(prt, 10)
791
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
792
end
793
794
CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
795
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
796
  prt.Anchored = true
797
  prt.CFrame = cframe
798
  local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
799
  game:GetService("Debris"):AddItem(prt, 10)
800
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
801
end
802
803
WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
804
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
805
  prt.Anchored = true
806
  prt.CFrame = cframe
807
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
808
  game:GetService("Debris"):AddItem(prt, 10)
809
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
810
end
811
812
SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
813
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
814
  prt.Anchored = true
815
  prt.CFrame = cframe
816
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
817
  game:GetService("Debris"):AddItem(prt, 10)
818
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
819
end
820
821
DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
822
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
823
  prt.Anchored = true
824
  prt.CFrame = cframe
825
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
826
  game:GetService("Debris"):AddItem(prt, 10)
827
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
828
end
829
830
BreakEffect = function(brickcolor, cframe, x1, y1, z1)
831
  local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
832
  prt.Anchored = true
833
  prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
834
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
835
  local num = math.random(10, 50) / 1000
836
  game:GetService("Debris"):AddItem(prt, 10)
837
  table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
838
end
839
840
attackone = function()
841
  attack = true
842
  for i = 0, 1, 0.1 do
843
    swait()
844
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
845
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
846
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
847
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
848
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
849
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
850
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
851
  end
852
  local con = Hitbox.Touched:connect(function(hit)
853
    Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
854
  end
855
)
856
  CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
857
  for i = 0, 1, 0.1 do
858
    swait()
859
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
860
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
861
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
862
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
863
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
864
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
865
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
866
  end
867
  con:disconnect()
868
  attack = false
869
end
870
871
Deathwish = function()
872
  attack = true
873
  CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1)
874
  for i = 0, 1, 0.05 do
875
    swait()
876
    WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09)
877
    BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1)
878
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
879
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
880
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
881
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
882
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
883
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
884
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
885
  end
886
  MagniDamage(RootPart, 5599, 1099, 1599, 0, "DarkUp")
887
  CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1)
888
  BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
889
  WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07)
890
  for i = 0, 1, 0.05 do
891
    swait()
892
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
893
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
894
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
895
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
896
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
897
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
898
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
899
  end
900
  for i = 0, 1, 0.1 do
901
    swait()
902
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3)
903
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(100)), 0.3)
904
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
905
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3)
906
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
907
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
908
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
909
  end
910
  MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown")
911
  CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2)
912
  SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06)
913
  BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
914
  WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07)
915
  for i = 0, 1, 0.1 do
916
    swait()
917
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
918
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(50)), 0.3)
919
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
920
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
921
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
922
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
923
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
924
  end
925
  attack = false
926
end
927
928
ChaosDriver = function()
929
  attack = true
930
  for i = 0, 1, 0.05 do
931
    swait()
932
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
933
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
934
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
935
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
936
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
937
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
938
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
939
  end
940
  CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
941
  coroutine.resume(coroutine.create(function()
942
    for i = 1, 5 do
943
      swait()
944
      local ef = CreatePart(workspace, "Marble", 0, 1, BrickColor.new("Black"), "Effect", vt())
945
      ef.Anchored = true
946
      ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i)
947
      MagniDamage(ef, 17, 10, 15, 1, "DarkUp")
948
      game:GetService("Debris"):AddItem(ef, 0.5)
949
      CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7)
950
      DragonEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 170, 5, 0, -10, 0, 0.07)
951
      DragonEffect(BrickColor.new("Magenta"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 150, 5, 0, -10, 0, 0.07)
952
  SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
953
  SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
954
  SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
955
  SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
956
    end
957
  end
958
))
959
  for i = 0, 1, 0.1 do
960
    swait()
961
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
962
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
963
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
964
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
965
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
966
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
967
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
968
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
969
  end
970
  attack = false
971
end
972
973
attacktwo = function()
974
  attack = true
975
  soundn = true
976
  for i = 0, 1, 0.1 do
977
    swait()
978
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
979
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
980
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
981
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
982
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
983
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
984
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
985
  end
986
  local con = Hitbox.Touched:connect(function(hit)
987
    Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
988
  end
989
)
990
  CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
991
  coroutine.resume(coroutine.create(function()
992
    while soundn do
993
      wait(0.3)
994
      CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
995
    end
996
  end
997
))
998
  for i = 0, 1, 0.1 do
999
    swait()
1000
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1001
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1002
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1003
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1004
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1005
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1006
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1007
  end
1008
  con:disconnect()
1009
  soundn = false
1010
  attack = false
1011
end
1012
1013
local soundn = false
1014
attackthree = function()
1015
  attack = true
1016
  soundn = true
1017
  for i = 0, 1, 0.1 do
1018
    swait()
1019
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
1020
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
1021
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
1022
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
1023
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1024
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1025
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
1026
  end
1027
  local con = Hitbox.Touched:connect(function(hit)
1028
    Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
1029
  end
1030
)
1031
  CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
1032
  coroutine.resume(coroutine.create(function()
1033
    while soundn do
1034
      wait(0.3)
1035
      CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
1036
    end
1037
  end
1038
))
1039
  for i = 0, 1, 0.1 do
1040
    swait()
1041
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1042
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1043
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1044
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1045
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1046
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1047
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1048
  end
1049
  con:disconnect()
1050
  soundn = false
1051
  attack = false
1052
end
1053
1054
ThanatosDriver = function()
1055
  attack = true
1056
  for i = 0, 1, 0.1 do
1057
    swait()
1058
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
1059
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
1060
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
1061
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
1062
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1063
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1064
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
1065
  end
1066
  local con = Hitbox.Touched:connect(function(hit)
1067
    Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
1068
  end
1069
)
1070
  CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7)
1071
  for i = 0, 1, 0.1 do
1072
    swait()
1073
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
1074
    BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
1075
    DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(-90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
1076
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3)
1077
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
1078
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3)
1079
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
1080
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1081
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1082
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2)
1083
  end
1084
  con:disconnect()
1085
  attack = false
1086
end
1087
1088
LastResort = function()
1089
  attack = true
1090
  soundn = true
1091
  CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1)
1092
  MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown")
1093
  SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
1094
  SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
1095
  SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
1096
  SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
1097
  
1098
  RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20)
1099
  for i = 0, 1, 0.1 do
1100
    swait()
1101
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
1102
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
1103
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
1104
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
1105
    RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
1106
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1107
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
1108
  end
1109
  CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
1110
  coroutine.resume(coroutine.create(function()
1111
    while soundn do
1112
      wait(0.5)
1113
      CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
1114
    end
1115
  end
1116
))
1117
  for i = 0, 1, 0.1 do
1118
    swait()
1119
    MagniDamage(RootPart, 10, 5, 10, 0, "Normal")
1120
    Torso.Velocity = RootPart.CFrame.lookVector * 100
1121
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
1122
    BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
1123
    DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
1124
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1125
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1126
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1127
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1128
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1129
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1130
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1131
  end
1132
  for i = 0, 1, 0.1 do
1133
    swait()
1134
    MagniDamage(RootPart, 10, 3, 3, 0, "Normal")
1135
    Torso.Velocity = RootPart.CFrame.lookVector * 100
1136
    BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
1137
    BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
1138
    DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
1139
    RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
1140
    Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
1141
    RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
1142
    LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
1143
    RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
1144
    LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1145
    FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
1146
  end
1147
  soundn = false
1148
  attack = false
1149
end
1150
1151
ob1u = function()
1152
end
1153
1154
ob1d = function()
1155
  if attack == false and attacktype == 1 then
1156
    attacktype = 2
1157
    attackone()
1158
  else
1159
    if attack == false and attacktype == 2 then
1160
      attacktype = 3
1161
      attacktwo()
1162
    else
1163
      if attack == false and attacktype == 3 then
1164
        attacktype = 1
1165
        attackthree()
1166
      end
1167
    end
1168
  end
1169
end
1170
1171
key = function(k)
1172
  k = k:lower()
1173
  if attack == false and k == "z" and zenabled == true then
1174
    zenabled = false
1175
    coroutine.resume(coroutine.create(function()
1176
    for i = 1, 0, -0.02 do
1177
      swait()
1178
      fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1179
    end
1180
    zenabled = true
1181
    fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
1182
  end
1183
))
1184
    ThanatosDriver()
1185
  else
1186
    if attack == false and k == "x" and xenabled == true then
1187
      xenabled = false
1188
      coroutine.resume(coroutine.create(function()
1189
    for i = 1, 0, -0.005 do
1190
      swait()
1191
      fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1192
    end
1193
    xenabled = true
1194
    fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
1195
  end
1196
))
1197
      LastResort()
1198
    else
1199
      if attack == false and k == "c" and cenabled == true then
1200
        cenabled = false
1201
        coroutine.resume(coroutine.create(function()
1202
    for i = 1, 0, -0.0025 do
1203
      swait()
1204
      fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1205
    end
1206
    cenabled = true
1207
    fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
1208
  end
1209
))
1210
        ChaosDriver()
1211
      else
1212
        if attack == false and k == "v" and venabled == true then
1213
          venabled = false
1214
          coroutine.resume(coroutine.create(function()
1215
    for i = 1, 0, -0.0005 do
1216
      swait()
1217
      fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
1218
    end
1219
    venabled = true
1220
    fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
1221
  end
1222
))
1223
          Deathwish()
1224
        end
1225
      end
1226
    end
1227
  end
1228
end
1229
1230
s = function(mouse)
1231
  mouse.Button1Down:connect(function()
1232
    ob1d(mouse)
1233
  end
1234
)
1235
  mouse.Button1Up:connect(function()
1236
    ob1u(mouse)
1237
  end
1238
)
1239
  mouse.KeyDown:connect(key)
1240
end
1241
1242
s(mouse)
1243
1244
1245
1246
1247
1248
1249
rs = game:GetService'RunService'
1250
plrs = game:GetService'Players'
1251
lp = plrs.LocalPlayer
1252
c = lp.Character
1253
root = lp.Character.HumanoidRootPart
1254
human = c.Humanoid
1255
FPS = 0
1256
inf = 0
1257
opos1 = Vector3.new()
1258
opos2 = Vector3.new()
1259
opos3 = Vector3.new()
1260
waves = Instance.new("Model", c)
1261
res = Instance.new("Model", c) 
1262
   
1263
local function b()
1264
local t=tick();
1265
local l=t%1*3;
1266
local t=.5*math.pi*(l%1);
1267
if l<1 then
1268
return Color3.new(47,0,32);
1269
elseif l<2 then
1270
return Color3.new(47,0,35);
1271
else
1272
return Color3.new(0,0,0);
1273
end;
1274
end;               
1275
speedParts = function()
1276
	for i = 1, 4 do
1277
		local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -Hitbox.Velocity / 5) * (math.sin(tick()) + 2)
1278
		local CFramepos = Hitbox.CFrame:toWorldSpace(CFrame.new(pos)).p
1279
		local opos
1280
		if i == 1 then
1281
			opos = opos1
1282
		elseif i == 2 then
1283
			opos = opos2
1284
		else
1285
			opos = opos3
1286
		end
1287
			local e
1288
			if #res:children() <= 3 then
1289
				e = Instance.new("Part")
1290
			else
1291
				e = res:FindFirstChild("Trail")
1292
			end
1293
			e.Parent = waves
1294
			e.Anchored = false
1295
			e.CanCollide = false
1296
			e.Transparency = 0
1297
			e.Material = "Neon"
1298
			e.Name = "Trail"
1299
			e.Color = b(); --Color = a();
1300
			e.Size = Vector3.new(.01, (CFramepos - opos).magnitude, .01)
1301
			e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 0, 0)
1302
		if i == 1 then
1303
			opos1 = CFramepos
1304
		elseif i == 2 then
1305
			opos2 = CFramepos
1306
		else
1307
			opos3 = CFramepos
1308
		end
1309
	end
1310
end
1311
                                                
1312
rs.RenderStepped:connect(function()
1313
	FPS = 1 / rs.RenderStepped:wait()
1314
	for i, v in pairs (waves:children()) do
1315
		v.Transparency = v.Transparency + .05 / (FPS / 400)
1316
		if v.Transparency >= .98 then
1317
			v.Transparency = 1
1318
			v.Parent = res
1319
		end
1320
	end
1321
	inf = inf + (30 + root.Velocity.magnitude / 15) / (FPS / 400)
1322
	speedParts()
1323
end)
1324
1325
1326
1327
1328
1329
1330
while 1 do
1331
  swait()
1332
  Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
1333
  velocity = RootPart.Velocity.y
1334
  sine = sine + change
1335
  local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
1336
  if equipped == true or equipped == false then
1337
    if 1 < RootPart.Velocity.y and hit == nil then
1338
      Anim = "Jump"
1339
      if attack == false then
1340
        RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1341
        Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
1342
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
1343
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1344
        RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1345
        LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1346
      end
1347
    else
1348
      if RootPart.Velocity.y < -1 and hit == nil then
1349
        Anim = "Fall"
1350
        if attack == false then
1351
          RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
1352
          Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
1353
          RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
1354
          LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1355
          RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1356
          LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1357
          FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
1358
        end
1359
      else
1360
        if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
1361
          Anim = "Idle"
1362
          if attack == false then
1363
            change = 1
1364
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 0.3)
1365
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(80)), 0.3)
1366
RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
1367
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
1368
RH.C0 = clerp(RH.C0, cf(1, -1.2 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), 0.3)
1369
LH.C0 = clerp(LH.C0, cf(-1.3, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
1370
FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(70 - 1 * math.cos((sine) / 9)), math.rad(70)), 0.3)
1371
          end
1372
        else
1373
          if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
1374
            Anim = "Walk"
1375
            if attack == false then
1376
RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(10), math.rad(-5), math.rad(-30)), 0.3)
1377
Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(30)), 0.3)
1378
RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3)
1379
LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
1380
RH.C0 = clerp(RH.C0, cf(1, -1, 0 + 0.5 * math.cos((sine) / 5)) * RHCF * angles(math.rad(0), math.rad(0), math.rad(10 - 50 * math.cos((sine) / 5))), 0.3)
1381
LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5 - 0.5 * math.cos((sine) / 5)) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10 - 50 * math.cos((sine) / 5))), 0.3)
1382
FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(50 - 1 * math.cos((sine) / 9)), math.rad(120)), 0.3)
1383
            end
1384
          end
1385
        end
1386
      end
1387
    end
1388
  end
1389
  if 0 < #Effects then
1390
    for e = 1, #Effects do
1391
      if Effects[e] ~= nil then
1392
        local Thing = Effects[e]
1393
        if Thing ~= nil then
1394
          local Part = Thing[1]
1395
          local Mode = Thing[2]
1396
          local Delay = Thing[3]
1397
          local IncX = Thing[4]
1398
          local IncY = Thing[5]
1399
          local IncZ = Thing[6]
1400
          if Thing[1].Transparency <= 1 then
1401
            if Thing[2] == "Block1" then
1402
              Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1403
              Mesh = Thing[1].Mesh
1404
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1405
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1406
            else
1407
              if Thing[2] == "Block2" then
1408
                Thing[1].CFrame = Thing[1].CFrame
1409
                Mesh = Thing[7]
1410
                Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1411
                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1412
              else
1413
                if Thing[2] == "Cylinder" then
1414
                  Mesh = Thing[1].Mesh
1415
                  Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1416
                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1417
                else
1418
                  if Thing[2] == "Blood" then
1419
                    Mesh = Thing[7]
1420
                    Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1421
                    Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1422
                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1423
                  else
1424
                    if Thing[2] == "Elec" then
1425
                      Mesh = Thing[1].Mesh
1426
                      Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1427
                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1428
                    else
1429
                      if Thing[2] == "Disappear" then
1430
                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1431
                      else
1432
                        if Thing[2] == "Shatter" then
1433
                          Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1434
                          Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1435
                          Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1436
                          Thing[6] = Thing[6] + Thing[5]
1437
                        end
1438
                      end
1439
                    end
1440
                  end
1441
                end
1442
              end
1443
            end
1444
          else
1445
            Part.Parent = nil
1446
            table.remove(Effects, e)
1447
          end
1448
        end
1449
      end
1450
    end
1451
  end
1452
end