View difference between Paste ID: uJXWQ5cq and WAWfCQ5h
SHOW: | | - or go back to the newest paste.
1
						
2
warn([[SpectrumGlitcher v2 Loaded.
3
All purpose switcher... -- wat
4
5
############################
6
Discord: SpectrumEeveez#2356
7
Contact Me For Updates!
8
############################
9
10
Created by 'NoobyGames12'
11
Edited by 'GodzPlaysRB'
12
]])
13
print([[Icons:
14
! = New
15
? = Spoilers
16
* = Exclusivity
17
]])
18
warn([[V 3.3.1 (ON PROGRESS) Update Log:
19
* New Mode (On Divinity upon pressing M)
20
! Recolors and Retexts
21
? Text Shows up when entering Hatred Mode
22
* Equality is back!!!
23
* New! Hope mode upon pressing G (2 moves)
24
- Hope Smash "Z"
25
- Glitch "C"
26
! New Mode on PHANTOM pressing "x"
27
SORRY I NERFED IT :-;
28
Only special peeps get the newer ones
29
And some people that trade.
30
Sorry this is the last one im giving out.
31
32
I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
33
But Further i do!
34
I may present!
35
SpectrumGlitcher v2
36
]])
37
--- its obs smooth af do not touch 
38
---- Sources and functions might be taken from others
39-
plr = game:GetService("Players").LocalPlayer
39+
40-
char = plr.Character
40+
41-
hum = char.Humanoid
41+
42
local CamInterrupt = false
43
local TwoD = false
44
local TargetInfo = {nil, nil}
45
cam.CameraType = "Custom"
46
t = char.Torso
47
h = char.Head
48
ra = char["Right Arm"]
49
la = char["Left Arm"]
50
rl = char["Right Leg"]
51
ll = char["Left Leg"]
52
tors = char.Torso
53
lleg = char["Left Leg"]
54
root = char.HumanoidRootPart
55
hed = char.Head
56
rleg = char["Right Leg"]
57
rarm = char["Right Arm"]
58
larm = char["Left Arm"]
59
radian = math.rad
60
random = math.random
61
Vec3 = Vector3.new
62
Inst = Instance.new
63
cFrame = CFrame.new
64
Euler = CFrame.fromEulerAnglesXYZ
65
vt = Vector3.new
66
bc = BrickColor.new
67
br = BrickColor.random
68
it = Instance.new
69
cf = CFrame.new
70
local eff = true
71
local shielding = false
72
local char = plr.Character
73
local hum = char:FindFirstChildOfClass'Humanoid'
74
local hed = char.Head
75
local root = char:FindFirstChild'HumanoidRootPart'
76
local rootj = root.RootJoint
77
local tors = char.Torso
78
local ra = char["Right Arm"]
79
local la = char["Left Arm"]
80
local rl = char["Right Leg"]
81
local ll = char["Left Leg"]
82
local neck = tors["Neck"]
83
local mouse = plr:GetMouse()
84
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
85
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
86
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
87
local maincolor = MAINRUINCOLOR
88
cam = game.Workspace.CurrentCamera
89
CF = CFrame.new
90
angles = CFrame.Angles
91
attack = false
92
Euler = CFrame.fromEulerAnglesXYZ
93
Rad = math.rad
94
IT = Instance.new
95
BrickC = BrickColor.new
96
Cos = math.cos
97
Acos = math.acos
98
Sin = math.sin
99
Asin = math.asin
100
Abs = math.abs
101
Mrandom = math.random
102
Floor = math.floor
103
IT = Instance.new
104
CF = CFrame.new
105
VT = Vector3.new
106
RAD = math.rad
107
C3 = Color3.new
108
UD2 = UDim2.new
109
BRICKC = BrickColor.new
110
ANGLES = CFrame.Angles
111
EULER = CFrame.fromEulerAnglesXYZ
112
COS = math.cos
113
ACOS = math.acos
114
SIN = math.sin
115
ASIN = math.asin
116
ABS = math.abs
117
MRANDOM = math.random
118
FLOOR = math.floor
119
local RWINGS = {}
120
local LWINGS = {}
121
local GunPoint
122
Player_Size = 1
123
124
for i,v in pairs(char:children()) do
125
if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
126
v:Remove()
127
end
128
end
129
shirt = Instance.new("Shirt", char)
130
shirt.Name = "Shirt"
131
pants = Instance.new("Pants", char)
132
pants.Name = "Pants"
133
char.Shirt.ShirtTemplate = "rbxassetid://62300690"
134
char.Pants.PantsTemplate = "rbxassetid://179766142"
135
136
local Booleans = {
137
  CamFollow = true,
138
  GyroUse = true
139
}
140
141
function lerp(object, newCFrame, alpha)
142
  return object:lerp(newCFrame, alpha)
143
end
144
145
local Directer = Inst("BodyGyro", root)
146
Directer.MaxTorque = Vec3(0, 0, 0)
147
Directer.P = 600000
148
local CPart = Inst("Part")
149
CPart.Anchored = true
150
CPart.CanCollide = false
151
CPart.Locked = true
152
CPart.Transparency = 1
153
154
local rainbowmode = false
155
local MALFUNCTIONmode = false
156
157
kan = Instance.new("Sound",char)
158
kan.Volume = 1.25
159
kan.TimePosition = 0
160
kan.PlaybackSpeed = 1
161
kan.Pitch = 1
162
kan.SoundId = "rbxassetid://614032233"
163
kan.Name = "wrecked"
164
kan.Looped = true
165
kan:Play()
166
167
function Cso(ID, PARENT, VOLUME, PITCH)
168
	local NSound = nil
169
	coroutine.resume(coroutine.create(function()
170
		NSound = IT("Sound", PARENT)
171
		NSound.Volume = VOLUME
172
		NSound.Pitch = PITCH
173
		NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
174
		swait()
175
		NSound:play()
176
		game:GetService("Debris"):AddItem(NSound, 10)
177
	end))
178
	return NSound
179
end
180
181
function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
182
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
183
	local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
184
	wave.CFrame = CFRAME
185
	coroutine.resume(coroutine.create(function(PART)
186
		for i = 1, WAIT do
187
			Swait()
188
			mesh.Scale = mesh.Scale + GROW
189
			wave.Transparency = wave.Transparency + 1 / WAIT
190
			if wave.Transparency > 0.99 then
191
				wave:remove()
192
			end
193
		end
194
	end))
195
end
196
197
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
198
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
199
end
200
201
function PositiveAngle(NUMBER)
202
	if NUMBER >= 0 then
203
		NUMBER = 0
204
	end
205
	return NUMBER
206
end
207
208
function NegativeAngle(NUMBER)
209
	if NUMBER <= 0 then
210
		NUMBER = 0
211
	end
212
	return NUMBER
213
end
214
215
function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
216
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
217
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
218
	wave.CFrame = CFRAME
219
	coroutine.resume(coroutine.create(function(PART)
220
		for i = 1, WAIT do
221
			Swait()
222
			mesh.Scale = mesh.Scale + GROW
223
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
224
			if DOESROT == true then
225
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
226
			end
227
			wave.Transparency = wave.Transparency + 0.5 / WAIT
228
			if wave.Transparency > 0.99 then
229
				wave:remove()
230
			end
231
		end
232
	end))
233
end
234
235
function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
236
	for _, c in pairs(PARENT:GetChildren()) do
237
		if c.ClassName == "Model" then
238
			if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
239
				local HUMANOID = c:FindFirstChildOfClass("Humanoid")
240
				local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
241
				if DIST > (TORSO.Position - FROM).Magnitude then
242
					table.insert(TABLE, c)
243
				end
244
				AddChildrenToTable(FROM, c, DIST, TABLE)
245
			elseif c.ClassName == "Folder" then
246
				AddChildrenToTable(FROM, c, DIST, TABLE)
247
			end
248
		end
249
	end
250
end
251
252
function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
253
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
254
	local mesh
255
	if KIND == "Base" then
256
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
257
	elseif KIND == "Thin" then
258
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
259
	elseif KIND == "Round" then
260
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
261
	end
262
	wave.CFrame = CFRAME
263
	coroutine.resume(coroutine.create(function(PART)
264
		for i = 1, WAIT do
265
			Swait()
266
			mesh.Scale = mesh.Scale + GROW / 10
267
			wave.Transparency = wave.Transparency + 0.5 / WAIT
268
			if wave.Transparency > 0.99 then
269
				wave:remove()
270
			end
271
		end
272
	end))
273
end
274
275
function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
276
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
277
	local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
278
	wave.CFrame = CFRAME
279
	coroutine.resume(coroutine.create(function(PART)
280
		for i = 1, WAIT do
281
			Swait()
282
			mesh.Scale = mesh.Scale + GROW
283
			wave.Transparency = wave.Transparency + 1 / WAIT
284
			if wave.Transparency > 0.99 then
285
				wave:remove()
286
			end
287
		end
288
	end))
289
end
290
291
function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
292
	local TORSO = Torso
293
	local HUM = Humanoid
294
	if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
295
		coroutine.wrap(function()
296
			VT = Vector3.new
297
			MRANDOM = math.random
298
			local A = TIME
299
			local B = INTENSITY
300
			local C = true
301
			local HUMANOID = Humanoid
302
			local TIMER = A or 35
303
			local SHAKE = B or 5
304
			local FADE = C or true
305
			if HUMANOID then
306
				local FADER = SHAKE / TIMER
307
				for i = 1, TIMER do
308
					wait()
309
					HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
310
				end
311
				HUMANOID.CameraOffset = VT(0, 0, 0)
312
			end
313
314
		end)()
315
	end
316
end
317
318
function Effect(data)
319
	local FX = data.Effect or 'ResizeAndFade'
320
	local Parent = data.Parent or Effects
321
	local Color = data.Color or C3.N(0,0,0)
322
	local Size = data.Size or V3.N(1,1,1)
323
	local MoveDir = data.MoveDirection or nil
324
	local MeshData = data.Mesh or nil
325
	local SndData = data.Sound or nil
326
	local Frames = data.Frames or 45
327
	local Manual = data.Manual or nil
328
	local Material = data.Material or nil
329
	local CFra = data.CFrame or Torso.CFrame
330
	local Settings = data.FXSettings or {}
331
	local Snd,Prt,Msh;
332
	local Shape = data.Shape or Enum.PartType.Block
333
	coroutine.resume(coroutine.create(function()
334
		if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then
335
			Prt = Manual
336
		else
337
			Prt = Part(Parent,Color,Material,Size,CFra,true,false)
338
			Prt.Shape = Shape
339
		end
340
		if(typeof(MeshData) == 'table')then
341
			Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
342
		elseif(typeof(MeshData) == 'Instance')then
343
			Msh = MeshData:Clone()
344
			Msh.Parent = Prt
345
		elseif(Shape == Enum.PartType.Block)then
346
			Msh = Mesh(Prt,Enum.MeshType.Brick)
347
		end
348
		if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then
349
			Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true)
350
		end
351
		if(Snd)then
352
			repeat wait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0
353
			Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch
354
		end
355
		local MoveSpeed = nil;
356
		if(MoveDir)then
357
			MoveSpeed = (CFra.p - MoveDir).magnitude/Frames
358
		end
359
		local Inc = M.RNG()-M.RNG()
360
		local Thingie = 0
361
		local Thingie2 = M.RNG(50,100)/100
362
		if(FX ~= 'Arc')then
363
			for i = 1, Frames do
364
				if(swait and typeof(swait) == 'function')then
365
					swait()
366
				else
367
					wait()
368
				end
369
				if(FX == 'ResizeAndFade')then
370
					if(not Settings.EndSize)then
371
						Settings.EndSize = V3.N(0,0,0)
372
					end
373
					local grow = (typeof(Settings.EndSize) == 'Vector3' and Settings.EndSize+Size or typeof(Settings.EndSize) == 'number' and V3.N(Settings.EndSize))
374
					if(Settings.EndIsIncrement)then
375
						Prt.Size = Prt.Size + Settings.EndSize					
376
					else
377
						Prt.Size = Prt.Size - grow/Frames
378
					end 
379
					Prt.Transparency = (i/Frames)
380
				elseif(FX == 'Fade')then
381
					Prt.Transparency = (i/Frames)
382
				end
383
				
384
				if(Settings.RandomizeCFrame)then
385
					Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360))
386
				end
387
				if(MoveDir and MoveSpeed)then
388
					local Orientation = Prt.Orientation
389
					Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed)
390
					Prt.Orientation = Orientation
391
				end
392
			end
393
			Prt:destroy() 
394
		else
395
			local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End
396
			if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end
397
			local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
398
			local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25))
399
			assert(start ~= nil,"You need to specify a start point!")
400
			assert(endP ~= nil,"You need to specify an end point!")
401
			for i = 0, 1, Settings.Speed or 0.01 do
402
				if(swait and typeof(swait) == 'function')then
403
					swait()
404
				else
405
					wait()
406
				end
407
				if(Settings.Home)then
408
					endP = Settings.Home.CFrame
409
				end
410
				Prt.CFrame = Bezier(start, quarter, threequarter, endP, i)
411
			end
412
			if(Settings.RemoveOnGoal)then
413
				Prt:destroy()
414
			end
415
		end
416
	end))
417
	return Prt,Msh,Snd
418
end
419
420
function Banish(Foe)
421
	if Foe then
422
		coroutine.resume(coroutine.create(function()
423
			--if game.Players:FindFirstChild(Foe.Name) then
424
				table.insert(TOBANISH,Foe.Name)
425
				printbye(Foe.Name)
426
			--end
427
			Foe.Archivable = true
428
			local CLONE = Foe:Clone()
429
			Foe:Destroy()
430
			CLONE.Parent = Effects
431
			CLONE:BreakJoints()
432
			local MATERIALS = {"Glass","Neon"}
433
			for _, c in pairs(CLONE:GetDescendants()) do
434
				if c:IsA("BasePart") then
435
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
436
 						CreateSound(340722848, c, 10, 1, false)
437
					end
438
					c.Anchored = true
439
					c.Transparency = c.Transparency + 0.2
440
					c.Material = MATERIALS[MRANDOM(1,2)]
441
					c.Color = C3(0,255,0)
442
					if c.ClassName == "MeshPart" then
443
						c.TextureID = ""
444
					end
445
					if c:FindFirstChildOfClass("SpecialMesh") then
446
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
447
					end
448
					if c:FindFirstChildOfClass("Decal") then
449
						c:FindFirstChildOfClass("Decal"):remove()
450
					end
451
					c.Name = "Banished"
452
					c.CanCollide = false
453
				else
454
					c:remove()
455
				end
456
			end
457
			local A = false
458
			for i = 1, 35 do
459
				if A == false then
460
					A = true
461
				elseif A == true then
462
					A = false
463
				end
464
				for _, c in pairs(CLONE:GetDescendants()) do
465
					if c:IsA("BasePart") then
466
						c.Anchored = true
467
						c.Material = MATERIALS[MRANDOM(1,2)]
468
						c.Transparency = c.Transparency + 0.8/35
469
						if A == false then
470
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
471
						elseif A == true then
472
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
473
						end
474
					end
475
				end
476
				Swait()
477
			end
478
			CLONE:remove()
479
		end))
480
	end
481
end
482
483
function ApplyAoE(POSITION,RANGE,ISBANISH)
484
	local CHILDREN = workspace:GetDescendants()
485
	for index, CHILD in pairs(CHILDREN) do
486
		if CHILD.ClassName == "Model" and CHILD ~= Character then
487
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
488
			if HUM then
489
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
490
				if TORSO then
491
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
492
						if ISBANISH == true then
493
							Banish(CHILD)
494
						else
495
							if ISBANISH == "Gravity" then
496
								HUM.PlatformStand = true
497
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
498
									local grav = Instance.new("BodyPosition",TORSO)
499
									grav.D = 15
500
									grav.P = 20000
501
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
502
									grav.position = TORSO.Position
503
									grav.Name = "V3BanishForce"..Player.Name
504
								else
505
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
506
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
507
								end
508
							else
509
								HUM.PlatformStand = false
510
							end
511
						end
512
					elseif ISBANISH == "Gravity" then
513
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
514
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
515
							HUM.PlatformStand = false
516
						end
517
					end
518
				end
519
			end
520
		end
521
	end
522
end
523
524
525
function WACKYEFFECT(Table)
526
	local TYPE = (Table.EffectType or "Sphere")
527
	local SIZE = (Table.Size or Vector3.new(1,1,1))
528
	local ENDSIZE = (Table.Size2 or Vector3.new(0,0,0))
529
	local TRANSPARENCY = (Table.Transparency or 0)
530
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
531
	local CFRAME = (Table.CFrame or tors.CFrame)
532
	local MOVEDIRECTION = (Table.MoveToPos or nil)
533
	local ROTATION1 = (Table.RotationX or 0)
534
	local ROTATION2 = (Table.RotationY or 0)
535
	local ROTATION3 = (Table.RotationZ or 0)
536
	local MATERIAL = (Table.Material or "Neon")
537
	local COLOR = (Table.Color or Color3.new(1,1,1))
538
	local TIME = (Table.Time or 45)
539
	local SOUNDID = (Table.SoundID or nil)
540
	local SOUNDPITCH = (Table.SoundPitch or nil)
541
	local SOUNDVOLUME = (Table.SoundVolume or nil)
542
	coroutine.resume(coroutine.create(function()
543
		local PLAYSSOUND = false
544
		local SOUND = nil
545
		local EFFECT = CreatePart(3, EffectModel, MATERIAL, 0, TRANSPARENCY, BrickC("Pearl"), "Effect", Vector3.new(1,1,1), true)
546
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
547
			PLAYSSOUND = true
548
			SOUND = Cso(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
549
		end
550
		EFFECT.Color = COLOR
551
		local MSH = nil
552
		if TYPE == "Sphere" then
553
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, Vector3.new(0,0,0))
554
		elseif TYPE == "Block" or TYPE == "Box" then
555
			MSH = IT("BlockMesh",EFFECT)
556
			MSH.Scale = SIZE
557
		elseif TYPE == "Cylinder" then
558
			MSH = IT("CylinderMesh",EFFECT)
559
			MSH.Scale = SIZE
560
		elseif TYPE == "Wave" then
561
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, Vector3.new(0,0,-SIZE.X/8))
562
		elseif TYPE == "Ring" then
563
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", Vector3.new(SIZE.X,SIZE.X,0.1), Vector3.new(0,0,0))
564
		elseif TYPE == "Slash" then
565
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
566
		elseif TYPE == "Round Slash" then
567
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", Vector3.new(SIZE.X/10,0,SIZE.X/10), Vector3.new(0,0,0))
568
		elseif TYPE == "Swirl" then
569
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, Vector3.new(0,0,0))
570
		elseif TYPE == "Skull" then
571
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, Vector3.new(0,0,0))
572
		elseif TYPE == "Crystal" then
573
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, Vector3.new(0,0,0))
574
		elseif TYPE == "Crown" then
575
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, Vector3.new(0,0,0))
576
		end
577
		if MSH ~= nil then
578
			local MOVESPEED = nil
579
			if MOVEDIRECTION ~= nil then
580
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
581
			end
582
			local GROWTH = SIZE - ENDSIZE
583
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
584
			if TYPE == "Block" then
585
				EFFECT.CFrame = CFRAME*angles(Rad(Mrandom(0,360)),Rad(Mrandom(0,360)),Rad(Mrandom(0,360)))
586
			else
587
				EFFECT.CFrame = CFRAME
588
			end
589
			for LOOP = 1, TIME+1 do
590
				swait()
591
				MSH.Scale = MSH.Scale - GROWTH/TIME
592
				if TYPE == "Wave" then
593
					MSH.Offset = Vector3.new(0,0,-MSH.Scale.X/8)
594
				end
595
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
596
				if TYPE == "Block" then
597
					EFFECT.CFrame = CFRAME*angles(Rad(Mrandom(0,360)),Rad(Mrandom(0,360)),Rad(Mrandom(0,360)))
598
				else
599
					EFFECT.CFrame = EFFECT.CFrame*angles(Rad(ROTATION1),Rad(ROTATION2),Rad(ROTATION3))
600
				end
601
				if MOVEDIRECTION ~= nil then
602
					local ORI = EFFECT.Orientation
603
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
604
					EFFECT.Orientation = ORI
605
				end
606
			end
607
			EFFECT.Transparency = 1
608
			if PLAYSSOUND == false then
609
				EFFECT:remove()
610
			else
611
				repeat swait() until SOUND.Playing == false
612
				EFFECT:remove()
613
			end
614
		else
615
			if PLAYSSOUND == false then
616
				EFFECT:remove()
617
			else
618
				repeat swait() until SOUND.Playing == false
619
				EFFECT:remove()
620
			end
621
		end
622
	end))
623
end
624
625
function Magic(bonuspeed, type, pos, scale, value, color, MType)
626
	local type = type
627
	local rng = Instance.new("Part", char)
628
	rng.Anchored = true
629
	rng.BrickColor = color
630
	rng.CanCollide = false
631
	rng.FormFactor = 3
632
	rng.Name = "Ring"
633
	rng.Material = "Neon"
634
	rng.Size = Vector3.new(1, 1, 1)
635
	rng.Transparency = 0
636
	rng.TopSurface = 0
637
	rng.BottomSurface = 0
638
	rng.CFrame = pos
639
	local rngm = Instance.new("SpecialMesh", rng)
640
	rngm.MeshType = MType
641
	rngm.Scale = scale
642
	local scaler2 = 1
643
	if type == "Add" then
644
		scaler2 = 1 * value
645
	elseif type == "Divide" then
646
		scaler2 = 1 / value
647
	end
648
	coroutine.resume(coroutine.create(function()
649
		for i = 0, 10 / bonuspeed, 0.1 do
650
			swait()
651
			if type == "Add" then
652
				scaler2 = scaler2 - 0.01 * value / bonuspeed
653
			elseif type == "Divide" then
654
				scaler2 = scaler2 - 0.01 / value * bonuspeed
655
			end
656
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
657
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
658
		end
659
		rng:Destroy()
660
	end))
661
end
662
663
function Eviscerate(dude)
664
	if dude.Name ~= char then
665
		local bgf = IT("BodyGyro", dude.Head)
666
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
667
		local val = IT("BoolValue", dude)
668
		val.Name = "IsHit"
669
		local ds = coroutine.wrap(function()
670
			dude:WaitForChild("Head"):BreakJoints()
671
			wait(0.5)
672
			target = nil
673
			coroutine.resume(coroutine.create(function()
674
				for i, v in pairs(dude:GetChildren()) do
675
					if v:IsA("Accessory") then
676
						v:Destroy()
677
					end
678
					if v:IsA("Humanoid") then
679
						v:Destroy()
680
					end
681
					if v:IsA("CharacterMesh") then
682
						v:Destroy()
683
					end
684
					if v:IsA("Model") then
685
						v:Destroy()
686
					end
687
					if v:IsA("Part") or v:IsA("MeshPart") then
688
						for x, o in pairs(v:GetChildren()) do
689
							if o:IsA("Decal") then
690
								o:Destroy()
691
							end
692
						end
693
						coroutine.resume(coroutine.create(function()
694
							v.Material = "Neon"
695
							v.CanCollide = false
696
							local PartEmmit1 = IT("ParticleEmitter", v)
697
							PartEmmit1.LightEmission = 1
698
							PartEmmit1.Texture = "rbxassetid://284205403"
699
							PartEmmit1.Color = ColorSequence.new(maincolor.Color)
700
							PartEmmit1.Rate = 150
701
							PartEmmit1.Lifetime = NumberRange.new(1)
702
							PartEmmit1.Size = NumberSequence.new({
703
								NumberSequenceKeypoint.new(0, 0.75, 0),
704
								NumberSequenceKeypoint.new(1, 0, 0)
705
							})
706
							PartEmmit1.Transparency = NumberSequence.new({
707
								NumberSequenceKeypoint.new(0, 0, 0),
708
								NumberSequenceKeypoint.new(1, 1, 0)
709
							})
710
							PartEmmit1.Speed = NumberRange.new(0, 0)
711
							PartEmmit1.VelocitySpread = 30000
712
							PartEmmit1.Rotation = NumberRange.new(-500, 500)
713
							PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
714
							local BodPoss = IT("BodyPosition", v)
715
							BodPoss.P = 3000
716
							BodPoss.D = 1000
717
							BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
718
							BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
719
							v.Color = maincolor.Color
720
							coroutine.resume(coroutine.create(function()
721
								for i = 0, 49 do
722
									swait(1)
723
									v.Transparency = v.Transparency + 0.08
724
								end
725
								wait(0.5)
726
								PartEmmit1.Enabled = false
727
								wait(3)
728
								v:Destroy()
729
								dude:Destroy()
730
							end))
731
						end))
732
					end
733
				end
734
			end))
735
		end)
736
		ds()
737
	end
738
end
739
740
function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
741
	local type = type
742
	local rng = Instance.new("Part", char)
743
	rng.Anchored = true
744
	rng.BrickColor = color
745
	rng.CanCollide = false
746
	rng.FormFactor = 3
747
	rng.Name = "Ring"
748
	rng.Material = "Neon"
749
	rng.Size = Vector3.new(1, 1, 1)
750
	rng.Transparency = 0
751
	rng.TopSurface = 0
752
	rng.BottomSurface = 0
753
	rng.CFrame = pos
754
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
755
	local rngm = Instance.new("SpecialMesh", rng)
756
	rngm.MeshType = MType
757
	rngm.Scale = Vector3.new(x1, y1, z1)
758
	local scaler2 = 1
759
	local speeder = FastSpeed
760
	if type == "Add" then
761
		scaler2 = 1 * value
762
	elseif type == "Divide" then
763
		scaler2 = 1 / value
764
	end
765
	coroutine.resume(coroutine.create(function()
766
		for i = 0, 10 / bonuspeed, 0.1 do
767
			swait()
768
			if type == "Add" then
769
				scaler2 = scaler2 - 0.01 * value / bonuspeed
770
			elseif type == "Divide" then
771
				scaler2 = scaler2 - 0.01 / value * bonuspeed
772
			end
773
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
774
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
775
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
776
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
777
		end
778
		rng:Destroy()
779
	end))
780
end
781
782
function newTheme(ID,timepos,pitch,vol)
783
local kanz = kan
784
--kanz:Stop()
785
--kanz.Volume = vol
786
--kanz.TimePosition = timepos
787
kanz.PlaybackSpeed = pitch
788
kanz.Pitch = pitch
789
kanz.SoundId = ID
790
kanz.Name = "wrecked"
791
kanz.Looped = true
792
kanz.Volume = 0.3
793
--kanz:Play()
794
--coroutine.resume(coroutine.create(function()
795
--wait(0.05)
796
--end))
797
end
798
799
function newThemeCust(ID,timepos,pitch,vol)
800
local kanz = kan
801
kanz:Stop()
802
kanz.Volume = vol
803
kanz.TimePosition = timepos
804
kanz.PlaybackSpeed = pitch
805
kanz.Pitch = pitch
806
kanz.SoundId = ID
807
kanz.Name = "wrecked"
808
kanz.Looped = true
809
kanz:Play()
810
coroutine.resume(coroutine.create(function()
811
wait(0.05)
812
end))
813
end
814
815
816
817
function CameraShake(Times, Power, PlayerTarget)
818
coroutine.resume(coroutine.create(function()
819
FV = Instance.new("BoolValue", PlayerTarget)
820
FV.Name = "CameraShake"
821
for ShakeNum=1,Times do
822
swait()
823
local ef=Power
824
  if ef>=1 then
825
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
826
  else
827
   ef=Power*10
828
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
829
  end	
830
end
831
Humanoid.CameraOffset = Vector3.new(0,0,0)
832
FV:Destroy()
833
end))
834
end
835
836
function CameraEnshaking(Length,Intensity)
837
coroutine.resume(coroutine.create(function()
838
      local intensity = 1*Intensity
839
      local rotM = 0.01*Intensity
840
for i = 0, Length, 0.1 do
841
swait()
842
intensity = intensity - 0.05*Intensity/Length
843
rotM = rotM - 0.0005*Intensity/Length
844
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
845
      cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
846
end
847
Humanoid.CameraOffset = Vec3(0, 0, 0)
848
end))
849
end
850
CamShake=function(Part,Distan,Power,Times) 
851
local de=Part.Position
852
for i,v in pairs(workspace:children()) do
853
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
854
for _,c in pairs(v:children()) do
855
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
856
local Noob=v.Humanoid
857
if Noob~=nil then
858
coroutine.resume(coroutine.create(function()
859
FV = Instance.new("BoolValue", Noob)
860
FV.Name = "CameraShake"
861
for ShakeNum=1,Times do
862
swait()
863
local ef=Power
864
  if ef>=1 then
865
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
866
  else
867
   ef=Power*10
868
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
869
  end	
870
end
871
Humanoid.CameraOffset = Vector3.new(0,0,0)
872
FV:Destroy()
873
end))
874
CameraShake(Times, Power, Noob)
875
end
876
end
877
end
878
end
879
end
880
end
881
882
883
function chatfunc(text,color)
884
local chat = coroutine.wrap(function()
885
if Character:FindFirstChild("TalkingBillBoard")~= nil then
886
Character:FindFirstChild("TalkingBillBoard"):destroy()
887
end
888
local naeeym2 = Instance.new("BillboardGui",Character)
889
naeeym2.Size = UDim2.new(0,100,0,40)
890
naeeym2.StudsOffset = Vector3.new(0,3,0)
891
naeeym2.Adornee = Character.Head
892
naeeym2.Name = "TalkingBillBoard"
893
local tecks2 = Instance.new("TextLabel",naeeym2)
894
tecks2.BackgroundTransparency = 1
895
tecks2.BorderSizePixel = 0
896
tecks2.Text = ""
897
tecks2.Font = "SciFi"
898
tecks2.TextSize = 30
899
tecks2.TextStrokeTransparency = 0
900
tecks2.TextColor3 = color
901
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
902
tecks2.Size = UDim2.new(1,0,0.5,0)
903
local tecks3 = Instance.new("TextLabel",naeeym2)
904
tecks3.BackgroundTransparency = 1
905
tecks3.BorderSizePixel = 0
906
tecks3.Text = ""
907
tecks3.Font = "SciFi"
908
tecks3.TextSize = 30
909
tecks3.TextStrokeTransparency = 0
910
tecks3.TextColor3 = Color3.new(0,0,0)
911
tecks3.TextStrokeColor3 = color
912
tecks3.Size = UDim2.new(1,0,0.5,0)
913
coroutine.resume(coroutine.create(function()
914
while true do
915
swait(1)
916
plr.Character.wrecked.Volume = 0.3
917
if MALFUNCTIONmode == true then
918
tecks2.TextColor3 = BrickColor.random().Color
919
tecks3.TextStrokeColor3 = BrickColor.random().Color
920
end
921
tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
922
tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
923
tecks2.Rotation = math.random(-5,5)
924
tecks3.Rotation = math.random(-5,5)
925
end
926
end))
927
for i = 1,string.len(text),1 do
928
CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
929
tecks2.Text = string.sub(text,1,i)
930
tecks3.Text = string.sub(text,1,i)
931
swait(1)
932
end
933
wait(1)
934
local randomrot = math.random(1,2)
935
if randomrot == 1 then
936
for i = 1, 50 do
937
swait()
938
tecks2.Rotation = tecks2.Rotation - .75
939
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
940
tecks2.TextTransparency = tecks2.TextTransparency + .04
941
tecks3.Rotation = tecks2.Rotation + .75
942
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
943
tecks3.TextTransparency = tecks2.TextTransparency + .04
944
end
945
elseif randomrot == 2 then
946
	for i = 1, 50 do
947
swait()
948
tecks2.Rotation = tecks2.Rotation + .75
949
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
950
tecks2.TextTransparency = tecks2.TextTransparency + .04
951
tecks3.Rotation = tecks2.Rotation - .75
952
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
953
tecks3.TextTransparency = tecks2.TextTransparency + .04
954
end
955
end
956
naeeym2:Destroy()
957
end)
958
chat()
959
end
960
961
local Create = LoadLibrary("RbxUtility").Create
962
963
CFuncs = {	
964
	["Part"] = {
965
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
966
			local Part = Create("Part"){
967
				Parent = Parent,
968
				Reflectance = Reflectance,
969
				Transparency = Transparency,
970
				CanCollide = false,
971
				Locked = true,
972
				BrickColor = BrickColor.new(tostring(BColor)),
973
				Name = Name,
974
				Size = Size,
975
				Material = Material,
976
			}
977
			RemoveOutlines(Part)
978
			return Part
979
		end;
980
	};
981
	
982
	["Mesh"] = {
983
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
984
			local Msh = Create(Mesh){
985
				Parent = Part,
986
				Offset = OffSet,
987
				Scale = Scale,
988
			}
989
			if Mesh == "SpecialMesh" then
990
				Msh.MeshType = MeshType
991
				Msh.MeshId = MeshId
992
			end
993
			return Msh
994
		end;
995
	};
996
	
997
	["Mesh"] = {
998
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
999
			local Msh = Create(Mesh){
1000
				Parent = Part,
1001
				Offset = OffSet,
1002
				Scale = Scale,
1003
			}
1004
			if Mesh == "SpecialMesh" then
1005
				Msh.MeshType = MeshType
1006
				Msh.MeshId = MeshId
1007
			end
1008
			return Msh
1009
		end;
1010
	};
1011
	
1012
	["Weld"] = {
1013
		Create = function(Parent, Part0, Part1, C0, C1)
1014
			local Weld = Create("Weld"){
1015
				Parent = Parent,
1016
				Part0 = Part0,
1017
				Part1 = Part1,
1018
				C0 = C0,
1019
				C1 = C1,
1020
			}
1021
			return Weld
1022
		end;
1023
	};
1024
1025
	["Sound"] = {
1026
		Create = function(id, par, vol, pit) 
1027
			coroutine.resume(coroutine.create(function()
1028
				local S = Create("Sound"){
1029
					Volume = vol,
1030
                                        Name = "EffectSoundo",
1031
					Pitch = pit or 1,
1032
					SoundId = id,
1033
					Parent = par or workspace,
1034
				}
1035
				wait() 
1036
				S:play() 
1037
				game:GetService("Debris"):AddItem(S, 10)
1038
			end))
1039
		end;
1040
	};
1041
1042
["LongSound"] = {
1043
		Create = function(id, par, vol, pit) 
1044
			coroutine.resume(coroutine.create(function()
1045
				local S = Create("Sound"){
1046
					Volume = vol,
1047
					Pitch = pit or 1,
1048
					SoundId = id,
1049
					Parent = par or workspace,
1050
				}
1051
				wait() 
1052
				S:play() 
1053
				game:GetService("Debris"):AddItem(S, 30)
1054
			end))
1055
		end;
1056
	};
1057
	
1058
	["ParticleEmitter"] = {
1059
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
1060
			local fp = Create("ParticleEmitter"){
1061
				Parent = Parent,
1062
				Color = ColorSequence.new(Color1, Color2),
1063
				LightEmission = LightEmission,
1064
				Size = Size,
1065
				Texture = Texture,
1066
				Transparency = Transparency,
1067
				ZOffset = ZOffset,
1068
				Acceleration = Accel,
1069
				Drag = Drag,
1070
				LockedToPart = LockedToPart,
1071
				VelocityInheritance = VelocityInheritance,
1072
				EmissionDirection = EmissionDirection,
1073
				Enabled = Enabled,
1074
				Lifetime = LifeTime,
1075
				Rate = Rate,
1076
				Rotation = Rotation,
1077
				RotSpeed = RotSpeed,
1078
				Speed = Speed,
1079
				VelocitySpread = VelocitySpread,
1080
			}
1081
			return fp
1082
		end;
1083
	};
1084
1085
	CreateTemplate = {
1086
	
1087
	};
1088
}
1089
1090
1091
1092
New = function(Object, Parent, Name, Data)
1093
	local Object = Instance.new(Object)
1094
	for Index, Value in pairs(Data or {}) do
1095
		Object[Index] = Value
1096
	end
1097
	Object.Parent = Parent
1098
	Object.Name = Name
1099
	return Object
1100
end
1101
local halocolor = BrickColor.new("Pastel light blue")
1102
local halocolor2 = BrickColor.new("Cool yellow")
1103
local starcolor = BrickColor.new("Bright yellow")
1104
local lunacolor = BrickColor.new("Navy blue")
1105
local lunacolor2 = BrickColor.new("Bright blue")
1106
local wepcolor = BrickColor.new("Really black")
1107
local maincolor = BrickColor.new("Really black")
1108
local m = Instance.new("Model",char)
1109
local m2 = Instance.new("Model",char)
1110
local m3 = Instance.new("Model",char)
1111
local mw1 = Instance.new("Model",char)
1112
local mw2 = Instance.new("Model",char)
1113
1114
local extrawingmod1 = Instance.new("Model",char)
1115
local extrawingmod2 = Instance.new("Model",char)
1116
1117
function CreateParta(parent,transparency,reflectance,material,brickcolor)
1118
local p = Instance.new("Part")
1119
p.TopSurface = 0
1120
p.BottomSurface = 0
1121
p.Parent = parent
1122
p.Size = Vector3.new(0.1,0.1,0.1)
1123
p.Transparency = transparency
1124
p.Reflectance = reflectance
1125
p.CanCollide = false
1126
p.Locked = true
1127
p.BrickColor = brickcolor
1128
p.Material = material
1129
return p
1130
end
1131
1132
function CreateMesh(parent,meshtype,x1,y1,z1)
1133
local mesh = Instance.new("SpecialMesh",parent)
1134
mesh.MeshType = meshtype
1135
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
1136
return mesh
1137
end
1138
1139
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
1140
local mesh = Instance.new("SpecialMesh",parent)
1141
mesh.MeshType = "FileMesh"
1142
mesh.MeshId = meshid
1143
mesh.Scale = Vector3.new(x1,y1,z1)
1144
return mesh
1145
end
1146
1147
1148
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
1149
local mesh = Instance.new("SpecialMesh",parent)
1150
mesh.MeshType = "FileMesh"
1151
mesh.MeshId = meshid
1152
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
1153
mesh.Scale = Vector3.new(x1,y1,z1)
1154
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
1155
return mesh
1156
end
1157
1158
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
1159
local weld = Instance.new("Weld")
1160
weld.Parent = parent
1161
weld.Part0 = part0
1162
weld.Part1 = part1
1163
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
1164
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
1165
return weld
1166
end
1167
1168
1169
--------------
1170
local secondchar = Instance.new("Model",char)
1171
local GhostCol = BrickColor.new("Really red")
1172
local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
1173
CreateMesh(sectors,"Brick",2*8,2*8,1*8)
1174
local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1175
1176
local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
1177
CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
1178
local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1179
1180
local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
1181
CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
1182
local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1183
1184
local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
1185
CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
1186
local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1187
1188
local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
1189
CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
1190
local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1191
1192
local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
1193
CreateMesh(seched,"Brick",1*8,1*8,1*8)
1194
local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1195
--------------
1196
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
1197
CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1198
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
1199
CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1200
1201
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
1202
CreateMesh(handle,"Brick",0,0,0)
1203
local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1204
local valuaring = 10
1205
for i = 0, 49 do
1206
	valuaring = valuaring + 10
1207
rn = CreateParta(mw2,0,0,"Neon",halocolor)
1208
CreateMesh(rn,"Brick",0.25,0.1,0.1)
1209
CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1210
end
1211
1212
handlex = CreateParta(mw2,1,1,"Neon",maincolor)
1213
CreateMesh(handle,"Brick",0,0,0)
1214
CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1215
local valuaring = 10
1216
for i = 0, 49 do
1217
	valuaring = valuaring + 10
1218
rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1219
CreateMesh(rn,"Brick",0.5,0.2,0.2)
1220
CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1221
end
1222
1223
1224
local handle = CreateParta(m,1,1,"Neon",maincolor)
1225
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1226
local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1227
1228
--- Left wing.
1229
1230
local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
1231
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1232
local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1233
1234
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1235
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1236
CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1237
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1238
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1239
CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1240
A0 = Instance.new('Attachment',wed)
1241
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1242
CreateMesh(wed,"Wedge",0.05,0.5,3)
1243
CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1244
A1 = Instance.new('Attachment',wed)
1245
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1246
CreateMesh(wed,"Wedge",0.05,3,0.5)
1247
CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1248
1249
tl1 = Instance.new('Trail',wed)
1250
tl1.Attachment0 = A0
1251
tl1.Attachment1 = A1
1252
--tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
1253
tl1.LightEmission = 1
1254
tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1255
tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1256
tl1.Lifetime = 0.6
1257
1258
1259
local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
1260
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1261
local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1262
1263
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1264
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1265
CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1266
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1267
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1268
CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1269
A0 = Instance.new('Attachment',wed)
1270
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1271
CreateMesh(wed,"Wedge",0.05,0.5,3)
1272
CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1273
A1 = Instance.new('Attachment',wed)
1274
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1275
CreateMesh(wed,"Wedge",0.05,3,0.5)
1276
CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1277
1278
tl2 = Instance.new('Trail',wed)
1279
tl2.Attachment0 = A0
1280
tl2.Attachment1 = A1
1281
--tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
1282
tl2.LightEmission = 1
1283
tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1284
tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1285
tl2.Lifetime = 0.6
1286
1287
local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
1288
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1289
local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1290
1291
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1292
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1293
CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1294
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1295
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1296
CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1297
A0 = Instance.new('Attachment',wed)
1298
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1299
CreateMesh(wed,"Wedge",0.05,0.5,3)
1300
CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1301
A1 = Instance.new('Attachment',wed)
1302
wed = CreateParta(mw1,0,0,"Neon",halocolor)
1303
CreateMesh(wed,"Wedge",0.05,3,0.5)
1304
CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1305
1306
tl3 = Instance.new('Trail',wed)
1307
tl3.Attachment0 = A0
1308
tl3.Attachment1 = A1
1309
--tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
1310
tl3.LightEmission = 1
1311
tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1312
tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1313
tl3.Lifetime = 0.6
1314
1315
tl1.Enabled = false
1316
tl2.Enabled = false
1317
tl3.Enabled = false
1318
local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
1319
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1320
local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1321
1322
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1323
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1324
CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1325
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1326
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1327
CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1328
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1329
CreateMesh(wed,"Wedge",0.05,0.5,3)
1330
CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1331
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1332
CreateMesh(wed,"Wedge",0.05,3,0.5)
1333
CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1334
1335
local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
1336
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1337
local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1338
1339
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1340
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1341
CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1342
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1343
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1344
CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1345
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1346
CreateMesh(wed,"Wedge",0.05,0.5,3)
1347
CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1348
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1349
CreateMesh(wed,"Wedge",0.05,3,0.5)
1350
CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1351
1352
local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
1353
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1354
local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1355
1356
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1357
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1358
CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1359
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1360
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1361
CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1362
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1363
CreateMesh(wed,"Wedge",0.05,0.5,3)
1364
CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1365
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
1366
CreateMesh(wed,"Wedge",0.05,3,0.5)
1367
CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1368
1369
-- Right wing.
1370
1371
local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
1372
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1373
local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1374
1375
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1376
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1377
CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1378
A0 = Instance.new('Attachment',wed)
1379
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1380
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1381
CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1382
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1383
CreateMesh(wed,"Wedge",0.05,0.5,3)
1384
CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1385
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1386
CreateMesh(wed,"Wedge",0.05,3,0.5)
1387
CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1388
A1 = Instance.new('Attachment',wed)
1389
1390
tr1 = Instance.new('Trail',wed)
1391
tr1.Attachment0 = A0
1392
tr1.Attachment1 = A1
1393
--tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
1394
tr1.LightEmission = 1
1395
tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1396
tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1397
tr1.Lifetime = 0.6
1398
1399
local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
1400
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1401
local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1402
1403
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1404
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1405
CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1406
A0 = Instance.new('Attachment',wed)
1407
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1408
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1409
CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1410
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1411
CreateMesh(wed,"Wedge",0.05,0.5,3)
1412
CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1413
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1414
CreateMesh(wed,"Wedge",0.05,3,0.5)
1415
CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1416
A1 = Instance.new('Attachment',wed)
1417
1418
tr2 = Instance.new('Trail',wed)
1419
tr2.Attachment0 = A0
1420
tr2.Attachment1 = A1
1421
--tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
1422
tr2.LightEmission = 1
1423
tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1424
tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1425
tr2.Lifetime = 0.6
1426
1427
local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
1428
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1429
local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1430
1431
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1432
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1433
CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1434
A0 = Instance.new('Attachment',wed)
1435
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1436
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1437
CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1438
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1439
CreateMesh(wed,"Wedge",0.05,0.5,3)
1440
CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1441
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1442
CreateMesh(wed,"Wedge",0.05,3,0.5)
1443
CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1444
A1 = Instance.new('Attachment',wed)
1445
1446
tr3 = Instance.new('Trail',wed)
1447
tr3.Attachment0 = A0
1448
tr3.Attachment1 = A1
1449
--tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
1450
tr3.LightEmission = 1
1451
tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1452
tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1453
tr3.Lifetime = 0.6
1454
1455
1456
local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
1457
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1458
local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1459
1460
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1461
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1462
CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1463
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1464
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1465
CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1466
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1467
CreateMesh(wed,"Wedge",0.05,0.5,3)
1468
CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1469
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1470
CreateMesh(wed,"Wedge",0.05,3,0.5)
1471
CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1472
1473
local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
1474
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1475
local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1476
1477
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1478
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1479
CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1480
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1481
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1482
CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1483
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1484
CreateMesh(wed,"Wedge",0.05,0.5,3)
1485
CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1486
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1487
CreateMesh(wed,"Wedge",0.05,3,0.5)
1488
CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1489
1490
local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
1491
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1492
local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1493
1494
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1495
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1496
CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1497
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1498
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1499
CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1500
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1501
CreateMesh(wed,"Wedge",0.05,0.5,3)
1502
CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1503
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1504
CreateMesh(wed,"Wedge",0.05,3,0.5)
1505
CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1506
1507
1508
---- HERES THE RING
1509
1510
1511
--[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1512
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1513
CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1514
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1515
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1516
CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1517
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1518
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1519
CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1520
1521
1522
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1523
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1524
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1525
1526
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1527
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1528
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1529
1530
1531
1532
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1533
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1534
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1535
1536
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1537
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1538
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1539
1540
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1541
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1542
CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1543
1544
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1545
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1546
CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1547
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1548
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1549
CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1550
--- second ring
1551
1552
ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1553
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1554
CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1555
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1556
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1557
CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1558
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1559
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1560
CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1561
1562
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1563
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1564
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1565
1566
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1567
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1568
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1569
1570
1571
1572
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1573
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1574
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1575
1576
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1577
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1578
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1579
1580
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1581
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1582
CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1583
1584
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1585
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1586
CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1587
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1588
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1589
CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
1590
1591
1592
1593
1594
for i, v in pairs(m:GetChildren()) do
1595
if v:IsA("Part") then
1596
v.BrickColor = BrickColor.new("Really black")
1597
v.Material = "Glass"
1598
end
1599
end
1600
for i, v in pairs(m2:GetChildren()) do
1601
if v:IsA("Part") then
1602
v.BrickColor = BrickColor.new("Crimson")
1603
v.Material = "Granite"
1604
end
1605
end
1606
for i, v in pairs(m3:GetChildren()) do
1607
if v:IsA("Part") then
1608
v.BrickColor = BrickColor.new("Really red")
1609
v.Material = "Neon"
1610
end
1611
end
1612
for i, v in pairs(mw2:GetChildren()) do
1613
if v:IsA("Part") then
1614
v.BrickColor = BrickColor.new("Really red")
1615
v.Material = "Neon"
1616
end
1617
end
1618
for i, v in pairs(mw1:GetChildren()) do
1619
if v:IsA("Part") then
1620
v.Transparency = 1
1621
v.BrickColor = BrickColor.new("Really red")
1622
v.Material = "Neon"
1623
end
1624
end
1625
for i, v in pairs(extrawingmod1:GetChildren()) do
1626
if v:IsA("Part") then
1627
v.Transparency = 1
1628
v.BrickColor = BrickColor.new("White")
1629
v.Material = "Neon"
1630
end
1631
end
1632
for i, v in pairs(extrawingmod2:GetChildren()) do
1633
if v:IsA("Part") then
1634
v.Transparency = 1
1635
v.BrickColor = BrickColor.new("White")
1636
v.Material = "Neon"
1637
end
1638
end
1639
local MAINRUINCOLOR = BrickColor.new("Really red")
1640
1641
function RemoveOutlines(part)
1642
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1643
end
1644
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1645
  local Part = Create("Part")({
1646
    Parent = Parent,
1647
    Reflectance = Reflectance,
1648
    Transparency = Transparency,
1649
    CanCollide = false,
1650
    Locked = true,
1651
    BrickColor = BrickColor.new(tostring(BColor)),
1652
    Name = Name,
1653
    Size = Size,
1654
    Material = Material
1655
  })
1656
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1657
  RemoveOutlines(Part)
1658
  return Part
1659
end
1660
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1661
  local Msh = Create(Mesh)({
1662
    Parent = Part,
1663
    Offset = OffSet,
1664
    Scale = Scale
1665
  })
1666
  if Mesh == "SpecialMesh" then
1667
    Msh.MeshType = MeshType
1668
    Msh.MeshId = MeshId
1669
  end
1670
  return Msh
1671
end
1672
function CreateWeld(Parent, Part0, Part1, C0, C1)
1673
  local Weld = Create("Weld")({
1674
    Parent = Parent,
1675
    Part0 = Part0,
1676
    Part1 = Part1,
1677
    C0 = C0,
1678
    C1 = C1
1679
  })
1680
  return Weld
1681
end
1682
1683
Player=game:GetService("Players").LocalPlayer
1684
Character=Player.Character 
1685
PlayerGui=Player.PlayerGui 
1686
Backpack=Player.Backpack 
1687
Torso=Character.Torso 
1688
Head=Character.Head 
1689
Humanoid=Character.Humanoid
1690
m=Instance.new('Model',Character)
1691
LeftArm=Character["Left Arm"] 
1692
LeftLeg=Character["Left Leg"] 
1693
RightArm=Character["Right Arm"] 
1694
RightLeg=Character["Right Leg"] 
1695
LS=Torso["Left Shoulder"] 
1696
LH=Torso["Left Hip"] 
1697
RS=Torso["Right Shoulder"] 
1698
RH=Torso["Right Hip"] 
1699
Face = Head.face
1700
Neck=Torso.Neck
1701
it=Instance.new
1702
attacktype=1
1703
vt=Vector3.new
1704
cf=CFrame.new
1705
euler=CFrame.fromEulerAnglesXYZ
1706
angles=CFrame.Angles
1707
cloaked=false
1708
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1709
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1710
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1711
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1712
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1713
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1714
RootPart=Character.HumanoidRootPart
1715
RootJoint=RootPart.RootJoint
1716
RootCF=euler(-1.57,0,3.14)
1717
attack = false 
1718
attackdebounce = false 
1719
deb=false
1720
equipped=true
1721
hand=false
1722
MMouse=nil
1723
combo=0
1724
mana=0
1725
trispeed=.2
1726
attackmode='none'
1727
local idle=0
1728
local Anim="Idle"
1729
local Effects={}
1730
local gun=false
1731
local shoot=false
1732
local sine = 0
1733
local change = 1
1734
player=nil 
1735
1736
1737
local toggleTag = true
1738
local txt = Instance.new("BillboardGui", Head)
1739
txt.Adornee = nil
1740
txt.Name = "NameDetect"
1741
txt.Size = UDim2.new(4, 0, 1.2, 0)
1742
txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
1743
local text = Instance.new("TextLabel", txt)
1744
text.Size = UDim2.new(10/2, 0, 7/2, 0)
1745
text.FontSize = "Size8"
1746
text.TextScaled = true
1747
text.TextTransparency = 0
1748
text.BackgroundTransparency = 1 
1749
text.TextTransparency = 0
1750
text.TextStrokeTransparency = 0
1751
text.Font = "Fantasy"
1752
text.TextStrokeColor3 = Color3.new(1,0,0)
1753
text.TextColor3 = Color3.new(0,0,0)
1754
text.Text = "Havoc"
1755
1756
1757
function RecolorTextAndRename(name,col1,col2)
1758
text.TextStrokeColor3 = col2
1759
text.TextColor3 = col1
1760
text.Text = name
1761
end
1762
mouse=Player:GetMouse()
1763
--save shoulders 
1764
RSH, LSH=nil, nil 
1765
--welds 
1766
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1767
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1768
LH=Torso["Left Hip"]
1769
RH=Torso["Right Hip"]
1770
TorsoColor=Torso.BrickColor
1771
function NoOutline(Part)
1772
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1773
end
1774
player=Player 
1775
ch=Character
1776
RSH=ch.Torso["Right Shoulder"] 
1777
LSH=ch.Torso["Left Shoulder"] 
1778
-- 
1779
RSH.Parent=nil 
1780
LSH.Parent=nil 
1781
-- 
1782
RW.Name="Right Shoulder"
1783
RW.Part0=ch.Torso 
1784
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1785
RW.C1=cf(0, 0.5, 0) 
1786
RW.Part1=ch["Right Arm"] 
1787
RW.Parent=ch.Torso 
1788
-- 
1789
LW.Name="Left Shoulder"
1790
LW.Part0=ch.Torso 
1791
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1792
LW.C1=cf(0, 0.5, 0) 
1793
LW.Part1=ch["Left Arm"] 
1794
LW.Parent=ch.Torso 
1795
1796
local Stats=Instance.new("BoolValue")
1797
Stats.Name="Stats"
1798
Stats.Parent=Character
1799
local Atk=Instance.new("NumberValue")
1800
Atk.Name="Damage"
1801
Atk.Parent=Stats
1802
Atk.Value=1
1803
local Def=Instance.new("NumberValue")
1804
Def.Name="Defense"
1805
Def.Parent=Stats
1806
Def.Value=1
1807
local Speed=Instance.new("NumberValue")
1808
Speed.Name="Speed"
1809
Speed.Parent=Stats
1810
Speed.Value=1
1811
local Mvmt=Instance.new("NumberValue")
1812
Mvmt.Name="Movement"
1813
Mvmt.Parent=Stats
1814
Mvmt.Value=1
1815
1816
local donum=0
1817
 
1818
1819
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1820
local fp=it("Part")
1821
fp.formFactor=formfactor 
1822
fp.Parent=parent
1823
fp.Reflectance=reflectance
1824
fp.Transparency=transparency
1825
fp.CanCollide=false 
1826
fp.Locked=true
1827
fp.BrickColor=brickcolor
1828
fp.Name=name
1829
fp.Size=size
1830
fp.Position=Torso.Position 
1831
NoOutline(fp)
1832
fp.Material="SmoothPlastic"
1833
fp:BreakJoints()
1834
return fp 
1835
end 
1836
 
1837
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1838
local mesh=it(Mesh) 
1839
mesh.Parent=part
1840
if Mesh=="SpecialMesh" then
1841
mesh.MeshType=meshtype
1842
if meshid~="nil" then
1843
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1844
end
1845
end
1846
mesh.Offset=offset
1847
mesh.Scale=scale
1848
return mesh
1849
end
1850
 
1851
function weld(parent,part0,part1,c0)
1852
local weld=it("Weld") 
1853
weld.Parent=parent
1854
weld.Part0=part0 
1855
weld.Part1=part1 
1856
weld.C0=c0
1857
return weld
1858
end
1859
 
1860
local Color1=Torso.BrickColor
1861
1862
local bodvel=Instance.new("BodyVelocity")
1863
local bg=Instance.new("BodyGyro")
1864
1865
local ArtificialHB = Instance.new("BindableEvent", script)
1866
ArtificialHB.Name = "Heartbeat"
1867
1868
script:WaitForChild("Heartbeat")
1869
1870
local tf = 0
1871
local allowframeloss = false
1872
local tossremainder = false
1873
local lastframe = tick()
1874
local frame = 1/60
1875
ArtificialHB:Fire()
1876
1877
game:GetService("RunService").Heartbeat:connect(function(s, p)
1878
	tf = tf + s
1879
	if tf >= frame then
1880
		if allowframeloss then
1881
			script.Heartbeat:Fire()
1882
			lastframe = tick()
1883
		else
1884
			for i = 1, math.floor(tf / frame) do
1885
				ArtificialHB:Fire()
1886
			end
1887
			lastframe = tick()
1888
		end
1889
		if tossremainder then
1890
			tf = 0
1891
		else
1892
			tf = tf - frame * math.floor(tf / frame)
1893
		end
1894
	end
1895
end)
1896
1897
function swait(num)
1898
	if num == 0 or num == nil then
1899
		ArtificialHB.Event:wait()
1900
	else
1901
		for i = 0, num do
1902
			ArtificialHB.Event:wait()
1903
		end
1904
	end
1905
end
1906
1907
-------- RAINBOW LEAVE IT TO ME
1908
local r = 255
1909
local g = 0
1910
local b = 0
1911
coroutine.resume(coroutine.create(function()
1912
while wait() do
1913
	for i = 0, 254/5 do
1914
		swait()
1915
		g = g + 5
1916
	end
1917
	for i = 0, 254/5 do
1918
		swait()
1919
		r = r - 5
1920
	end
1921
	for i = 0, 254/5 do
1922
		swait()
1923
		b = b + 5
1924
	end
1925
	for i = 0, 254/5 do
1926
		swait()
1927
		g = g - 5
1928
	end
1929
	for i = 0, 254/5 do
1930
		swait()
1931
		r = r + 5
1932
	end
1933
	for i = 0, 254/5 do
1934
		swait()
1935
		b = b - 5
1936
	end
1937
end
1938
end))
1939
 
1940
 
1941
so = function(id,par,vol,pit) 
1942
coroutine.resume(coroutine.create(function()
1943
local sou = Instance.new("Sound",par or workspace)
1944
sou.Volume=vol
1945
sou.Pitch=pit or 1
1946
sou.SoundId=id
1947
swait() 
1948
sou:play() 
1949
game:GetService("Debris"):AddItem(sou,6)
1950
end))
1951
end
1952
 
1953
function clerp(a,b,t) 
1954
local qa = {QuaternionFromCFrame(a)}
1955
local qb = {QuaternionFromCFrame(b)} 
1956
local ax, ay, az = a.x, a.y, a.z 
1957
local bx, by, bz = b.x, b.y, b.z
1958
local _t = 1-t
1959
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1960
end 
1961
 
1962
function QuaternionFromCFrame(cf) 
1963
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1964
local trace = m00 + m11 + m22 
1965
if trace > 0 then 
1966
local s = math.sqrt(1 + trace) 
1967
local recip = 0.5/s 
1968
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1969
else 
1970
local i = 0 
1971
if m11 > m00 then
1972
i = 1
1973
end
1974
if m22 > (i == 0 and m00 or m11) then 
1975
i = 2 
1976
end 
1977
if i == 0 then 
1978
local s = math.sqrt(m00-m11-m22+1) 
1979
local recip = 0.5/s 
1980
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1981
elseif i == 1 then 
1982
local s = math.sqrt(m11-m22-m00+1) 
1983
local recip = 0.5/s 
1984
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1985
elseif i == 2 then 
1986
local s = math.sqrt(m22-m00-m11+1) 
1987
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1988
end 
1989
end 
1990
end
1991
 
1992
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1993
local xs, ys, zs = x + x, y + y, z + z 
1994
local wx, wy, wz = w*xs, w*ys, w*zs 
1995
local xx = x*xs 
1996
local xy = x*ys 
1997
local xz = x*zs 
1998
local yy = y*ys 
1999
local yz = y*zs 
2000
local zz = z*zs 
2001
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)) 
2002
end
2003
 
2004
function QuaternionSlerp(a, b, t) 
2005
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
2006
local startInterp, finishInterp; 
2007
if cosTheta >= 0.0001 then 
2008
if (1 - cosTheta) > 0.0001 then 
2009
local theta = math.acos(cosTheta) 
2010
local invSinTheta = 1/math.sin(theta) 
2011
startInterp = math.sin((1-t)*theta)*invSinTheta 
2012
finishInterp = math.sin(t*theta)*invSinTheta  
2013
else 
2014
startInterp = 1-t 
2015
finishInterp = t 
2016
end 
2017
else 
2018
if (1+cosTheta) > 0.0001 then 
2019
local theta = math.acos(-cosTheta) 
2020
local invSinTheta = 1/math.sin(theta) 
2021
startInterp = math.sin((t-1)*theta)*invSinTheta 
2022
finishInterp = math.sin(t*theta)*invSinTheta 
2023
else 
2024
startInterp = t-1 
2025
finishInterp = t 
2026
end 
2027
end 
2028
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 
2029
end
2030
2031
local function CFrameFromTopBack(at, top, back)
2032
local right = top:Cross(back)
2033
return CFrame.new(at.x, at.y, at.z,
2034
right.x, top.x, back.x,
2035
right.y, top.y, back.y,
2036
right.z, top.z, back.z)
2037
end
2038
2039
function Triangle(a, b, c)
2040
local edg1 = (c-a):Dot((b-a).unit)
2041
local edg2 = (a-b):Dot((c-b).unit)
2042
local edg3 = (b-c):Dot((a-c).unit)
2043
if edg1 <= (b-a).magnitude and edg1 >= 0 then
2044
a, b, c = a, b, c
2045
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
2046
a, b, c = b, c, a
2047
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
2048
a, b, c = c, a, b
2049
else
2050
assert(false, "unreachable")
2051
end
2052
 
2053
local len1 = (c-a):Dot((b-a).unit)
2054
local len2 = (b-a).magnitude - len1
2055
local width = (a + (b-a).unit*len1 - c).magnitude
2056
 
2057
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
2058
 
2059
local list = {}
2060
 
2061
if len1 > 0.01 then
2062
local w1 = Instance.new('WedgePart', m)
2063
game:GetService("Debris"):AddItem(w1,5)
2064
w1.Material = "SmoothPlastic"
2065
w1.FormFactor = 'Custom'
2066
w1.BrickColor = BrickColor.new("Really red")
2067
w1.Transparency = 0
2068
w1.Reflectance = 0
2069
w1.Material = "SmoothPlastic"
2070
w1.CanCollide = false
2071
local l1 = Instance.new("PointLight",w1)
2072
l1.Color = Color3.new(170,0,0)
2073
NoOutline(w1)
2074
local sz = Vector3.new(0.2, width, len1)
2075
w1.Size = sz
2076
local sp = Instance.new("SpecialMesh",w1)
2077
sp.MeshType = "Wedge"
2078
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
2079
w1:BreakJoints()
2080
w1.Anchored = true
2081
w1.Parent = workspace
2082
w1.Transparency = 0.7
2083
table.insert(Effects,{w1,"Disappear",.01})
2084
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
2085
table.insert(list,w1)
2086
end
2087
 
2088
if len2 > 0.01 then
2089
local w2 = Instance.new('WedgePart', m)
2090
game:GetService("Debris"):AddItem(w2,5)
2091
w2.Material = "SmoothPlastic"
2092
w2.FormFactor = 'Custom'
2093
w2.BrickColor = BrickColor.new("Really red")
2094
w2.Transparency = 0
2095
w2.Reflectance = 0
2096
w2.Material = "SmoothPlastic"
2097
w2.CanCollide = false
2098
local l2 = Instance.new("PointLight",w2)
2099
l2.Color = Color3.new(170,0,0)
2100
NoOutline(w2)
2101
local sz = Vector3.new(0.2, width, len2)
2102
w2.Size = sz
2103
local sp = Instance.new("SpecialMesh",w2)
2104
sp.MeshType = "Wedge"
2105
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
2106
w2:BreakJoints()
2107
w2.Anchored = true
2108
w2.Parent = workspace
2109
w2.Transparency = 0.7
2110
table.insert(Effects,{w2,"Disappear",.01})
2111
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
2112
table.insert(list,w2)
2113
end
2114
return unpack(list)
2115
end
2116
 
2117
2118
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
2119
  if hit.Parent == nil then
2120
    return
2121
  end
2122
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
2123
  for _, v in pairs(hit.Parent:children()) do
2124
    if v:IsA("Humanoid") then
2125
      h = v
2126
    end
2127
  end
2128
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
2129
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
2130
      return
2131
    end
2132
    local c = Create("ObjectValue")({
2133
      Name = "creator",
2134
      Value = game:service("Players").LocalPlayer,
2135
      Parent = h
2136
    })
2137
    game:GetService("Debris"):AddItem(c, 0.5)
2138
    if HitSound ~= nil and HitPitch ~= nil then
2139
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
2140
    end
2141
    local Damage = math.random(minim, maxim)
2142
    local blocked = false
2143
    local block = hit.Parent:findFirstChild("Block")
2144
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
2145
      blocked = true
2146
      block.Value = block.Value - 1
2147
      print(block.Value)
2148
    end
2149
    if blocked == false then
2150
      HitHealth = h.Health
2151
      h.Health = h.Health - Damage
2152
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
2153
        print("gained kill")
2154
      end
2155
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
2156
    else
2157
      h.Health = h.Health - Damage / 2
2158
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
2159
    end
2160
    if Type == "Knockdown" then
2161
      local hum = hit.Parent.Humanoid
2162
      hum.PlatformStand = true
2163
      coroutine.resume(coroutine.create(function(HHumanoid)
2164
        swait(1)
2165
        HHumanoid.PlatformStand = false
2166
      end), hum)
2167
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
2168
      local bodvol = Create("BodyVelocity")({
2169
        velocity = angle * knockback,
2170
        P = 5000,
2171
        maxForce = Vector3.new(8000, 8000, 8000),
2172
        Parent = hit
2173
      })
2174
      local rl = Create("BodyAngularVelocity")({
2175
        P = 3000,
2176
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
2177
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
2178
        Parent = hit
2179
      })
2180
      game:GetService("Debris"):AddItem(bodvol, 0.5)
2181
      game:GetService("Debris"):AddItem(rl, 0.5)
2182
    elseif Type == "Normal" then
2183
      local vp = Create("BodyVelocity")({
2184
        P = 500,
2185
        maxForce = Vector3.new(math.huge, 0, math.huge),
2186
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
2187
      })
2188
      if knockback > 0 then
2189
        vp.Parent = hit.Parent.Head
2190
      end
2191
      game:GetService("Debris"):AddItem(vp, 0.5)
2192
    elseif Type == "Up" then
2193
      local bodyVelocity = Create("BodyVelocity")({
2194
        velocity = Vector3.new(0, 20, 0),
2195
        P = 5000,
2196
        maxForce = Vector3.new(8000, 8000, 8000),
2197
        Parent = hit
2198
      })
2199
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
2200
      local bodyVelocity = Create("BodyVelocity")({
2201
        velocity = Vector3.new(0, 20, 0),
2202
        P = 5000,
2203
        maxForce = Vector3.new(8000, 8000, 8000),
2204
        Parent = hit
2205
      })
2206
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
2207
    elseif Type == "Leech" then
2208
      local hum = hit.Parent.Humanoid
2209
      if hum ~= nil then
2210
        for i = 0, 2 do
2211
          Effects.Sphere.Create(BrickColor.new("Really Red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
2212
        end
2213
        Humanoid.Health = Humanoid.Health + 10
2214
      end
2215
    elseif Type == "UpKnock" then
2216
      local hum = hit.Parent.Humanoid
2217
      hum.PlatformStand = true
2218
      if hum ~= nil then
2219
        hitr = true
2220
      end
2221
      coroutine.resume(coroutine.create(function(HHumanoid)
2222
        swait(5)
2223
        HHumanoid.PlatformStand = false
2224
        hitr = false
2225
      end), hum)
2226
      local bodyVelocity = Create("BodyVelocity")({
2227
        velocity = Vector3.new(0, 20, 0),
2228
        P = 5000,
2229
        maxForce = Vector3.new(8000, 8000, 8000),
2230
        Parent = hit
2231
      })
2232
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
2233
      local bodyVelocity = Create("BodyVelocity")({
2234
        velocity = Vector3.new(0, 20, 0),
2235
        P = 5000,
2236
        maxForce = Vector3.new(8000, 8000, 8000),
2237
        Parent = hit
2238
      })
2239
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
2240
    elseif Type == "Snare" then
2241
      local bp = Create("BodyPosition")({
2242
        P = 2000,
2243
        D = 100,
2244
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2245
        position = hit.Parent.Torso.Position,
2246
        Parent = hit.Parent.Torso
2247
      })
2248
      game:GetService("Debris"):AddItem(bp, 1)
2249
    elseif Type == "Slashnare" then
2250
      Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
2251
      for i = 1, math.random(4, 5) do
2252
        Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
2253
      end
2254
      local bp = Create("BodyPosition")({
2255
        P = 2000,
2256
        D = 100,
2257
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2258
        position = hit.Parent.Torso.Position,
2259
        Parent = hit.Parent.Torso
2260
      })
2261
      game:GetService("Debris"):AddItem(bp, 1)
2262
    elseif Type == "Spike" then
2263
      CreateBigIceSword(hit.Parent.Torso.CFrame)
2264
      local bp = Create("BodyPosition")({
2265
        P = 2000,
2266
        D = 100,
2267
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2268
        position = hit.Parent.Torso.Position,
2269
        Parent = hit.Parent.Torso
2270
      })
2271
      game:GetService("Debris"):AddItem(bp, 1)
2272
    elseif Type == "Freeze" then
2273
      local BodPos = Create("BodyPosition")({
2274
        P = 50000,
2275
        D = 1000,
2276
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
2277
        position = hit.Parent.Torso.Position,
2278
        Parent = hit.Parent.Torso
2279
      })
2280
      local BodGy = Create("BodyGyro")({
2281
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
2282
        P = 20000,
2283
        Parent = hit.Parent.Torso,
2284
        cframe = hit.Parent.Torso.CFrame
2285
      })
2286
      hit.Parent.Torso.Anchored = true
2287
      coroutine.resume(coroutine.create(function(Part)
2288
        swait(1.5)
2289
        Part.Anchored = false
2290
      end), hit.Parent.Torso)
2291
      game:GetService("Debris"):AddItem(BodPos, 3)
2292
      game:GetService("Debris"):AddItem(BodGy, 3)
2293
    end
2294
    local debounce = Create("BoolValue")({
2295
      Name = "DebounceHit",
2296
      Parent = hit.Parent,
2297
      Value = true
2298
    })
2299
    game:GetService("Debris"):AddItem(debounce, Delay)
2300
    c = Instance.new("ObjectValue")
2301
    c.Name = "creator"
2302
    c.Value = Player
2303
    c.Parent = h
2304
    game:GetService("Debris"):AddItem(c, 0.5)
2305
  end
2306
end
2307
function ShowDamage(Pos, Text, Time, Color)
2308
  local Rate = 0.03333333333333333
2309
  local Pos = Pos or Vector3.new(0, 0, 0)
2310
  local Text = Text or ""
2311
  local Time = Time or 2
2312
  local Color = Color or Color3.new(1, 0, 1)
2313
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
2314
  EffectPart.Anchored = true
2315
  local BillboardGui = Create("BillboardGui")({
2316
    Size = UDim2.new(3, 0, 3, 0),
2317
    Adornee = EffectPart,
2318
    Parent = EffectPart
2319
  })
2320
  local TextLabel = Create("TextLabel")({
2321
    BackgroundTransparency = 1,
2322
    Size = UDim2.new(1, 0, 1, 0),
2323
    Text = Text,
2324
    TextColor3 = Color,
2325
    TextScaled = true,
2326
    Font = Enum.Font.ArialBold,
2327
    Parent = BillboardGui
2328
  })
2329
  game.Debris:AddItem(EffectPart, Time + 0.1)
2330
  EffectPart.Parent = game:GetService("Workspace")
2331
  delay(0, function()
2332
    local Frames = Time / Rate
2333
    for Frame = 1, Frames do
2334
      wait(Rate)
2335
      local Percent = Frame / Frames
2336
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
2337
      TextLabel.TextTransparency = Percent
2338
    end
2339
    if EffectPart and EffectPart.Parent then
2340
      EffectPart:Destroy()
2341
    end
2342
  end)
2343
end
2344
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
2345
  for _, c in pairs(workspace:children()) do
2346
    local hum = c:findFirstChildOfClass("Humanoid")
2347
    if hum ~= nil then
2348
      local head = c:findFirstChild("Head")
2349
      if head ~= nil then
2350
        local targ = head.Position - Part.Position
2351
        local mag = targ.magnitude
2352
        if magni >= mag and c.Name ~= Player.Name then
2353
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
2354
        end
2355
      end
2356
    end
2357
  end
2358
end
2359
2360
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
2361
  for _, c in pairs(workspace:children()) do
2362
    local hum = c:findFirstChild("Humanoid")
2363
    if hum ~= nil then
2364
      local head = c:findFirstChild("Torso")
2365
      if head ~= nil then
2366
        local targ = head.Position - Part.Position
2367
        local mag = targ.magnitude
2368
        if magni >= mag and c.Name ~= Player.Name then
2369
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
2370
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
2371
        end
2372
      end
2373
    end
2374
  end
2375
end
2376
2377
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
2378
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
2379
end 
2380
2381
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
2382
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2383
prt.Anchored=true
2384
prt.CFrame=cframe
2385
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
2386
--http://www.roblox.com/asset/?id=4770560
2387
game:GetService("Debris"):AddItem(prt,2)
2388
CF=prt.CFrame
2389
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
2390
for i=0,1,0.2 do
2391
wait()
2392
Part.CFrame=CF*cf(0,0,-0.4)
2393
end
2394
for i=0,1,delay do
2395
wait()
2396
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
2397
Mesh.Scale=Mesh.Scale
2398
end
2399
for i=0,1,0.1 do
2400
wait()
2401
Part.Transparency=i
2402
end
2403
Part.Parent=nil
2404
end),prt,msh,CF)
2405
end
2406
 
2407
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2408
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2409
prt.Anchored=true
2410
prt.Material = "Neon"
2411
prt.CFrame=cframe
2412
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2413
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2414
game:GetService("Debris"):AddItem(prt,5)
2415
coroutine.resume(coroutine.create(function(Part,Mesh) 
2416
for i=0,1,delay do
2417
swait()
2418
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2419
Part.Transparency=i
2420
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2421
end
2422
Part.Parent=nil
2423
end),prt,msh)
2424
end
2425
2426
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2427
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2428
prt.Anchored=true
2429
prt.Material = "Neon"
2430
prt.CFrame=cframe
2431
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2432
game:GetService("Debris"):AddItem(prt,5)
2433
coroutine.resume(coroutine.create(function(Part,Mesh) 
2434
	local rtype = rottype
2435
for i=0,1,delay do
2436
swait()
2437
if rtype == 1 then
2438
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2439
elseif rtype == 2 then
2440
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2441
end
2442
Part.Transparency=i
2443
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2444
end
2445
Part.Parent=nil
2446
end),prt,msh)
2447
end
2448
2449
function Sphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2450
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2451
prt.Anchored=true
2452
prt.CFrame=cframe
2453
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2454
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2455
game:GetService("Debris"):AddItem(prt,5)
2456
coroutine.resume(coroutine.create(function(Part,Mesh) 
2457
for i=0,1,delay do
2458
wait()
2459
Part.Transparency=i
2460
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2461
end
2462
Part.Parent=nil
2463
end),prt,msh)
2464
end
2465
2466
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2467
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2468
prt.Anchored=true
2469
prt.Material = "Neon"
2470
prt.CFrame=cframe
2471
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2472
game:GetService("Debris"):AddItem(prt,5)
2473
coroutine.resume(coroutine.create(function(Part,Mesh) 
2474
	local rtype = rottype
2475
for i=0,1,delay do
2476
swait()
2477
if rtype == 1 then
2478
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2479
elseif rtype == 2 then
2480
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2481
end
2482
Part.Transparency=i
2483
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2484
end
2485
Part.Parent=nil
2486
end),prt,msh)
2487
end
2488
2489
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2490
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
2491
prt.Anchored=true
2492
prt.Material = "Neon"
2493
prt.CFrame=cframe
2494
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2495
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2496
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2497
game:GetService("Debris"):AddItem(prt,5)
2498
coroutine.resume(coroutine.create(function(Part,Mesh) 
2499
	local rtype = rottype
2500
for i=0,1,delay do
2501
swait()
2502
if rtype == 1 then
2503
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2504
elseif rtype == 2 then
2505
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2506
end
2507
dec.Transparency=i
2508
dec2.Transparency=i
2509
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2510
end
2511
Part.Parent=nil
2512
end),prt,msh)
2513
end
2514
2515
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2516
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2517
prt.Anchored=true
2518
prt.Material = "Neon"
2519
prt.CFrame=cframe
2520
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2521
game:GetService("Debris"):AddItem(prt,5)
2522
coroutine.resume(coroutine.create(function(Part,Mesh) 
2523
	local rtype = rottype
2524
for i=0,1,delay do
2525
swait()
2526
if rtype == 1 then
2527
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2528
elseif rtype == 2 then
2529
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2530
end
2531
prt.Transparency=i
2532
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2533
end
2534
Part.Parent=nil
2535
end),prt,msh)
2536
end
2537
2538
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
2539
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2540
prt.Anchored=true
2541
prt.Material = "Neon"
2542
prt.CFrame=cframe
2543
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
2544
game:GetService("Debris"):AddItem(prt,5)
2545
coroutine.resume(coroutine.create(function(Part,Mesh) 
2546
	local rtype = rottype
2547
for i=0,1,delay do
2548
swait()
2549
if rtype == 1 then
2550
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
2551
elseif rtype == 2 then
2552
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
2553
end
2554
prt.Transparency=i
2555
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
2556
end
2557
Part.Parent=nil
2558
end),prt,msh)
2559
end
2560
2561
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
2562
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2563
prt.Anchored=true
2564
prt.Material = "Neon"
2565
prt.CFrame=cframe
2566
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2567
game:GetService("Debris"):AddItem(prt,5)
2568
coroutine.resume(coroutine.create(function(Part,Mesh) 
2569
	local rtype = rottype
2570
for i=0,1,delay do
2571
swait()
2572
if rtype == 1 then
2573
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2574
elseif rtype == 2 then
2575
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2576
end
2577
prt.Transparency=i
2578
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2579
end
2580
Part.Parent=nil
2581
end),prt,msh)
2582
end
2583
2584
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2585
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2586
prt.Anchored=true
2587
prt.Material = "Neon"
2588
prt.CFrame=cframe
2589
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2590
game:GetService("Debris"):AddItem(prt,5)
2591
coroutine.resume(coroutine.create(function(Part,Mesh) 
2592
	local rtype = rottype
2593
for i=0,1,delay do
2594
swait()
2595
if rtype == 1 then
2596
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2597
elseif rtype == 2 then
2598
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2599
end
2600
prt.Transparency=i
2601
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2602
end
2603
Part.Parent=nil
2604
end),prt,msh)
2605
end
2606
 
2607
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2608
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2609
prt.Anchored=false
2610
prt.CFrame=cframe
2611
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2612
local wld=weld(prt,prt,Parent,cframe)
2613
game:GetService("Debris"):AddItem(prt,5)
2614
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2615
for i=0,1,delay do
2616
wait()
2617
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
2618
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2619
Part.Transparency=i
2620
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2621
end
2622
Part.Parent=nil
2623
end),prt,msh,wld)
2624
end
2625
 
2626
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2627
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2628
prt.Anchored=false
2629
prt.CFrame=cframe
2630
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2631
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
2632
game:GetService("Debris"):AddItem(prt,5)
2633
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2634
for i=0,1,delay do
2635
wait()
2636
Weld.C0=euler(i*20,0,0)
2637
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2638
Part.Transparency=i
2639
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2640
end
2641
Part.Parent=nil
2642
end),prt,msh,wld)
2643
end
2644
 
2645
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2646
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2647
prt.Anchored=true
2648
prt.CFrame=cframe
2649
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2650
game:GetService("Debris"):AddItem(prt,2)
2651
coroutine.resume(coroutine.create(function(Part,Mesh) 
2652
for i=0,1,delay do
2653
wait()
2654
Part.CFrame=Part.CFrame
2655
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2656
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2657
prt2.Anchored=true
2658
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2659
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
2660
game:GetService("Debris"):AddItem(prt2,2)
2661
coroutine.resume(coroutine.create(function(Part,Mesh) 
2662
for i=0,1,0.1 do
2663
wait()
2664
Part.CFrame=Part.CFrame*cf(0,0.5,0)
2665
end
2666
Part.Parent=nil
2667
end),prt2,msh2)
2668
end
2669
for i=0,1,delay*2 do
2670
wait()
2671
Part.CFrame=Part.CFrame
2672
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
2673
end
2674
Part.Parent=nil
2675
end),prt,msh)
2676
end
2677
 
2678
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2679
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2680
prt.Anchored=true
2681
prt.CFrame=cframe
2682
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2683
game:GetService("Debris"):AddItem(prt,2)
2684
coroutine.resume(coroutine.create(function(Part,Mesh) 
2685
for i=0,1,delay do
2686
wait()
2687
Part.CFrame=Part.CFrame
2688
Part.Transparency=i
2689
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2690
end
2691
Part.Parent=nil
2692
end),prt,msh)
2693
end
2694
 
2695
function BreakEffect(brickcolor,cframe,x1,y1,z1)
2696
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2697
prt.Anchored=true
2698
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2699
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2700
game:GetService("Debris"):AddItem(prt,2)
2701
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2702
CF=Part.CFrame
2703
Numbb=0
2704
randnumb=math.random()/10
2705
rand1=math.random()/10
2706
for i=0,1,rand1 do
2707
wait()
2708
CF=CF*cf(0,math.random()/2,0)
2709
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2710
Part.CFrame=CF*euler(Numbb,0,0)
2711
Part.Transparency=i
2712
Numbb=Numbb+randnumb
2713
end
2714
Part.Parent=nil
2715
end),prt,CF,Numbb,randnumb)
2716
end
2717
 
2718
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2719
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2720
prt.Anchored=true
2721
prt.CFrame=cframe
2722
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2723
game:GetService("Debris"):AddItem(prt,5)
2724
coroutine.resume(coroutine.create(function(Part,Mesh) 
2725
for i=0,1,delay do
2726
wait()
2727
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2728
Part.Transparency=i
2729
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2730
end
2731
Part.Parent=nil
2732
end),prt,msh)
2733
end
2734
 
2735
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2736
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2737
prt.Anchored=true
2738
prt.CFrame=cframe
2739
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2740
game:GetService("Debris"):AddItem(prt,2)
2741
coroutine.resume(coroutine.create(function(Part,Mesh) 
2742
for i=0,1,delay do
2743
wait()
2744
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2745
Part.Transparency=i
2746
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2747
end
2748
Part.Parent=nil
2749
end),prt,msh)
2750
end
2751
 
2752
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2753
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2754
prt.Anchored=true
2755
prt.CFrame=cframe*cf(x,y,z)
2756
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2757
game:GetService("Debris"):AddItem(prt,5)
2758
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2759
local num=math.random()
2760
local num2=math.random(-3,2)+math.random()
2761
local numm=0
2762
for i=0,1,delay*2 do
2763
swait()
2764
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2765
Part.Transparency=i
2766
numm=numm+0.01
2767
end
2768
Part.Parent=nil
2769
Mesh.Parent=nil
2770
end),prt,msh,x,y,z)
2771
end
2772
2773
function dmgstart(dmg,what)
2774
	hitcon = what.Touched:connect(function(hit)
2775
		local hum = hit.Parent:FindFirstChild("Humanoid")
2776
		if hum and not hum:IsDescendantOf(Character) then
2777
			hum:TakeDamage(dmg)
2778
		end
2779
	end)
2780
end
2781
2782
function dmgstop()
2783
	hitcon:disconnect()
2784
end
2785
2786
function Cloak()
2787
Face.Parent=nil
2788
cloaked=true
2789
        for _,v in pairs(Torso.Parent:children()) do
2790
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2791
                coroutine.resume(coroutine.create(function() 
2792
                for i=0,1,0.2 do
2793
                wait()
2794
                v.Transparency=i
2795
                end
2796
                v.Transparency=1
2797
                end))
2798
                end
2799
                if v.className=="Hat" then
2800
                hatp=v.Handle
2801
                coroutine.resume(coroutine.create(function(derp) 
2802
                for i=0,1,0.2 do
2803
                wait()
2804
                derp.Transparency=i
2805
                end
2806
                derp.Transparency=1
2807
                end),hatp)
2808
                end
2809
        end
2810
        for _,v in pairs(m:children()) do
2811
                if v.className=="Part" then
2812
                coroutine.resume(coroutine.create(function() 
2813
                for i=0,1,0.2 do
2814
                wait()
2815
                v.Transparency=i
2816
                end
2817
                v.Transparency=1
2818
                end))
2819
                end
2820
        end
2821
end
2822
 
2823
function UnCloak()
2824
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
2825
Face.Parent=Head 
2826
cloaked=false
2827
        for _,v in pairs(Torso.Parent:children()) do
2828
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2829
                coroutine.resume(coroutine.create(function() 
2830
                for i=0,1,0.1 do
2831
                wait()
2832
                v.Transparency=v.Transparency-0.1
2833
                end
2834
                v.Transparency=0
2835
                end))
2836
                end
2837
                if v.className=="Hat" then
2838
                hatp=v.Handle
2839
                coroutine.resume(coroutine.create(function(derp) 
2840
                for i=0,1,0.1 do
2841
                wait()
2842
                derp.Transparency=derp.Transparency-0.1
2843
                end
2844
                derp.Transparency=0
2845
                end),hatp)
2846
                end
2847
        end
2848
        for _,v in pairs(m:children()) do
2849
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2850
                coroutine.resume(coroutine.create(function() 
2851
                for i=0,1,0.1 do
2852
                wait()
2853
                v.Transparency=v.Transparency-0.1
2854
                end
2855
                v.Transparency=0
2856
                end))
2857
                v.Transparency=0
2858
                end
2859
        end
2860
end
2861
2862
local origcolor = BrickColor.new("Pastel light blue")
2863
---- This section of explosions.
2864
function Explode(rad,par,pitch,vol,mindam,maxdam)
2865
	local expart = Instance.new("Part",char)
2866
	local expart2 = Instance.new("Part",char)
2867
	local rin = Instance.new("Part",char)
2868
	local rin2 = Instance.new("Part",char)
2869
	local partMesh = Instance.new("SpecialMesh",expart)
2870
	partMesh.MeshType = "Sphere"
2871
	local partMesh2 = Instance.new("SpecialMesh",expart2)
2872
	partMesh2.MeshType = "Sphere"
2873
	local partMesh3 = Instance.new("SpecialMesh",rin)
2874
	partMesh3.MeshType = "Brick"
2875
	local partMesh4 = Instance.new("SpecialMesh",rin2)
2876
	partMesh4.MeshType = "Brick"
2877
	CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
2878
	partMesh.Scale = vt(rad,rad,rad)
2879
	expart.Size = vt(1,1,1)
2880
	expart.Transparency = 0
2881
	expart.Anchored = true
2882
	expart.Material = "Neon"
2883
	expart.BrickColor = bc("White")
2884
	expart.CFrame = par.CFrame
2885
	partMesh2.Scale = vt(rad,rad,rad)
2886
	expart2.Size = vt(1.15,1.15,1.15)
2887
	expart2.Transparency = 0.5
2888
	expart2.Anchored = true
2889
	expart2.Material = "Neon"
2890
	expart2.BrickColor = par.BrickColor
2891
	expart2.CFrame = par.CFrame
2892
	rin.Size = vt(1.15,1.15,1.15)
2893
	rin.Transparency = 1
2894
	rin.Anchored = true
2895
	rin.Material = "Neon"
2896
	rin.BrickColor = par.BrickColor
2897
	rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
2898
	rin2.Size = vt(1.15,1.15,1.15)
2899
	rin2.Transparency = 1
2900
	rin2.Anchored = true
2901
	rin2.Material = "Neon"
2902
	rin2.BrickColor = par.BrickColor
2903
	rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
2904
	partMesh3.Scale = vt(0,1,0)
2905
	partMesh4.Scale = vt(0,1,0)
2906
local dec2 = Instance.new("Decal", rin)
2907
dec2.Face = "Top"
2908
dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
2909
dec2.Parent = rin
2910
local dec2b = dec2:Clone()
2911
dec2b.Face = "Bottom"
2912
dec2b.Parent = rin
2913
2914
local dec2a = Instance.new("Decal", rin2)
2915
dec2a.Face = "Top"
2916
dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
2917
dec2a.Parent = rin2
2918
local dec2ab = dec2a:Clone()
2919
dec2ab.Face = "Bottom"
2920
dec2ab.Parent = rin2
2921
expart.CanCollide = false
2922
expart2.CanCollide = false
2923
rin.CanCollide = false
2924
rin2.CanCollide = false
2925
MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
2926
        local value = 1*rad/6.5
2927
	for i = 0, 199 do
2928
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2929
		expart.CFrame = expart.CFrame
2930
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
2931
		expart2.CFrame = expart.CFrame
2932
                value = value - 0.035*rad/30
2933
                if value < 7.5 then
2934
	partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
2935
		rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
2936
	partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
2937
		rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
2938
		end
2939
                if value < 0 then
2940
dec2.Transparency = dec2.Transparency + 0.025
2941
dec2a.Transparency = dec2a.Transparency + 0.025
2942
dec2b.Transparency = dec2b.Transparency + 0.025
2943
dec2ab.Transparency = dec2ab.Transparency + 0.025
2944
		expart.Transparency = expart.Transparency + 0.025
2945
		expart2.Transparency = expart2.Transparency + 0.025
2946
		rin.Transparency = rin.Transparency + 0.025
2947
		rin2.Transparency = rin2.Transparency + 0.025
2948
                end
2949
		swait()
2950
	end
2951
game:GetService("Debris"):AddItem(expart, 1)
2952
game:GetService("Debris"):AddItem(expart2, 1)
2953
game:GetService("Debris"):AddItem(rin, 1)
2954
game:GetService("Debris"):AddItem(rin2, 1)
2955
end
2956
2957
function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
2958
	local expart = Instance.new("Part",char)
2959
	local expart2 = Instance.new("Part",char)
2960
	local partMesh = Instance.new("SpecialMesh",expart)
2961
	partMesh.MeshType = "Sphere"
2962
	local partMesh2 = Instance.new("SpecialMesh",expart2)
2963
	partMesh2.MeshType = "Sphere"
2964
	CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
2965
	partMesh.Scale = vt(rad,rad,rad)
2966
	expart.Size = vt(1,1,1)
2967
	expart.Transparency = 0
2968
	expart.Anchored = true
2969
	expart.Material = "Neon"
2970
	expart.BrickColor = bc("White")
2971
	expart.CFrame = par.CFrame
2972
	partMesh2.Scale = vt(rad,rad,rad)
2973
	expart2.Size = vt(1.15,1.15,1.15)
2974
	expart2.Transparency = 0.5
2975
	expart2.Anchored = true
2976
	expart2.Material = "Neon"
2977
	expart2.BrickColor = par.BrickColor
2978
	expart2.CFrame = par.CFrame
2979
expart.CanCollide = false
2980
expart2.CanCollide = false
2981
MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
2982
        local value = 1*rad/6.5
2983
	for i = 0, 75 do
2984
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2985
		expart.CFrame = expart.CFrame
2986
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
2987
		expart2.CFrame = expart.CFrame
2988
                value = value - 0.035*rad/5
2989
                if value < 0 then
2990
value = 0
2991
		expart.Transparency = expart.Transparency + 0.05
2992
		expart2.Transparency = expart2.Transparency + 0.05
2993
                end
2994
		swait()
2995
	end
2996
game:GetService("Debris"):AddItem(expart, 1)
2997
game:GetService("Debris"):AddItem(expart2, 1)
2998
end
2999
3000
function AreaDanger(rad,par,mindam,maxdam)
3001
	local expart = Instance.new("Part",char)
3002
	local partMesh = Instance.new("SpecialMesh",expart)
3003
	CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
3004
	partMesh.MeshType = "Sphere"
3005
	partMesh.Scale = vt(rad,rad,rad)
3006
	expart.Size = vt(1,1,1)
3007
	expart.Transparency = 0.5
3008
	expart.Anchored = true
3009
	expart.Material = "Neon"
3010
	expart.CanCollide = false
3011
	expart.BrickColor = par.BrickColor
3012
	expart.CFrame = par.CFrame
3013
        local value = 1*rad/5
3014
MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
3015
	for i = 0, 14 do
3016
		wait()
3017
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
3018
		expart.CFrame = expart.CFrame
3019
                value = value - 0.035*rad
3020
                if value < 0 then
3021
	value = 0
3022
end
3023
	end
3024
	wait(0.25)
3025
CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
3026
wait(0.5)
3027
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
3028
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
3029
MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
3030
MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
3031
for i = 0, 14 do
3032
		wait()
3033
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
3034
		expart.CFrame = expart.CFrame
3035
                value = value - 0.035*rad/2
3036
end
3037
expart.Transparency = 1
3038
game:GetService("Debris"):AddItem(expart, 5)
3039
end
3040
3041
function Swarmsplosions(negrad,rad,par,mindam,maxdam)
3042
		CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
3043
	CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
3044
	CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
3045
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
3046
			MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
3047
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
3048
	for i = 0, 24 do
3049
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
3050
	end
3051
	for i = 0, 24 do
3052
	local expart = Instance.new("Part",char)
3053
	expart.Transparency = 1
3054
	expart.Anchored = true
3055
	expart.CanCollide = false
3056
	expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
3057
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
3058
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
3059
MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
3060
MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
3061
for i = 0, 9 do
3062
		MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
3063
	end
3064
game:GetService("Debris"):AddItem(expart, 2)
3065
wait(0.1)
3066
	end
3067
end
3068
3069
function EXterPlosion(par)
3070
		CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
3071
	CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
3072
	CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
3073
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
3074
			MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
3075
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
3076
			MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
3077
	for i = 0, 24 do
3078
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
3079
	end
3080
	for i = 0, 24 do
3081
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
3082
	end
3083
end
3084
----
3085
3086
3087
function ring(type,pos,scale,value)
3088
local type = type
3089
local rng = Instance.new("Part", char)
3090
        rng.Anchored = true
3091
        rng.BrickColor = origcolor
3092
        rng.CanCollide = false
3093
        rng.FormFactor = 3
3094
        rng.Name = "Ring"
3095
        rng.Size = Vector3.new(1, 1, 1)
3096
        rng.Transparency = 0
3097
        rng.TopSurface = 0
3098
        rng.BottomSurface = 0
3099
        rng.CFrame = pos
3100
        local rngm = Instance.new("SpecialMesh", rng)
3101
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
3102
rngm.Scale = scale
3103
local scaler2 = 1
3104
if type == "Add" then
3105
scaler2 = 1*value
3106
elseif type == "Divide" then
3107
scaler2 = 1/value
3108
end
3109
coroutine.resume(coroutine.create(function()
3110
for i = 0,10,0.1 do
3111
swait()
3112
if type == "Add" then
3113
scaler2 = scaler2 - 0.01*value
3114
elseif type == "Divide" then
3115
scaler2 = scaler2 - 0.01/value
3116
end
3117
rng.Transparency = rng.Transparency + 0.01
3118
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
3119
end
3120
rng:Destroy()
3121
end))
3122
end
3123
3124
3125
function wave(type,pos,scale,value)
3126
local type = type
3127
local rng = Instance.new("Part", char)
3128
        rng.Anchored = true
3129
        rng.BrickColor = origcolor
3130
        rng.CanCollide = false
3131
        rng.FormFactor = 3
3132
        rng.Name = "Ring"
3133
        rng.Size = Vector3.new(1, 1, 1)
3134
        rng.Transparency = 0
3135
        rng.TopSurface = 0
3136
        rng.BottomSurface = 0
3137
        rng.CFrame = pos
3138
        local rngm = Instance.new("SpecialMesh", rng)
3139
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
3140
rngm.Scale = scale
3141
local scaler2 = 1
3142
if type == "Add" then
3143
scaler2 = 1*value
3144
elseif type == "Divide" then
3145
scaler2 = 1/value
3146
end
3147
coroutine.resume(coroutine.create(function()
3148
for i = 0,10,0.1 do
3149
swait()
3150
if type == "Add" then
3151
scaler2 = scaler2 - 0.01*value
3152
elseif type == "Divide" then
3153
scaler2 = scaler2 - 0.01/value
3154
end
3155
rng.Transparency = rng.Transparency + 0.01
3156
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
3157
end
3158
rng:Destroy()
3159
end))
3160
end
3161
3162
function wind(type,pos,scale,value,speed)
3163
local type = type
3164
local rng = Instance.new("Part", char)
3165
        rng.Anchored = true
3166
        rng.BrickColor = origcolor
3167
        rng.CanCollide = false
3168
        rng.FormFactor = 3
3169
        rng.Name = "Ring"
3170
        rng.Size = Vector3.new(1, 1, 1)
3171
        rng.Transparency = 0
3172
        rng.TopSurface = 0
3173
        rng.BottomSurface = 0
3174
        rng.CFrame = pos
3175
        local rngm = Instance.new("SpecialMesh", rng)
3176
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
3177
rngm.Scale = scale
3178
local scaler2 = 1
3179
if type == "Add" then
3180
scaler2 = 1*value
3181
elseif type == "Divide" then
3182
scaler2 = 1/value
3183
end
3184
coroutine.resume(coroutine.create(function()
3185
for i = 0,10,0.1 do
3186
swait()
3187
if type == "Add" then
3188
scaler2 = scaler2 - 0.01*value
3189
elseif type == "Divide" then
3190
scaler2 = scaler2 - 0.01/value
3191
end
3192
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
3193
rng.Transparency = rng.Transparency + 0.01
3194
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
3195
end
3196
rng:Destroy()
3197
end))
3198
end
3199
3200
function groundwind(type,pos,scale,value,speed)
3201
local type = type
3202
local rng = Instance.new("Part", char)
3203
        rng.Anchored = true
3204
        rng.BrickColor = origcolor
3205
        rng.CanCollide = false
3206
        rng.FormFactor = 3
3207
        rng.Name = "Ring"
3208
        rng.Size = Vector3.new(1, 1, 1)
3209
        rng.Transparency = 0
3210
        rng.TopSurface = 0
3211
        rng.BottomSurface = 0
3212
        rng.CFrame = pos
3213
        local rngm = Instance.new("SpecialMesh", rng)
3214
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
3215
rngm.Scale = scale
3216
local scaler2 = 1
3217
if type == "Add" then
3218
scaler2 = 1*value
3219
elseif type == "Divide" then
3220
scaler2 = 1/value
3221
end
3222
coroutine.resume(coroutine.create(function()
3223
for i = 0,10,0.1 do
3224
swait()
3225
if type == "Add" then
3226
scaler2 = scaler2 - 0.01*value
3227
elseif type == "Divide" then
3228
scaler2 = scaler2 - 0.01/value
3229
end
3230
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
3231
rng.Transparency = rng.Transparency + 0.01
3232
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
3233
end
3234
rng:Destroy()
3235
end))
3236
end
3237
3238
function CameraManager()
3239
  if TwoD and not CamInterrupt then
3240
    if Humanoid.Health > 0 then
3241
      Camera.CameraSubject = Humanoid
3242
      Camera.CameraType = "Scriptable"
3243
      Humanoid.AutoRotate = false
3244
      if Booleans.GyroUse then
3245
        Directer.MaxTorque = Vec3(0, huge, 0)
3246
      else
3247
        Directer.MaxTorque = Vec3(0, 0, 0)
3248
      end
3249
      if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
3250
        if Booleans.CamFollow then
3251
          CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
3252
          Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
3253
        else
3254
          CPart.Position = RootPart.Position
3255
        end
3256
      else
3257
        local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
3258
        CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
3259
      end
3260
      Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
3261
    else
3262
      Camera.CameraSubject = Humanoid
3263
      Camera.CameraType = "Custom"
3264
      Controller.Disabled = false
3265
    end
3266
  end
3267
end
3268
3269
function Sphere(bonuspeed,type,pos,scale,value,color)
3270
local type = type
3271
local rng = Instance.new("Part", char)
3272
        rng.Anchored = true
3273
        rng.BrickColor = color
3274
        rng.CanCollide = false
3275
        rng.FormFactor = 3
3276
        rng.Name = "Ring"
3277
        rng.Material = "Neon"
3278
        rng.Size = Vector3.new(1, 1, 1)
3279
        rng.Transparency = 0
3280
        rng.TopSurface = 0
3281
        rng.BottomSurface = 0
3282
        rng.CFrame = pos
3283
        local rngm = Instance.new("SpecialMesh", rng)
3284
        rngm.MeshType = "Sphere"
3285
rngm.Scale = scale
3286
if rainbowmode == true then
3287
rng.Color = Color3.new(r/255,g/255,b/255)
3288
end
3289
local scaler2 = 1
3290
if type == "Add" then
3291
scaler2 = 1*value
3292
elseif type == "Divide" then
3293
scaler2 = 1/value
3294
end
3295
coroutine.resume(coroutine.create(function()
3296
for i = 0,10/bonuspeed,0.1 do
3297
swait()
3298
if rainbowmode == true then
3299
rng.Color = Color3.new(r/255,g/255,b/255)
3300
end
3301
if type == "Add" then
3302
scaler2 = scaler2 - 0.01*value/bonuspeed
3303
elseif type == "Divide" then
3304
scaler2 = scaler2 - 0.01/value*bonuspeed
3305
end
3306
if MALFUNCTIONmode == true then
3307
rng.BrickColor = BrickColor.random()
3308
end
3309
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3310
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3311
end
3312
rng:Destroy()
3313
end))
3314
end
3315
3316
function Spherew(bonuspeed,type,pos,scale,value,color)
3317
local type = type
3318
local rng = Instance.new("Part", workspace)
3319
        rng.Anchored = true
3320
        rng.BrickColor = color
3321
        rng.CanCollide = false
3322
        rng.FormFactor = 3
3323
        rng.Name = "Ring"
3324
        rng.Material = "Neon"
3325
        rng.Size = Vector3.new(1, 1, 1)
3326
        rng.Transparency = 0
3327
        rng.TopSurface = 0
3328
        rng.BottomSurface = 0
3329
        rng.CFrame = pos
3330
        local rngm = Instance.new("SpecialMesh", rng)
3331
        rngm.MeshType = "Sphere"
3332
rngm.Scale = scale
3333
if rainbowmode == true then
3334
rng.Color = Color3.new(r/255,g/255,b/255)
3335
end
3336
local scaler2 = 1
3337
if type == "Add" then
3338
scaler2 = 1*value
3339
elseif type == "Divide" then
3340
scaler2 = 1/value
3341
end
3342
coroutine.resume(coroutine.create(function()
3343
for i = 0,10/bonuspeed,0.1 do
3344
swait()
3345
if rainbowmode == true then
3346
rng.Color = Color3.new(r/255,g/255,b/255)
3347
end
3348
if type == "Add" then
3349
scaler2 = scaler2 - 0.01*value/bonuspeed
3350
elseif type == "Divide" then
3351
scaler2 = scaler2 - 0.01/value*bonuspeed
3352
end
3353
if MALFUNCTIONmode == true then
3354
rng.BrickColor = BrickColor.random()
3355
end
3356
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3357
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3358
end
3359
rng:Destroy()
3360
end))
3361
end
3362
3363
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3364
local type = type
3365
local rng = Instance.new("Part", char)
3366
        rng.Anchored = true
3367
        rng.BrickColor = color
3368
        rng.CanCollide = false
3369
        rng.FormFactor = 3
3370
        rng.Name = "Ring"
3371
        rng.Material = "Neon"
3372
        rng.Size = Vector3.new(1, 1, 1)
3373
        rng.Transparency = 0
3374
        rng.TopSurface = 0
3375
        rng.BottomSurface = 0
3376
        rng.CFrame = pos
3377
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3378
        local rngm = Instance.new("SpecialMesh", rng)
3379
        rngm.MeshType = "Brick"
3380
rngm.Scale = vt(x1,y1,z1)
3381
if rainbowmode == true then
3382
rng.Color = Color3.new(r/255,g/255,b/255)
3383
end
3384
local scaler2 = 1
3385
local speeder = FastSpeed/10
3386
if type == "Add" then
3387
scaler2 = 1*value
3388
elseif type == "Divide" then
3389
scaler2 = 1/value
3390
end
3391
coroutine.resume(coroutine.create(function()
3392
for i = 0,10/bonuspeed,0.1 do
3393
swait()
3394
if rainbowmode == true then
3395
rng.Color = Color3.new(r/255,g/255,b/255)
3396
end
3397
if type == "Add" then
3398
scaler2 = scaler2 - 0.01*value/bonuspeed
3399
elseif type == "Divide" then
3400
scaler2 = scaler2 - 0.01/value*bonuspeed
3401
end
3402
if MALFUNCTIONmode == true then
3403
rng.BrickColor = BrickColor.random()
3404
end
3405
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
3406
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3407
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
3408
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3409
end
3410
rng:Destroy()
3411
end))
3412
end
3413
3414
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3415
local type = type
3416
local rng = Instance.new("Part", char)
3417
        rng.Anchored = true
3418
        rng.BrickColor = color
3419
        rng.CanCollide = false
3420
        rng.FormFactor = 3
3421
        rng.Name = "Ring"
3422
        rng.Material = "Neon"
3423
        rng.Size = Vector3.new(1, 1, 1)
3424
        rng.Transparency = 0
3425
        rng.TopSurface = 0
3426
        rng.BottomSurface = 0
3427
        rng.CFrame = pos
3428
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3429
        local rngm = Instance.new("SpecialMesh", rng)
3430
        rngm.MeshType = "Brick"
3431
rngm.Scale = vt(x1,y1,z1)
3432
if rainbowmode == true then
3433
rng.Color = Color3.new(r/255,g/255,b/255)
3434
end
3435
local scaler2 = 0
3436
local speeder = FastSpeed/10
3437
if type == "Add" then
3438
scaler2 = 1*value
3439
elseif type == "Divide" then
3440
scaler2 = 1/value
3441
end
3442
coroutine.resume(coroutine.create(function()
3443
for i = 0,10/bonuspeed,0.1 do
3444
swait()
3445
if rainbowmode == true then
3446
rng.Color = Color3.new(r/255,g/255,b/255)
3447
end
3448
if type == "Add" then
3449
scaler2 = scaler2 - 0.01*value/bonuspeed
3450
elseif type == "Divide" then
3451
scaler2 = scaler2 - 0.01/value*bonuspeed
3452
end
3453
if MALFUNCTIONmode == true then
3454
rng.BrickColor = BrickColor.random()
3455
end
3456
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
3457
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3458
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
3459
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3460
end
3461
rng:Destroy()
3462
end))
3463
end
3464
3465
function SphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3466
local type = type
3467
local rng = Instance.new("Part", workspace)
3468
        rng.Anchored = true
3469
        rng.BrickColor = color
3470
        rng.CanCollide = false
3471
        rng.FormFactor = 3
3472
        rng.Name = "Ring"
3473
        rng.Material = "Neon"
3474
        rng.Size = Vector3.new(1, 1, 1)
3475
        rng.Transparency = 0
3476
        rng.TopSurface = 0
3477
        rng.BottomSurface = 0
3478
        rng.CFrame = pos
3479
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3480
        local rngm = Instance.new("SpecialMesh", rng)
3481
        rngm.MeshType = "Sphere"
3482
rngm.Scale = vt(x1,y1,z1)
3483
if rainbowmode == true then
3484
rng.Color = Color3.new(r/255,g/255,b/255)
3485
end
3486
local scaler2 = 1
3487
local speeder = FastSpeed
3488
if type == "Add" then
3489
scaler2 = 1*value
3490
elseif type == "Divide" then
3491
scaler2 = 1/value
3492
end
3493
coroutine.resume(coroutine.create(function()
3494
for i = 0,10/bonuspeed,0.1 do
3495
swait()
3496
if rainbowmode == true then
3497
rng.Color = Color3.new(r/255,g/255,b/255)
3498
end
3499
if type == "Add" then
3500
scaler2 = scaler2 - 0.01*value/bonuspeed
3501
elseif type == "Divide" then
3502
scaler2 = scaler2 - 0.01/value*bonuspeed
3503
end
3504
if MALFUNCTIONmode == true then
3505
rng.BrickColor = BrickColor.random()
3506
end
3507
speeder = speeder - 0.01*FastSpeed*bonuspeed
3508
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3509
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3510
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3511
end
3512
rng:Destroy()
3513
end))
3514
end
3515
function SphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3516
local type = type
3517
local rng = Instance.new("Part", char)
3518
        rng.Anchored = true
3519
        rng.BrickColor = color
3520
        rng.CanCollide = false
3521
        rng.FormFactor = 3
3522
        rng.Name = "Ring"
3523
        rng.Material = "Neon"
3524
        rng.Size = Vector3.new(1, 1, 1)
3525
        rng.Transparency = 0
3526
        rng.TopSurface = 0
3527
        rng.BottomSurface = 0
3528
        rng.CFrame = pos
3529
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3530
        local rngm = Instance.new("SpecialMesh", rng)
3531
        rngm.MeshType = "Sphere"
3532
rngm.Scale = vt(x1,y1,z1)
3533
if rainbowmode == true then
3534
rng.Color = Color3.new(r/255,g/255,b/255)
3535
end
3536
local scaler2 = 1
3537
local speeder = FastSpeed
3538
if type == "Add" then
3539
scaler2 = 1*value
3540
elseif type == "Divide" then
3541
scaler2 = 1/value
3542
end
3543
coroutine.resume(coroutine.create(function()
3544
for i = 0,10/bonuspeed,0.1 do
3545
swait()
3546
if rainbowmode == true then
3547
rng.Color = Color3.new(r/255,g/255,b/255)
3548
end
3549
if type == "Add" then
3550
scaler2 = scaler2 - 0.01*value/bonuspeed
3551
elseif type == "Divide" then
3552
scaler2 = scaler2 - 0.01/value*bonuspeed
3553
end
3554
if MALFUNCTIONmode == true then
3555
rng.BrickColor = BrickColor.random()
3556
end
3557
speeder = speeder - 0.01*FastSpeed*bonuspeed
3558
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3559
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3560
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3561
end
3562
rng:Destroy()
3563
end))
3564
end
3565
3566
3567
function SphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3568
local type = type
3569
local rng = Instance.new("Part", char)
3570
        rng.Anchored = true
3571
        rng.BrickColor = color
3572
        rng.CanCollide = false
3573
        rng.FormFactor = 3
3574
        rng.Name = "Ring"
3575
        rng.Material = "Neon"
3576
        rng.Size = Vector3.new(1, 1, 1)
3577
        rng.Transparency = 1
3578
        rng.TopSurface = 0
3579
        rng.BottomSurface = 0
3580
        rng.CFrame = pos
3581
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3582
        local rngm = Instance.new("SpecialMesh", rng)
3583
        rngm.MeshType = "Sphere"
3584
rngm.Scale = vt(x1,y1,z1)
3585
if rainbowmode == true then
3586
rng.Color = Color3.new(r/255,g/255,b/255)
3587
end
3588
local scaler2 = 1
3589
local speeder = FastSpeed
3590
if type == "Add" then
3591
scaler2 = 1*value
3592
elseif type == "Divide" then
3593
scaler2 = 1/value
3594
end
3595
coroutine.resume(coroutine.create(function()
3596
for i = 0,10/bonuspeed,0.1 do
3597
swait()
3598
if rainbowmode == true then
3599
rng.Color = Color3.new(r/255,g/255,b/255)
3600
end
3601
if type == "Add" then
3602
scaler2 = scaler2 - 0.01*value/bonuspeed
3603
elseif type == "Divide" then
3604
scaler2 = scaler2 - 0.01/value*bonuspeed
3605
end
3606
if MALFUNCTIONmode == true then
3607
rng.BrickColor = BrickColor.random()
3608
end
3609
speeder = speeder - 0.01*FastSpeed*bonuspeed
3610
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3611
rng.Transparency = rng.Transparency - 0.01*bonuspeed
3612
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3613
end
3614
rng:Destroy()
3615
end))
3616
end
3617
3618
function dmg(dude)
3619
if dude.Name ~= Character then
3620
local bgf = Instance.new("BodyGyro",dude.Head)
3621
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
3622
local val = Instance.new("BoolValue",dude)
3623
val.Name = "IsHit"
3624
local ds = coroutine.wrap(function()
3625
dude:WaitForChild("Head"):BreakJoints()
3626
wait(0.5)
3627
targetted = nil
3628
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
3629
coroutine.resume(coroutine.create(function()
3630
for i, v in pairs(dude:GetChildren()) do
3631
if v:IsA("Accessory") then
3632
v:Destroy()
3633
end
3634
if v:IsA("Humanoid") then
3635
v:Destroy()
3636
end
3637
if v:IsA("CharacterMesh") then
3638
v:Destroy()
3639
end
3640
if v:IsA("Model") then
3641
v:Destroy()
3642
end
3643
if v:IsA("Part") or v:IsA("MeshPart") then
3644
for x, o in pairs(v:GetChildren()) do
3645
if o:IsA("Decal") then
3646
o:Destroy()
3647
end
3648
end
3649
coroutine.resume(coroutine.create(function()
3650
v.Material = "Neon"
3651
v.CanCollide = false
3652
local bld = Instance.new("ParticleEmitter",v)
3653
bld.LightEmission = 1
3654
bld.Texture = "rbxassetid://284205403"
3655
bld.Color = ColorSequence.new(Color3.new(1,1,1))
3656
bld.Rate = 50
3657
bld.Lifetime = NumberRange.new(1)
3658
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
3659
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
3660
bld.Speed = NumberRange.new(0,0)
3661
bld.VelocitySpread = 50000
3662
bld.Rotation = NumberRange.new(-500,500)
3663
bld.RotSpeed = NumberRange.new(-500,500)
3664
        local sbs = Instance.new("BodyPosition", v)
3665
        sbs.P = 3000
3666
        sbs.D = 1000
3667
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
3668
        sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
3669
v.Color = Color3.new(1,1,1)
3670
coroutine.resume(coroutine.create(function()
3671
for i = 0, 49 do
3672
swait(1)
3673
v.Transparency = v.Transparency + 0.02
3674
end
3675
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
3676
bld.Speed = NumberRange.new(1,5)
3677
bld.Acceleration = vt(0,10,0)
3678
wait(0.5)
3679
bld.Enabled = false
3680
wait(3)
3681
v:Destroy()
3682
dude:Destroy()
3683
end))
3684
end))
3685
end
3686
end
3687
end))
3688
end)
3689
ds()
3690
end
3691
end
3692
3693
3694
function FindNearestHead(Position, Distance, SinglePlayer)
3695
	if SinglePlayer then
3696
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
3697
	end
3698
	local List = {}
3699
	for i, v in pairs(workspace:GetChildren()) do
3700
		if v:IsA("Model") then
3701
			if v:findFirstChild("Head") then
3702
				if v ~= Character then
3703
					if (v.Head.Position - Position).magnitude <= Distance then
3704
						table.insert(List, v)
3705
					end 
3706
				end 
3707
			end 
3708
		end 
3709
	end
3710
	return List
3711
end
3712
3713
function FaceMouse()
3714
  Cam = workspace.CurrentCamera
3715
  return {
3716
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
3717
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3718
  }
3719
end
3720
3721
function FaceMouse2()
3722
  Cam = workspace.CurrentCamera
3723
  return {
3724
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
3725
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3726
  }
3727
end
3728
3729
local ModeOfGlitch = 1
3730
-- Functions are ready.
3731
local storehumanoidWS = 16
3732
3733
3734
function Blink()
3735
for i = 0, 14 do
3736
PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
3737
end
3738
CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
3739
RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
3740
CameraEnshaking(2,10)
3741
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
3742
if v:FindFirstChild('Head') then
3743
dmg(v)
3744
end
3745
end
3746
for i = 0, 14 do
3747
PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
3748
end
3749
sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3750
end
3751
3752
function ExtinctiveHeartbreak()
3753
local targetted = nil
3754
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3755
targetted = mouse.Target.Parent
3756
end
3757
if targetted ~= nil then
3758
attack = true
3759
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
3760
for i = 0, 9 do
3761
SphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
3762
end
3763
for i = 0, 24 do
3764
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
3765
end
3766
Sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3767
local originalpos = root.CFrame
3768
RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
3769
for i = 0, 9 do
3770
SphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
3771
end
3772
for i = 0, 24 do
3773
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
3774
end
3775
hum.WalkSpeed = 0
3776
targetted.Head.Anchored = true
3777
Sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3778
for i = 0,2,0.1 do
3779
swait()
3780
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
3781
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
3782
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
3783
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
3784
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
3785
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
3786
end
3787
coroutine.resume(coroutine.create(function()
3788
bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
3789
bld.LightEmission = 0.1
3790
bld.Texture = "rbxassetid://284205403"
3791
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
3792
bld.Rate = 500
3793
bld.Lifetime = NumberRange.new(1)
3794
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
3795
bld.Acceleration = vt(0,-25,0)
3796
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
3797
bld.Speed = NumberRange.new(10,50)
3798
bld.EmissionDirection = "Front"
3799
bld.VelocitySpread = 25
3800
bld.Rotation = NumberRange.new(-500,500)
3801
bld.RotSpeed = NumberRange.new(-500,500)
3802
end))
3803
coroutine.resume(coroutine.create(function()
3804
bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
3805
bld.LightEmission = 0.1
3806
bld.Texture = "rbxassetid://284205403"
3807
bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
3808
bld.Rate = 500
3809
bld.Lifetime = NumberRange.new(1)
3810
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
3811
bld.Acceleration = vt(0,-25,0)
3812
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
3813
bld.Speed = NumberRange.new(10,50)
3814
bld.EmissionDirection = "Front"
3815
bld.VelocitySpread = 25
3816
bld.Rotation = NumberRange.new(-500,500)
3817
bld.RotSpeed = NumberRange.new(-500,500)
3818
end))
3819
CameraEnshaking(5,5)
3820
game:GetService("Debris"):AddItem(bld,3)
3821
dmg(targetted)
3822
CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
3823
for i = 0,1,0.1 do
3824
swait()
3825
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
3826
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
3827
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
3828
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
3829
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
3830
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
3831
end
3832
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
3833
for i = 0, 9 do
3834
SphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
3835
end
3836
for i = 0, 24 do
3837
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
3838
end
3839
Sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3840
root.CFrame = originalpos
3841
for i = 0, 9 do
3842
SphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
3843
end
3844
for i = 0, 24 do
3845
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
3846
end
3847
Sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3848
bld.Enabled = false
3849
attack = false
3850
hum.WalkSpeed = storehumanoidWS
3851
end
3852
end
3853
function MeteorStrike()
3854
	attack = true
3855
	for i = 0, 2, 0.1 do
3856
swait()
3857
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
3858
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
3859
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
3860
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
3861
RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
3862
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
3863
	end
3864
CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
3865
for i=1,20 do
3866
SphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
3867
swait()
3868
end
3869
swait(30)
3870
CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
3871
for i =1,20 do
3872
SphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
3873
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
3874
end
3875
for i = 0,2,0.1 do
3876
swait()
3877
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
3878
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
3879
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
3880
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
3881
RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
3882
LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
3883
end
3884
for i =1,20 do
3885
SphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
3886
end
3887
text.TextTransparency = 1
3888
text.TextStrokeTransparency = 1
3889
tr2.Enabled = false
3890
tr1.Enabled = false
3891
tr3.Enabled = false
3892
tl1.Enabled = false
3893
tl2.Enabled = false
3894
tl3.Enabled = false
3895
Spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
3896
eff = false
3897
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
3898
							local invtab = {}
3899
							local function search(targ)
3900
								if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
3901
									table.insert(invtab,targ)
3902
									end
3903
								for i,v in pairs(targ:GetChildren()) do
3904
									search(v)
3905
								end
3906
							end
3907
							search(plr.Character)
3908
							local frm = 0
3909
							local frmcon
3910
							frmcon = game:GetService("RunService").Heartbeat:connect(function()
3911
								if frm < 10 then
3912
									for i,v in pairs(invtab) do
3913
										if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture")  then
3914
											v.Transparency = v.Transparency + 0.1
3915
										end
3916
									end
3917
									frm = frm + 1
3918
								else
3919
									frmcon:disconnect()
3920
								end
3921
							end)
3922
swait(200)
3923
text.TextTransparency = 0
3924
text.TextStrokeTransparency = 0
3925
tr2.Enabled = false
3926
tr1.Enabled = false
3927
tr3.Enabled = false
3928
tl1.Enabled = false
3929
tl2.Enabled = false
3930
tl3.Enabled = false
3931
eff = true
3932
for i =1,20 do
3933
SphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
3934
end
3935
Spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
3936
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
3937
							local invtab = {}
3938
							local function search(targ)
3939
								if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
3940
									table.insert(invtab,targ)
3941
									end
3942
								for i,v in pairs(targ:GetChildren()) do
3943
									search(v)
3944
								end
3945
							end
3946
							search(plr.Character)
3947
							local frm = 0
3948
							local frmcon
3949
							frmcon = game:GetService("RunService").Heartbeat:connect(function()
3950
								if frm < 10 then
3951
									for i,v in pairs(invtab) do
3952
										if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture")  then
3953
											v.Transparency = v.Transparency - 0.1
3954
										end
3955
									end
3956
									frm = frm + 1
3957
								else
3958
									frmcon:disconnect()
3959
								end
3960
							end)
3961
swait(5)
3962
for i = 0, 2, 0.1 do
3963
swait()
3964
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
3965
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
3966
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
3967
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
3968
RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
3969
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
3970
end
3971
CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
3972
CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
3973
MagniDamage(root, 30, 65,90, 0, "Normal")
3974
for i =1,20 do
3975
SphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
3976
end
3977
Sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
3978
for i =1,20 do
3979
PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
3980
end
3981
swait(20)
3982
attack = false
3983
tr2.Enabled = true
3984
tr1.Enabled = true
3985
tr3.Enabled = true
3986
tl1.Enabled = true
3987
tl2.Enabled = true
3988
tl3.Enabled = true
3989
end
3990
3991
function FinalCalam()
3992
attack = true
3993
hum.WalkSpeed = 0
3994
local orb = Instance.new("Part", char)
3995
        orb.Anchored = true
3996
        orb.BrickColor = MAINRUINCOLOR
3997
        orb.CanCollide = false
3998
        orb.FormFactor = 3
3999
        orb.Name = "Ring"
4000
        orb.Material = "Neon"
4001
        orb.Size = Vector3.new(1, 1, 1)
4002
        orb.Transparency = 0
4003
        orb.TopSurface = 0
4004
        orb.BottomSurface = 0
4005
        local orbm = Instance.new("SpecialMesh", orb)
4006
        orbm.MeshType = "Sphere"
4007
orbm.Name = "SizeMesh"
4008
orbm.Scale = vt(0,0,0)
4009
local scaled = 0.1
4010
local posid = 0
4011
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
4012
for i = 0, 5, 0.1 do
4013
swait()
4014
scaled = scaled - 0.001
4015
posid = posid - scaled
4016
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
4017
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4018
SphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
4019
PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
4020
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4021
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4022
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
4023
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
4024
end
4025
swait(60)
4026
for i =1,3 do
4027
	swait(30)
4028
	CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
4029
	Sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
4030
end
4031
swait(30)
4032
for i = 0, 2, 0.1 do
4033
swait()
4034
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
4035
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
4036
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
4037
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
4038
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
4039
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
4040
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
4041
end
4042
swait(60)
4043
	CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
4044
	CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
4045
	Sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
4046
	Sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
4047
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
4048
	if v:FindFirstChild('Head') then
4049
	dmg(v)
4050
	end
4051
	end
4052
	for i = 1,20 do
4053
	SphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0)
4054
	for i = 0, 10 do
4055
		PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
4056
	end
4057
end
4058
orb:Remove()
4059
attack = false
4060
hum.WalkSpeed = storehumanoidWS
4061
end
4062
4063
4064
function PureDeath()
4065
	attack = true
4066
	hum.WalkSpeed = 0
4067
	for i = 0,1.2,0.1 do
4068
		swait()
4069
		rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
4070
		tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
4071
		RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15)
4072
		LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15)
4073
		RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(200), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1)
4074
		LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.1)
4075
	end
4076
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4077
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4078
		Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere")
4079
		Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("White"), "Sphere")
4080
		Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("White"), "Sphere")
4081
		Cso("331666100", tors, 10, .68)
4082
        for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do
4083
		if v:FindFirstChild("Head") then
4084
			Eviscerate(v)
4085
		end
4086
	end
4087
	CameraEnshaking(1.5, 20)
4088
	for i = 1,4.7,0.1 do
4089
	rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
4090
	tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
4091
	RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15)
4092
	LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
4093
	RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1)
4094
	LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1)
4095
	end
4096
	 wait(.6)
4097
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4098
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4099
		Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere")
4100
		Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("White"), "Sphere")
4101
		Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01,BrickColor.new("White"), "Sphere")
4102
		Cso("331666100", tors, 10, .68)
4103
        for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do
4104
		if v:FindFirstChild("Head") then
4105
			Eviscerate(v)
4106
		end
4107
	end
4108
	CameraEnshaking(1.5, 20)
4109
	for i = 1,4.7,0.1 do
4110
	rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
4111
	tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
4112
	RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15)
4113
	LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
4114
	RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1)
4115
	LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1)
4116
	end
4117
      wait(.6)
4118
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4119
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4120
		Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere")
4121
		Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("White"), "Sphere")
4122
		Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("White"), "Sphere")
4123
		Cso("331666100", tors, 10, .68)
4124
        for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do
4125
		if v:FindFirstChild("Head") then
4126
			Eviscerate(v)
4127
		end
4128
	end
4129
	CameraEnshaking(1.5, 20)
4130
	for i = 1,4.7,0.1 do
4131
	rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
4132
	tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
4133
	RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15)
4134
	LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
4135
	RW.C0 = clerp(RW.C0, CF(1.2, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(-34)), 0.1)
4136
	LW.C0 = clerp(LW.C0, CF(-1.5, 0.4 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(-15)), 0.1)
4137
	end
4138
	 wait(.6)
4139
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4140
		Aura(6, 0.3, "Add", root.CFrame * CF(0,-2,0) * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Brick")
4141
		Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Institutional white"), "Sphere")
4142
		Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("White"), "Sphere")
4143
		Magic(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(35, 0.1, 35), 0.01, BrickColor.new("White"), "Sphere")
4144
		Cso("331666100", tors, 10, .68)
4145
        for i, v in pairs(FindNearestHead(tors.CFrame.p, 14.5)) do
4146
		if v:FindFirstChild("Head") then
4147
			Eviscerate(v)
4148
		end
4149
	end
4150
	CameraEnshaking(1.5, 20)
4151
	for i = 1,4.7,0.1 do
4152
	rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.4 + 0.1 * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 0.15)
4153
	tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(35), Rad(0), Rad(0)), 0.3)
4154
	RH.C0 = clerp(RH.C0, CF(1, .4 - 0.1 * Cos(sine / 20), -.6 + 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-5), Rad(0), Rad(45)), 0.15)
4155
	LH.C0 = clerp(LH.C0, CF(-1, -0.6 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-5), Rad(0), Rad(-0)), 0.15)
4156
	RW.C0 = clerp(RW.C0, CF(1.2, 0.5 + 0.05 * Sin(sine / 30), 0.025 * Cos(sine / 20)) * angles(Rad(30), Rad(0), Rad(15)), 0.1)
4157
	LW.C0 = clerp(LW.C0, CF(-1.5, 0.1 + 0.05 * Sin(sine / 30), -.4 + 0.025 * Cos(sine / 20)) * angles(Rad(65), Rad(0), Rad(34)), 0.1)
4158
	end
4159
      wait(.6)
4160
	attack = false
4161
	hum.WalkSpeed = 8
4162
end
4163
4164
function PureBomb()
4165
attack = true
4166
4167
local orb = Instance.new("Part", char)
4168
        orb.Anchored = true
4169
        orb.BrickColor = BrickColor.new("White")
4170
        orb.CanCollide = false
4171
        orb.FormFactor = 3
4172
        orb.Name = "Ring"
4173
        orb.Material = "Neon"
4174
        orb.Size = Vector3.new(1, 1, 1)
4175
        orb.Transparency = 0
4176
        orb.TopSurface = 0
4177
        orb.BottomSurface = 0
4178
        local orbm = Instance.new("SpecialMesh", orb)
4179
        orbm.MeshType = "Sphere"
4180
orbm.Name = "SizeMesh"
4181
orbm.Scale = vt(0,0,0)
4182
local scaled = 0.1
4183
local posid = 0
4184
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
4185
for i = 0, 5, 0.1 do
4186
swait()
4187
scaled = scaled - 0.001
4188
posid = posid - scaled
4189
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
4190
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4191
SphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("White"),10)
4192
SphereMKCharge(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("White"),0)
4193
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
4194
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
4195
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4196
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4197
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
4198
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
4199
end
4200
for i = 0, 2, 0.1 do
4201
swait()
4202
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
4203
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
4204
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
4205
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
4206
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
4207
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
4208
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
4209
end
4210
coroutine.resume(coroutine.create(function()
4211
orb.Anchored = false
4212
CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
4213
	local a = Instance.new("Part",workspace)
4214
	a.Name = "Direction"	
4215
	a.Anchored = true
4216
	a.BrickColor = bc("Really Red")
4217
a.Material = "Neon"
4218
a.Transparency = 1
4219
	a.CanCollide = false
4220
	local ray = Ray.new(
4221
	    orb.CFrame.p,                           -- origin
4222
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
4223
	) 
4224
	local ignore = orb
4225
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
4226
	a.BottomSurface = 10
4227
	a.TopSurface = 10
4228
	local distance = (orb.CFrame.p - position).magnitude
4229
	a.Size = Vector3.new(0.1, 0.1, 0.1)
4230
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
4231
orb.CFrame = a.CFrame
4232
a:Destroy()
4233
local bv = Instance.new("BodyVelocity")
4234
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4235
bv.velocity = orb.CFrame.lookVector*125
4236
bv.Parent = orb
4237
local hitted = false
4238
game:GetService("Debris"):AddItem(orb, 15)
4239
wait()
4240
local hit =orb.Touched:connect(function(hit) 
4241
	if hitted == false then
4242
	hitted = true
4243
CameraEnshaking(10,2.5)
4244
	MagniDamage(orb, 65, 90,100, 0, "Normal")
4245
Sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("White"))
4246
Sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("White"))
4247
for i = 0, 49 do
4248
SphereMKCharge(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("White"),0)
4249
end
4250
for i = 0, 9 do
4251
SphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("White"),0)
4252
SphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("White"),0)
4253
end
4254
orb.Anchored = true
4255
orb.Transparency = 1
4256
wait(8)
4257
orb:Destroy()
4258
end
4259
end)
4260
end))
4261
for i = 0, 1, 0.1 do
4262
swait()
4263
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
4264
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
4265
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
4266
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
4267
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
4268
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
4269
end
4270
attack = false
4271
end
4272
4273
function MALFUNCTIONGroundStrike()
4274
attack = true
4275
for i = 0, 2, 0.1 do
4276
swait()
4277
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
4278
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
4279
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4280
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4281
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
4282
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
4283
end
4284
CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
4285
CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
4286
CameraEnshaking(4,12)
4287
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
4288
if v:FindFirstChild('Head') then
4289
dmg(v)
4290
end
4291
end
4292
Sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
4293
Sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
4294
Sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
4295
for i = 0, 2, 0.1 do
4296
swait()
4297
SphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
4298
SphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
4299
RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
4300
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
4301
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4302
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4303
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
4304
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
4305
end
4306
attack = false
4307
end
4308
4309
function Starfall()
4310
attack = true
4311
hum.WalkSpeed = 0
4312
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
4313
for i = 0, 5, 0.1 do
4314
swait()
4315
PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
4316
PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
4317
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
4318
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
4319
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4320
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
4321
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
4322
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
4323
end
4324
local Overed = false
4325
CameraEnshaking(2,20)
4326
Sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4327
Sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4328
Sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
4329
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
4330
local orb = Instance.new("Part", char)
4331
        orb.Anchored = true
4332
        orb.BrickColor = BrickColor.new("Toothpaste")
4333
        orb.CanCollide = false
4334
        orb.FormFactor = 3
4335
        orb.Name = "Remenant"
4336
        orb.Material = "Neon"
4337
orb.CFrame = root.CFrame*CFrame.new(0,150,0)
4338
        orb.Size = Vector3.new(1, 1, 1)
4339
        orb.Transparency = 1
4340
        orb.TopSurface = 0
4341
        orb.BottomSurface = 0
4342
hum.WalkSpeed = storehumanoidWS
4343
coroutine.resume(coroutine.create(function()
4344
for i = 0, 9 do
4345
swait(10)
4346
				 local lb = Instance.new("Part")
4347
    lb.Color = MAINRUINCOLOR.Color
4348
     lb.CanCollide = false
4349
lb.Material = "Neon"
4350
     lb.Anchored = true
4351
lb.TopSurface = 0
4352
        lb.BottomSurface = 0
4353
     lb.Transparency = 0
4354
     lb.Size = vt(1,1,1)
4355
     lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
4356
lb.Anchored = false
4357
  lb.Parent = char
4358
local thingery = Instance.new("SpecialMesh",lb)
4359
     thingery.MeshType = "Sphere"
4360
thingery.Scale = vt(20,20,20)
4361
game:GetService("Debris"):AddItem(lb, 10)
4362
  local bv = Instance.new("BodyVelocity")
4363
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4364
  bv.velocity = lb.CFrame.lookVector*math.random(75,250)
4365
  bv.Parent = lb
4366
Sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
4367
Sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
4368
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
4369
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
4370
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
4371
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
4372
local hitted = false
4373
coroutine.resume(coroutine.create(function()
4374
while true do
4375
swait(1)
4376
if lb.Parent ~= nil and hitted == false then
4377
PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
4378
elseif lb.Parent == nil then
4379
break
4380
end
4381
end
4382
end))
4383
4384
game:GetService("Debris"):AddItem(a, 0.1)
4385
4386
coroutine.resume(coroutine.create(function()
4387
swait(1)
4388
lb.Touched:connect(function(hit)
4389
if hitted == false then
4390
hitted = true
4391
lb.Transparency = 1
4392
lb.Anchored = true
4393
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
4394
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
4395
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
4396
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
4397
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
4398
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
4399
MagniDamage(lb, 45, 45,85, 0, "Normal")
4400
CameraEnshaking(1,5)
4401
Sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
4402
Sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
4403
for i = 0, 9 do
4404
SphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
4405
end
4406
for i = 0, 49 do
4407
swait()
4408
MagniDamage(lb, 30, 2,4, 0, "Normal")
4409
PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
4410
end
4411
end
4412
end)
4413
end))
4414
end
4415
Overed = true
4416
orb:Destroy()
4417
end))
4418
4419
attack = false
4420
end
4421
4422
function StarfallEX()
4423
attack = true
4424
hum.WalkSpeed = 0
4425
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
4426
for i = 0, 5, 0.1 do
4427
swait()
4428
PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
4429
PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
4430
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
4431
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
4432
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4433
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
4434
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
4435
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
4436
end
4437
local Overed = false
4438
CameraEnshaking(2,20)
4439
Sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4440
Sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4441
Sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
4442
Sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4443
Sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
4444
Sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4445
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
4446
local orb = Instance.new("Part", char)
4447
        orb.Anchored = true
4448
        orb.BrickColor = BrickColor.new("Toothpaste")
4449
        orb.CanCollide = false
4450
        orb.FormFactor = 3
4451
        orb.Name = "Remenant"
4452
        orb.Material = "Neon"
4453
orb.CFrame = root.CFrame*CFrame.new(0,150,0)
4454
        orb.Size = Vector3.new(1, 1, 1)
4455
        orb.Transparency = 1
4456
        orb.TopSurface = 0
4457
        orb.BottomSurface = 0
4458
hum.WalkSpeed = storehumanoidWS
4459
coroutine.resume(coroutine.create(function()
4460
for i = 0, 9 do
4461
swait(10)
4462
				 local lb = Instance.new("Part")
4463
    lb.Color = MAINRUINCOLOR.Color
4464
     lb.CanCollide = false
4465
lb.Material = "Neon"
4466
     lb.Anchored = true
4467
lb.TopSurface = 0
4468
        lb.BottomSurface = 0
4469
     lb.Transparency = 0
4470
     lb.Size = vt(1,1,1)
4471
     lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
4472
lb.Anchored = false
4473
  lb.Parent = char
4474
local thingery = Instance.new("SpecialMesh",lb)
4475
     thingery.MeshType = "Sphere"
4476
thingery.Scale = vt(20,20,20)
4477
game:GetService("Debris"):AddItem(lb, 10)
4478
  local bv = Instance.new("BodyVelocity")
4479
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4480
  bv.velocity = lb.CFrame.lookVector*math.random(75,250)
4481
  bv.Parent = lb
4482
Sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
4483
Sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
4484
Sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
4485
Sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
4486
Sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
4487
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
4488
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
4489
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
4490
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
4491
local hitted = false
4492
coroutine.resume(coroutine.create(function()
4493
while true do
4494
swait(1)
4495
if lb.Parent ~= nil and hitted == false then
4496
PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
4497
PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
4498
elseif lb.Parent == nil then
4499
break
4500
end
4501
end
4502
end))
4503
4504
game:GetService("Debris"):AddItem(a, 0.1)
4505
4506
coroutine.resume(coroutine.create(function()
4507
swait(1)
4508
lb.Touched:connect(function(hit)
4509
if hitted == false then
4510
hitted = true
4511
lb.Transparency = 1
4512
lb.Anchored = true
4513
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
4514
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
4515
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
4516
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
4517
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
4518
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
4519
MagniDamage(lb, 45, 45,85, 0, "Normal")
4520
CameraEnshaking(10,5)
4521
Sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
4522
Sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
4523
Sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
4524
Sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
4525
Sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
4526
Sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
4527
Sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
4528
Sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
4529
Sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
4530
Sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
4531
Sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
4532
Sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
4533
for i = 0, 9 do
4534
SphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
4535
SphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
4536
SphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
4537
SphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
4538
SphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
4539
SphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
4540
end
4541
for i = 0, 49 do
4542
swait()
4543
MagniDamage(lb, 30, 30, 60, 0, "Normal")
4544
PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
4545
PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
4546
PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
4547
end
4548
end
4549
end)
4550
end))
4551
end
4552
Overed = true
4553
orb:Destroy()
4554
end))
4555
4556
attack = false
4557
end
4558
4559
function StarDivision()
4560
attack = true
4561
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
4562
for i = 0, 2, 0.1 do
4563
swait()
4564
PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
4565
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
4566
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
4567
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
4568
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
4569
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
4570
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
4571
end
4572
local orb = Instance.new("Part", char)
4573
        orb.BrickColor = MAINRUINCOLOR
4574
        orb.CanCollide = false
4575
        orb.FormFactor = 3
4576
        orb.Name = "Ring"
4577
        orb.Material = "Neon"
4578
        orb.Size = Vector3.new(1, 1, 1)
4579
        orb.Transparency = 0
4580
        orb.TopSurface = 0
4581
        orb.BottomSurface = 0
4582
        local orbm = Instance.new("SpecialMesh", orb)
4583
        orbm.MeshType = "Sphere"
4584
orbm.Name = "SizeMesh"
4585
orbm.Scale = vt(2,2,2)
4586
local a = Instance.new("Part",workspace)
4587
	a.Name = "Direction"	
4588
	a.Anchored = true
4589
	a.BrickColor = bc("Really Red")
4590
a.Material = "Neon"
4591
a.Transparency = 1
4592
	a.CanCollide = false
4593
	local ray = Ray.new(
4594
	    sorb.CFrame.p,                           -- origin
4595
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
4596
	) 
4597
	local ignore = sorb
4598
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
4599
	a.BottomSurface = 10
4600
	a.TopSurface = 10
4601
	local distance = (sorb.CFrame.p - position).magnitude
4602
	a.Size = Vector3.new(0.1, 0.1, 0.1)
4603
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
4604
orb.CFrame = a.CFrame
4605
a:Destroy()
4606
local bv = Instance.new("BodyVelocity")
4607
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4608
bv.velocity = orb.CFrame.lookVector*100
4609
bv.Parent = orb
4610
local hitted = false
4611
game:GetService("Debris"):AddItem(orb, 10)
4612
CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
4613
CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
4614
CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
4615
CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
4616
CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
4617
coroutine.resume(coroutine.create(function()
4618
while true do
4619
swait(1)
4620
if orb.Parent ~= nil and hitted == false then
4621
PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
4622
elseif orb.Parent == nil then
4623
break
4624
end
4625
end
4626
end))
4627
coroutine.resume(coroutine.create(function()
4628
swait(1)
4629
orb.Touched:connect(function(hit)
4630
if hitted == false then
4631
hitted = true
4632
game:GetService("Debris"):AddItem(orb, 5)
4633
orb.Transparency = 1
4634
orb.Anchored = true
4635
local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4636
elocacenter.Anchored = true
4637
elocacenter.CFrame = orb.CFrame
4638
elocacenter.Orientation = vt(0,0,0)
4639
local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4640
eloca1.Anchored = true
4641
eloca1.CFrame = elocacenter.CFrame
4642
local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4643
eloca2.Anchored = true
4644
eloca2.CFrame = elocacenter.CFrame
4645
local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4646
eloca3.Anchored = true
4647
eloca3.CFrame = elocacenter.CFrame
4648
local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4649
eloca4.Anchored = true
4650
eloca4.CFrame = elocacenter.CFrame
4651
local lookavec = 0 
4652
local speeds = 0
4653
CameraEnshaking(1,1)
4654
CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
4655
Sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4656
Sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4657
Sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4658
Sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4659
Sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4660
for i = 0, 99 do
4661
swait()
4662
lookavec = lookavec + 1
4663
speeds = speeds + 0.1
4664
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4665
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4666
PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4667
4668
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4669
PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4670
4671
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4672
PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4673
4674
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4675
PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4676
end
4677
4678
for i = 0, 149 do
4679
swait()
4680
speeds = speeds + 0.1
4681
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4682
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4683
PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4684
4685
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4686
PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4687
4688
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4689
PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4690
4691
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4692
PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
4693
end
4694
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
4695
if v:FindFirstChild('Head') then
4696
dmg(v)
4697
end
4698
end
4699
CameraEnshaking(7,30)
4700
MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
4701
CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
4702
CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
4703
CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
4704
CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
4705
Sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
4706
Sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
4707
Sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4708
Sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4709
Sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4710
Sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4711
Sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4712
for i = 0, 24 do
4713
SphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
4714
SphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
4715
SphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
4716
SphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
4717
end
4718
coroutine.resume(coroutine.create(function()
4719
for i = 0, 499 do
4720
swait(1)
4721
MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
4722
PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
4723
end
4724
elocacenter:Destroy()
4725
eloca1:Destroy()
4726
eloca2:Destroy()
4727
eloca3:Destroy()
4728
eloca4:Destroy()
4729
end))
4730
end
4731
end)
4732
end))
4733
attack = false
4734
end
4735
4736
4737
function UniversalCollapse()
4738
attack = true
4739
local speedearn = 0
4740
hum.WalkSpeed = 0
4741
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
4742
for i = 0, 10, 0.1 do
4743
swait()
4744
speedearn = speedearn + 0.1
4745
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4746
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4747
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4748
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4749
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4750
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
4751
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
4752
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4753
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
4754
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
4755
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
4756
end
4757
CameraEnshaking(5,45)
4758
Sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
4759
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
4760
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
4761
if v:FindFirstChild('Head') then
4762
dmg(v)
4763
end
4764
end
4765
hum.WalkSpeed = storehumanoidWS
4766
attack = false
4767
end
4768
function MALFUNCTIONBegone()
4769
attack = true
4770
local speedearn = 0
4771
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
4772
for i = 0, 10, 0.1 do
4773
swait()
4774
speedearn = speedearn + 0.1
4775
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4776
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4777
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4778
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4779
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4780
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
4781
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
4782
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4783
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4784
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
4785
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
4786
end
4787
CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
4788
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
4789
CameraEnshaking(5,25)
4790
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
4791
if v:FindFirstChild('Head') then
4792
dmg(v)
4793
end
4794
end
4795
Sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
4796
Sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
4797
Sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
4798
for i = 0, 3, 0.1 do
4799
swait()
4800
SphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
4801
SphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
4802
SphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
4803
SphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
4804
RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
4805
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
4806
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4807
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4808
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
4809
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
4810
end
4811
attack = false
4812
end
4813
4814
function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
4815
local orb = Instance.new("Part", char)
4816
        orb.Anchored = true
4817
        orb.BrickColor = color
4818
        orb.CanCollide = false
4819
        orb.FormFactor = 3
4820
        orb.Name = "Ring"
4821
        orb.Material = "Neon"
4822
        orb.Size = Vector3.new(1, 1, 1)
4823
        orb.Transparency = 0
4824
        orb.TopSurface = 0
4825
        orb.BottomSurface = 0
4826
        local orbm = Instance.new("SpecialMesh", orb)
4827
        orbm.MeshType = "Sphere"
4828
orb.CFrame = positted
4829
orbm.Name = "SizeMesh"
4830
orbm.Scale = vt(1,1,1)
4831
CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
4832
Sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
4833
--[[for i = 0, 2 do
4834
SphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
4835
end]]--
4836
coroutine.resume(coroutine.create(function()
4837
wait(timer)
4838
CameraEnshaking(3,ShakePower)
4839
orb.Transparency = 1
4840
MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
4841
Sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
4842
--[[for i = 0, 4 do
4843
SphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
4844
end]]--
4845
CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
4846
wait(3)
4847
orb:Destroy()
4848
end))
4849
end
4850
4851
function orb_spawn(positted,timer)
4852
local randomcol = math.random(1,2)
4853
local orb = Instance.new("Part", char)
4854
        orb.Anchored = true
4855
if randomcol == 1 then
4856
        orb.BrickColor = BrickColor.new("White")
4857
elseif randomcol == 2 then
4858
orb.BrickColor = BrickColor.new("Really black")
4859
end
4860
        orb.CanCollide = false
4861
        orb.FormFactor = 3
4862
        orb.Name = "Ring"
4863
        orb.Material = "Neon"
4864
        orb.Size = Vector3.new(1, 1, 1)
4865
        orb.Transparency = 0
4866
        orb.TopSurface = 0
4867
        orb.BottomSurface = 0
4868
        local orbm = Instance.new("SpecialMesh", orb)
4869
        orbm.MeshType = "Sphere"
4870
orb.CFrame = positted
4871
orbm.Name = "SizeMesh"
4872
orbm.Scale = vt(1,1,1)
4873
CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
4874
Sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
4875
for i = 0, 2 do
4876
SphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
4877
end
4878
coroutine.resume(coroutine.create(function()
4879
wait(timer)
4880
CameraEnshaking(3,2)
4881
orb.Transparency = 1
4882
MagniDamage(orb, 17.5, 10,50, 0, "Normal")
4883
Sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
4884
for i = 0, 4 do
4885
SphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
4886
end
4887
CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
4888
wait(3)
4889
orb:Destroy()
4890
end))
4891
end
4892
4893
function GlitchThat()
4894
attack = true
4895
local speedearn = 0
4896
hum.WalkSpeed = 0
4897
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
4898
for i = 0, 10, 0.1 do
4899
swait()
4900
speedearn = speedearn + 0.1
4901
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4902
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4903
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4904
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4905
SphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
4906
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
4907
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
4908
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
4909
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
4910
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
4911
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
4912
end
4913
CameraEnshaking(5, 1000)
4914
Sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
4915
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
4916
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
4917
if v:FindFirstChild('Head') then
4918
dmg(v)
4919
end
4920
end
4921
hum.WalkSpeed = storehumanoidWS
4922
attack = false
4923
end
4924
4925
function Technobeam()
4926
    attack = true
4927
    hum.WalkSpeed = 3.01
4928
    for i = 0, 4, 0.1 do
4929
        swait()
4930
        hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0)
4931
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(40)), 0.2)
4932
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
4933
        RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
4934
        LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
4935
        RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
4936
        LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
4937
    end
4938
    for i = 0, 2, 0.1 do
4939
        swait()
4940
        hum.CameraOffset = Vector3.new(0, 0.3 + 0.1 * Cos(sine / 20), 0)
4941
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(40)), 0.2)
4942
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20), Rad(0), Rad(-40)), 0.2)
4943
        RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(-25)), 0.2)
4944
        LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(25)), 0.2)
4945
        RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
4946
        LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
4947
    end
4948
    Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, MAINRUINCOLOR, "Sphere")
4949
    Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, MAINRUINCOLOR, "Sphere")
4950
    Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, MAINRUINCOLOR, "Sphere")
4951
    Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, MAINRUINCOLOR, "Sphere")
4952
    CameraEnshaking(4, 5)
4953
    Cso("206049428", char, 10, 1)
4954
    for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do
4955
        if v:FindFirstChild("Head") then
4956
            Eviscerate(v)
4957
        end
4958
    end
4959
    for i = 0, 2, 0.1 do
4960
        swait()
4961
        hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0)
4962
        rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-5), Rad(0), Rad(40)), 0.2)
4963
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2)
4964
        RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2)
4965
        LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2)
4966
        RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2)
4967
        LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-25), Rad(7.5 * Sin(sine / 20)), Rad(-25)), 0.2)
4968
    end
4969
    hum.WalkSpeed = storehumanoidWS
4970
    attack = false
4971
end
4972
4973
function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
4974
local orb = Instance.new("Part", char)
4975
        orb.Anchored = true
4976
        orb.BrickColor = color
4977
        orb.CanCollide = false
4978
        orb.FormFactor = 3
4979
        orb.Name = "Ring"
4980
        orb.Material = "Neon"
4981
        orb.Size = Vector3.new(1, 1, 1)
4982
        orb.Transparency = 0
4983
        orb.TopSurface = 0
4984
        orb.BottomSurface = 0
4985
        local orbm = Instance.new("SpecialMesh", orb)
4986
        orbm.MeshType = "Sphere"
4987
orb.CFrame = positted
4988
orbm.Name = "SizeMesh"
4989
orbm.Scale = vt(1,1,1)
4990
CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
4991
Sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
4992
--[[for i = 0, 2 do
4993
SphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
4994
end]]--
4995
coroutine.resume(coroutine.create(function()
4996
wait(timer)
4997
CameraEnshaking(3,ShakePower)
4998
orb.Transparency = 1
4999
MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
5000
Sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
5001
--[[for i = 0, 4 do
5002
SphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
5003
end]]--
5004
CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
5005
wait(3)
5006
orb:Destroy()
5007
end))
5008
end
5009
5010
function scattercorrupt()
5011
attack = true
5012
local rot = 0
5013
local randomrotations = math.random(1,2)
5014
local lookv = 2.5
5015
local power = 5
5016
Sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Crimson"))
5017
Sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Crimson"))
5018
for i = 0, 9 do
5019
SphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Crimson"),0)
5020
end
5021
	CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
5022
	CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
5023
	CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
5024
CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
5025
CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
5026
local hite = Instance.new("Part", char)
5027
        hite.Anchored = true
5028
        hite.CanCollide = false
5029
        hite.FormFactor = 3
5030
        hite.Name = "Ring"
5031
        hite.Material = "Neon"
5032
        hite.Size = Vector3.new(1, 1, 1)
5033
        hite.Transparency = 1
5034
        hite.TopSurface = 0
5035
        hite.BottomSurface = 0
5036
hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
5037
local rem = Instance.new("Part", char)
5038
        rem.Anchored = true
5039
        rem.CanCollide = false
5040
        rem.FormFactor = 3
5041
        rem.Name = "Ring"
5042
        rem.Material = "Neon"
5043
        rem.Size = Vector3.new(1, 1, 1)
5044
        rem.Transparency = 1
5045
        rem.TopSurface = 0
5046
        rem.BottomSurface = 0
5047
rem.CFrame = hite.CFrame
5048
local rem2 = rem:Clone()
5049
rem2.Parent = char
5050
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
5051
local rem3 = rem:Clone()
5052
rem3.Parent = char
5053
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
5054
local rem4 = rem:Clone()
5055
rem4.Parent = char
5056
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
5057
hite:Destroy()
5058
coroutine.resume(coroutine.create(function()
5059
for i = 0, 24 do
5060
swait(1)
5061
if randomrotations == 1 then
5062
rot = rot + 1
5063
elseif randomrotations == 2 then
5064
rot = rot - 1
5065
end
5066
power = power + 0.5
5067
lookv = lookv + 7.5
5068
rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
5069
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
5070
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
5071
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
5072
orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Crimson"),power,25,75,10,power/5,7.5)
5073
orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Really Red"),power,25,75,10,power/5,7.5)
5074
orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Crimson"),power,25,75,10,power/5,7.5)
5075
orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Really Red"),power,25,75,10,power/5,7.5)
5076
end
5077
end))
5078
attack = false
5079
end
5080
function yinyangi()
5081
attack = true
5082
for i = 0, 2, 0.1 do
5083
swait()
5084
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
5085
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
5086
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
5087
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
5088
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
5089
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
5090
end
5091
local bv = Instance.new("BodyVelocity")
5092
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5093
bv.velocity = root.CFrame.lookVector*175
5094
bv.Parent = root
5095
for Rotations = 0, 9 do
5096
for i = 0, 1, 0.5 do
5097
swait()
5098
bv.velocity = root.CFrame.lookVector*175
5099
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
5100
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
5101
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
5102
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5103
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5104
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5105
end
5106
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5107
for i = 0, 1, 0.5 do
5108
swait()
5109
bv.velocity = root.CFrame.lookVector*175
5110
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
5111
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
5112
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
5113
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5114
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5115
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5116
end
5117
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5118
for i = 0, 1, 0.5 do
5119
swait()
5120
bv.velocity = root.CFrame.lookVector*175
5121
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
5122
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
5123
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
5124
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5125
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5126
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5127
end
5128
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5129
for i = 0, 1, 0.5 do
5130
swait()
5131
bv.velocity = root.CFrame.lookVector*175
5132
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
5133
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
5134
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
5135
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5136
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5137
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5138
end
5139
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5140
end
5141
bv:Destroy()
5142
attack = false
5143
end
5144
5145
function RainbowBeam()
5146
attack = true
5147
5148
local rngb = Instance.new("Part", char)
5149
        rngb.Anchored = true
5150
        rngb.BrickColor = origcolor
5151
        rngb.CanCollide = false
5152
        rngb.FormFactor = 3
5153
        rngb.Name = "Ring"
5154
        rngb.Material = "Neon"
5155
        rngb.Size = Vector3.new(1, 0.05, 1)
5156
        rngb.Transparency = 1
5157
        rngb.TopSurface = 0
5158
        rngb.BottomSurface = 0
5159
        local rngmb = Instance.new("SpecialMesh", rngb)
5160
        rngmb.MeshType = "Brick"
5161
rngmb.Name = "SizeMesh"
5162
rngmb.Scale = vt(0,1,0)
5163
5164
local orb = rngb:Clone()
5165
orb.Parent = char
5166
orb.Transparency = 0
5167
orb.BrickColor = BrickColor.new("White")
5168
orb.Size = vt(1,1,1)
5169
local orbmish = orb.SizeMesh
5170
orbmish.Scale = vt(0,0,0)
5171
orbmish.MeshType = "Sphere"
5172
5173
local orbe = rngb:Clone()
5174
orbe.Parent = char
5175
orbe.Transparency = 0.5
5176
orbe.BrickColor = BrickColor.new("New Yeller")
5177
orbe.Size = vt(1,1,1)
5178
local orbmish2 = orbe.SizeMesh
5179
orbmish2.Scale = vt(0,0,0)
5180
orbmish2.MeshType = "Sphere"
5181
orbe.Color = Color3.new(r/255,g/255,b/255)
5182
5183
rngb:Destroy()
5184
--[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
5185
local scaled = 1
5186
for i = 0,5,0.1 do
5187
swait()
5188
scaled = scaled - 0.02
5189
if rainbowmode == true then
5190
orbe.Color = Color3.new(r/255,g/255,b/255)
5191
end
5192
orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
5193
orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
5194
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5195
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5196
SphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
5197
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
5198
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
5199
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
5200
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5201
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
5202
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
5203
RootPart.CFrame = FaceMouse()[1]
5204
end]]--
5205
for i = 0,5,0.1 do
5206
swait()
5207
if rainbowmode == true then
5208
orbe.Color = Color3.new(r/255,g/255,b/255)
5209
end
5210
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5211
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5212
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
5213
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
5214
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
5215
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5216
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
5217
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
5218
RootPart.CFrame = FaceMouse()[1]
5219
end
5220
orbe.Transparency = 1
5221
orb.Transparency = 1
5222
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
5223
CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
5224
local a = Instance.new("Part",Character)
5225
	a.Name = "Direction"	
5226
	a.Anchored = true
5227
	a.BrickColor = bc("White")
5228
a.Material = "Neon"
5229
a.Transparency = 0
5230
a.Shape = "Cylinder"
5231
	a.CanCollide = false
5232
local a2 = Instance.new("Part",Character)
5233
	a2.Name = "Direction"	
5234
	a2.Anchored = true
5235
	a2.BrickColor = bc("New Yeller")
5236
a2.Color = Color3.new(r/255,g/255,b/255)
5237
a2.Material = "Neon"
5238
a2.Transparency = 0.5
5239
a2.Shape = "Cylinder"
5240
	a2.CanCollide = false
5241
local ba = Instance.new("Part",Character)
5242
	ba.Name = "HitDirect"	
5243
	ba.Anchored = true
5244
	ba.BrickColor = bc("Cool yellow")
5245
ba.Material = "Neon"
5246
ba.Transparency = 1
5247
	ba.CanCollide = false
5248
	local ray = Ray.new(
5249
	    orb.CFrame.p,                           -- origin
5250
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
5251
	) 
5252
	local ignore = Character
5253
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5254
	a.BottomSurface = 10
5255
	a.TopSurface = 10
5256
	a2.BottomSurface = 10
5257
	a2.TopSurface = 10
5258
	local distance = (orb.CFrame.p - position).magnitude
5259
	a.Size = Vector3.new(distance, 1, 1)
5260
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5261
	a2.Size = Vector3.new(distance, 1, 1)
5262
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5263
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
5264
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
5265
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
5266
game:GetService("Debris"):AddItem(a, 20)
5267
game:GetService("Debris"):AddItem(a2, 20)
5268
game:GetService("Debris"):AddItem(ba, 20)
5269
local msh = Instance.new("SpecialMesh",a)
5270
msh.MeshType = "Cylinder"
5271
msh.Scale = vt(1,5*5,5*5)
5272
local msh2 = Instance.new("SpecialMesh",a2)
5273
msh2.MeshType = "Cylinder"
5274
msh2.Scale = vt(1,6*5,6*5)
5275
5276
for i = 0,10,0.1 do
5277
swait()
5278
CameraEnshaking(1,5)
5279
a2.Color = Color3.new(r/255,g/255,b/255)
5280
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5281
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5282
ray = Ray.new(
5283
	    orb.CFrame.p,                           -- origin
5284
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
5285
	) 
5286
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5287
distance = (orb.CFrame.p - position).magnitude
5288
if typrot == 1 then
5289
rotation = rotation + 2.5
5290
elseif typrot == 2 then
5291
rotation = rotation - 2.5
5292
end
5293
RootPart.CFrame = FaceMouse()[1]
5294
a.Size = Vector3.new(distance, 1, 1)
5295
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5296
a2.Size = Vector3.new(distance, 1, 1)
5297
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5298
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
5299
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
5300
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
5301
msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
5302
msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
5303
SphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
5304
SphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
5305
MagniDamage(ba, 30, 500,60000, 0, "Normal")
5306
end
5307
a:Destroy()
5308
a2:Destroy()
5309
ba:Destroy()
5310
orb:Destroy()
5311
orbe:Destroy()
5312
attack = false
5313
end
5314
function HolyBarrier()
5315
	attack = true
5316
	shielding = true
5317
	for i = 0, 2, 0.1 do
5318
		swait()
5319
		RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
5320
		LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
5321
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
5322
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
5323
		RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
5324
		LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
5325
	end
5326
	CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
5327
	stash = Instance.new("Model",workspace)
5328
	local barrier = Instance.new("Part",stash)
5329
	barrier.Anchored = true
5330
	barrier.CanCollide = false
5331
	barrier.Size = Vector3.new(20,20,20)
5332
	barrier.CFrame = root.CFrame
5333
	barrier.Transparency = 0.6
5334
	barrier.BrickColor = MAINRUINCOLOR
5335
	barrier.Material = Enum.Material.Neon
5336
	barrier.Shape = Enum.PartType.Ball
5337
	barrier.CFrame = root.CFrame
5338
	Sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
5339
	Torso.Anchored = true
5340
	for i=1,50 do
5341
		local p = Instance.new("Part",stash)
5342
		p.Anchored = true
5343
		p.Transparency = 1
5344
		p.Size = Vector3.new(11,11,11)
5345
		p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
5346
	end
5347
	repeat
5348
		swait(5)
5349
		SphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
5350
	until shielding == false
5351
	stash:Remove()
5352
	Torso.Anchored = false
5353
	shielding = false
5354
	Sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
5355
	attack = false
5356
end
5357
function Judgement()
5358
	attack = true
5359
	judgement = true
5360
	hum.WalkSpeed = 0
5361
	local p = Instance.new("Part",root)
5362
	p.Anchored = true
5363
	p.CanCollide = false
5364
	p.BrickColor = MAINRUINCOLOR
5365
	p.Material = Enum.Material.Neon
5366
	p.Size = Vector3.new(1,1,1)
5367
	p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
5368
	p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
5369
	local m = Instance.new("SpecialMesh",p)
5370
	m.MeshType = "Cylinder"
5371
	m.Scale = Vector3.new(2000,2,2)
5372
	local targ = Instance.new("Part",root)
5373
	targ.Anchored = true
5374
	targ.Transparency = 1
5375
	targ.CanCollide = false
5376
	targ.Size = Vector3.new(1,1,1)
5377
	targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
5378
	local s = Instance.new("Sound",targ)
5379
	s.SoundId = "https://roblox.com/asset/?id=115327352"
5380
	s.Looped = true
5381
	s.Pitch = 1.2
5382
	s.Volume = 3
5383
	spawn(function()
5384
		swait(15)
5385
		s:Play()
5386
	end)
5387
	CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
5388
	for i = 1,15 do
5389
		targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
5390
		RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
5391
		Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
5392
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
5393
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
5394
		RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
5395
		LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
5396
		Sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
5397
		SphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
5398
		m.Scale = m.Scale+Vector3.new(0,1,1)
5399
		p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
5400
		p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
5401
		swait()
5402
	end
5403
	SphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
5404
	repeat
5405
		targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
5406
		SphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
5407
		Sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
5408
		p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
5409
		p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
5410
		MagniDamage(targ, 25, 5, 8, 0, "Normal")
5411
		swait()
5412
		until judgement == false
5413
	for i =1,15 do
5414
	m.Scale = m.Scale-Vector3.new(1,1,1)
5415
	p.Transparency = i / 15
5416
	s.Pitch = s.Pitch - 0.4
5417
	swait()
5418
	end
5419
	p:Destroy()
5420
	hum.WalkSpeed = storehumanoidWS 
5421
	attack = false
5422
end
5423
5424
function UniversalSpark()
5425
attack = true
5426
5427
local rngb = Instance.new("Part", char)
5428
        rngb.Anchored = true
5429
        rngb.BrickColor = origcolor
5430
        rngb.CanCollide = false
5431
        rngb.FormFactor = 3
5432
        rngb.Name = "Ring"
5433
        rngb.Material = "Neon"
5434
        rngb.Size = Vector3.new(1, 0.05, 1)
5435
        rngb.Transparency = 1
5436
        rngb.TopSurface = 0
5437
        rngb.BottomSurface = 0
5438
        local rngmb = Instance.new("SpecialMesh", rngb)
5439
        rngmb.MeshType = "Brick"
5440
rngmb.Name = "SizeMesh"
5441
rngmb.Scale = vt(0,1,0)
5442
5443
local orb = rngb:Clone()
5444
orb.Parent = char
5445
orb.Transparency = 0
5446
orb.BrickColor = BrickColor.new("White")
5447
orb.Size = vt(1,1,1)
5448
local orbmish = orb.SizeMesh
5449
orbmish.Scale = vt(0,0,0)
5450
orbmish.MeshType = "Sphere"
5451
5452
local orbe = rngb:Clone()
5453
orbe.Parent = char
5454
orbe.Transparency = 0.5
5455
orbe.BrickColor = BrickColor.new("New Yeller")
5456
orbe.Size = vt(1,1,1)
5457
local orbmish2 = orbe.SizeMesh
5458
orbmish2.Scale = vt(0,0,0)
5459
orbmish2.MeshType = "Sphere"
5460
orbe.Color = Color3.new(r/255,g/255,b/255)
5461
5462
rngb:Destroy()
5463
--[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
5464
local scaled = 1
5465
for i = 0,5,0.1 do
5466
swait()
5467
scaled = scaled - 0.02
5468
if rainbowmode == true then
5469
orbe.Color = Color3.new(r/255,g/255,b/255)
5470
end
5471
orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
5472
orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
5473
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5474
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5475
SphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
5476
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
5477
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
5478
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
5479
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5480
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
5481
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
5482
RootPart.CFrame = FaceMouse()[1]
5483
end]]--
5484
for i = 0,5,0.1 do
5485
swait()
5486
if rainbowmode == true then
5487
orbe.Color = Color3.new(r/255,g/255,b/255)
5488
end
5489
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5490
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
5491
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
5492
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
5493
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
5494
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5495
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
5496
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
5497
RootPart.CFrame = FaceMouse()[1]
5498
end
5499
orbe.Transparency = 1
5500
orb.Transparency = 1
5501
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
5502
CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
5503
CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
5504
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
5505
5506
CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
5507
CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
5508
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
5509
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
5510
CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
5511
CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
5512
CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
5513
local xd= Instance.new("Sound",char)
5514
xd.SoundId = "rbxassetid://445796828"
5515
xd.Pitch = 0.75
5516
xd.Looped = true
5517
xd.Volume = 1.25
5518
xd:Play()
5519
local a = Instance.new("Part",Character)
5520
	a.Name = "Direction"	
5521
	a.Anchored = true
5522
	a.BrickColor = bc("Alder")
5523
a.Color = MAINRUINCOLOR.Color
5524
a.Material = "Neon"
5525
a.Transparency = 0.5
5526
a.Shape = "Cylinder"
5527
	a.CanCollide = false
5528
local a2 = Instance.new("Part",Character)
5529
	a2.Name = "Direction"	
5530
	a2.Anchored = true
5531
	a2.BrickColor = bc("New Yeller")
5532
a2.Color = MAINRUINCOLOR.Color
5533
a2.Material = "Neon"
5534
a2.Transparency = 0.5
5535
a2.Shape = "Cylinder"
5536
	a2.CanCollide = false
5537
local ba = Instance.new("Part",Character)
5538
	ba.Name = "HitDirect"	
5539
	ba.Anchored = true
5540
	ba.BrickColor = bc("Cool yellow")
5541
ba.Material = "Neon"
5542
ba.Transparency = 1
5543
	ba.CanCollide = false
5544
	local ray = Ray.new(
5545
	    orb.CFrame.p,                           -- origin
5546
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
5547
	) 
5548
	local ignore = Character
5549
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5550
	a.BottomSurface = 10
5551
	a.TopSurface = 10
5552
	a2.BottomSurface = 10
5553
	a2.TopSurface = 10
5554
	local distance = (orb.CFrame.p - position).magnitude
5555
	a.Size = Vector3.new(distance, 1, 1)
5556
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5557
	a2.Size = Vector3.new(distance, 1, 1)
5558
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5559
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
5560
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
5561
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
5562
game:GetService("Debris"):AddItem(a, 60)
5563
game:GetService("Debris"):AddItem(a2, 60)
5564
game:GetService("Debris"):AddItem(ba, 60)
5565
local outerscale = 0
5566
local msh = Instance.new("SpecialMesh",a)
5567
msh.MeshType = "Cylinder"
5568
msh.Scale = vt(1,0,0)
5569
local msh2 = Instance.new("SpecialMesh",a2)
5570
msh2.MeshType = "Cylinder"
5571
msh2.Scale = vt(1,0,0)
5572
for i = 0,2,0.1 do
5573
swait()
5574
CameraEnshaking(1,1)
5575
msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
5576
msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
5577
outerscale = outerscale - 0.015
5578
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5579
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5580
ray = Ray.new(
5581
	    orb.CFrame.p,                           -- origin
5582
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
5583
	) 
5584
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5585
distance = (orb.CFrame.p - position).magnitude
5586
if typrot == 1 then
5587
rotation = rotation + 2.5
5588
elseif typrot == 2 then
5589
rotation = rotation - 2.5
5590
end
5591
RootPart.CFrame = FaceMouse()[1]
5592
a.Size = Vector3.new(distance, 1, 1)
5593
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5594
a2.Size = Vector3.new(distance, 1, 1)
5595
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5596
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
5597
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
5598
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
5599
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5600
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5601
MagniDamage(ba, 100, 500,60000, 0, "Normal")
5602
end
5603
for z = 0, 2 do
5604
for i = 0,4,0.1 do
5605
swait()
5606
CameraEnshaking(1,1)
5607
msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
5608
msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
5609
outerscale = outerscale + 0.015
5610
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5611
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5612
ray = Ray.new(
5613
	    orb.CFrame.p,                           -- origin
5614
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
5615
	) 
5616
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5617
distance = (orb.CFrame.p - position).magnitude
5618
if typrot == 1 then
5619
rotation = rotation + 2.5
5620
elseif typrot == 2 then
5621
rotation = rotation - 2.5
5622
end
5623
RootPart.CFrame = FaceMouse()[1]
5624
a.Size = Vector3.new(distance, 1, 1)
5625
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5626
a2.Size = Vector3.new(distance, 1, 1)
5627
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5628
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
5629
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
5630
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
5631
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5632
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5633
MagniDamage(ba, 100, 500,60000, 0, "Normal")
5634
end
5635
for i = 0,4,0.1 do
5636
swait()
5637
CameraEnshaking(1,1)
5638
msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
5639
msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
5640
outerscale = outerscale - 0.015
5641
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5642
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5643
ray = Ray.new(
5644
	    orb.CFrame.p,                           -- origin
5645
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
5646
	) 
5647
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5648
distance = (orb.CFrame.p - position).magnitude
5649
if typrot == 1 then
5650
rotation = rotation + 2.5
5651
elseif typrot == 2 then
5652
rotation = rotation - 2.5
5653
end
5654
RootPart.CFrame = FaceMouse()[1]
5655
a.Size = Vector3.new(distance, 1, 1)
5656
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5657
a2.Size = Vector3.new(distance, 1, 1)
5658
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5659
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
5660
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
5661
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
5662
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5663
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5664
MagniDamage(ba, 100, 500,60000, 0, "Normal")
5665
end
5666
end
5667
for i = 0,4,0.1 do
5668
swait()
5669
CameraEnshaking(1,1)
5670
msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
5671
msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
5672
xd.Volume = xd.Volume - 0.025
5673
a.Transparency = a.Transparency + 0.025
5674
a2.Transparency = a2.Transparency + 0.025
5675
outerscale = outerscale - 0.015
5676
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5677
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
5678
ray = Ray.new(
5679
	    orb.CFrame.p,                           -- origin
5680
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
5681
	) 
5682
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5683
distance = (orb.CFrame.p - position).magnitude
5684
if typrot == 1 then
5685
rotation = rotation + 2.5
5686
elseif typrot == 2 then
5687
rotation = rotation - 2.5
5688
end
5689
RootPart.CFrame = FaceMouse()[1]
5690
a.Size = Vector3.new(distance, 1, 1)
5691
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5692
a2.Size = Vector3.new(distance, 1, 1)
5693
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
5694
ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
5695
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
5696
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
5697
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5698
SphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
5699
MagniDamage(ba, 100, 500,60000, 0, "Normal")
5700
end
5701
xd:Destroy()
5702
a:Destroy()
5703
a2:Destroy()
5704
ba:Destroy()
5705
orb:Destroy()
5706
orbe:Destroy()
5707
attack = false
5708
end
5709
5710
5711
function resetmode()
5712
swait()
5713
rainbowmode = false
5714
MALFUNCTIONmode = false
5715
tl1.Enabled = true
5716
tl2.Enabled = true
5717
tl3.Enabled = true
5718
               ModeOfGlitch = 1
5719
storehumanoidWS = 16
5720
coroutine.resume(coroutine.create(function()
5721
attack = true
5722
hum.WalkSpeed = 0
5723
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
5724
for i = 0,4,0.1 do
5725
swait()
5726
SphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
5727
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
5728
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
5729
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
5730
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
5731
RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
5732
LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
5733
end
5734
CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
5735
CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
5736
CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
5737
CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
5738
RecolorTextAndRename("Divine",Color3.new(1,1,1),BrickColor.New'New Yeller'.Color)
5739
CameraEnshaking(5,2.5)
5740
MAINRUINCOLOR = BrickColor.new("New Yeller")
5741
Sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
5742
for i = 0, 49 do
5743
PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
5744
end
5745
for i = 0,3,0.1 do
5746
SphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
5747
end
5748
for i, v in pairs(mw2:GetChildren()) do
5749
if v:IsA("Part") then
5750
v.BrickColor = BrickColor.new("New Yeller")
5751
v.Material = "Neon"
5752
end
5753
end
5754
for i, v in pairs(mw1:GetChildren()) do
5755
if v:IsA("Part") then
5756
v.Transparency = 0
5757
v.BrickColor = BrickColor.new("New Yeller")
5758
v.Material = "Neon"
5759
end
5760
end
5761
for i, v in pairs(m:GetChildren()) do
5762
if v:IsA("Part") then
5763
v.BrickColor = BrickColor.new("Really black")
5764
v.Material = "Glass"
5765
end
5766
end
5767
for i, v in pairs(m2:GetChildren()) do
5768
if v:IsA("Part") then
5769
v.BrickColor = BrickColor.new("New Yeller")
5770
v.Material = "Granite"
5771
end
5772
end
5773
for i, v in pairs(m3:GetChildren()) do
5774
if v:IsA("Part") then
5775
v.BrickColor = BrickColor.new("New Yeller")
5776
v.Material = "Neon"
5777
end
5778
end
5779
for i, v in pairs(extrawingmod1:GetChildren()) do
5780
if v:IsA("Part") then
5781
v.Transparency = 0.75
5782
v.BrickColor = BrickColor.new("New Yeller")
5783
v.Material = "Neon"
5784
end
5785
end
5786
for i, v in pairs(extrawingmod2:GetChildren()) do
5787
if v:IsA("Part") then
5788
v.Transparency = 0.75
5789
v.BrickColor = BrickColor.new("New Yeller")
5790
v.Material = "Neon"
5791
end
5792
end
5793
for i = 0,2,0.1 do
5794
swait()
5795
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
5796
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
5797
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
5798
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
5799
RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
5800
LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
5801
end
5802
hum.WalkSpeed = storehumanoidWS
5803
attack = false
5804
end))
5805
newTheme("rbxassetid://614032233",48.6,1,0.3)
5806
end
5807
5808
function attackone()
5809
	attack = true
5810
	for i = 0,1,0.1 do
5811
		swait()
5812
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
5813
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
5814
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
5815
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
5816
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
5817
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
5818
	end
5819
	CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
5820
5821
local hitb = Instance.new("Part", char)
5822
        hitb.Anchored = true
5823
        hitb.CanCollide = false
5824
        hitb.FormFactor = 3
5825
        hitb.Name = "Ring"
5826
        hitb.Material = "Neon"
5827
        hitb.Size = Vector3.new(1, 1, 1)
5828
        hitb.Transparency = 1
5829
        hitb.TopSurface = 0
5830
        hitb.BottomSurface = 0
5831
hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
5832
MagniDamage(hitb, 3, 10,30, 0, "Normal")
5833
hitb:Destroy()
5834
	for i = 0,1,0.1 do
5835
		swait()
5836
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
5837
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
5838
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
5839
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
5840
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
5841
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
5842
	end
5843
5844
	attack = false
5845
end
5846
5847
function attacktwo()
5848
	attack = true
5849
	for i = 0,1,0.1 do
5850
		swait()
5851
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
5852
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
5853
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
5854
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
5855
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
5856
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
5857
	end
5858
	CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
5859
local hitb = Instance.new("Part", char)
5860
        hitb.Anchored = true
5861
        hitb.CanCollide = false
5862
        hitb.FormFactor = 3
5863
        hitb.Name = "Ring"
5864
        hitb.Material = "Neon"
5865
        hitb.Size = Vector3.new(1, 1, 1)
5866
        hitb.Transparency = 1
5867
        hitb.TopSurface = 0
5868
        hitb.BottomSurface = 0
5869
hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
5870
MagniDamage(hitb, 3, 10,30, 0, "Normal")
5871
hitb:Destroy()
5872
	for i = 0,1,0.1 do
5873
		swait()
5874
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
5875
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
5876
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
5877
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
5878
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
5879
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
5880
	end
5881
	attack = false
5882
end
5883
5884
function attackthree()
5885
	attack = true
5886
	for i = 0,1,0.1 do
5887
		swait()
5888
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
5889
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
5890
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
5891
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5892
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
5893
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
5894
	end
5895
local distlook = 5
5896
for i = 0, 4 do
5897
swait(2)
5898
CameraEnshaking(2,3)
5899
local hite = Instance.new("Part", char)
5900
        hite.Anchored = true
5901
        hite.CanCollide = false
5902
        hite.FormFactor = 3
5903
        hite.Name = "Ring"
5904
        hite.Material = "Neon"
5905
        hite.Size = Vector3.new(1, 1, 1)
5906
        hite.Transparency = 1
5907
        hite.TopSurface = 0
5908
        hite.BottomSurface = 0
5909
hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
5910
Sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
5911
Sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
5912
MagniDamage(hite, 10, 15,35, 0, "Normal")
5913
for i = 0, 2 do
5914
SphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
5915
SphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
5916
SphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
5917
end
5918
CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
5919
CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
5920
game:GetService("Debris"):AddItem(hite, 5)
5921
distlook = distlook + 10
5922
end
5923
	attack = false
5924
end
5925
5926
local ActiveGia = false
5927
function THEHELLITSTHATBIG()
5928
ActiveGia = true
5929
attack = true
5930
hum.WalkSpeed = 0
5931
	for i = 0,2,0.1 do
5932
		swait()
5933
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
5934
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
5935
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
5936
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
5937
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
5938
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
5939
	end
5940
for i = 0,1,0.1 do
5941
torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
5942
larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
5943
rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
5944
llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
5945
rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
5946
hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
5947
end
5948
CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
5949
secrleg.Transparency = 0.5
5950
seclleg.Transparency = 0.5
5951
secrarm.Transparency = 0.5
5952
seclarm.Transparency = 0.5
5953
seched.Transparency = 0.5
5954
sectors.Transparency = 0.5
5955
for i = 0,25,0.1 do
5956
swait()
5957
PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
5958
torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
5959
larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
5960
rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
5961
llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
5962
rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
5963
hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
5964
end
5965
--[[secrleg.Transparency = 1
5966
seclleg.Transparency = 1
5967
secrarm.Transparency = 1
5968
seclarm.Transparency = 1
5969
seched.Transparency = 1
5970
sectors.Transparency = 1]]--
5971
torsweld.Part0 = root
5972
hum.WalkSpeed = storehumanoidWS
5973
attack = false
5974
end
5975
5976
function removelol()
5977
ActiveGia = false
5978
attack = true
5979
hum.WalkSpeed = 0
5980
	for i = 0,2,0.1 do
5981
		swait()
5982
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
5983
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
5984
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
5985
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
5986
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
5987
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
5988
	end
5989
CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
5990
for i = 0,25,0.1 do
5991
swait()
5992
secrleg.Transparency = secrleg.Transparency + 0.00225
5993
seclleg.Transparency = secrleg.Transparency
5994
secrarm.Transparency = secrleg.Transparency
5995
seclarm.Transparency = secrleg.Transparency
5996
seched.Transparency = secrleg.Transparency
5997
sectors.Transparency = secrleg.Transparency
5998
PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
5999
torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
6000
larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
6001
rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
6002
llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
6003
rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
6004
hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
6005
end
6006
CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
6007
Sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
6008
Sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
6009
Sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
6010
secrleg.Transparency = 1
6011
seclleg.Transparency = 1
6012
secrarm.Transparency = 1
6013
seclarm.Transparency = 1
6014
seched.Transparency = 1
6015
sectors.Transparency = 1
6016
torsweld.Part0 = root
6017
hum.WalkSpeed = storehumanoidWS
6018
attack = false
6019
end
6020
6021
function FinalCalamity()
6022
end
6023
6024
local attacktype = 1
6025
mouse.Button1Down:connect(function()
6026
  if attack == false and attacktype == 1 then
6027
    attacktype = 2
6028
    attackone()
6029
  elseif attack == false and attacktype == 2 then
6030
    attacktype = 3
6031
    attacktwo()
6032
  elseif attack == false and attacktype == 3 then
6033
    attacktype = 1
6034
    attackthree()
6035
  elseif attack == false and attacktype == 4 then
6036
    attacktype = 1
6037
    --attackfour()
6038
  end
6039
end)
6040
mouse.KeyDown:connect(function(k)
6041
        if k == "q" and attack == false and ModeOfGlitch ~= 2 then
6042
               ModeOfGlitch = 2
6043
storehumanoidWS = 16
6044
hum.WalkSpeed = 16
6045
rainbowmode = false
6046
MALFUNCTIONmode = false
6047
tl1.Enabled = true
6048
tl2.Enabled = true
6049
tl3.Enabled = true
6050
RecolorTextAndRename("PHANTOM",Color3.new(1,1,1),Color3.new(0,0,0))
6051
newTheme("rbxassetid://2018331827",0,1,0.3)
6052
MAINRUINCOLOR = BrickColor.new("Really Black")
6053
for i, v in pairs(mw2:GetChildren()) do
6054
if v:IsA("Part") then
6055
v.BrickColor = MAINRUINCOLOR
6056
v.Material = "Neon"
6057
end
6058
end
6059
for i, v in pairs(mw1:GetChildren()) do
6060
if v:IsA("Part") then
6061
v.Transparency = 0
6062
v.BrickColor = MAINRUINCOLOR
6063
v.Material = "Neon"
6064
end
6065
end
6066
for i, v in pairs(m:GetChildren()) do
6067
if v:IsA("Part") then
6068
v.BrickColor = BrickColor.new("Really Black")
6069
v.Material = "Ice"
6070
end
6071
end
6072
for i, v in pairs(m2:GetChildren()) do
6073
if v:IsA("Part") then
6074
v.BrickColor = BrickColor.new("Really Black")
6075
v.Material = "Glass"
6076
end
6077
end
6078
for i, v in pairs(m3:GetChildren()) do
6079
if v:IsA("Part") then
6080
v.BrickColor = BrickColor.new("Really Black")
6081
v.Material = "Neon"
6082
end
6083
end
6084
for i, v in pairs(extrawingmod1:GetChildren()) do
6085
if v:IsA("Part") then
6086
v.Transparency = 1
6087
v.BrickColor = BrickColor.new("White")
6088
v.Material = "Neon"
6089
end
6090
end
6091
for i, v in pairs(extrawingmod2:GetChildren()) do
6092
if v:IsA("Part") then
6093
v.Transparency = 1
6094
v.BrickColor = BrickColor.new("White")
6095
v.Material = "Neon"
6096
end
6097
end
6098
elseif k == "q" and attack == false and ModeOfGlitch == 2 then
6099
resetmode()
6100
end
6101
if k == "e" and attack == false and ModeOfGlitch ~= 3 then
6102
               ModeOfGlitch = 3
6103
storehumanoidWS = 16
6104
hum.WalkSpeed = 16
6105
rainbowmode = false
6106
MALFUNCTIONmode = false
6107
tl1.Enabled = false
6108
tl2.Enabled = false
6109
tl3.Enabled = false
6110
RecolorTextAndRename("Discipline",Color3.new(0,0,0),Color3.new(1,0,0))
6111
newTheme("rbxassetid://561833161",58.15,0.98,1.25)
6112
MAINRUINCOLOR = BrickColor.new("Crimson")
6113
for i, v in pairs(m:GetChildren()) do
6114
if v:IsA("Part") then
6115
v.BrickColor = BrickColor.new("Really black")
6116
v.Material = "Glass"
6117
end
6118
end
6119
for i, v in pairs(m2:GetChildren()) do
6120
if v:IsA("Part") then
6121
v.BrickColor = BrickColor.new("Crimson")
6122
v.Material = "Granite"
6123
end
6124
end
6125
for i, v in pairs(m3:GetChildren()) do
6126
if v:IsA("Part") then
6127
v.BrickColor = BrickColor.new("Really red")
6128
v.Material = "Neon"
6129
end
6130
end
6131
for i, v in pairs(mw2:GetChildren()) do
6132
if v:IsA("Part") then
6133
v.BrickColor = BrickColor.new("Really red")
6134
v.Material = "Neon"
6135
end
6136
end
6137
for i, v in pairs(mw1:GetChildren()) do
6138
if v:IsA("Part") then
6139
v.Transparency = 1
6140
v.BrickColor = BrickColor.new("Really red")
6141
v.Material = "Neon"
6142
end
6143
end
6144
for i, v in pairs(extrawingmod1:GetChildren()) do
6145
if v:IsA("Part") then
6146
v.Transparency = 1
6147
v.BrickColor = BrickColor.new("White")
6148
v.Material = "Neon"
6149
end
6150
end
6151
for i, v in pairs(extrawingmod2:GetChildren()) do
6152
if v:IsA("Part") then
6153
v.Transparency = 1
6154
v.BrickColor = BrickColor.new("White")
6155
v.Material = "Neon"
6156
end
6157
end
6158
for i, v in pairs(extrawingmod2:GetChildren()) do
6159
if v:IsA("Part") then
6160
v.Transparency = 1
6161
v.BrickColor = BrickColor.new("White")
6162
v.Material = "Neon"
6163
end
6164
end
6165
elseif k == "e" and attack == false and ModeOfGlitch == 3 then
6166
resetmode()
6167
end
6168
if k == "g" and attack == false and ModeOfGlitch ~= 4093 then
6169
               ModeOfGlitch = 4093
6170
storehumanoidWS = 16
6171
hum.WalkSpeed = 16
6172
rainbowmode = false
6173
MALFUNCTIONmode = false
6174
tl1.Enabled = true
6175
tl2.Enabled = true
6176
tl3.Enabled = true
6177
RecolorTextAndRename("Hope",Color3.new(0,0,0),Color3.new(1,1,1))
6178
newTheme("rbxassetid://595800581",58.15,0.98,1.25)
6179
MAINRUINCOLOR = BrickColor.new("White")
6180
for i, v in pairs(m:GetChildren()) do
6181
if v:IsA("Part") then
6182
v.BrickColor = BrickColor.new("Really black")
6183
v.Material = "Glass"
6184
end
6185
end
6186
for i, v in pairs(m2:GetChildren()) do
6187
if v:IsA("Part") then
6188
v.BrickColor = BrickColor.new("White")
6189
v.Material = "Granite"
6190
end
6191
end
6192
for i, v in pairs(m3:GetChildren()) do
6193
if v:IsA("Part") then
6194
v.BrickColor = BrickColor.new("White")
6195
v.Material = "Neon"
6196
end
6197
end
6198
for i, v in pairs(mw2:GetChildren()) do
6199
if v:IsA("Part") then
6200
v.BrickColor = BrickColor.new("White")
6201
v.Material = "Neon"
6202
end
6203
end
6204
for i, v in pairs(mw1:GetChildren()) do
6205
if v:IsA("Part") then
6206
v.Transparency = 0
6207
v.BrickColor = BrickColor.new("White")
6208
v.Material = "Neon"
6209
end
6210
end
6211
for i, v in pairs(extrawingmod1:GetChildren()) do
6212
if v:IsA("Part") then
6213
v.Transparency = 1
6214
v.BrickColor = BrickColor.new("White")
6215
v.Material = "Neon"
6216
end
6217
end
6218
for i, v in pairs(extrawingmod2:GetChildren()) do
6219
if v:IsA("Part") then
6220
v.Transparency = 1
6221
v.BrickColor = BrickColor.new("White")
6222
v.Material = "Neon"
6223
end
6224
end
6225
for i, v in pairs(extrawingmod2:GetChildren()) do
6226
if v:IsA("Part") then
6227
v.Transparency = 1
6228
v.BrickColor = BrickColor.new("White")
6229
v.Material = "Neon"
6230
end
6231
end
6232
elseif k == "g" and attack == false and ModeOfGlitch == 4093 then
6233
resetmode()
6234
end
6235
if k == "r" and attack == false and ModeOfGlitch ~= 4 then
6236
               ModeOfGlitch = 4
6237
storehumanoidWS = 16
6238
hum.WalkSpeed = 16
6239
rainbowmode = false
6240
MALFUNCTIONmode = true
6241
tl1.Enabled = true
6242
tl2.Enabled = true
6243
tl3.Enabled = true
6244
RecolorTextAndRename("MALFUNCTION",Color3.new(0,0,0),BrickColor.random().Color)
6245
newTheme("rbxassetid://1369263130",0,1,1)
6246
MAINRUINCOLOR = BrickColor.new("Black")
6247
for i, v in pairs(mw2:GetChildren()) do
6248
if v:IsA("Part") then
6249
v.BrickColor = MAINRUINCOLOR
6250
v.Material = "Neon"
6251
end
6252
end
6253
for i, v in pairs(mw1:GetChildren()) do
6254
if v:IsA("Part") then
6255
v.Transparency = 0.75
6256
v.BrickColor = BrickColor.random()
6257
v.Material = "Neon"
6258
end
6259
end
6260
for i, v in pairs(m:GetChildren()) do
6261
if v:IsA("Part") then
6262
v.BrickColor = BrickColor.new("Black")
6263
v.Material = "Neon"
6264
end
6265
end
6266
for i, v in pairs(m2:GetChildren()) do
6267
if v:IsA("Part") then
6268
v.BrickColor = BrickColor.random()
6269
v.Material = "Neon"
6270
end
6271
end
6272
for i, v in pairs(m3:GetChildren()) do
6273
if v:IsA("Part") then
6274
v.BrickColor = BrickColor.new("Black")
6275
v.Material = "Neon"
6276
end
6277
end
6278
for i, v in pairs(extrawingmod1:GetChildren()) do
6279
if v:IsA("Part") then
6280
v.Transparency = 1
6281
v.BrickColor = BrickColor.new("White")
6282
v.Material = "Neon"
6283
end
6284
end
6285
for i, v in pairs(extrawingmod2:GetChildren()) do
6286
if v:IsA("Part") then
6287
v.Transparency = 1
6288
v.BrickColor = BrickColor.new("White")
6289
v.Material = "Neon"
6290
end
6291
end
6292
elseif k == "r" and attack == false and ModeOfGlitch == 4 then
6293
resetmode()
6294
end
6295
if k == "t" and attack == false and ModeOfGlitch ~= 5 then
6296
               ModeOfGlitch = 5
6297
storehumanoidWS = 16
6298
hum.WalkSpeed = 16
6299
rainbowmode = false
6300
MALFUNCTIONmode = false
6301
tl1.Enabled = true
6302
tl2.Enabled = true
6303
tl3.Enabled = true
6304
RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(0,1,1))
6305
newTheme("rbxassetid://661079869",0,1.02,1)
6306
MAINRUINCOLOR = BrickColor.new("Toothpaste")
6307
for i, v in pairs(mw2:GetChildren()) do
6308
if v:IsA("Part") then
6309
v.BrickColor = MAINRUINCOLOR
6310
v.Material = "Neon"
6311
end
6312
end
6313
for i, v in pairs(mw1:GetChildren()) do
6314
if v:IsA("Part") then
6315
v.Transparency = 0
6316
v.BrickColor = BrickColor.new("Toothpaste")
6317
v.Material = "Neon"
6318
end
6319
end
6320
for i, v in pairs(m:GetChildren()) do
6321
if v:IsA("Part") then
6322
v.BrickColor = BrickColor.new("Toothpaste")
6323
v.Material = "Ice"
6324
end
6325
end
6326
for i, v in pairs(m2:GetChildren()) do
6327
if v:IsA("Part") then
6328
v.BrickColor = BrickColor.new("Toothpaste")
6329
v.Material = "Ice"
6330
end
6331
end
6332
for i, v in pairs(m3:GetChildren()) do
6333
if v:IsA("Part") then
6334
v.BrickColor = BrickColor.new("Toothpaste")
6335
v.Material = "Neon"
6336
end
6337
end
6338
for i, v in pairs(extrawingmod1:GetChildren()) do
6339
if v:IsA("Part") then
6340
v.Transparency = 1
6341
v.BrickColor = BrickColor.new("White")
6342
v.Material = "Neon"
6343
end
6344
end
6345
for i, v in pairs(extrawingmod2:GetChildren()) do
6346
if v:IsA("Part") then
6347
v.Transparency = 1
6348
v.BrickColor = BrickColor.new("White")
6349
v.Material = "Neon"
6350
end
6351
end
6352
elseif k == "t" and attack == false and ModeOfGlitch == 5 then
6353
resetmode()
6354
end
6355
if k == "m" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 2013 then
6356
newTheme("rbxassetid://1564523997",0,1,1)
6357
attack = true
6358
hum.WalkSpeed = 0
6359
MAINRUINCOLOR = BrickColor.new("Really black")
6360
CameraEnshaking(10,5)
6361
CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
6362
CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
6363
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
6364
CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
6365
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
6366
Sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
6367
Sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
6368
Sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
6369
Sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
6370
Sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
6371
Sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
6372
Sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
6373
Sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
6374
Sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
6375
Sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
6376
for i = 0, 49 do
6377
SphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
6378
SphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
6379
SphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
6380
SphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
6381
end
6382
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1000)) do
6383
if v:FindFirstChild('Head') then
6384
dmg(v)
6385
end
6386
end
6387
ModeOfGlitch = 2013
6388
hum.WalkSpeed = storehumanoidWS
6389
rainbowmode = false
6390
MALFUNCTIONmode = false
6391
tl1.Enabled = true
6392
tl2.Enabled = true
6393
tl3.Enabled = true
6394
RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(1,1,1))
6395
tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6396
tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6397
tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6398
for i, v in pairs(mw2:GetChildren()) do
6399
if v:IsA("Part") then
6400
v.BrickColor = MAINRUINCOLOR
6401
v.Material = "Neon"
6402
end
6403
end
6404
for i, v in pairs(mw1:GetChildren()) do
6405
if v:IsA("Part") then
6406
v.Transparency = 0
6407
v.BrickColor = MAINRUINCOLOR
6408
v.Material = "Neon"
6409
end
6410
end
6411
for i, v in pairs(m:GetChildren()) do
6412
if v:IsA("Part") then
6413
v.BrickColor = BrickColor.new("Really black")
6414
v.Material = "Neon"
6415
end
6416
end
6417
for i, v in pairs(m2:GetChildren()) do
6418
if v:IsA("Part") then
6419
v.BrickColor = BrickColor.new("Really black")
6420
v.Material = "Neon"
6421
end
6422
end
6423
for i, v in pairs(m3:GetChildren()) do
6424
if v:IsA("Part") then
6425
v.BrickColor = BrickColor.new("Really black")
6426
v.Material = "Neon"
6427
end
6428
end
6429
for i, v in pairs(extrawingmod1:GetChildren()) do
6430
if v:IsA("Part") then
6431
v.Transparency = 1
6432
v.BrickColor = BrickColor.new("Really black")
6433
v.Material = "Neon"
6434
end
6435
end
6436
for i, v in pairs(extrawingmod2:GetChildren()) do
6437
if v:IsA("Part") then
6438
v.Transparency = 1
6439
v.Color = Color3.new(0.5,0,1)
6440
v.Material = "Neon"
6441
end
6442
attack = false
6443
end
6444
elseif k == "m" and attack == false and ModeOfGlitch == 2013 then
6445
resetmode()
6446
end
6447
if k == "y" and attack == false and ModeOfGlitch ~= 6 then
6448
               ModeOfGlitch = 6
6449
storehumanoidWS = 75
6450
hum.WalkSpeed = 75
6451
rainbowmode = false
6452
MALFUNCTIONmode = false
6453
tl1.Enabled = true
6454
tl2.Enabled = true
6455
tl3.Enabled = true
6456
RecolorTextAndRename("Equality",Color3.new(0,0,0),Color3.new(1,1,1))
6457
newTheme("rbxassetid://519067542",0,1,1)
6458
MAINRUINCOLOR = BrickColor.new("White")
6459
MAINRUINCOLOR = BrickColor.new("Really black")
6460
for i, v in pairs(mw2:GetChildren()) do
6461
if v:IsA("Part") then
6462
v.BrickColor = BrickColor.new("White")
6463
v.Material = "Neon"
6464
end
6465
end
6466
for i, v in pairs(mw1:GetChildren()) do
6467
if v:IsA("Part") then
6468
v.Transparency = 0
6469
v.BrickColor = BrickColor.new("Really black")
6470
v.Material = "Neon"
6471
end
6472
end
6473
for i, v in pairs(m:GetChildren()) do
6474
if v:IsA("Part") then
6475
v.BrickColor = BrickColor.new("White")
6476
v.Material = "Ice"
6477
end
6478
end
6479
for i, v in pairs(m2:GetChildren()) do
6480
if v:IsA("Part") then
6481
v.BrickColor = BrickColor.new("Really black")
6482
v.Material = "Ice"
6483
end
6484
end
6485
for i, v in pairs(m3:GetChildren()) do
6486
if v:IsA("Part") then
6487
v.BrickColor = BrickColor.new("White")
6488
v.Material = "Neon"
6489
end
6490
end
6491
for i, v in pairs(extrawingmod1:GetChildren()) do
6492
if v:IsA("Part") then
6493
v.Transparency = 1
6494
v.BrickColor = BrickColor.new("White")
6495
v.Material = "Neon"
6496
end
6497
end
6498
for i, v in pairs(extrawingmod2:GetChildren()) do
6499
if v:IsA("Part") then
6500
v.Transparency = 1
6501
v.BrickColor = BrickColor.new("White")
6502
v.Material = "Neon"
6503
end
6504
end
6505
elseif k == "y" and attack == false and ModeOfGlitch == 6 then
6506
resetmode()
6507
end
6508
if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
6509
               ModeOfGlitch = 6127843
6510
storehumanoidWS = 50
6511
hum.WalkSpeed = 50
6512
rainbowmode = true
6513
MALFUNCTIONmode = false
6514
tl1.Enabled = true
6515
tl2.Enabled = true
6516
tl3.Enabled = true
6517
RecolorTextAndRename("Excitment",Color3.new(1,1,1),Color3.new(1,1,1))
6518
newTheme("rbxassetid://147930134",0,1,1)
6519
MAINRUINCOLOR = BrickColor.new("White")
6520
for i, v in pairs(mw2:GetChildren()) do
6521
if v:IsA("Part") then
6522
v.BrickColor = MAINRUINCOLOR
6523
v.Material = "Neon"
6524
end
6525
end
6526
for i, v in pairs(mw1:GetChildren()) do
6527
if v:IsA("Part") then
6528
v.Transparency = 0
6529
v.BrickColor = MAINRUINCOLOR
6530
v.Material = "Neon"
6531
end
6532
end
6533
for i, v in pairs(m:GetChildren()) do
6534
if v:IsA("Part") then
6535
v.BrickColor = BrickColor.new("White")
6536
v.Material = "Neon"
6537
end
6538
end
6539
for i, v in pairs(m2:GetChildren()) do
6540
if v:IsA("Part") then
6541
v.BrickColor = BrickColor.new("White")
6542
v.Material = "Neon"
6543
end
6544
end
6545
for i, v in pairs(m3:GetChildren()) do
6546
if v:IsA("Part") then
6547
v.BrickColor = BrickColor.new("White")
6548
v.Material = "Neon"
6549
end
6550
end
6551
for i, v in pairs(extrawingmod1:GetChildren()) do
6552
if v:IsA("Part") then
6553
v.Transparency = 1
6554
v.BrickColor = BrickColor.new("White")
6555
v.Material = "Neon"
6556
end
6557
end
6558
for i, v in pairs(extrawingmod2:GetChildren()) do
6559
if v:IsA("Part") then
6560
v.Transparency = 1
6561
v.BrickColor = BrickColor.new("White")
6562
v.Material = "Neon"
6563
end
6564
end
6565
elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
6566
resetmode()
6567
end
6568
if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
6569
               ModeOfGlitch = 1000000
6570
storehumanoidWS = 100
6571
hum.WalkSpeed = 100
6572
rainbowmode = false
6573
MALFUNCTIONmode = false
6574
tl1.Enabled = true
6575
tl2.Enabled = true
6576
tl3.Enabled = true
6577
RecolorTextAndRename("Universal",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
6578
newTheme("rbxassetid://1359036559",0,1,1)
6579
MAINRUINCOLOR = BrickColor.new("Bright violet")
6580
tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6581
tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6582
tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6583
for i, v in pairs(mw2:GetChildren()) do
6584
if v:IsA("Part") then
6585
v.BrickColor = MAINRUINCOLOR
6586
v.Material = "Neon"
6587
end
6588
end
6589
for i, v in pairs(mw1:GetChildren()) do
6590
if v:IsA("Part") then
6591
v.Transparency = 0
6592
v.BrickColor = MAINRUINCOLOR
6593
v.Material = "Neon"
6594
end
6595
end
6596
for i, v in pairs(m:GetChildren()) do
6597
if v:IsA("Part") then
6598
v.Color = Color3.new(0.5,0,1)
6599
v.Material = "Neon"
6600
end
6601
end
6602
for i, v in pairs(m2:GetChildren()) do
6603
if v:IsA("Part") then
6604
v.Color = Color3.new(0.25,0,1)
6605
v.Material = "Neon"
6606
end
6607
end
6608
for i, v in pairs(m3:GetChildren()) do
6609
if v:IsA("Part") then
6610
v.Color = Color3.new(0.45,0,1)
6611
v.Material = "Neon"
6612
end
6613
end
6614
for i, v in pairs(extrawingmod1:GetChildren()) do
6615
if v:IsA("Part") then
6616
v.Transparency = 0.75
6617
v.Color = Color3.new(0.25,0,1)
6618
v.Material = "Neon"
6619
end
6620
end
6621
for i, v in pairs(extrawingmod2:GetChildren()) do
6622
if v:IsA("Part") then
6623
v.Transparency = 0.75
6624
v.Color = Color3.new(0.5,0,1)
6625
v.Material = "Neon"
6626
end
6627
end
6628
elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
6629
resetmode()
6630
end
6631
if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
6632
newThemeCust("rbxassetid://1504604335",0,1,1)
6633
attack = true
6634
hum.WalkSpeed = 0
6635
MAINRUINCOLOR = BrickColor.new("Bright violet")
6636
for i = 0, 24, 0.1 do
6637
swait()
6638
SphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
6639
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
6640
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
6641
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
6642
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6643
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
6644
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
6645
end
6646
CameraEnshaking(1,1)
6647
Sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
6648
CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
6649
wait(0.55)
6650
CameraEnshaking(1,2)
6651
Sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
6652
Sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
6653
Sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
6654
CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
6655
wait(0.55)
6656
CameraEnshaking(1,3)
6657
Sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
6658
Sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
6659
Sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
6660
Sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
6661
Sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
6662
CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
6663
wait(0.55)
6664
CameraEnshaking(10,5)
6665
CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
6666
CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
6667
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
6668
CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
6669
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
6670
Sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
6671
Sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
6672
Sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
6673
Sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
6674
Sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
6675
Sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
6676
Sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
6677
Sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
6678
Sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
6679
Sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
6680
for i = 0, 49 do
6681
SphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
6682
SphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
6683
SphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
6684
SphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
6685
end
6686
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
6687
if v:FindFirstChild('Head') then
6688
dmg(v)
6689
end
6690
end
6691
ModeOfGlitch = 12345678987654321
6692
storehumanoidWS = 200
6693
hum.WalkSpeed = 200
6694
rainbowmode = false
6695
MALFUNCTIONmode = false
6696
tl1.Enabled = true
6697
tl2.Enabled = true
6698
tl3.Enabled = true
6699
RecolorTextAndRename("Devourer",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
6700
tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6701
tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6702
tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6703
for i, v in pairs(mw2:GetChildren()) do
6704
if v:IsA("Part") then
6705
v.BrickColor = MAINRUINCOLOR
6706
v.Material = "Neon"
6707
end
6708
end
6709
for i, v in pairs(mw1:GetChildren()) do
6710
if v:IsA("Part") then
6711
v.Transparency = 0
6712
v.BrickColor = MAINRUINCOLOR
6713
v.Material = "Neon"
6714
end
6715
end
6716
for i, v in pairs(m:GetChildren()) do
6717
if v:IsA("Part") then
6718
v.Color = Color3.new(0.5,0,1)
6719
v.Material = "Neon"
6720
end
6721
end
6722
for i, v in pairs(m2:GetChildren()) do
6723
if v:IsA("Part") then
6724
v.Color = Color3.new(0.5,0,1)
6725
v.Material = "Neon"
6726
end
6727
end
6728
for i, v in pairs(m3:GetChildren()) do
6729
if v:IsA("Part") then
6730
v.Color = Color3.new(0.5,0,1)
6731
v.Material = "Neon"
6732
end
6733
end
6734
for i, v in pairs(extrawingmod1:GetChildren()) do
6735
if v:IsA("Part") then
6736
v.Transparency = 0
6737
v.Color = Color3.new(0.5,0,1)
6738
v.Material = "Neon"
6739
end
6740
end
6741
for i, v in pairs(extrawingmod2:GetChildren()) do
6742
if v:IsA("Part") then
6743
v.Transparency = 0
6744
v.Color = Color3.new(0.5,0,1)
6745
v.Material = "Neon"
6746
end
6747
attack = false
6748
end
6749
elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
6750
resetmode()
6751
end
6752
if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
6753
newThemeCust("rbxassetid://723652641",0,1,1)
6754
attack = true
6755
hum.WalkSpeed = 0
6756
MAINRUINCOLOR = BrickColor.new("Crimson")
6757
chatfunc("I always wonder why you try...",BrickColor.new'New Yeller'.Color)
6758
for i = 0, 24, 0.1 do
6759
swait()
6760
SphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
6761
RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
6762
LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
6763
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
6764
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6765
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
6766
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
6767
end
6768
chatfunc("Because you only have a few minutes to live...",BrickColor.new'New Yeller'.Color)
6769
CameraEnshaking(1,1)
6770
Sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
6771
CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
6772
wait(0.55)
6773
CameraEnshaking(1,2)
6774
Sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
6775
Sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
6776
Sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
6777
CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
6778
wait(0.55)
6779
CameraEnshaking(1,3)
6780
Sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
6781
Sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
6782
Sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
6783
Sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
6784
Sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
6785
CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
6786
wait(0.55)
6787
CameraEnshaking(10,5)
6788
CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
6789
CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
6790
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
6791
CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
6792
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
6793
Sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
6794
Sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
6795
Sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
6796
Sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
6797
Sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
6798
Sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
6799
Sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
6800
Sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
6801
Sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
6802
Sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
6803
for i = 0, 49 do
6804
SphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
6805
SphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
6806
SphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
6807
SphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
6808
end
6809
ModeOfGlitch = 666
6810
storehumanoidWS = 16
6811
hum.WalkSpeed = 16
6812
rainbowmode = false
6813
MALFUNCTIONmode = false
6814
tl1.Enabled = true
6815
tl2.Enabled = true
6816
tl3.Enabled = true
6817
RecolorTextAndRename("H A T R E D",Color3.new(1,0,0),Color3.new(0.75,0,0))
6818
chatfunc("There is nothing stopping me now...",BrickColor.new'Crimson'.Color)
6819
CFuncs["Sound"].Create("rbxassetid://137473066", char, 1, 1)
6820
tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6821
tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6822
tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6823
for i, v in pairs(mw2:GetChildren()) do
6824
if v:IsA("Part") then
6825
v.BrickColor = MAINRUINCOLOR
6826
v.Material = "Neon"
6827
end
6828
end
6829
for i, v in pairs(mw1:GetChildren()) do
6830
if v:IsA("Part") then
6831
v.Transparency = 0
6832
v.BrickColor = MAINRUINCOLOR
6833
v.Material = "Neon"
6834
end
6835
end
6836
for i, v in pairs(m:GetChildren()) do
6837
if v:IsA("Part") then
6838
v.Color = Color3.new(1,0,0)
6839
v.Material = "Neon"
6840
end
6841
end
6842
for i, v in pairs(m2:GetChildren()) do
6843
if v:IsA("Part") then
6844
v.Color = Color3.new(1,0,0)
6845
v.Material = "Neon"
6846
end
6847
end
6848
for i, v in pairs(m3:GetChildren()) do
6849
if v:IsA("Part") then
6850
v.Color = Color3.new(1,0,0)
6851
v.Material = "Neon"
6852
end
6853
end
6854
for i, v in pairs(extrawingmod1:GetChildren()) do
6855
if v:IsA("Part") then
6856
v.Transparency = 0.75
6857
v.Color = Color3.new(1,0,0)
6858
v.Material = "Neon"
6859
end
6860
end
6861
for i, v in pairs(extrawingmod2:GetChildren()) do
6862
if v:IsA("Part") then
6863
v.Transparency = 0.75
6864
v.Color = Color3.new(1,0,0)
6865
v.Material = "Neon"
6866
end
6867
attack = false
6868
end
6869
elseif k == "b" and attack == false and ModeOfGlitch == 666 then
6870
resetmode()
6871
end
6872
if k == "l" and toggleTag == false then
6873
toggleTag = true
6874
text.TextTransparency = 0
6875
text.TextStrokeTransparency = 0
6876
elseif k == "l" and toggleTag == true then
6877
toggleTag = false
6878
text.TextTransparency = 1
6879
text.TextStrokeTransparency = 1
6880
end
6881
if k == "z" and attack == false and ModeOfGlitch == 1 or ModeOfGlitch == 2013 then
6882
ExtinctiveHeartbreak()
6883
elseif k == "z" and attack == false and ModeOfGlitch == 2 then
6884
PureBomb()
6885
elseif k == "z" and attack == false and ModeOfGlitch == 4093 then
6886
Technobeam()
6887
elseif k == "x" and attack == false and ModeOfGlitch == 2 then
6888
PureDeath()
6889
elseif k == "z" and attack == false and ModeOfGlitch == 3 then
6890
scattercorrupt()
6891
elseif k == "z" and attack == false and ModeOfGlitch == 4 then
6892
MALFUNCTIONGroundStrike()
6893
elseif k == "z" and attack == false and ModeOfGlitch == 5 then
6894
Judgement()
6895
elseif k == "f" and attack == false and ModeOfGlitch == 5 then
6896
HolyBarrier()
6897
elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
6898
Starfall()
6899
elseif k == "z" and attack == false and ModeOfGlitch == 6 then
6900
yinyangi()
6901
elseif k == "x" and attack == false and ModeOfGlitch == 6 then
6902
MeteorStrike()
6903
elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
6904
RainbowBeam()
6905
elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
6906
StarfallEX()
6907
elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
6908
FinalCalam()
6909
end
6910
if k == "n" and attack == false then
6911
Blink()
6912
elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
6913
StarDivision()
6914
end
6915
if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
6916
UniversalCollapse()
6917
end
6918
if k == "c" and attack == false and ModeOfGlitch == 4093 then
6919
GlitchThat()
6920
end
6921
if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
6922
hum.WalkSpeed = 16 + 184
6923
elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
6924
hum.WalkSpeed = 200 - 184
6925
end
6926
if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
6927
UniversalSpark()
6928
end
6929
if k == "z" and attack == false and ModeOfGlitch == 666 then
6930
StarDivision()
6931
end
6932
if k == "x" and attack == false and ModeOfGlitch == 666 then
6933
Starfall()
6934
end
6935
if k == "m" and attack == false and ModeOfGlitch == 4 then
6936
MALFUNCTIONBegone()
6937
elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
6938
THEHELLITSTHATBIG()
6939
elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
6940
removelol()
6941
end
6942
end)
6943
mouse.KeyUp:connect(function(k)
6944
	if k == "f" and ModeOfGlitch == 5 then
6945
	shielding = false
6946
	end
6947
	if k == "z" and ModeOfGlitch == 5 then
6948
		judgement = false
6949
	end
6950
end)
6951
coroutine.resume(coroutine.create(function()
6952
while true do
6953
swait(2)
6954
if rainbowmode == true or ModeOfGlitch == 6 then
6955
if eff == true then
6956
SphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
6957
end
6958
end
6959
end
6960
end))
6961
coroutine.resume(coroutine.create(function()
6962
while true do
6963
swait(2)
6964
if shielding == true then
6965
end
6966
end
6967
end))
6968
6969
6970
coroutine.resume(coroutine.create(function()
6971
while true do
6972
if ModeOfGlitch == 1000000 then
6973
swait(0.5)
6974
end
6975
swait()
6976
if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
6977
SphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0)
6978
end
6979
if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
6980
SphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
6981
end
6982
end
6983
end))
6984
6985
6986
coroutine.resume(coroutine.create(function()
6987
while true do
6988
swait(2)
6989
if MALFUNCTIONmode == true then
6990
tl1.Color = ColorSequence.new(BrickColor.random().Color)
6991
tl2.Color = ColorSequence.new(BrickColor.random().Color)
6992
tl3.Color = ColorSequence.new(BrickColor.random().Color)
6993
RecolorTextAndRename("MALFUNCTION",Color3.new(0,0,0),BrickColor.random().Color)
6994
for i, v in pairs(mw1:GetChildren()) do
6995
if v:IsA("Part") then
6996
v.Transparency = 0.75
6997
v.BrickColor = BrickColor.random()
6998
v.Material = "Neon"
6999
end
7000
end
7001
for i, v in pairs(m2:GetChildren()) do
7002
if v:IsA("Part") then
7003
v.BrickColor = BrickColor.random()
7004
v.Material = "Neon"
7005
end
7006
end
7007
for i, v in pairs(secondchar:GetChildren()) do
7008
if v:IsA("Part") then
7009
v.BrickColor = BrickColor.random()
7010
v.Material = "Neon"
7011
end
7012
end
7013
end
7014
end
7015
end))
7016
Humanoid.Name = "STARGLITCHER"
7017
Humanoid.MaxHealth = math.huge
7018
Humanoid.Health = math.huge
7019
Instance.new("ForceField",char).Visible = false
7020
Humanoid.Animator.Parent = nil
7021
idleanim=.4
7022
while true do
7023
if rainbowmode == false then
7024
tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7025
tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7026
tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7027
for i, v in pairs(secondchar:GetChildren()) do
7028
if v:IsA("Part") then
7029
v.BrickColor = MAINRUINCOLOR
7030
v.Material = "Neon"
7031
end
7032
end
7033
if MALFUNCTIONmode == false then
7034
tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7035
tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7036
tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7037
for i, v in pairs(secondchar:GetChildren()) do
7038
if v:IsA("Part") then
7039
v.BrickColor = MAINRUINCOLOR
7040
v.Material = "Neon"
7041
end
7042
end
7043
end
7044
end
7045
if rainbowmode == true then
7046
RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
7047
MAINRUINCOLOR = BrickColor.new("White")
7048
tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
7049
tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
7050
tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
7051
tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
7052
tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
7053
tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
7054
for i, v in pairs(m:GetChildren()) do
7055
if v:IsA("Part") then
7056
v.Color = Color3.new(r/255,g/255,b/255)
7057
end
7058
end
7059
for i, v in pairs(m2:GetChildren()) do
7060
if v:IsA("Part") then
7061
v.Color = Color3.new(r/255,g/255,b/255)
7062
end
7063
end
7064
for i, v in pairs(secondchar:GetChildren()) do
7065
if v:IsA("Part") then
7066
v.Color = Color3.new(r/255,g/255,b/255)
7067
v.Material = "Neon"
7068
end
7069
end
7070
for i, v in pairs(m3:GetChildren()) do
7071
if v:IsA("Part") then
7072
v.Color = Color3.new(r/255,g/255,b/255)
7073
end
7074
end
7075
for i, v in pairs(mw1:GetChildren()) do
7076
if v:IsA("Part") then
7077
v.Color = Color3.new(r/255,g/255,b/255)
7078
v.Material = "Neon"
7079
end
7080
end
7081
for i, v in pairs(mw2:GetChildren()) do
7082
if v:IsA("Part") then
7083
v.Color = Color3.new(r/255,g/255,b/255)
7084
v.Material = "Neon"
7085
end
7086
end
7087
end
7088
CameraManager()
7089
swait()
7090
lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
7091
lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
7092
lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
7093
lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
7094
lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
7095
lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
7096
7097
if attack == false and ActiveGia == false then
7098
torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
7099
larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
7100
rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
7101
llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
7102
rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
7103
hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
7104
elseif attack == false and ActiveGia == true then
7105
if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 4093 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
7106
torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
7107
larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
7108
rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
7109
llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
7110
rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
7111
hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
7112
elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
7113
torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
7114
larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
7115
rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
7116
llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
7117
rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
7118
hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
7119
end
7120
end
7121
7122
7123
rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
7124
rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
7125
rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
7126
rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
7127
rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
7128
rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
7129
  sine = sine + change
7130
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
7131
local velderp=RootPart.Velocity.y
7132
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
7133
if equipped==true or equipped==false then
7134
if attack==false then
7135
idle=idle+1
7136
else
7137
idle=0
7138
end
7139
if idle>=500 then
7140
if attack==false then
7141
--Sheath()
7142
end
7143
end
7144
if RootPart.Velocity.y > 1 and hitfloor==nil then 
7145
Anim="Jump"
7146
if attack==false then
7147
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
7148
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
7149
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
7150
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
7151
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
7152
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
7153
end
7154
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
7155
Anim="Fall"
7156
if attack==false then
7157
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
7158
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
7159
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
7160
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
7161
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
7162
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
7163
end
7164
elseif torvel<1 and hitfloor~=nil then
7165
Anim="Idle"
7166
if attack==false then
7167
if ModeOfGlitch == 1 or ModeOfGlitch == 2013 then
7168
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
7169
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
7170
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
7171
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
7172
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
7173
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
7174
7175
elseif ModeOfGlitch == 4093 then
7176
rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.8 + 0.2* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.08)
7177
tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08)
7178
RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08)
7179
LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.08)
7180
RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(135)), 0.08)
7181
LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
7182
7183
7184
elseif ModeOfGlitch == 2 then
7185
RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
7186
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
7187
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
7188
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7189
RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7190
LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7191
7192
elseif ModeOfGlitch == 666 then
7193
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
7194
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
7195
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
7196
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
7197
RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
7198
LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
7199
7200
elseif ModeOfGlitch == 6127843 then
7201
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
7202
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
7203
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
7204
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
7205
RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
7206
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
7207
7208
elseif ModeOfGlitch == 3 then
7209
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
7210
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
7211
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
7212
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
7213
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
7214
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
7215
7216
elseif ModeOfGlitch == 4 then
7217
RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
7218
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
7219
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
7220
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
7221
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
7222
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
7223
7224
elseif ModeOfGlitch == 5 then
7225
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
7226
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
7227
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
7228
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
7229
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
7230
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
7231
7232
elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
7233
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
7234
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
7235
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
7236
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
7237
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
7238
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
7239
7240
elseif ModeOfGlitch == 12345678987654321 then
7241
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
7242
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
7243
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
7244
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
7245
RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
7246
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
7247
end
7248
end
7249
elseif torvel>2 and torvel<50 and hitfloor~=nil then
7250
Anim="Walk"
7251
if attack==false then
7252
if ModeOfGlitch == 1 or ModeOfGlitch == 2013 then
7253
RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
7254
LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
7255
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
7256
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
7257
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
7258
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
7259
elseif ModeOfGlitch == 4093 then
7260
rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.8 + 0.2* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.08)
7261
tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 4.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.08)
7262
RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.3 - 0.1 * Cos(sine / 20)* Player_Size, -0.5* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.08)
7263
LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.08)
7264
RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(-43)), 0.08)
7265
LW.C0 = clerp(LW.C0, CF(-1 * Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-20), Rad(-.6), Rad(43)), 0.08)
7266
elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
7267
RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
7268
LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
7269
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
7270
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
7271
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
7272
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
7273
elseif ModeOfGlitch == 2 then
7274
RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/10))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1)
7275
LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/10))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1)
7276
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
7277
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7278
RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7279
LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7280
7281
elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
7282
RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
7283
LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
7284
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
7285
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
7286
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
7287
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
7288
end
7289
end
7290
elseif torvel>=22 and hitfloor~=nil then
7291
Anim="Run"
7292
if attack==false then
7293
if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 and ModeOfGlitch ~= 4093 then
7294
RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
7295
LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
7296
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
7297
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
7298
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
7299
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
7300
elseif ModeOfGlitch == 2 then
7301
RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
7302
LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
7303
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + .125 * math.cos(sine / 3))*angles(math.rad(25),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1)
7304
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7305
RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7306
LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1)
7307
elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 or ModeOfGlitch == 4093 then
7308
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
7309
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
7310
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
7311
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
7312
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
7313
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
7314
end
7315
end
7316
end
7317
end
7318
end