View difference between Paste ID: wtwB3vS4 and pcPEbLHa
SHOW: | | - or go back to the newest paste.
1-
local Player = game:GetService("Players").vo7777
1+
local Player = game:GetService("Players").Upscalegaming
2
local Mouse,mouse,UserInputService,ContextActionService
3
do
4
	script.Parent = Player.Character
5
	local CAS = {Actions={}}
6
	local Event = Instance.new("RemoteEvent")
7
	Event.Name = "UserInput_Event"
8
	Event.Parent = Player.Character
9
	local fakeEvent = function()
10
		local t = {_fakeEvent=true}
11
		t.Connect = function(self,f)self.Function=f end
12
		t.connect = t.Connect
13
		return t
14
	end
15
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
16
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
17
	function CAS:BindAction(name,fun,touch,...)
18
		CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
19
	end
20
	function CAS:UnbindAction(name)
21
		CAS.Actions[name] = nil
22
	end
23
	local function te(self,ev,...)
24
		local t = m[ev]
25
		if t and t._fakeEvent and t.Function then
26
			t.Function(...)
27
		end
28
	end
29
	m.TrigEvent = te
30
	UIS.TrigEvent = te
31
	Event.OnServerEvent:Connect(function(plr,io)
32
	    if plr~=Player then return end
33
		if io.isMouse then
34
			m.Target = io.Target
35
			m.Hit = io.Hit
36
		elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
37
	        if io.UserInputState == Enum.UserInputState.Begin then
38
				m:TrigEvent("Button1Down")
39
			else
40
				m:TrigEvent("Button1Up")
41
			end
42
		else
43
			for n,t in pairs(CAS.Actions) do
44
				for _,k in pairs(t.Keys) do
45
					if k==io.KeyCode then
46
						t.Function(t.Name,io.UserInputState,io)
47
					end
48
				end
49
			end
50
	        if io.UserInputState == Enum.UserInputState.Begin then
51
	            m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
52
				UIS:TrigEvent("InputBegan",io,false)
53
			else
54
				m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
55
				UIS:TrigEvent("InputEnded",io,false)
56
	        end
57
	    end
58
	end)
59
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
60
	end
61
62
wait(0.5)
63
64
warn([[SG AWAKEN Loaded.
65
The super switcher.
66
Velnorum is one of the first wielders.
67
68
Created, Reworked by NoobyGames12
69
]])
70
71
72
------------- ORIGINAL WIELDER OC: Velnorum
73
print([[Icons:
74
! = New
75
? = Spoilers
76
* = Exclusivity
77
C = Changes
78
79
]])
80
warn([[V 4.1 Update Log:
81
!C? - Mostly about 7-9 main modes added.
82
! - Non-canon [N] modes are added from few modes:
83
 > Mayhem: NANODEATH
84
 > Purity: SHD
85
 > Chaos: CRAZED
86
 > Divinity: FALLENX
87
 > Destiny: OMEGA
88
! - Added back CALAMITY and INFESTATION.
89
C - Two main click attacks changed.
90
!C - Moves are added back, with severe change and difference.]])
91
--- its obs smooth af do not touch 
92
---- Sources and functions might be taken from others
93-
plr = game:GetService("Players").kirbymaster34
93+
plr = game:GetService("Players").Upscalegaming
94
char = plr.Character
95
hum = char.Humanoid
96
local cam = game.Workspace.CurrentCamera
97
Camera = cam
98
local CamInterrupt = false
99
local TwoD = false
100
local TargetInfo = {nil, nil}
101
cam.CameraType = "Custom"
102
t = char.Torso
103
h = char.Head
104
ra = char["Right Arm"]
105
la = char["Left Arm"]
106
rl = char["Right Leg"]
107
ll = char["Left Leg"]
108
tors = char.Torso
109
lleg = char["Left Leg"]
110
root = char.HumanoidRootPart
111
hed = char.Head
112
rleg = char["Right Leg"]
113
rarm = char["Right Arm"]
114
larm = char["Left Arm"]
115
radian = math.rad
116
random = math.random
117
Vec3 = Vector3.new
118
Inst = Instance.new
119
cFrame = CFrame.new
120
Euler = CFrame.fromEulerAnglesXYZ
121
vt = Vector3.new
122
bc = BrickColor.new
123
br = BrickColor.random
124
it = Instance.new
125
cf = CFrame.new
126
127
local Booleans = {
128
  CamFollow = true,
129
  GyroUse = true
130
}
131
132
function lerp(object, newCFrame, alpha)
133
  return object:lerp(newCFrame, alpha)
134
end
135
136
local Directer = Inst("BodyGyro", root)
137
Directer.MaxTorque = Vec3(0, 0, 0)
138
Directer.P = 600000
139
local CPart = Inst("Part")
140
CPart.Anchored = true
141
CPart.CanCollide = false
142
CPart.Locked = true
143
CPart.Transparency = 1
144
145
local rainbowmode = false
146
local chaosmode = false
147
148
local kan = Instance.new("Sound",char)
149
kan.Volume = 1.25
150
kan.TimePosition = 0
151
kan.PlaybackSpeed = 1
152
kan.Pitch = 1
153
kan.SoundId = "rbxassetid://614032233"
154
kan.Name = "wrecked"
155
kan.Looped = true
156
kan:Play()
157
158
local currentThemePlaying = kan.SoundId
159
local currentPitch = kan.Pitch
160
local currentVol = kan.Volume
161
function newTheme(ID,timepos,pitch,vol)
162
local kanz = kan
163
--kanz:Stop()
164
kanz.Volume = vol
165
--kanz.TimePosition = timepos
166
kanz.PlaybackSpeed = pitch
167
kanz.Pitch = pitch
168
kanz.SoundId = ID
169
kanz.Name = "wrecked"
170
kanz.Looped = true
171
currentThemePlaying = kanz.SoundId
172
currentVol = kanz.Volume
173
currentPitch = kanz.Pitch
174
--kanz:Play()
175
--coroutine.resume(coroutine.create(function()
176
--wait(0.05)
177
--end))
178
end
179
180
181
function newThemeCust(ID,timepos,pitch,vol)
182
local kanz = kan
183
kanz:Stop()
184
kanz.Volume = vol
185
kanz.TimePosition = timepos
186
kanz.PlaybackSpeed = pitch
187
kanz.Pitch = pitch
188
kanz.SoundId = ID
189
kanz.Name = "wrecked"
190
kanz.Looped = true
191
currentThemePlaying = kanz.SoundId
192
currentVol = kanz.Volume
193
currentPitch = kanz.Pitch
194
kanz:Play()
195
coroutine.resume(coroutine.create(function()
196
wait(0.05)
197
end))
198
end
199
200
local mutedtog = false
201
202
function CameraEnshaking(Length,Intensity)
203
coroutine.resume(coroutine.create(function()
204
      local intensity = 1*Intensity
205
      local rotM = 0.01*Intensity
206
for i = 0, Length, 0.1 do
207
swait()
208
intensity = intensity - 0.05*Intensity/Length
209
rotM = rotM - 0.0005*Intensity/Length
210
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
211
      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)
212
end
213
Humanoid.CameraOffset = Vec3(0, 0, 0)
214
end))
215
end
216
CamShake=function(Part,Distan,Power,Times) 
217
local de=Part.Position
218
for i,v in pairs(workspace:children()) do
219
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
220
for _,c in pairs(v:children()) do
221
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
222
local Noob=v.Humanoid
223
if Noob~=nil then
224
coroutine.resume(coroutine.create(function()
225
FV = Instance.new("BoolValue", Noob)
226
FV.Name = "CameraShake"
227
for ShakeNum=1,Times do
228
swait()
229
local ef=Power
230
  if ef>=1 then
231
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
232
  else
233
   ef=Power*10
234
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
235
  end	
236
end
237
Humanoid.CameraOffset = Vector3.new(0,0,0)
238
FV:Destroy()
239
end))
240
CameraShake(Times, Power, Noob)
241
end
242
end
243
end
244
end
245
end
246
end
247
248
local toggleTag = true
249
local bilguit = Instance.new("BillboardGui", hed)
250
bilguit.Adornee = nil
251
bilguit.Name = "ModeName"
252
bilguit.Size = UDim2.new(4, 0, 1.2, 0)
253
bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
254
local modet = Instance.new("TextLabel", bilguit)
255
modet.Size = UDim2.new(10/2, 0, 7/2, 0)
256
modet.FontSize = "Size8"
257
modet.TextScaled = true
258
modet.TextTransparency = 0
259
modet.BackgroundTransparency = 1 
260
modet.TextTransparency = 0
261
modet.TextStrokeTransparency = 0
262
modet.Font = "Antique"
263
modet.TextStrokeColor3 = Color3.new(1,0,0)
264
modet.TextColor3 = Color3.new(0.25,0,0)
265
modet.Text = "MAYHEM"
266
267
268
function chatfunc(text,color,typet,font,timeex)
269
local chat = coroutine.wrap(function()
270
if Character:FindFirstChild("TalkingBillBoard")~= nil then
271
Character:FindFirstChild("TalkingBillBoard"):destroy()
272
end
273
local naeeym2 = Instance.new("BillboardGui",Character)
274
naeeym2.Size = UDim2.new(0,100,0,40)
275
naeeym2.StudsOffset = Vector3.new(0,3,0)
276
naeeym2.Adornee = Character.Head
277
naeeym2.Name = "TalkingBillBoard"
278
local tecks2 = Instance.new("TextLabel",naeeym2)
279
tecks2.BackgroundTransparency = 1
280
tecks2.BorderSizePixel = 0
281
tecks2.Text = ""
282
tecks2.Font = font
283
tecks2.TextSize = 30
284
tecks2.TextStrokeTransparency = 0
285
tecks2.TextColor3 = color
286
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
287
tecks2.Size = UDim2.new(1,0,0.5,0)
288
local tecks3 = Instance.new("TextLabel",naeeym2)
289
tecks3.BackgroundTransparency = 1
290
tecks3.BorderSizePixel = 0
291
tecks3.Text = ""
292
tecks3.Font = font
293
tecks3.TextSize = 30
294
tecks3.TextStrokeTransparency = 0
295
if typet == "Inverted" then
296
tecks3.TextColor3 = Color3.new(0,0,0)
297
tecks3.TextStrokeColor3 = color
298
elseif typet == "Normal" then
299
tecks3.TextColor3 = color
300
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
301
end
302
tecks3.Size = UDim2.new(1,0,0.5,0)
303
coroutine.resume(coroutine.create(function()
304
while true do
305
swait(1)
306
if chaosmode == true then
307
tecks2.TextColor3 = BrickColor.random().Color
308
tecks3.TextStrokeColor3 = BrickColor.random().Color
309
end
310
end
311
end))
312
modet.TextTransparency = modet.TextTransparency  + 1
313
modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
314
for i = 0, 74*timeex do
315
swait()
316
modet.TextTransparency = 1
317
modet.TextStrokeTransparency = 1
318
tecks2.Text = text
319
tecks3.Text = text
320
end
321
local randomrot = math.random(1,2)
322
if randomrot == 1 then
323
for i = 1, 50 do
324
swait()
325
tecks2.Text = text
326
tecks3.Text = text
327
modet.TextTransparency = modet.TextTransparency - .02
328
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
329
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
330
tecks2.TextTransparency = tecks2.TextTransparency + .04
331
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
332
tecks3.TextTransparency = tecks2.TextTransparency + .04
333
end
334
elseif randomrot == 2 then
335
	for i = 1, 50 do
336
swait()
337
tecks2.Text = text
338
tecks3.Text = text
339
modet.TextTransparency = modet.TextTransparency - .02
340
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
341
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
342
tecks2.TextTransparency = tecks2.TextTransparency + .04
343
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
344
tecks3.TextTransparency = tecks2.TextTransparency + .04
345
end
346
end
347
modet.TextTransparency = 0
348
modet.TextStrokeTransparency = 0
349
if toggleTag == false then
350
modet.TextTransparency = 1
351
modet.TextStrokeTransparency = 1
352
end
353
naeeym2:Destroy()
354
end)
355
chat()
356
end
357
358
function bosschatfunc(text,color,watval)
359
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
360
coroutine.resume(coroutine.create(function()
361
if v.PlayerGui:FindFirstChild("Dialog")~= nil then
362
v.PlayerGui:FindFirstChild("Dialog"):destroy()
363
end
364
local scrg = Instance.new("ScreenGui",v.PlayerGui)
365
CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
366
scrg.Name = "Dialog"
367
local txtlb = Instance.new("TextLabel",scrg)
368
txtlb.Text = ""
369
txtlb.Font = "Bodoni"
370
txtlb.TextColor3 = Color3.new(0,0,0)
371
txtlb.TextStrokeTransparency = 0
372
txtlb.BackgroundTransparency = 0.75
373
txtlb.BackgroundColor3 = Color3.new(0,0,0)
374
txtlb.TextStrokeColor3 = color
375
txtlb.TextScaled = true
376
txtlb.Size = UDim2.new(1,0,0.25,0)
377
txtlb.TextXAlignment = "Left"
378
txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
379
local txtlb2 = Instance.new("TextLabel",scrg)
380
txtlb2.Text = "???:"
381
txtlb2.Font = "Arcade"
382
txtlb2.TextColor3 = Color3.new(0,0,0)
383
txtlb2.TextStrokeTransparency = 0
384
txtlb2.BackgroundTransparency = 1
385
txtlb2.TextStrokeColor3 = color
386
txtlb2.TextSize = 40
387
txtlb2.Size = UDim2.new(1,0,0.25,0)
388
txtlb2.TextXAlignment = "Left"
389
txtlb2.Position = UDim2.new(0,0,1,0)
390
local fvalen = 0.55
391
local fval = -0.49
392
coroutine.resume(coroutine.create(function()
393
while true do
394
swait()
395
if chaosmode == true then
396
txtlb.Rotation = math.random(-1,1)
397
txtlb2.Rotation = math.random(-1,1)
398
txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
399
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
400
txtlb.TextStrokeColor3 = BrickColor.random().Color
401
txtlb2.TextStrokeColor3 = BrickColor.random().Color
402
end
403
end
404
end))
405
coroutine.resume(coroutine.create(function()
406
while true do
407
swait()
408
if scrg.Parent ~= nil then
409
	fvalen = fvalen - 0.0001
410
elseif scrg.Parent == nil then
411
break
412
end
413
end
414
end))
415
local flol = 1.75
416
local flil = 1.6
417
coroutine.resume(coroutine.create(function()
418
	for i = 0, 9 do
419
		swait()
420
		fval = fval + 0.05
421
		flol = flol - 0.1
422
		flil = flil - 0.1
423
		txtlb.Text = ""
424
		txtlb.Position = UDim2.new(0,0,flol,0)
425
		txtlb2.Position = UDim2.new(0,0,flil,0)
426
	end
427
	txtlb.Text = text
428
wait(watval)
429
local valinc = 0
430
for i = 0, 99 do
431
swait()
432
valinc = valinc + 0.0001
433
flol = flol + valinc
434
flil = flil + valinc
435
txtlb.Rotation = txtlb.Rotation + valinc*20
436
txtlb2.Rotation = txtlb2.Rotation - valinc*50
437
txtlb.Position = UDim2.new(0,0,flol,0)
438
txtlb2.Position = UDim2.new(0,0,flil,0)
439
txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
440
txtlb.TextTransparency = txtlb.TextTransparency + 0.01
441
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
442
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
443
txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
444
end
445
scrg:Destroy()
446
end))
447
end))
448
end
449
end
450
451
452
local Create = LoadLibrary("RbxUtility").Create
453
454
CFuncs = {	
455
	["Part"] = {
456
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
457
			local Part = Create("Part"){
458
				Parent = Parent,
459
				Reflectance = Reflectance,
460
				Transparency = Transparency,
461
				CanCollide = false,
462
				Locked = true,
463
				BrickColor = BrickColor.new(tostring(BColor)),
464
				Name = Name,
465
				Size = Size,
466
				Material = Material,
467
			}
468
			RemoveOutlines(Part)
469
			return Part
470
		end;
471
	};
472
	
473
	["Mesh"] = {
474
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
475
			local Msh = Create(Mesh){
476
				Parent = Part,
477
				Offset = OffSet,
478
				Scale = Scale,
479
			}
480
			if Mesh == "SpecialMesh" then
481
				Msh.MeshType = MeshType
482
				Msh.MeshId = MeshId
483
			end
484
			return Msh
485
		end;
486
	};
487
	
488
	["Mesh"] = {
489
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
490
			local Msh = Create(Mesh){
491
				Parent = Part,
492
				Offset = OffSet,
493
				Scale = Scale,
494
			}
495
			if Mesh == "SpecialMesh" then
496
				Msh.MeshType = MeshType
497
				Msh.MeshId = MeshId
498
			end
499
			return Msh
500
		end;
501
	};
502
	
503
	["Weld"] = {
504
		Create = function(Parent, Part0, Part1, C0, C1)
505
			local Weld = Create("Weld"){
506
				Parent = Parent,
507
				Part0 = Part0,
508
				Part1 = Part1,
509
				C0 = C0,
510
				C1 = C1,
511
			}
512
			return Weld
513
		end;
514
	};
515
516
	["Sound"] = {
517
		Create = function(id, par, vol, pit) 
518
			coroutine.resume(coroutine.create(function()
519
				local S = Create("Sound"){
520
					Volume = vol,
521
                                        Name = "EffectSoundo",
522
					Pitch = pit or 1,
523
					SoundId = id,
524
					Parent = par or workspace,
525
				}
526
				wait() 
527
				S:play() 
528
				game:GetService("Debris"):AddItem(S, 10)
529
			end))
530
		end;
531
	};
532
533
	["TimeSound"] = {
534
		Create = function(id, par, vol, pit, timepos) 
535
			coroutine.resume(coroutine.create(function()
536
				local S = Create("Sound"){
537
					Volume = vol,
538
                                        Name = "EffectSoundo",
539
					Pitch = pit or 1,
540
					SoundId = id,
541
                                        TimePosition = timepos,
542
					Parent = par or workspace,
543
				}
544
				wait() 
545
				S:play() 
546
				game:GetService("Debris"):AddItem(S, 10)
547
			end))
548
		end;
549
	};
550
		["EchoSound"] = {
551
		Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) 
552
			coroutine.resume(coroutine.create(function()
553
				local Sas = Create("Sound"){
554
					Volume = vol,
555
                    Name = "EffectSoundo",
556
					Pitch = pit or 1,
557
					SoundId = id,
558
                    TimePosition = timepos,
559
					Parent = par or workspace,
560
				}
561
				local E = Create("EchoSoundEffect"){
562
					Delay = echodelay,
563
                    Name = "Echo",
564
					Feedback = fedb,
565
                    DryLevel = dryl,
566
					Parent = Sas,
567
				}
568
				wait() 
569
				Sas:play() 
570
				game:GetService("Debris"):AddItem(Sas, delays)
571
			end))
572
		end;
573
	};
574
575
["LongSound"] = {
576
		Create = function(id, par, vol, pit) 
577
			coroutine.resume(coroutine.create(function()
578
				local S = Create("Sound"){
579
					Volume = vol,
580
					Pitch = pit or 1,
581
					SoundId = id,
582
					Parent = par or workspace,
583
				}
584
				wait() 
585
				S:play() 
586
				game:GetService("Debris"):AddItem(S, 60)
587
			end))
588
		end;
589
	};
590
	
591
	["ParticleEmitter"] = {
592
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
593
			local fp = Create("ParticleEmitter"){
594
				Parent = Parent,
595
				Color = ColorSequence.new(Color1, Color2),
596
				LightEmission = LightEmission,
597
				Size = Size,
598
				Texture = Texture,
599
				Transparency = Transparency,
600
				ZOffset = ZOffset,
601
				Acceleration = Accel,
602
				Drag = Drag,
603
				LockedToPart = LockedToPart,
604
				VelocityInheritance = VelocityInheritance,
605
				EmissionDirection = EmissionDirection,
606
				Enabled = Enabled,
607
				Lifetime = LifeTime,
608
				Rate = Rate,
609
				Rotation = Rotation,
610
				RotSpeed = RotSpeed,
611
				Speed = Speed,
612
				VelocitySpread = VelocitySpread,
613
			}
614
			return fp
615
		end;
616
	};
617
618
	CreateTemplate = {
619
	
620
	};
621
}
622
623
624
625
New = function(Object, Parent, Name, Data)
626
	local Object = Instance.new(Object)
627
	for Index, Value in pairs(Data or {}) do
628
		Object[Index] = Value
629
	end
630
	Object.Parent = Parent
631
	Object.Name = Name
632
	return Object
633
end
634
local halocolor = BrickColor.new("Pastel light blue")
635
local halocolor2 = BrickColor.new("Cool yellow")
636
local starcolor = BrickColor.new("Bright yellow")
637
local lunacolor = BrickColor.new("Navy blue")
638
local lunacolor2 = BrickColor.new("Bright blue")
639
local wepcolor = BrickColor.new("Really black")
640
local maincolor = BrickColor.new("Really black")
641
local m = Instance.new("Model",char)
642
local m2 = Instance.new("Model",char)
643
local m3 = Instance.new("Model",char)
644
local mw1 = Instance.new("Model",char)
645
local mw2 = Instance.new("Model",char)
646
647
648
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
649
  local gui = it(GuiType)
650
  gui.Parent = parent
651
  gui.Text = text
652
  gui.BackgroundTransparency = backtrans
653
  gui.BackgroundColor3 = backcol
654
  gui.SizeConstraint = "RelativeXY"
655
  gui.TextXAlignment = "Center"
656
  gui.TextYAlignment = "Center"
657
  gui.Position = pos
658
  gui.Size = size
659
  gui.Font = "SourceSans"
660
  gui.FontSize = "Size14"
661
  gui.TextWrapped = false
662
  gui.TextStrokeTransparency = 0
663
  gui.TextColor = BrickColor.new("White")
664
  return gui
665
end
666
--------------------------- GUI STUFF
667
local basgui = it("GuiMain")
668
basgui.Parent = plr.PlayerGui
669
basgui.Name = "VISgui"
670
local fullscreenz = it("Frame")
671
fullscreenz.Parent = basgui
672
fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
673
fullscreenz.BackgroundTransparency = 1
674
fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
675
fullscreenz.Size = UDim2.new(1, 0, 1, 0)
676
fullscreenz.Position = UDim2.new(0, 0, 0, 0)
677
local imgl2 = Instance.new("ImageLabel",fullscreenz)
678
imgl2.BackgroundTransparency = 1
679
imgl2.BorderSizePixel = 0
680
imgl2.ImageTransparency = 0.5
681
imgl2.ImageColor3 = Color3.new(1,0,0)
682
imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
683
imgl2.Size = UDim2.new(0,1000,0,1000)
684
imgl2.Image = "rbxassetid://2325939897"
685
local techc = imgl2:Clone()
686
techc.Parent = fullscreenz
687
techc.ImageTransparency = 0
688
techc.Size = UDim2.new(0,900,0,900)
689
techc.Position = UDim2.new(0.75,-150,0.55,-150)
690
techc.ImageColor3 = Color3.new(1,0,0)
691
techc.Image = "rbxassetid://2273224484"
692
local circl = imgl2:Clone()
693
circl.Parent = fullscreenz
694
circl.ImageTransparency = 0
695
circl.Size = UDim2.new(0,550,0,550)
696
circl.Position = UDim2.new(0.75,25,0.55,25)
697
circl.ImageColor3 = Color3.new(0,0,0)
698
circl.Image = "rbxassetid://2312119891"
699
local circl2 = imgl2:Clone()
700
circl2.Parent = fullscreenz
701
circl2.ImageTransparency = 0
702
circl2.Size = UDim2.new(0,700,0,700)
703
circl2.Position = UDim2.new(0.75,-50,0.55,-50)
704
circl2.ImageColor3 = Color3.new(1,0,0)
705
circl2.Image = "rbxassetid://2312119891"
706
local imgl2b = imgl2:Clone()
707
imgl2b.Parent = fullscreenz
708
imgl2b.ImageTransparency = 0
709
imgl2b.Size = UDim2.new(0,800,0,800)
710
imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
711
imgl2b.ImageColor3 = Color3.new(0,0,0)
712
local ned = Instance.new("TextLabel",fullscreenz)
713
ned.ZIndex = 2
714
ned.Font = "Arcade"
715
ned.BackgroundTransparency = 1
716
ned.BorderSizePixel = 0.65
717
ned.Size = UDim2.new(0.3,0,0.2,0)
718
ned.Position = UDim2.new(0.7,0,0.8,0)
719
ned.TextColor3 = BrickColor.new("Really red").Color
720
ned.TextStrokeColor3 = BrickColor.new("Really black").Color
721
ned.TextScaled = true
722
ned.TextStrokeTransparency = 0
723
ned.Text = "MAYHEM"
724
ned.TextSize = 24
725
ned.Rotation = 1
726
ned.TextXAlignment = "Right"
727
ned.TextYAlignment = "Bottom"
728
729
local extrawingmod1 = Instance.new("Model",char)
730
local extrawingmod2 = Instance.new("Model",char)
731
732
function CreateParta(parent,transparency,reflectance,material,brickcolor)
733
local p = Instance.new("Part")
734
p.TopSurface = 0
735
p.BottomSurface = 0
736
p.Parent = parent
737
p.Size = Vector3.new(0.1,0.1,0.1)
738
p.Transparency = transparency
739
p.Reflectance = reflectance
740
p.CanCollide = false
741
p.Locked = true
742
p.BrickColor = brickcolor
743
p.Material = material
744
return p
745
end
746
747
function CreateMesh(parent,meshtype,x1,y1,z1)
748
local mesh = Instance.new("SpecialMesh",parent)
749
mesh.MeshType = meshtype
750
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
751
return mesh
752
end
753
754
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
755
local mesh = Instance.new("SpecialMesh",parent)
756
mesh.MeshType = "FileMesh"
757
mesh.MeshId = meshid
758
mesh.Scale = Vector3.new(x1,y1,z1)
759
return mesh
760
end
761
762
763
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
764
local mesh = Instance.new("SpecialMesh",parent)
765
mesh.MeshType = "FileMesh"
766
mesh.MeshId = meshid
767
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
768
mesh.Scale = Vector3.new(x1,y1,z1)
769
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
770
return mesh
771
end
772
773
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
774
local weld = Instance.new("Weld")
775
weld.Parent = parent
776
weld.Part0 = part0
777
weld.Part1 = part1
778
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
779
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
780
return weld
781
end
782
783
784
--------------
785
--------------
786
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
787
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))
788
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
789
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))
790
791
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
792
CreateMesh(handle,"Brick",0,0,0)
793
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))
794
local valuaring = 10
795
for i = 0, 49 do
796
	valuaring = valuaring + 10
797
rn = CreateParta(mw2,0,0,"Neon",halocolor)
798
CreateMesh(rn,"Brick",0.25,0.1,0.1)
799
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))
800
end
801
802
handlex = CreateParta(mw2,1,1,"Neon",maincolor)
803
CreateMesh(handle,"Brick",0,0,0)
804
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))
805
local valuaring = 10
806
for i = 0, 49 do
807
	valuaring = valuaring + 10
808
rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
809
CreateMesh(rn,"Brick",0.5,0.2,0.2)
810
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))
811
end
812
813
814
local handle = CreateParta(m,1,1,"Neon",maincolor)
815
CreateMesh(handle,"Brick",0.5,0.5,0.5)
816
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))
817
818
--- Left wing.
819
820
local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
821
CreateMesh(handle,"Brick",0.5,0.5,0.5)
822
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))
823
824
wed = CreateParta(mw1,0,0,"Neon",halocolor)
825
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
826
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))
827
wed = CreateParta(mw1,0,0,"Neon",halocolor)
828
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
829
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))
830
A0 = Instance.new('Attachment',wed)
831
A0.Position = vt(0,0.25,0.25)
832
wed = CreateParta(mw1,0,0,"Neon",halocolor)
833
CreateMesh(wed,"Wedge",0.05,0.5,3)
834
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))
835
A1 = Instance.new('Attachment',wed)
836
A1.Position = vt(0,-0.25,-2)
837
wed = CreateParta(mw1,0,0,"Neon",halocolor)
838
CreateMesh(wed,"Wedge",0.05,3,0.5)
839
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))
840
841
tl1 = Instance.new('Trail',wed)
842
tl1.Attachment0 = A1
843
tl1.Attachment1 = A0
844
tl1.Texture = "rbxassetid://2108945559"
845
tl1.LightEmission = 1
846
tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
847
tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
848
tl1.Lifetime = 0.6
849
850
851
local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
852
CreateMesh(handle,"Brick",0.5,0.5,0.5)
853
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))
854
855
wed = CreateParta(mw1,0,0,"Neon",halocolor)
856
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
857
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))
858
wed = CreateParta(mw1,0,0,"Neon",halocolor)
859
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
860
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))
861
A0 = Instance.new('Attachment',wed)
862
A0.Position = vt(0,0.25,0.25)
863
wed = CreateParta(mw1,0,0,"Neon",halocolor)
864
CreateMesh(wed,"Wedge",0.05,0.5,3)
865
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))
866
A1 = Instance.new('Attachment',wed)
867
A1.Position = vt(0,-0.25,-2)
868
wed = CreateParta(mw1,0,0,"Neon",halocolor)
869
CreateMesh(wed,"Wedge",0.05,3,0.5)
870
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))
871
872
tl2 = Instance.new('Trail',wed)
873
tl2.Attachment0 = A1
874
tl2.Attachment1 = A0
875
tl2.Texture = "rbxassetid://2108945559"
876
tl2.LightEmission = 1
877
tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
878
tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
879
tl2.Lifetime = 0.6
880
881
local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
882
CreateMesh(handle,"Brick",0.5,0.5,0.5)
883
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))
884
885
wed = CreateParta(mw1,0,0,"Neon",halocolor)
886
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
887
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))
888
wed = CreateParta(mw1,0,0,"Neon",halocolor)
889
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
890
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))
891
A0 = Instance.new('Attachment',wed)
892
A0.Position = vt(0,0.25,0.25)
893
wed = CreateParta(mw1,0,0,"Neon",halocolor)
894
CreateMesh(wed,"Wedge",0.05,0.5,3)
895
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))
896
A1 = Instance.new('Attachment',wed)
897
A1.Position = vt(0,-0.25,-2)
898
wed = CreateParta(mw1,0,0,"Neon",halocolor)
899
CreateMesh(wed,"Wedge",0.05,3,0.5)
900
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))
901
902
tl3 = Instance.new('Trail',wed)
903
tl3.Attachment0 = A1
904
tl3.Attachment1 = A0
905
tl3.Texture = "rbxassetid://2108945559"
906
tl3.LightEmission = 1
907
tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
908
tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
909
tl3.Lifetime = 0.6
910
911
tl1.Enabled = false
912
tl2.Enabled = false
913
tl3.Enabled = false
914
local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
915
CreateMesh(handle,"Brick",0.5,0.5,0.5)
916
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))
917
918
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
919
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
920
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))
921
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
922
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
923
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))
924
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
925
CreateMesh(wed,"Wedge",0.05,0.5,3)
926
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))
927
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
928
CreateMesh(wed,"Wedge",0.05,3,0.5)
929
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))
930
931
local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
932
CreateMesh(handle,"Brick",0.5,0.5,0.5)
933
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))
934
935
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
936
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
937
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))
938
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
939
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
940
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))
941
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
942
CreateMesh(wed,"Wedge",0.05,0.5,3)
943
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))
944
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
945
CreateMesh(wed,"Wedge",0.05,3,0.5)
946
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))
947
948
local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
949
CreateMesh(handle,"Brick",0.5,0.5,0.5)
950
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))
951
952
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
953
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
954
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))
955
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
956
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
957
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))
958
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
959
CreateMesh(wed,"Wedge",0.05,0.5,3)
960
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))
961
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
962
CreateMesh(wed,"Wedge",0.05,3,0.5)
963
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))
964
965
-- Right wing.
966
967
local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
968
CreateMesh(handle,"Brick",0.5,0.5,0.5)
969
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))
970
971
wed = CreateParta(mw2,0,0,"Neon",halocolor)
972
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
973
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))
974
A0 = Instance.new('Attachment',wed)
975
A0.Position = vt(0,0.25,0.25)
976
wed = CreateParta(mw2,0,0,"Neon",halocolor)
977
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
978
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))
979
wed = CreateParta(mw2,0,0,"Neon",halocolor)
980
CreateMesh(wed,"Wedge",0.05,0.5,3)
981
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))
982
wed = CreateParta(mw2,0,0,"Neon",halocolor)
983
CreateMesh(wed,"Wedge",0.05,3,0.5)
984
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))
985
A1 = Instance.new('Attachment',wed)
986
A1.Position = vt(0,2,0.25)
987
988
tr1 = Instance.new('Trail',wed)
989
tr1.Attachment0 = A1
990
tr1.Attachment1 = A0
991
tr1.Texture = "rbxassetid://2108945559"
992
tr1.LightEmission = 1
993
tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
994
tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
995
tr1.Lifetime = 0.6
996
997
local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
998
CreateMesh(handle,"Brick",0.5,0.5,0.5)
999
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))
1000
1001
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1002
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1003
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))
1004
A0 = Instance.new('Attachment',wed)
1005
A0.Position = vt(0,0.25,0.25)
1006
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1007
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1008
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))
1009
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1010
CreateMesh(wed,"Wedge",0.05,0.5,3)
1011
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))
1012
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1013
CreateMesh(wed,"Wedge",0.05,3,0.5)
1014
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))
1015
A1 = Instance.new('Attachment',wed)
1016
A1.Position = vt(0,2,0.25)
1017
1018
tr2 = Instance.new('Trail',wed)
1019
tr2.Attachment0 = A1
1020
tr2.Attachment1 = A0
1021
tr2.Texture = "rbxassetid://2108945559"
1022
tr2.LightEmission = 1
1023
tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1024
tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1025
tr2.Lifetime = 0.6
1026
1027
local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
1028
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1029
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))
1030
1031
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1032
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1033
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))
1034
A0 = Instance.new('Attachment',wed)
1035
A0.Position = vt(0,0.25,0.25)
1036
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1037
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1038
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))
1039
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1040
CreateMesh(wed,"Wedge",0.05,0.5,3)
1041
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))
1042
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1043
CreateMesh(wed,"Wedge",0.05,3,0.5)
1044
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))
1045
A1 = Instance.new('Attachment',wed)
1046
A1.Position = vt(0,2,0.25)
1047
1048
tr3 = Instance.new('Trail',wed)
1049
tr3.Attachment0 = A1
1050
tr3.Attachment1 = A0
1051
tr3.Texture = "rbxassetid://2108945559"
1052
tr3.LightEmission = 1
1053
tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1054
tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1055
tr3.Lifetime = 0.6
1056
1057
1058
local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
1059
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1060
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))
1061
1062
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1063
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1064
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))
1065
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1066
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1067
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))
1068
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1069
CreateMesh(wed,"Wedge",0.05,0.5,3)
1070
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))
1071
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1072
CreateMesh(wed,"Wedge",0.05,3,0.5)
1073
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))
1074
1075
local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
1076
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1077
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))
1078
1079
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1080
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1081
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))
1082
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1083
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1084
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))
1085
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1086
CreateMesh(wed,"Wedge",0.05,0.5,3)
1087
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))
1088
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1089
CreateMesh(wed,"Wedge",0.05,3,0.5)
1090
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))
1091
1092
local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
1093
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1094
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))
1095
1096
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1097
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1098
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))
1099
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1100
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1101
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))
1102
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1103
CreateMesh(wed,"Wedge",0.05,0.5,3)
1104
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))
1105
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1106
CreateMesh(wed,"Wedge",0.05,3,0.5)
1107
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))
1108
1109
---- HERES THE RING
1110
1111
1112
--[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1113
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1114
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))
1115
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1116
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1117
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))
1118
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1119
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1120
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))
1121
1122
1123
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1124
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1125
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))
1126
1127
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1128
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1129
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))
1130
1131
1132
1133
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1134
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1135
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))
1136
1137
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1138
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1139
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))
1140
1141
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1142
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1143
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))
1144
1145
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1146
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1147
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))
1148
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1149
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1150
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))
1151
1152
--- second ring
1153
1154
ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1155
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1156
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))
1157
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1158
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1159
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))
1160
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1161
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1162
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))
1163
1164
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1165
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1166
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))
1167
1168
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1169
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1170
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))
1171
1172
1173
1174
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1175
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1176
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))
1177
1178
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1179
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1180
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))
1181
1182
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1183
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1184
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))
1185
1186
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1187
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1188
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))
1189
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1190
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1191
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))]]--
1192
1193
1194
1195
for i, v in pairs(m:GetChildren()) do
1196
if v:IsA("Part") then
1197
v.BrickColor = BrickColor.new("Really black")
1198
v.Material = "Glass"
1199
end
1200
end
1201
for i, v in pairs(m2:GetChildren()) do
1202
if v:IsA("Part") then
1203
v.BrickColor = BrickColor.new("Crimson")
1204
v.Material = "Granite"
1205
end
1206
end
1207
for i, v in pairs(m3:GetChildren()) do
1208
if v:IsA("Part") then
1209
v.BrickColor = BrickColor.new("Really red")
1210
v.Material = "Neon"
1211
end
1212
end
1213
for i, v in pairs(mw2:GetChildren()) do
1214
if v:IsA("Part") then
1215
v.BrickColor = BrickColor.new("Really red")
1216
v.Material = "Neon"
1217
end
1218
end
1219
for i, v in pairs(mw1:GetChildren()) do
1220
if v:IsA("Part") then
1221
v.Transparency = 1
1222
v.BrickColor = BrickColor.new("Really red")
1223
v.Material = "Neon"
1224
end
1225
end
1226
for i, v in pairs(extrawingmod1:GetChildren()) do
1227
if v:IsA("Part") then
1228
v.Transparency = 1
1229
v.BrickColor = BrickColor.new("White")
1230
v.Material = "Neon"
1231
end
1232
end
1233
for i, v in pairs(extrawingmod2:GetChildren()) do
1234
if v:IsA("Part") then
1235
v.Transparency = 1
1236
v.BrickColor = BrickColor.new("White")
1237
v.Material = "Neon"
1238
end
1239
end
1240
local MAINRUINCOLOR = BrickColor.new("Really red")
1241
------
1242
1243
1244
function RemoveOutlines(part)
1245
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1246
end
1247
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1248
  local Part = Create("Part")({
1249
    Parent = Parent,
1250
    Reflectance = Reflectance,
1251
    Transparency = Transparency,
1252
    CanCollide = false,
1253
    Locked = true,
1254
    BrickColor = BrickColor.new(tostring(BColor)),
1255
    Name = Name,
1256
    Size = Size,
1257
    Material = Material
1258
  })
1259
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1260
  RemoveOutlines(Part)
1261
  return Part
1262
end
1263
function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1264
  local Msh = Create(Mesh)({
1265
    Parent = Part,
1266
    Offset = OffSet,
1267
    Scale = Scale
1268
  })
1269
  if Mesh == "SpecialMesh" then
1270
    Msh.MeshType = MeshType
1271
    Msh.MeshId = MeshId
1272
  end
1273
  return Msh
1274
end
1275
function CreateWeld(Parent, Part0, Part1, C0, C1)
1276
  local Weld = Create("Weld")({
1277
    Parent = Parent,
1278
    Part0 = Part0,
1279
    Part1 = Part1,
1280
    C0 = C0,
1281
    C1 = C1
1282
  })
1283
  return Weld
1284
end
1285
1286
Character=Player.Character 
1287
PlayerGui=Player.PlayerGui 
1288
Backpack=Player.Backpack 
1289
Torso=Character.Torso 
1290
Head=Character.Head 
1291
Humanoid=Character.Humanoid
1292
m=Instance.new('Model',Character)
1293
LeftArm=Character["Left Arm"] 
1294
LeftLeg=Character["Left Leg"] 
1295
RightArm=Character["Right Arm"] 
1296
RightLeg=Character["Right Leg"] 
1297
LS=Torso["Left Shoulder"] 
1298
LH=Torso["Left Hip"] 
1299
RS=Torso["Right Shoulder"] 
1300
RH=Torso["Right Hip"] 
1301
Face = Head.face
1302
Neck=Torso.Neck
1303
it=Instance.new
1304
attacktype=1
1305
vt=Vector3.new
1306
cf=CFrame.new
1307
euler=CFrame.fromEulerAnglesXYZ
1308
angles=CFrame.Angles
1309
cloaked=false
1310
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1311
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1312
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1313
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1314
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1315
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1316
RootPart=Character.HumanoidRootPart
1317
RootJoint=RootPart.RootJoint
1318
RootCF=euler(-1.57,0,3.14)
1319
attack = false 
1320
attackdebounce = false 
1321
deb=false
1322
equipped=true
1323
hand=false
1324
combo=0
1325
mana=0
1326
trispeed=.2
1327
attackmode='none'
1328
local idle=0
1329
local Anim="Idle"
1330
local Effects={}
1331
local gun=false
1332
local shoot=false
1333
local sine = 0
1334
local change = 1
1335
1336
function RecolorTextAndRename(name,col1,col2,font)
1337
modet.TextStrokeColor3 = col2
1338
modet.TextColor3 = col1
1339
modet.Font = font
1340
modet.Text = name
1341
techc.ImageColor3 = col2
1342
circl.ImageColor3 = col2
1343
circl2.ImageColor3 = col1
1344
imgl2.ImageColor3 = col1
1345
imgl2b.ImageColor3 = col2
1346
ned.Text = name
1347
ned.TextColor3 = col1
1348
ned.TextStrokeColor3 = col2
1349
end
1350
--save shoulders 
1351
RSH, LSH=nil, nil 
1352
--welds 
1353
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1354
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1355
LH=Torso["Left Hip"]
1356
RH=Torso["Right Hip"]
1357
TorsoColor=Torso.BrickColor
1358
function NoOutline(Part)
1359
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1360
end
1361
ch=Character
1362
RSH=ch.Torso["Right Shoulder"] 
1363
LSH=ch.Torso["Left Shoulder"] 
1364
-- 
1365
RSH.Parent=nil 
1366
LSH.Parent=nil 
1367
-- 
1368
RW.Name="Right Shoulder"
1369
RW.Part0=ch.Torso 
1370
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1371
RW.C1=cf(0, 0.5, 0) 
1372
RW.Part1=ch["Right Arm"] 
1373
RW.Parent=ch.Torso 
1374
-- 
1375
LW.Name="Left Shoulder"
1376
LW.Part0=ch.Torso 
1377
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1378
LW.C1=cf(0, 0.5, 0) 
1379
LW.Part1=ch["Left Arm"] 
1380
LW.Parent=ch.Torso 
1381
1382
local Stats=Instance.new("BoolValue")
1383
Stats.Name="Stats"
1384
Stats.Parent=Character
1385
local Atk=Instance.new("NumberValue")
1386
Atk.Name="Damage"
1387
Atk.Parent=Stats
1388
Atk.Value=1
1389
local Def=Instance.new("NumberValue")
1390
Def.Name="Defense"
1391
Def.Parent=Stats
1392
Def.Value=1
1393
local Speed=Instance.new("NumberValue")
1394
Speed.Name="Speed"
1395
Speed.Parent=Stats
1396
Speed.Value=1
1397
local Mvmt=Instance.new("NumberValue")
1398
Mvmt.Name="Movement"
1399
Mvmt.Parent=Stats
1400
Mvmt.Value=1
1401
1402
local donum=0
1403
 
1404
1405
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1406
local fp=it("Part")
1407
fp.formFactor=formfactor 
1408
fp.Parent=parent
1409
fp.Reflectance=reflectance
1410
fp.Transparency=transparency
1411
fp.CanCollide=false 
1412
fp.Locked=true
1413
fp.BrickColor=brickcolor
1414
fp.Name=name
1415
fp.Size=size
1416
fp.Position=Torso.Position 
1417
NoOutline(fp)
1418
fp.Material="SmoothPlastic"
1419
fp:BreakJoints()
1420
return fp 
1421
end 
1422
 
1423
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1424
local mesh=it(Mesh) 
1425
mesh.Parent=part
1426
if Mesh=="SpecialMesh" then
1427
mesh.MeshType=meshtype
1428
if meshid~="nil" then
1429
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1430
end
1431
end
1432
mesh.Offset=offset
1433
mesh.Scale=scale
1434
return mesh
1435
end
1436
 
1437
function weld(parent,part0,part1,c0)
1438
local weld=it("Weld") 
1439
weld.Parent=parent
1440
weld.Part0=part0 
1441
weld.Part1=part1 
1442
weld.C0=c0
1443
return weld
1444
end
1445
 
1446
local Color1=Torso.BrickColor
1447
1448
local bodvel=Instance.new("BodyVelocity")
1449
local bg=Instance.new("BodyGyro")
1450
1451
--------- SazEreno's Artificial HB --------------
1452
ArtificialHB = Instance.new("BindableEvent", script)
1453
ArtificialHB.Name = "ArtificialHB"
1454
1455
script:WaitForChild("ArtificialHB")
1456
Frame_Speed = 1 / 60
1457
frame = Frame_Speed
1458
tf = 0
1459
allowframeloss = false
1460
tossremainder = false
1461
lastframe = tick()
1462
script.ArtificialHB:Fire()
1463
1464
game:GetService("RunService").Heartbeat:connect(function(s, p)
1465
	tf = tf + s
1466
	if tf >= frame then
1467
		if allowframeloss then
1468
			script.ArtificialHB:Fire()
1469
			lastframe = tick()
1470
		else
1471
			for i = 1, math.floor(tf / frame) do
1472
				script.ArtificialHB:Fire()
1473
			end
1474
		lastframe = tick()
1475
		end
1476
		if tossremainder then
1477
			tf = 0
1478
		else
1479
			tf = tf - frame * math.floor(tf / frame)
1480
		end
1481
	end
1482
end)
1483
1484
------------------
1485
function swait(num)
1486
if num == 0 or num == nil then
1487
		ArtificialHB.Event:wait()
1488
	else
1489
		for i = 1, num do
1490
			ArtificialHB.Event:wait()
1491
		end
1492
	end
1493
end
1494
-------- RAINBOW LEAVE IT TO ME
1495
local r = 255
1496
local g = 0
1497
local b = 0
1498
coroutine.resume(coroutine.create(function()
1499
while wait() do
1500
	for i = 0, 254/5 do
1501
		swait()
1502
		g = g + 5
1503
	end
1504
	for i = 0, 254/5 do
1505
		swait()
1506
		r = r - 5
1507
	end
1508
	for i = 0, 254/5 do
1509
		swait()
1510
		b = b + 5
1511
	end
1512
	for i = 0, 254/5 do
1513
		swait()
1514
		g = g - 5
1515
	end
1516
	for i = 0, 254/5 do
1517
		swait()
1518
		r = r + 5
1519
	end
1520
	for i = 0, 254/5 do
1521
		swait()
1522
		b = b - 5
1523
	end
1524
end
1525
end))
1526
 
1527
 
1528
so = function(id,par,vol,pit) 
1529
coroutine.resume(coroutine.create(function()
1530
local sou = Instance.new("Sound",par or workspace)
1531
sou.Volume=vol
1532
sou.Pitch=pit or 1
1533
sou.SoundId=id
1534
swait() 
1535
sou:play() 
1536
game:GetService("Debris"):AddItem(sou,6)
1537
end))
1538
end
1539
 
1540
function clerp(a,b,t) 
1541
local qa = {QuaternionFromCFrame(a)}
1542
local qb = {QuaternionFromCFrame(b)} 
1543
local ax, ay, az = a.x, a.y, a.z 
1544
local bx, by, bz = b.x, b.y, b.z
1545
local _t = 1-t
1546
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1547
end 
1548
 
1549
function QuaternionFromCFrame(cf) 
1550
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1551
local trace = m00 + m11 + m22 
1552
if trace > 0 then 
1553
local s = math.sqrt(1 + trace) 
1554
local recip = 0.5/s 
1555
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1556
else 
1557
local i = 0 
1558
if m11 > m00 then
1559
i = 1
1560
end
1561
if m22 > (i == 0 and m00 or m11) then 
1562
i = 2 
1563
end 
1564
if i == 0 then 
1565
local s = math.sqrt(m00-m11-m22+1) 
1566
local recip = 0.5/s 
1567
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1568
elseif i == 1 then 
1569
local s = math.sqrt(m11-m22-m00+1) 
1570
local recip = 0.5/s 
1571
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1572
elseif i == 2 then 
1573
local s = math.sqrt(m22-m00-m11+1) 
1574
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1575
end 
1576
end 
1577
end
1578
 
1579
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1580
local xs, ys, zs = x + x, y + y, z + z 
1581
local wx, wy, wz = w*xs, w*ys, w*zs 
1582
local xx = x*xs 
1583
local xy = x*ys 
1584
local xz = x*zs 
1585
local yy = y*ys 
1586
local yz = y*zs 
1587
local zz = z*zs 
1588
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)) 
1589
end
1590
 
1591
function QuaternionSlerp(a, b, t) 
1592
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1593
local startInterp, finishInterp; 
1594
if cosTheta >= 0.0001 then 
1595
if (1 - cosTheta) > 0.0001 then 
1596
local theta = math.acos(cosTheta) 
1597
local invSinTheta = 1/math.sin(theta) 
1598
startInterp = math.sin((1-t)*theta)*invSinTheta 
1599
finishInterp = math.sin(t*theta)*invSinTheta  
1600
else 
1601
startInterp = 1-t 
1602
finishInterp = t 
1603
end 
1604
else 
1605
if (1+cosTheta) > 0.0001 then 
1606
local theta = math.acos(-cosTheta) 
1607
local invSinTheta = 1/math.sin(theta) 
1608
startInterp = math.sin((t-1)*theta)*invSinTheta 
1609
finishInterp = math.sin(t*theta)*invSinTheta 
1610
else 
1611
startInterp = t-1 
1612
finishInterp = t 
1613
end 
1614
end 
1615
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 
1616
end
1617
1618
local function CFrameFromTopBack(at, top, back)
1619
local right = top:Cross(back)
1620
return CFrame.new(at.x, at.y, at.z,
1621
right.x, top.x, back.x,
1622
right.y, top.y, back.y,
1623
right.z, top.z, back.z)
1624
end
1625
1626
function Triangle(a, b, c)
1627
local edg1 = (c-a):Dot((b-a).unit)
1628
local edg2 = (a-b):Dot((c-b).unit)
1629
local edg3 = (b-c):Dot((a-c).unit)
1630
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1631
a, b, c = a, b, c
1632
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1633
a, b, c = b, c, a
1634
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1635
a, b, c = c, a, b
1636
else
1637
assert(false, "unreachable")
1638
end
1639
 
1640
local len1 = (c-a):Dot((b-a).unit)
1641
local len2 = (b-a).magnitude - len1
1642
local width = (a + (b-a).unit*len1 - c).magnitude
1643
 
1644
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1645
 
1646
local list = {}
1647
 
1648
if len1 > 0.01 then
1649
local w1 = Instance.new('WedgePart', m)
1650
game:GetService("Debris"):AddItem(w1,5)
1651
w1.Material = "SmoothPlastic"
1652
w1.FormFactor = 'Custom'
1653
w1.BrickColor = BrickColor.new("Really red")
1654
w1.Transparency = 0
1655
w1.Reflectance = 0
1656
w1.Material = "SmoothPlastic"
1657
w1.CanCollide = false
1658
local l1 = Instance.new("PointLight",w1)
1659
l1.Color = Color3.new(170,0,0)
1660
NoOutline(w1)
1661
local sz = Vector3.new(0.2, width, len1)
1662
w1.Size = sz
1663
local sp = Instance.new("SpecialMesh",w1)
1664
sp.MeshType = "Wedge"
1665
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1666
w1:BreakJoints()
1667
w1.Anchored = true
1668
w1.Parent = workspace
1669
w1.Transparency = 0.7
1670
table.insert(Effects,{w1,"Disappear",.01})
1671
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1672
table.insert(list,w1)
1673
end
1674
 
1675
if len2 > 0.01 then
1676
local w2 = Instance.new('WedgePart', m)
1677
game:GetService("Debris"):AddItem(w2,5)
1678
w2.Material = "SmoothPlastic"
1679
w2.FormFactor = 'Custom'
1680
w2.BrickColor = BrickColor.new("Really red")
1681
w2.Transparency = 0
1682
w2.Reflectance = 0
1683
w2.Material = "SmoothPlastic"
1684
w2.CanCollide = false
1685
local l2 = Instance.new("PointLight",w2)
1686
l2.Color = Color3.new(170,0,0)
1687
NoOutline(w2)
1688
local sz = Vector3.new(0.2, width, len2)
1689
w2.Size = sz
1690
local sp = Instance.new("SpecialMesh",w2)
1691
sp.MeshType = "Wedge"
1692
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1693
w2:BreakJoints()
1694
w2.Anchored = true
1695
w2.Parent = workspace
1696
w2.Transparency = 0.7
1697
table.insert(Effects,{w2,"Disappear",.01})
1698
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1699
table.insert(list,w2)
1700
end
1701
return unpack(list)
1702
end
1703
 
1704
1705
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1706
  if hit.Parent == nil then
1707
    return
1708
  end
1709
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1710
  for _, v in pairs(hit.Parent:children()) do
1711
    if v:IsA("Humanoid") then
1712
      h = v
1713
    end
1714
  end
1715
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1716
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1717
      return
1718
    end
1719
    local c = Create("ObjectValue")({
1720
      Name = "creator",
1721
      Value = game:GetService("Players").Helkern,
1722
      Parent = h
1723
    })
1724
    game:GetService("Debris"):AddItem(c, 0.5)
1725
    if HitSound ~= nil and HitPitch ~= nil then
1726
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1727
    end
1728
    local Damage = math.random(minim, maxim)
1729
    local blocked = false
1730
    local block = hit.Parent:findFirstChild("Block")
1731
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1732
      blocked = true
1733
      block.Value = block.Value - 1
1734
      print(block.Value)
1735
    end
1736
    if blocked == false then
1737
      HitHealth = h.Health
1738
      h.MaxHealth = 100
1739
      h.Health = h.Health - Damage
1740
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1741
        print("gained kill")
1742
        dmg(h.Parent)
1743
      end
1744
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1745
    else
1746
      h.Health = h.Health - Damage / 2
1747
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1748
    end
1749
    if Type == "Knockdown" then
1750
      local hum = hit.Parent.Humanoid
1751
      hum.PlatformStand = true
1752
      coroutine.resume(coroutine.create(function(HHumanoid)
1753
        swait(1)
1754
        HHumanoid.PlatformStand = false
1755
      end), hum)
1756
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1757
      local bodvol = Create("BodyVelocity")({
1758
        velocity = angle * knockback,
1759
        P = 5000,
1760
        maxForce = Vector3.new(8000, 8000, 8000),
1761
        Parent = hit
1762
      })
1763
      local rl = Create("BodyAngularVelocity")({
1764
        P = 3000,
1765
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1766
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1767
        Parent = hit
1768
      })
1769
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1770
      game:GetService("Debris"):AddItem(rl, 0.5)
1771
    elseif Type == "Normal" then
1772
      local vp = Create("BodyVelocity")({
1773
        P = 500,
1774
        maxForce = Vector3.new(math.huge, 0, math.huge),
1775
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1776
      })
1777
      if knockback > 0 then
1778
        vp.Parent = hit.Parent.Head
1779
      end
1780
      game:GetService("Debris"):AddItem(vp, 0.5)
1781
    elseif Type == "Up" then
1782
      local bodyVelocity = Create("BodyVelocity")({
1783
        velocity = Vector3.new(0, 20, 0),
1784
        P = 5000,
1785
        maxForce = Vector3.new(8000, 8000, 8000),
1786
        Parent = hit
1787
      })
1788
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1789
      local bodyVelocity = Create("BodyVelocity")({
1790
        velocity = Vector3.new(0, 20, 0),
1791
        P = 5000,
1792
        maxForce = Vector3.new(8000, 8000, 8000),
1793
        Parent = hit
1794
      })
1795
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1796
    elseif Type == "Leech" then
1797
      local hum = hit.Parent.Humanoid
1798
      if hum ~= nil then
1799
        for i = 0, 2 do
1800
          Effects.Sphere.Create(BrickColor.new("Bright 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)
1801
        end
1802
        Humanoid.Health = Humanoid.Health + 10
1803
      end
1804
    elseif Type == "UpKnock" then
1805
      local hum = hit.Parent.Humanoid
1806
      hum.PlatformStand = true
1807
      if hum ~= nil then
1808
        hitr = true
1809
      end
1810
      coroutine.resume(coroutine.create(function(HHumanoid)
1811
        swait(5)
1812
        HHumanoid.PlatformStand = false
1813
        hitr = false
1814
      end), hum)
1815
      local bodyVelocity = Create("BodyVelocity")({
1816
        velocity = Vector3.new(0, 20, 0),
1817
        P = 5000,
1818
        maxForce = Vector3.new(8000, 8000, 8000),
1819
        Parent = hit
1820
      })
1821
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1822
      local bodyVelocity = Create("BodyVelocity")({
1823
        velocity = Vector3.new(0, 20, 0),
1824
        P = 5000,
1825
        maxForce = Vector3.new(8000, 8000, 8000),
1826
        Parent = hit
1827
      })
1828
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1829
    elseif Type == "Snare" then
1830
      local bp = Create("BodyPosition")({
1831
        P = 2000,
1832
        D = 100,
1833
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1834
        position = hit.Parent.Torso.Position,
1835
        Parent = hit.Parent.Torso
1836
      })
1837
      game:GetService("Debris"):AddItem(bp, 1)
1838
    elseif Type == "Slashnare" then
1839
      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)
1840
      for i = 1, math.random(4, 5) do
1841
        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)
1842
      end
1843
      local bp = Create("BodyPosition")({
1844
        P = 2000,
1845
        D = 100,
1846
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1847
        position = hit.Parent.Torso.Position,
1848
        Parent = hit.Parent.Torso
1849
      })
1850
      game:GetService("Debris"):AddItem(bp, 1)
1851
    elseif Type == "Spike" then
1852
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1853
      local bp = Create("BodyPosition")({
1854
        P = 2000,
1855
        D = 100,
1856
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1857
        position = hit.Parent.Torso.Position,
1858
        Parent = hit.Parent.Torso
1859
      })
1860
      game:GetService("Debris"):AddItem(bp, 1)
1861
    elseif Type == "Freeze" then
1862
      local BodPos = Create("BodyPosition")({
1863
        P = 50000,
1864
        D = 1000,
1865
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1866
        position = hit.Parent.Torso.Position,
1867
        Parent = hit.Parent.Torso
1868
      })
1869
      local BodGy = Create("BodyGyro")({
1870
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1871
        P = 20000,
1872
        Parent = hit.Parent.Torso,
1873
        cframe = hit.Parent.Torso.CFrame
1874
      })
1875
      hit.Parent.Torso.Anchored = true
1876
      coroutine.resume(coroutine.create(function(Part)
1877
        swait(1.5)
1878
        Part.Anchored = false
1879
      end), hit.Parent.Torso)
1880
      game:GetService("Debris"):AddItem(BodPos, 3)
1881
      game:GetService("Debris"):AddItem(BodGy, 3)
1882
    end
1883
    local debounce = Create("BoolValue")({
1884
      Name = "DebounceHit",
1885
      Parent = hit.Parent,
1886
      Value = true
1887
    })
1888
    game:GetService("Debris"):AddItem(debounce, Delay)
1889
    c = Instance.new("ObjectValue")
1890
    c.Name = "creator"
1891
    c.Value = Player
1892
    c.Parent = h
1893
    game:GetService("Debris"):AddItem(c, 0.5)
1894
  end
1895
end
1896
function ShowDamage(Pos, Text, Time, Color)
1897
  local Rate = 0.03333333333333333
1898
  local Pos = Pos or Vector3.new(0, 0, 0)
1899
  local Text = Text or ""
1900
  local Time = Time or 2
1901
  local Color = Color or Color3.new(1, 0, 1)
1902
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1903
  EffectPart.Anchored = true
1904
  local BillboardGui = Create("BillboardGui")({
1905
    Size = UDim2.new(3, 0, 3, 0),
1906
    Adornee = EffectPart,
1907
    Parent = EffectPart
1908
  })
1909
  local TextLabel = Create("TextLabel")({
1910
    BackgroundTransparency = 1,
1911
    Size = UDim2.new(1, 0, 1, 0),
1912
    Text = Text,
1913
    TextColor3 = Color,
1914
    TextScaled = true,
1915
    Font = Enum.Font.ArialBold,
1916
    Parent = BillboardGui
1917
  })
1918
  game.Debris:AddItem(EffectPart, Time + 0.1)
1919
  EffectPart.Parent = game:GetService("Workspace")
1920
  delay(0, function()
1921
    local Frames = Time / Rate
1922
    for Frame = 1, Frames do
1923
      wait(Rate)
1924
      local Percent = Frame / Frames
1925
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1926
      TextLabel.TextTransparency = Percent
1927
    end
1928
    if EffectPart and EffectPart.Parent then
1929
      EffectPart:Destroy()
1930
    end
1931
  end)
1932
end
1933
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1934
  for _, c in pairs(workspace:children()) do
1935
    local hum = c:findFirstChildOfClass("Humanoid")
1936
    if hum ~= nil then
1937
      local head = c:findFirstChild("Head")
1938
      if head ~= nil then
1939
        local targ = head.Position - Part.Position
1940
        local mag = targ.magnitude
1941
        if magni >= mag and c.Name ~= Player.Name then
1942
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1943
        end
1944
      end
1945
    end
1946
  end
1947
end
1948
1949
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1950
  for _, c in pairs(workspace:children()) do
1951
    local hum = c:findFirstChild("Humanoid")
1952
    if hum ~= nil then
1953
      local head = c:findFirstChild("Torso")
1954
      if head ~= nil then
1955
        local targ = head.Position - Part.Position
1956
        local mag = targ.magnitude
1957
        if magni >= mag and c.Name ~= Player.Name then
1958
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
1959
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1960
        end
1961
      end
1962
    end
1963
  end
1964
end
1965
1966
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1967
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1968
end 
1969
1970
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1971
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1972
prt.Anchored=true
1973
prt.CFrame=cframe
1974
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1975
--http://www.roblox.com/asset/?id=4770560
1976
game:GetService("Debris"):AddItem(prt,2)
1977
CF=prt.CFrame
1978
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
1979
for i=0,1,0.2 do
1980
wait()
1981
Part.CFrame=CF*cf(0,0,-0.4)
1982
end
1983
for i=0,1,delay do
1984
wait()
1985
--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)
1986
Mesh.Scale=Mesh.Scale
1987
end
1988
for i=0,1,0.1 do
1989
wait()
1990
Part.Transparency=i
1991
end
1992
Part.Parent=nil
1993
end),prt,msh,CF)
1994
end
1995
 
1996
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1997
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1998
prt.Anchored=true
1999
prt.Material = "Neon"
2000
prt.CFrame=cframe
2001
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2002
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2003
game:GetService("Debris"):AddItem(prt,5)
2004
coroutine.resume(coroutine.create(function(Part,Mesh) 
2005
for i=0,1,delay do
2006
swait()
2007
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2008
Part.Transparency=i
2009
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2010
end
2011
Part.Parent=nil
2012
end),prt,msh)
2013
end
2014
2015
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2016
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2017
prt.Anchored=true
2018
prt.Material = "Neon"
2019
prt.CFrame=cframe
2020
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2021
game:GetService("Debris"):AddItem(prt,5)
2022
coroutine.resume(coroutine.create(function(Part,Mesh) 
2023
	local rtype = rottype
2024
for i=0,1,delay do
2025
swait()
2026
if rtype == 1 then
2027
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2028
elseif rtype == 2 then
2029
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2030
end
2031
Part.Transparency=i
2032
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2033
end
2034
Part.Parent=nil
2035
end),prt,msh)
2036
end
2037
2038
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2039
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2040
prt.Anchored=true
2041
prt.CFrame=cframe
2042
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2043
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2044
game:GetService("Debris"):AddItem(prt,5)
2045
coroutine.resume(coroutine.create(function(Part,Mesh) 
2046
for i=0,1,delay do
2047
wait()
2048
Part.Transparency=i
2049
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2050
end
2051
Part.Parent=nil
2052
end),prt,msh)
2053
end
2054
2055
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2056
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2057
prt.Anchored=true
2058
prt.Material = "Neon"
2059
prt.CFrame=cframe
2060
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2061
game:GetService("Debris"):AddItem(prt,5)
2062
coroutine.resume(coroutine.create(function(Part,Mesh) 
2063
	local rtype = rottype
2064
for i=0,1,delay do
2065
swait()
2066
if rtype == 1 then
2067
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2068
elseif rtype == 2 then
2069
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2070
end
2071
Part.Transparency=i
2072
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2073
end
2074
Part.Parent=nil
2075
end),prt,msh)
2076
end
2077
2078
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2079
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
2080
prt.Anchored=true
2081
prt.Material = "Neon"
2082
prt.CFrame=cframe
2083
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2084
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2085
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2086
game:GetService("Debris"):AddItem(prt,5)
2087
coroutine.resume(coroutine.create(function(Part,Mesh) 
2088
	local rtype = rottype
2089
for i=0,1,delay do
2090
swait()
2091
if rtype == 1 then
2092
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2093
elseif rtype == 2 then
2094
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2095
end
2096
dec.Transparency=i
2097
dec2.Transparency=i
2098
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2099
end
2100
Part.Parent=nil
2101
end),prt,msh)
2102
end
2103
2104
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2105
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2106
prt.Anchored=true
2107
prt.Material = "Neon"
2108
prt.CFrame=cframe
2109
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2110
game:GetService("Debris"):AddItem(prt,5)
2111
coroutine.resume(coroutine.create(function(Part,Mesh) 
2112
	local rtype = rottype
2113
for i=0,1,delay do
2114
swait()
2115
if rtype == 1 then
2116
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2117
elseif rtype == 2 then
2118
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2119
end
2120
prt.Transparency=i
2121
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2122
end
2123
Part.Parent=nil
2124
end),prt,msh)
2125
end
2126
2127
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
2128
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2129
prt.Anchored=true
2130
prt.Material = "Neon"
2131
prt.CFrame=cframe
2132
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
2133
game:GetService("Debris"):AddItem(prt,5)
2134
coroutine.resume(coroutine.create(function(Part,Mesh) 
2135
	local rtype = rottype
2136
for i=0,1,delay do
2137
swait()
2138
if rtype == 1 then
2139
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
2140
elseif rtype == 2 then
2141
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
2142
end
2143
prt.Transparency=i
2144
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
2145
end
2146
Part.Parent=nil
2147
end),prt,msh)
2148
end
2149
2150
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
2151
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2152
prt.Anchored=true
2153
prt.Material = "Neon"
2154
prt.CFrame=cframe
2155
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2156
game:GetService("Debris"):AddItem(prt,5)
2157
coroutine.resume(coroutine.create(function(Part,Mesh) 
2158
	local rtype = rottype
2159
for i=0,1,delay do
2160
swait()
2161
if rtype == 1 then
2162
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2163
elseif rtype == 2 then
2164
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2165
end
2166
prt.Transparency=i
2167
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2168
end
2169
Part.Parent=nil
2170
end),prt,msh)
2171
end
2172
2173
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2174
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2175
prt.Anchored=true
2176
prt.Material = "Neon"
2177
prt.CFrame=cframe
2178
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2179
game:GetService("Debris"):AddItem(prt,5)
2180
coroutine.resume(coroutine.create(function(Part,Mesh) 
2181
	local rtype = rottype
2182
for i=0,1,delay do
2183
swait()
2184
if rtype == 1 then
2185
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2186
elseif rtype == 2 then
2187
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2188
end
2189
prt.Transparency=i
2190
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2191
end
2192
Part.Parent=nil
2193
end),prt,msh)
2194
end
2195
 
2196
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2197
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2198
prt.Anchored=false
2199
prt.CFrame=cframe
2200
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2201
local wld=weld(prt,prt,Parent,cframe)
2202
game:GetService("Debris"):AddItem(prt,5)
2203
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2204
for i=0,1,delay do
2205
wait()
2206
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
2207
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2208
Part.Transparency=i
2209
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2210
end
2211
Part.Parent=nil
2212
end),prt,msh,wld)
2213
end
2214
 
2215
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2216
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2217
prt.Anchored=false
2218
prt.CFrame=cframe
2219
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2220
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
2221
game:GetService("Debris"):AddItem(prt,5)
2222
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2223
for i=0,1,delay do
2224
wait()
2225
Weld.C0=euler(i*20,0,0)
2226
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2227
Part.Transparency=i
2228
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2229
end
2230
Part.Parent=nil
2231
end),prt,msh,wld)
2232
end
2233
 
2234
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2235
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2236
prt.Anchored=true
2237
prt.CFrame=cframe
2238
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2239
game:GetService("Debris"):AddItem(prt,2)
2240
coroutine.resume(coroutine.create(function(Part,Mesh) 
2241
for i=0,1,delay do
2242
wait()
2243
Part.CFrame=Part.CFrame
2244
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2245
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2246
prt2.Anchored=true
2247
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2248
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
2249
game:GetService("Debris"):AddItem(prt2,2)
2250
coroutine.resume(coroutine.create(function(Part,Mesh) 
2251
for i=0,1,0.1 do
2252
wait()
2253
Part.CFrame=Part.CFrame*cf(0,0.5,0)
2254
end
2255
Part.Parent=nil
2256
end),prt2,msh2)
2257
end
2258
for i=0,1,delay*2 do
2259
wait()
2260
Part.CFrame=Part.CFrame
2261
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
2262
end
2263
Part.Parent=nil
2264
end),prt,msh)
2265
end
2266
 
2267
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2268
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2269
prt.Anchored=true
2270
prt.CFrame=cframe
2271
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2272
game:GetService("Debris"):AddItem(prt,2)
2273
coroutine.resume(coroutine.create(function(Part,Mesh) 
2274
for i=0,1,delay do
2275
wait()
2276
Part.CFrame=Part.CFrame
2277
Part.Transparency=i
2278
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2279
end
2280
Part.Parent=nil
2281
end),prt,msh)
2282
end
2283
 
2284
function BreakEffect(brickcolor,cframe,x1,y1,z1)
2285
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2286
prt.Anchored=true
2287
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2288
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2289
game:GetService("Debris"):AddItem(prt,2)
2290
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2291
CF=Part.CFrame
2292
Numbb=0
2293
randnumb=math.random()/10
2294
rand1=math.random()/10
2295
for i=0,1,rand1 do
2296
wait()
2297
CF=CF*cf(0,math.random()/2,0)
2298
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2299
Part.CFrame=CF*euler(Numbb,0,0)
2300
Part.Transparency=i
2301
Numbb=Numbb+randnumb
2302
end
2303
Part.Parent=nil
2304
end),prt,CF,Numbb,randnumb)
2305
end
2306
 
2307
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2308
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2309
prt.Anchored=true
2310
prt.CFrame=cframe
2311
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2312
game:GetService("Debris"):AddItem(prt,5)
2313
coroutine.resume(coroutine.create(function(Part,Mesh) 
2314
for i=0,1,delay do
2315
wait()
2316
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2317
Part.Transparency=i
2318
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2319
end
2320
Part.Parent=nil
2321
end),prt,msh)
2322
end
2323
 
2324
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2325
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2326
prt.Anchored=true
2327
prt.CFrame=cframe
2328
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2329
game:GetService("Debris"):AddItem(prt,2)
2330
coroutine.resume(coroutine.create(function(Part,Mesh) 
2331
for i=0,1,delay do
2332
wait()
2333
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2334
Part.Transparency=i
2335
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2336
end
2337
Part.Parent=nil
2338
end),prt,msh)
2339
end
2340
 
2341
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2342
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2343
prt.Anchored=true
2344
prt.CFrame=cframe*cf(x,y,z)
2345
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2346
game:GetService("Debris"):AddItem(prt,5)
2347
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2348
local num=math.random()
2349
local num2=math.random(-3,2)+math.random()
2350
local numm=0
2351
for i=0,1,delay*2 do
2352
swait()
2353
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2354
Part.Transparency=i
2355
numm=numm+0.01
2356
end
2357
Part.Parent=nil
2358
Mesh.Parent=nil
2359
end),prt,msh,x,y,z)
2360
end
2361
2362
function dmgstart(dmg,what)
2363
	hitcon = what.Touched:connect(function(hit)
2364
		local hum = hit.Parent:FindFirstChild("Humanoid")
2365
		if hum and not hum:IsDescendantOf(Character) then
2366
			hum:TakeDamage(dmg)
2367
		end
2368
	end)
2369
end
2370
2371
function dmgstop()
2372
	hitcon:disconnect()
2373
end
2374
2375
function Cloak()
2376
Face.Parent=nil
2377
cloaked=true
2378
        for _,v in pairs(Torso.Parent:children()) do
2379
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2380
                coroutine.resume(coroutine.create(function() 
2381
                for i=0,1,0.2 do
2382
                wait()
2383
                v.Transparency=i
2384
                end
2385
                v.Transparency=1
2386
                end))
2387
                end
2388
                if v.className=="Hat" then
2389
                hatp=v.Handle
2390
                coroutine.resume(coroutine.create(function(derp) 
2391
                for i=0,1,0.2 do
2392
                wait()
2393
                derp.Transparency=i
2394
                end
2395
                derp.Transparency=1
2396
                end),hatp)
2397
                end
2398
        end
2399
        for _,v in pairs(m:children()) do
2400
                if v.className=="Part" then
2401
                coroutine.resume(coroutine.create(function() 
2402
                for i=0,1,0.2 do
2403
                wait()
2404
                v.Transparency=i
2405
                end
2406
                v.Transparency=1
2407
                end))
2408
                end
2409
        end
2410
end
2411
 
2412
function UnCloak()
2413
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
2414
Face.Parent=Head 
2415
cloaked=false
2416
        for _,v in pairs(Torso.Parent:children()) do
2417
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2418
                coroutine.resume(coroutine.create(function() 
2419
                for i=0,1,0.1 do
2420
                wait()
2421
                v.Transparency=v.Transparency-0.1
2422
                end
2423
                v.Transparency=0
2424
                end))
2425
                end
2426
                if v.className=="Hat" then
2427
                hatp=v.Handle
2428
                coroutine.resume(coroutine.create(function(derp) 
2429
                for i=0,1,0.1 do
2430
                wait()
2431
                derp.Transparency=derp.Transparency-0.1
2432
                end
2433
                derp.Transparency=0
2434
                end),hatp)
2435
                end
2436
        end
2437
        for _,v in pairs(m:children()) do
2438
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2439
                coroutine.resume(coroutine.create(function() 
2440
                for i=0,1,0.1 do
2441
                wait()
2442
                v.Transparency=v.Transparency-0.1
2443
                end
2444
                v.Transparency=0
2445
                end))
2446
                v.Transparency=0
2447
                end
2448
        end
2449
end
2450
2451
local origcolor = BrickColor.new("Pastel light blue")
2452
---- This section of explosions.
2453
2454
----
2455
2456
2457
function ring(type,pos,scale,value)
2458
local type = type
2459
local rng = Instance.new("Part", char)
2460
        rng.Anchored = true
2461
        rng.BrickColor = origcolor
2462
        rng.CanCollide = false
2463
        rng.FormFactor = 3
2464
        rng.Name = "Ring"
2465
        rng.Size = Vector3.new(1, 1, 1)
2466
        rng.Transparency = 0
2467
        rng.TopSurface = 0
2468
        rng.BottomSurface = 0
2469
        rng.CFrame = pos
2470
        local rngm = Instance.new("SpecialMesh", rng)
2471
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2472
rngm.Scale = scale
2473
local scaler2 = 1
2474
if type == "Add" then
2475
scaler2 = 1*value
2476
elseif type == "Divide" then
2477
scaler2 = 1/value
2478
end
2479
coroutine.resume(coroutine.create(function()
2480
for i = 0,10,0.1 do
2481
swait()
2482
if type == "Add" then
2483
scaler2 = scaler2 - 0.01*value
2484
elseif type == "Divide" then
2485
scaler2 = scaler2 - 0.01/value
2486
end
2487
rng.Transparency = rng.Transparency + 0.01
2488
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2489
end
2490
rng:Destroy()
2491
end))
2492
end
2493
2494
2495
function wave(type,pos,scale,value)
2496
local type = type
2497
local rng = Instance.new("Part", char)
2498
        rng.Anchored = true
2499
        rng.BrickColor = origcolor
2500
        rng.CanCollide = false
2501
        rng.FormFactor = 3
2502
        rng.Name = "Ring"
2503
        rng.Size = Vector3.new(1, 1, 1)
2504
        rng.Transparency = 0
2505
        rng.TopSurface = 0
2506
        rng.BottomSurface = 0
2507
        rng.CFrame = pos
2508
        local rngm = Instance.new("SpecialMesh", rng)
2509
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2510
rngm.Scale = scale
2511
local scaler2 = 1
2512
if type == "Add" then
2513
scaler2 = 1*value
2514
elseif type == "Divide" then
2515
scaler2 = 1/value
2516
end
2517
coroutine.resume(coroutine.create(function()
2518
for i = 0,10,0.1 do
2519
swait()
2520
if type == "Add" then
2521
scaler2 = scaler2 - 0.01*value
2522
elseif type == "Divide" then
2523
scaler2 = scaler2 - 0.01/value
2524
end
2525
rng.Transparency = rng.Transparency + 0.01
2526
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2527
end
2528
rng:Destroy()
2529
end))
2530
end
2531
2532
function wind(type,pos,scale,value,speed)
2533
local type = type
2534
local rng = Instance.new("Part", char)
2535
        rng.Anchored = true
2536
        rng.BrickColor = origcolor
2537
        rng.CanCollide = false
2538
        rng.FormFactor = 3
2539
        rng.Name = "Ring"
2540
        rng.Size = Vector3.new(1, 1, 1)
2541
        rng.Transparency = 0
2542
        rng.TopSurface = 0
2543
        rng.BottomSurface = 0
2544
        rng.CFrame = pos
2545
        local rngm = Instance.new("SpecialMesh", rng)
2546
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2547
rngm.Scale = scale
2548
local scaler2 = 1
2549
if type == "Add" then
2550
scaler2 = 1*value
2551
elseif type == "Divide" then
2552
scaler2 = 1/value
2553
end
2554
coroutine.resume(coroutine.create(function()
2555
for i = 0,10,0.1 do
2556
swait()
2557
if type == "Add" then
2558
scaler2 = scaler2 - 0.01*value
2559
elseif type == "Divide" then
2560
scaler2 = scaler2 - 0.01/value
2561
end
2562
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2563
rng.Transparency = rng.Transparency + 0.01
2564
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2565
end
2566
rng:Destroy()
2567
end))
2568
end
2569
2570
function groundwind(type,pos,scale,value,speed)
2571
local type = type
2572
local rng = Instance.new("Part", char)
2573
        rng.Anchored = true
2574
        rng.BrickColor = origcolor
2575
        rng.CanCollide = false
2576
        rng.FormFactor = 3
2577
        rng.Name = "Ring"
2578
        rng.Size = Vector3.new(1, 1, 1)
2579
        rng.Transparency = 0
2580
        rng.TopSurface = 0
2581
        rng.BottomSurface = 0
2582
        rng.CFrame = pos
2583
        local rngm = Instance.new("SpecialMesh", rng)
2584
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2585
rngm.Scale = scale
2586
local scaler2 = 1
2587
if type == "Add" then
2588
scaler2 = 1*value
2589
elseif type == "Divide" then
2590
scaler2 = 1/value
2591
end
2592
coroutine.resume(coroutine.create(function()
2593
for i = 0,10,0.1 do
2594
swait()
2595
if type == "Add" then
2596
scaler2 = scaler2 - 0.01*value
2597
elseif type == "Divide" then
2598
scaler2 = scaler2 - 0.01/value
2599
end
2600
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2601
rng.Transparency = rng.Transparency + 0.01
2602
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
2603
end
2604
rng:Destroy()
2605
end))
2606
end
2607
2608
function CameraManager()
2609
  if TwoD and not CamInterrupt then
2610
    if Humanoid.Health > 0 then
2611
      Camera.CameraSubject = Humanoid
2612
      Camera.CameraType = "Scriptable"
2613
      Humanoid.AutoRotate = false
2614
      if Booleans.GyroUse then
2615
        Directer.MaxTorque = Vec3(0, huge, 0)
2616
      else
2617
        Directer.MaxTorque = Vec3(0, 0, 0)
2618
      end
2619
      if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
2620
        if Booleans.CamFollow then
2621
          CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
2622
          Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
2623
        else
2624
          CPart.Position = RootPart.Position
2625
        end
2626
      else
2627
        local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
2628
        CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
2629
      end
2630
      Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
2631
    else
2632
      Camera.CameraSubject = Humanoid
2633
      Camera.CameraType = "Custom"
2634
      Controller.Disabled = false
2635
    end
2636
  end
2637
end
2638
2639
function ring(type,pos,scale,value)
2640
local type = type
2641
local rng = Instance.new("Part", char)
2642
        rng.Anchored = true
2643
        rng.BrickColor = origcolor
2644
        rng.CanCollide = false
2645
        rng.FormFactor = 3
2646
        rng.Name = "Ring"
2647
        rng.Size = Vector3.new(1, 1, 1)
2648
        rng.Transparency = 0
2649
        rng.TopSurface = 0
2650
        rng.BottomSurface = 0
2651
        rng.CFrame = pos
2652
        local rngm = Instance.new("SpecialMesh", rng)
2653
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2654
rngm.Scale = scale
2655
local scaler2 = 1
2656
if type == "Add" then
2657
scaler2 = 1*value
2658
elseif type == "Divide" then
2659
scaler2 = 1/value
2660
end
2661
coroutine.resume(coroutine.create(function()
2662
for i = 0,10,0.1 do
2663
swait()
2664
if type == "Add" then
2665
scaler2 = scaler2 - 0.01*value
2666
elseif type == "Divide" then
2667
scaler2 = scaler2 - 0.01/value
2668
end
2669
rng.Transparency = rng.Transparency + 0.01
2670
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2671
end
2672
rng:Destroy()
2673
end))
2674
end
2675
2676
2677
function wave(type,pos,scale,value)
2678
local type = type
2679
local rng = Instance.new("Part", char)
2680
        rng.Anchored = true
2681
        rng.BrickColor = origcolor
2682
        rng.CanCollide = false
2683
        rng.FormFactor = 3
2684
        rng.Name = "Ring"
2685
        rng.Size = Vector3.new(1, 1, 1)
2686
        rng.Transparency = 0
2687
        rng.TopSurface = 0
2688
        rng.BottomSurface = 0
2689
        rng.CFrame = pos
2690
        local rngm = Instance.new("SpecialMesh", rng)
2691
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2692
rngm.Scale = scale
2693
local scaler2 = 1
2694
if type == "Add" then
2695
scaler2 = 1*value
2696
elseif type == "Divide" then
2697
scaler2 = 1/value
2698
end
2699
coroutine.resume(coroutine.create(function()
2700
for i = 0,10,0.1 do
2701
swait()
2702
if type == "Add" then
2703
scaler2 = scaler2 - 0.01*value
2704
elseif type == "Divide" then
2705
scaler2 = scaler2 - 0.01/value
2706
end
2707
rng.Transparency = rng.Transparency + 0.01
2708
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2709
end
2710
rng:Destroy()
2711
end))
2712
end
2713
2714
function sphere(bonuspeed,type,pos,scale,value,color)
2715
local type = type
2716
local rng = Instance.new("Part", char)
2717
        rng.Anchored = true
2718
if ModeOfGlitch ~= 9 then
2719
        rng.BrickColor = color
2720
elseif ModeOfGlitch == 9 then
2721
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2722
end
2723
        rng.CanCollide = false
2724
        rng.FormFactor = 3
2725
        rng.Name = "Ring"
2726
        rng.Material = "Neon"
2727
        rng.Size = Vector3.new(1, 1, 1)
2728
        rng.Transparency = 0
2729
        rng.TopSurface = 0
2730
        rng.BottomSurface = 0
2731
        rng.CFrame = pos
2732
        local rngm = Instance.new("SpecialMesh", rng)
2733
        rngm.MeshType = "Sphere"
2734
rngm.Scale = scale
2735
if rainbowmode == true then
2736
rng.Color = Color3.new(r/255,g/255,b/255)
2737
end
2738
if ModeOfGlitch == 9 then
2739
coroutine.resume(coroutine.create(function()
2740
while true do
2741
swait()
2742
if rng.Parent ~= nil then
2743
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2744
else
2745
break
2746
end
2747
end
2748
end))
2749
end
2750
local scaler2 = 1
2751
if type == "Add" then
2752
scaler2 = 1*value
2753
elseif type == "Divide" then
2754
scaler2 = 1/value
2755
end
2756
coroutine.resume(coroutine.create(function()
2757
for i = 0,10/bonuspeed,0.1 do
2758
swait()
2759
if rainbowmode == true then
2760
rng.Color = Color3.new(r/255,g/255,b/255)
2761
end
2762
if type == "Add" then
2763
scaler2 = scaler2 - 0.01*value/bonuspeed
2764
elseif type == "Divide" then
2765
scaler2 = scaler2 - 0.01/value*bonuspeed
2766
end
2767
if chaosmode == true then
2768
rng.BrickColor = BrickColor.random()
2769
end
2770
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2771
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2772
end
2773
rng:Destroy()
2774
end))
2775
end
2776
2777
function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
2778
local type = type
2779
local rng = Instance.new("Part", char)
2780
        rng.Anchored = true
2781
if ModeOfGlitch ~= 9 then
2782
        rng.BrickColor = color
2783
elseif ModeOfGlitch == 9 then
2784
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2785
end
2786
        rng.CanCollide = false
2787
        rng.FormFactor = 3
2788
        rng.Name = "Ring"
2789
        rng.Material = "Neon"
2790
        rng.Size = Vector3.new(1, 1, 1)
2791
        rng.Transparency = 0
2792
        rng.TopSurface = 0
2793
        rng.BottomSurface = 0
2794
        rng.CFrame = pos
2795
        local rngm = Instance.new("SpecialMesh", rng)
2796
        rngm.MeshType = "Sphere"
2797
rngm.Scale = scale
2798
local scaler2 = 1
2799
local scaler2b = 1
2800
local scaler2c = 1
2801
if type == "Add" then
2802
scaler2 = 1*value
2803
scaler2b = 1*value2
2804
scaler2c = 1*value3
2805
elseif type == "Divide" then
2806
scaler2 = 1/value
2807
scaler2b = 1/value2
2808
scaler2c = 1/value3
2809
end
2810
if ModeOfGlitch == 9 then
2811
coroutine.resume(coroutine.create(function()
2812
while true do
2813
swait()
2814
if rng.Parent ~= nil then
2815
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2816
else
2817
break
2818
end
2819
end
2820
end))
2821
end
2822
coroutine.resume(coroutine.create(function()
2823
for i = 0,10/bonuspeed,0.1 do
2824
swait()
2825
if type == "Add" then
2826
scaler2 = scaler2 - 0.01*value/bonuspeed
2827
scaler2b = scaler2b - 0.01*value/bonuspeed
2828
scaler2c = scaler2c - 0.01*value/bonuspeed
2829
elseif type == "Divide" then
2830
scaler2 = scaler2 - 0.01/value*bonuspeed
2831
scaler2b = scaler2b - 0.01/value*bonuspeed
2832
scaler2c = scaler2c - 0.01/value*bonuspeed
2833
end
2834
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2835
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
2836
end
2837
rng:Destroy()
2838
end))
2839
end
2840
2841
function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
2842
local type = type
2843
local rotenable = rotatingop
2844
local rng = Instance.new("Part", char)
2845
        rng.Anchored = true
2846
        rng.BrickColor = color
2847
        rng.CanCollide = false
2848
        rng.FormFactor = 3
2849
        rng.Name = "Ring"
2850
        rng.Material = "Neon"
2851
        rng.Size = Vector3.new(1, 1, 1)
2852
        rng.Transparency = 0
2853
if typeoftrans == "In" then
2854
rng.Transparency = 1
2855
end
2856
        rng.TopSurface = 0
2857
        rng.BottomSurface = 0
2858
        rng.CFrame = pos
2859
        local rngm = Instance.new("SpecialMesh", rng)
2860
        rngm.MeshType = "FileMesh"
2861
if typeofshape == "Normal" then
2862
rngm.MeshId = "rbxassetid://662586858"
2863
elseif typeofshape == "Round" then
2864
rngm.MeshId = "rbxassetid://662585058"
2865
end
2866
rngm.Scale = scale
2867
local scaler2 = 1/10
2868
if type == "Add" then
2869
scaler2 = 1*value/10
2870
elseif type == "Divide" then
2871
scaler2 = 1/value/10
2872
end
2873
local randomrot = math.random(1,2)
2874
coroutine.resume(coroutine.create(function()
2875
for i = 0,10/bonuspeed,0.1 do
2876
swait()
2877
if type == "Add" then
2878
scaler2 = scaler2 - 0.01*value/bonuspeed/10
2879
elseif type == "Divide" then
2880
scaler2 = scaler2 - 0.01/value*bonuspeed/10
2881
end
2882
if rotenable == true then
2883
if randomrot == 1 then
2884
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
2885
elseif randomrot == 2 then
2886
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
2887
end
2888
end
2889
if typeoftrans == "Out" then
2890
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2891
elseif typeoftrans == "In" then
2892
rng.Transparency = rng.Transparency - 0.01*bonuspeed
2893
end
2894
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
2895
end
2896
rng:Destroy()
2897
end))
2898
end
2899
2900
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2901
local type = type
2902
local rng = Instance.new("Part", char)
2903
        rng.Anchored = true
2904
        rng.BrickColor = color
2905
        rng.CanCollide = false
2906
        rng.FormFactor = 3
2907
        rng.Name = "Ring"
2908
        rng.Material = "Neon"
2909
        rng.Size = Vector3.new(1, 1, 1)
2910
        rng.Transparency = 0
2911
        rng.TopSurface = 0
2912
        rng.BottomSurface = 0
2913
        rng.CFrame = pos
2914
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2915
        local rngm = Instance.new("SpecialMesh", rng)
2916
        rngm.MeshType = "Brick"
2917
rngm.Scale = vt(x1,y1,z1)
2918
if rainbowmode == true then
2919
rng.Color = Color3.new(r/255,g/255,b/255)
2920
end
2921
local scaler2 = 1
2922
local speeder = FastSpeed/10
2923
if type == "Add" then
2924
scaler2 = 1*value
2925
elseif type == "Divide" then
2926
scaler2 = 1/value
2927
end
2928
coroutine.resume(coroutine.create(function()
2929
for i = 0,10/bonuspeed,0.1 do
2930
swait()
2931
if rainbowmode == true then
2932
rng.Color = Color3.new(r/255,g/255,b/255)
2933
end
2934
if type == "Add" then
2935
scaler2 = scaler2 - 0.01*value/bonuspeed
2936
elseif type == "Divide" then
2937
scaler2 = scaler2 - 0.01/value*bonuspeed
2938
end
2939
if chaosmode == true then
2940
rng.BrickColor = BrickColor.random()
2941
end
2942
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2943
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2944
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2945
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2946
end
2947
rng:Destroy()
2948
end))
2949
end
2950
2951
function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2952
local type = type
2953
local rng = Instance.new("Part", char)
2954
        rng.Anchored = true
2955
        rng.BrickColor = color
2956
        rng.CanCollide = false
2957
        rng.FormFactor = 3
2958
        rng.Name = "Ring"
2959
        rng.Material = "Neon"
2960
        rng.Size = Vector3.new(1, 1, 1)
2961
        rng.Transparency = 0
2962
        rng.TopSurface = 0
2963
        rng.BottomSurface = 0
2964
        rng.CFrame = pos
2965
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2966
        local rngm = Instance.new("SpecialMesh", rng)
2967
        rngm.MeshType = "Brick"
2968
rngm.Scale = vt(x1,y1,z1)
2969
if rainbowmode == true then
2970
rng.Color = Color3.new(r/255,g/255,b/255)
2971
end
2972
local scaler2 = 1
2973
local speeder = FastSpeed/10
2974
if type == "Add" then
2975
scaler2 = 1*value
2976
elseif type == "Divide" then
2977
scaler2 = 1/value
2978
end
2979
coroutine.resume(coroutine.create(function()
2980
for i = 0,10/bonuspeed,0.1 do
2981
swait()
2982
if rainbowmode == true then
2983
rng.Color = Color3.new(r/255,g/255,b/255)
2984
end
2985
if type == "Add" then
2986
scaler2 = scaler2 - 0.01*value/bonuspeed
2987
elseif type == "Divide" then
2988
scaler2 = scaler2 - 0.01/value*bonuspeed
2989
end
2990
if chaosmode == true then
2991
rng.BrickColor = BrickColor.random()
2992
end
2993
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2994
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2995
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2996
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2997
end
2998
rng:Destroy()
2999
end))
3000
end
3001
3002
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3003
local type = type
3004
local rng = Instance.new("Part", char)
3005
        rng.Anchored = true
3006
        rng.BrickColor = color
3007
        rng.CanCollide = false
3008
        rng.FormFactor = 3
3009
        rng.Name = "Ring"
3010
        rng.Material = "Neon"
3011
        rng.Size = Vector3.new(1, 1, 1)
3012
        rng.Transparency = 0
3013
        rng.TopSurface = 0
3014
        rng.BottomSurface = 0
3015
        rng.CFrame = pos
3016
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3017
        local rngm = Instance.new("SpecialMesh", rng)
3018
        rngm.MeshType = "Brick"
3019
rngm.Scale = vt(x1,y1,z1)
3020
if rainbowmode == true then
3021
rng.Color = Color3.new(r/255,g/255,b/255)
3022
end
3023
local scaler2 = 0
3024
local speeder = FastSpeed/10
3025
if type == "Add" then
3026
scaler2 = 1*value
3027
elseif type == "Divide" then
3028
scaler2 = 1/value
3029
end
3030
coroutine.resume(coroutine.create(function()
3031
for i = 0,10/bonuspeed,0.1 do
3032
swait()
3033
if rainbowmode == true then
3034
rng.Color = Color3.new(r/255,g/255,b/255)
3035
end
3036
if type == "Add" then
3037
scaler2 = scaler2 - 0.01*value/bonuspeed
3038
elseif type == "Divide" then
3039
scaler2 = scaler2 - 0.01/value*bonuspeed
3040
end
3041
if chaosmode == true then
3042
rng.BrickColor = BrickColor.random()
3043
end
3044
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
3045
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3046
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
3047
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3048
end
3049
rng:Destroy()
3050
end))
3051
end
3052
3053
function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
3054
local type = type
3055
local rng = Instance.new("Part", char)
3056
        rng.Anchored = true
3057
        rng.BrickColor = color
3058
        rng.Color = color3
3059
        rng.CanCollide = false
3060
        rng.FormFactor = 3
3061
        rng.Name = "Ring"
3062
        rng.Material = "Neon"
3063
        rng.Size = Vector3.new(1, 1, 1)
3064
        rng.Transparency = 0
3065
        rng.TopSurface = 0
3066
        rng.BottomSurface = 0
3067
        rng.CFrame = pos
3068
        local rngm = Instance.new("SpecialMesh", rng)
3069
        rngm.MeshType = "Brick"
3070
rngm.Scale = scale
3071
local scaler2 = 1
3072
local scaler2b = 1
3073
local scaler2c = 1
3074
if type == "Add" then
3075
scaler2 = 1*value
3076
scaler2b = 1*value2
3077
scaler2c = 1*value3
3078
elseif type == "Divide" then
3079
scaler2 = 1/value
3080
scaler2b = 1/value2
3081
scaler2c = 1/value3
3082
end
3083
coroutine.resume(coroutine.create(function()
3084
for i = 0,10/bonuspeed,0.1 do
3085
swait()
3086
if type == "Add" then
3087
scaler2 = scaler2 - 0.01*value/bonuspeed
3088
scaler2b = scaler2b - 0.01*value/bonuspeed
3089
scaler2c = scaler2c - 0.01*value/bonuspeed
3090
elseif type == "Divide" then
3091
scaler2 = scaler2 - 0.01/value*bonuspeed
3092
scaler2b = scaler2b - 0.01/value*bonuspeed
3093
scaler2c = scaler2c - 0.01/value*bonuspeed
3094
end
3095
rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
3096
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3097
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
3098
end
3099
rng:Destroy()
3100
end))
3101
end
3102
3103
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3104
local type = type
3105
local rng = Instance.new("Part", char)
3106
        rng.Anchored = true
3107
if ModeOfGlitch ~= 9 then
3108
        rng.BrickColor = color
3109
elseif ModeOfGlitch == 9 then
3110
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3111
end
3112
        rng.CanCollide = false
3113
        rng.FormFactor = 3
3114
        rng.Name = "Ring"
3115
        rng.Material = "Neon"
3116
        rng.Size = Vector3.new(1, 1, 1)
3117
        rng.Transparency = 0
3118
        rng.TopSurface = 0
3119
        rng.BottomSurface = 0
3120
        rng.CFrame = pos
3121
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3122
        local rngm = Instance.new("SpecialMesh", rng)
3123
        rngm.MeshType = "Sphere"
3124
rngm.Scale = vt(x1,y1,z1)
3125
if rainbowmode == true then
3126
rng.Color = Color3.new(r/255,g/255,b/255)
3127
end
3128
if ModeOfGlitch == 9 then
3129
coroutine.resume(coroutine.create(function()
3130
while true do
3131
swait()
3132
if rng.Parent ~= nil then
3133
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3134
else
3135
break
3136
end
3137
end
3138
end))
3139
end
3140
local scaler2 = 1
3141
local speeder = FastSpeed
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/bonuspeed,0.1 do
3149
swait()
3150
if rainbowmode == true then
3151
rng.Color = Color3.new(r/255,g/255,b/255)
3152
end
3153
if type == "Add" then
3154
scaler2 = scaler2 - 0.01*value/bonuspeed
3155
elseif type == "Divide" then
3156
scaler2 = scaler2 - 0.01/value*bonuspeed
3157
end
3158
if chaosmode == true then
3159
rng.BrickColor = BrickColor.random()
3160
end
3161
speeder = speeder - 0.01*FastSpeed*bonuspeed
3162
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3163
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3164
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3165
end
3166
rng:Destroy()
3167
end))
3168
end
3169
3170
3171
function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3172
local type = type
3173
local rng = Instance.new("Part", char)
3174
        rng.Anchored = true
3175
if ModeOfGlitch ~= 9 then
3176
        rng.BrickColor = color
3177
elseif ModeOfGlitch == 9 then
3178
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3179
end
3180
        rng.CanCollide = false
3181
        rng.FormFactor = 3
3182
        rng.Name = "Ring"
3183
        rng.Material = "Neon"
3184
        rng.Size = Vector3.new(1, 1, 1)
3185
        rng.Transparency = 1
3186
        rng.TopSurface = 0
3187
        rng.BottomSurface = 0
3188
        rng.CFrame = pos
3189
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3190
        local rngm = Instance.new("SpecialMesh", rng)
3191
        rngm.MeshType = "Sphere"
3192
rngm.Scale = vt(x1,y1,z1)
3193
if rainbowmode == true then
3194
rng.Color = Color3.new(r/255,g/255,b/255)
3195
end
3196
if ModeOfGlitch == 9 then
3197
coroutine.resume(coroutine.create(function()
3198
while true do
3199
swait()
3200
if rng.Parent ~= nil then
3201
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3202
else
3203
break
3204
end
3205
end
3206
end))
3207
end
3208
local scaler2 = 1
3209
local speeder = FastSpeed
3210
if type == "Add" then
3211
scaler2 = 1*value
3212
elseif type == "Divide" then
3213
scaler2 = 1/value
3214
end
3215
coroutine.resume(coroutine.create(function()
3216
for i = 0,10/bonuspeed,0.1 do
3217
swait()
3218
if rainbowmode == true then
3219
rng.Color = Color3.new(r/255,g/255,b/255)
3220
end
3221
if type == "Add" then
3222
scaler2 = scaler2 - 0.01*value/bonuspeed
3223
elseif type == "Divide" then
3224
scaler2 = scaler2 - 0.01/value*bonuspeed
3225
end
3226
if chaosmode == true then
3227
rng.BrickColor = BrickColor.random()
3228
end
3229
speeder = speeder - 0.01*FastSpeed*bonuspeed
3230
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3231
rng.Transparency = rng.Transparency - 0.01*bonuspeed
3232
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3233
end
3234
rng:Destroy()
3235
end))
3236
end
3237
3238
function dmg(dude)
3239
if dude.Name ~= Character then
3240
local keptcolor = MAINRUINCOLOR
3241
local bgf = Instance.new("BodyGyro",dude.Head)
3242
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
3243
--[[local val = Instance.new("BoolValue",dude)
3244
val.Name = "IsHit"]]--
3245
local ds = coroutine.wrap(function()
3246
dude:WaitForChild("Head"):BreakJoints()
3247
for i, v in pairs(dude:GetChildren()) do
3248
if v:IsA("Part") or v:IsA("MeshPart") then
3249
v.Name = "DEMINISHED"
3250
end
3251
end
3252
wait(0.5)
3253
targetted = nil
3254
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
3255
coroutine.resume(coroutine.create(function()
3256
for i, v in pairs(dude:GetChildren()) do
3257
if v:IsA("Accessory") then
3258
v:Destroy()
3259
end
3260
if v:IsA("Humanoid") then
3261
v:Destroy()
3262
end
3263
if v:IsA("CharacterMesh") then
3264
v:Destroy()
3265
end
3266
if v:IsA("Model") then
3267
v:Destroy()
3268
end
3269
if v:IsA("Part") or v:IsA("MeshPart") then
3270
for x, o in pairs(v:GetChildren()) do
3271
if o:IsA("Decal") then
3272
o:Destroy()
3273
end
3274
end
3275
coroutine.resume(coroutine.create(function()
3276
v.Material = "Neon"
3277
v.CanCollide = false
3278
v.Anchored = false
3279
local bld = Instance.new("ParticleEmitter",v)
3280
bld.LightEmission = 0.75
3281
bld.Texture = "rbxassetid://363275192" ---284205403
3282
bld.Color = ColorSequence.new(keptcolor.Color)
3283
bld.Rate = 500
3284
bld.Lifetime = NumberRange.new(1)
3285
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
3286
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
3287
bld.Speed = NumberRange.new(2,5)
3288
bld.VelocitySpread = 50000
3289
bld.Rotation = NumberRange.new(-500,500)
3290
bld.RotSpeed = NumberRange.new(-500,500)
3291
        local sbs = Instance.new("BodyPosition", v)
3292
        sbs.P = 3000
3293
        sbs.D = 1000
3294
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
3295
        sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
3296
v.Color = keptcolor.Color
3297
coroutine.resume(coroutine.create(function()
3298
for i = 0, 49 do
3299
swait(1)
3300
v:BreakJoints()
3301
v.Transparency = v.Transparency + 0.02
3302
end
3303
v:BreakJoints()
3304
sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
3305
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
3306
bld.Speed = NumberRange.new(10,25)
3307
bld.Drag = 5
3308
bld.Acceleration = vt(0,2,0)
3309
wait(0.5)
3310
bld.Enabled = false
3311
wait(8)
3312
v:Destroy()
3313
dude:Destroy()
3314
end))
3315
end))
3316
end
3317
end
3318
end))
3319
end)
3320
ds()
3321
end
3322
end
3323
3324
3325
function FindNearestHead(Position, Distance, SinglePlayer)
3326
	if SinglePlayer then
3327
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
3328
	end
3329
	local List = {}
3330
	for i, v in pairs(workspace:GetChildren()) do
3331
		if v:IsA("Model") then
3332
			if v:findFirstChild("Head") then
3333
				if v ~= Character then
3334
					if (v.Head.Position - Position).magnitude <= Distance then
3335
						table.insert(List, v)
3336
					end 
3337
				end 
3338
			end 
3339
		end 
3340
	end
3341
	return List
3342
end
3343
3344
function FaceMouse()
3345
  Cam = workspace.CurrentCamera
3346
  return {
3347
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
3348
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3349
  }
3350
end
3351
3352
function FaceMouse2()
3353
  Cam = workspace.CurrentCamera
3354
  return {
3355
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
3356
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3357
  }
3358
end
3359
3360
local ModeOfGlitch = 1
3361
-- Functions are ready.
3362
local storehumanoidWS = 16
3363
3364
function CorruptBlink()
3365
for i = 0, 14 do
3366
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)
3367
end
3368
sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3369
CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
3370
RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
3371
CameraEnshaking(2,10)
3372
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
3373
if v:FindFirstChild('Head') then
3374
dmg(v)
3375
end
3376
end
3377
for i = 0, 14 do
3378
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)
3379
end
3380
sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3381
end
3382
function PureBomb()
3383
attack = true
3384
hum.WalkSpeed = 0
3385
local orb = Instance.new("Part", char)
3386
        orb.Anchored = true
3387
        orb.BrickColor = BrickColor.new("Toothpaste")
3388
        orb.CanCollide = false
3389
        orb.FormFactor = 3
3390
        orb.Name = "Ring"
3391
        orb.Material = "Neon"
3392
        orb.Size = Vector3.new(1, 1, 1)
3393
        orb.Transparency = 0
3394
        orb.TopSurface = 0
3395
        orb.BottomSurface = 0
3396
        local orbm = Instance.new("SpecialMesh", orb)
3397
        orbm.MeshType = "Sphere"
3398
orbm.Name = "SizeMesh"
3399
orbm.Scale = vt(0,0,0)
3400
local scaled = 0.1
3401
local posid = 0
3402
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
3403
for i = 0, 5, 0.1 do
3404
swait()
3405
scaled = scaled - 0.001
3406
posid = posid - scaled
3407
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3408
local scaled = 0.1
3409
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
3410
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("Toothpaste"),10)
3411
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,BrickColor.new("Toothpaste"),0)
3412
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)
3413
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)
3414
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)
3415
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3416
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
3417
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)
3418
end
3419
for i = 0, 2, 0.1 do
3420
swait()
3421
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3422
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)
3423
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)
3424
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)
3425
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
3426
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
3427
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)
3428
end
3429
coroutine.resume(coroutine.create(function()
3430
orb.Anchored = false
3431
CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
3432
	local a = Instance.new("Part",workspace)
3433
	a.Name = "Direction"	
3434
	a.Anchored = true
3435
	a.BrickColor = bc("Bright red")
3436
a.Material = "Neon"
3437
a.Transparency = 1
3438
	a.CanCollide = false
3439
	local ray = Ray.new(
3440
	    orb.CFrame.p,                           -- origin
3441
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
3442
	) 
3443
	local ignore = orb
3444
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3445
	a.BottomSurface = 10
3446
	a.TopSurface = 10
3447
	local distance = (orb.CFrame.p - position).magnitude
3448
	a.Size = Vector3.new(0.1, 0.1, 0.1)
3449
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
3450
orb.CFrame = a.CFrame
3451
a:Destroy()
3452
local bv = Instance.new("BodyVelocity")
3453
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3454
bv.velocity = orb.CFrame.lookVector*125
3455
bv.Parent = orb
3456
local hitted = false
3457
game:GetService("Debris"):AddItem(orb, 15)
3458
wait()
3459
local hit =orb.Touched:connect(function(hit) 
3460
	if hitted == false then
3461
	hitted = true
3462
CameraEnshaking(10,2.5)
3463
CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
3464
	MagniDamage(orb, 65, 65,90, 0, "Normal")
3465
sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
3466
sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
3467
for i = 0, 49 do
3468
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,BrickColor.new("Toothpaste"),0)
3469
end
3470
for i = 0, 9 do
3471
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("Toothpaste"),0)
3472
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("Toothpaste"),0)
3473
end
3474
orb.Anchored = true
3475
orb.Transparency = 1
3476
wait(8)
3477
orb:Destroy()
3478
end
3479
end)
3480
end))
3481
for i = 0, 1, 0.1 do
3482
swait()
3483
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)
3484
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)
3485
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)
3486
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
3487
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
3488
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)
3489
end
3490
hum.WalkSpeed = storehumanoidWS
3491
attack = false
3492
end
3493
3494
function BanishingOrb()
3495
attack = true
3496
hum.WalkSpeed = 0
3497
local orb = Instance.new("Part", char)
3498
        orb.Anchored = true
3499
        orb.BrickColor = BrickColor.new("Black")
3500
        orb.CanCollide = false
3501
        orb.FormFactor = 3
3502
        orb.Name = "Ring"
3503
        orb.Material = "Neon"
3504
        orb.Size = Vector3.new(1, 1, 1)
3505
        orb.Transparency = 0
3506
        orb.TopSurface = 0
3507
        orb.BottomSurface = 0
3508
        local orbm = Instance.new("SpecialMesh", orb)
3509
        orbm.MeshType = "Sphere"
3510
orbm.Name = "SizeMesh"
3511
orbm.Scale = vt(0,0,0)
3512
local scaled = 0.1
3513
local posid = 0
3514
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
3515
for i = 0, 5, 0.1 do
3516
swait()
3517
scaled = scaled - 0.001
3518
posid = posid - scaled
3519
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3520
local scaled = 0.1
3521
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
3522
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("Black"),10)
3523
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)
3524
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)
3525
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)
3526
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3527
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
3528
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)
3529
end
3530
for i = 0, 2, 0.1 do
3531
swait()
3532
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3533
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)
3534
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)
3535
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)
3536
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
3537
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
3538
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)
3539
end
3540
coroutine.resume(coroutine.create(function()
3541
orb.Anchored = false
3542
CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
3543
	local a = Instance.new("Part",workspace)
3544
	a.Name = "Direction"	
3545
	a.Anchored = true
3546
	a.BrickColor = bc("Bright red")
3547
a.Material = "Neon"
3548
a.Transparency = 1
3549
	a.CanCollide = false
3550
	local ray = Ray.new(
3551
	    orb.CFrame.p,                           -- origin
3552
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
3553
	) 
3554
	local ignore = orb
3555
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3556
	a.BottomSurface = 10
3557
	a.TopSurface = 10
3558
	local distance = (orb.CFrame.p - position).magnitude
3559
	a.Size = Vector3.new(0.1, 0.1, 0.1)
3560
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
3561
orb.CFrame = a.CFrame
3562
a:Destroy()
3563
local bv = Instance.new("BodyVelocity")
3564
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3565
bv.velocity = orb.CFrame.lookVector*0
3566
bv.Parent = orb
3567
local hitted = false
3568
local rate = 0
3569
coroutine.resume(coroutine.create(function()
3570
for i = 0, 24 do
3571
wait(0.1)
3572
rate = rate + 0.25
3573
bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
3574
for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
3575
if v:FindFirstChild('Head') then
3576
dmg(v)
3577
end
3578
end
3579
CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
3580
sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3581
sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
3582
end
3583
orb.Anchored = true
3584
orb.Transparency = 1
3585
for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
3586
if v:FindFirstChild('Head') then
3587
dmg(v)
3588
end
3589
end
3590
local eff = Instance.new("ParticleEmitter",orb)
3591
eff.Texture = "rbxassetid://296874871"
3592
eff.LightEmission = 0.95
3593
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3594
eff.Rate = 1000000000
3595
eff.Lifetime = NumberRange.new(3)
3596
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
3597
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3598
eff.Speed = NumberRange.new(30)
3599
eff.Acceleration = vt(0,-15,0)
3600
eff.Rotation = NumberRange.new(-500,500)
3601
eff.VelocitySpread = 100000
3602
eff.RotSpeed = NumberRange.new(-500,500)
3603
coroutine.resume(coroutine.create(function()
3604
	wait(0.6)
3605
	eff.Enabled = false
3606
end))
3607
CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
3608
CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
3609
sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
3610
sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3611
sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
3612
game:GetService("Debris"):AddItem(orb, 15)
3613
end))
3614
end))
3615
for i = 0, 1, 0.1 do
3616
swait()
3617
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)
3618
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)
3619
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)
3620
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
3621
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
3622
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)
3623
end
3624
hum.WalkSpeed = storehumanoidWS
3625
attack = false
3626
end
3627
3628
3629
function ChaosGroundStrike()
3630
attack = true
3631
for i = 0, 2, 0.1 do
3632
swait()
3633
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)
3634
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)
3635
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
3636
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
3637
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
3638
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
3639
end
3640
CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
3641
CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
3642
CameraEnshaking(4,12)
3643
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
3644
if v:FindFirstChild('Head') then
3645
dmg(v)
3646
end
3647
end
3648
sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
3649
sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
3650
sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
3651
for i = 0, 2, 0.1 do
3652
swait()
3653
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)
3654
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)
3655
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)
3656
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)
3657
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
3658
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
3659
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
3660
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
3661
end
3662
attack = false
3663
end
3664
3665
3666
3667
function Starfall()
3668
attack = true
3669
hum.WalkSpeed = 0
3670
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
3671
for i = 0, 5, 0.1 do
3672
swait()
3673
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)
3674
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)
3675
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)
3676
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)
3677
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)
3678
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3679
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)
3680
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)
3681
end
3682
local Overed = false
3683
CameraEnshaking(2,20)
3684
sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3685
sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3686
sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
3687
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
3688
local orb = Instance.new("Part", char)
3689
        orb.Anchored = true
3690
        orb.BrickColor = BrickColor.new("Toothpaste")
3691
        orb.CanCollide = false
3692
        orb.FormFactor = 3
3693
        orb.Name = "Remenant"
3694
        orb.Material = "Neon"
3695
orb.CFrame = root.CFrame*CFrame.new(0,150,0)
3696
        orb.Size = Vector3.new(1, 1, 1)
3697
        orb.Transparency = 1
3698
        orb.TopSurface = 0
3699
        orb.BottomSurface = 0
3700
hum.WalkSpeed = storehumanoidWS
3701
coroutine.resume(coroutine.create(function()
3702
for i = 0, 9 do
3703
swait(10)
3704
				 local lb = Instance.new("Part")
3705
    lb.Color = MAINRUINCOLOR.Color
3706
     lb.CanCollide = false
3707
lb.Material = "Neon"
3708
     lb.Anchored = true
3709
lb.TopSurface = 0
3710
        lb.BottomSurface = 0
3711
     lb.Transparency = 0
3712
     lb.Size = vt(1,1,1)
3713
     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)))
3714
lb.Anchored = false
3715
  lb.Parent = char
3716
local thingery = Instance.new("SpecialMesh",lb)
3717
     thingery.MeshType = "Sphere"
3718
thingery.Scale = vt(20,20,20)
3719
game:GetService("Debris"):AddItem(lb, 10)
3720
  local bv = Instance.new("BodyVelocity")
3721
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3722
  bv.velocity = lb.CFrame.lookVector*math.random(75,250)
3723
  bv.Parent = lb
3724
sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
3725
sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
3726
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
3727
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
3728
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
3729
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
3730
local hitted = false
3731
coroutine.resume(coroutine.create(function()
3732
while true do
3733
swait(1)
3734
if lb.Parent ~= nil and hitted == false then
3735
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)
3736
elseif lb.Parent == nil then
3737
break
3738
end
3739
end
3740
end))
3741
3742
game:GetService("Debris"):AddItem(a, 0.1)
3743
3744
coroutine.resume(coroutine.create(function()
3745
swait(1)
3746
lb.Touched:connect(function(hit)
3747
if hitted == false then
3748
hitted = true
3749
lb.Transparency = 1
3750
lb.Anchored = true
3751
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
3752
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
3753
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
3754
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
3755
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
3756
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
3757
MagniDamage(lb, 45, 45,85, 0, "Normal")
3758
CameraEnshaking(1,5)
3759
sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
3760
sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
3761
for i = 0, 9 do
3762
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)
3763
end
3764
for i = 0, 49 do
3765
swait()
3766
MagniDamage(lb, 30, 2,4, 0, "Normal")
3767
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)
3768
end
3769
end
3770
end)
3771
end))
3772
end
3773
Overed = true
3774
orb:Destroy()
3775
end))
3776
3777
attack = false
3778
end
3779
3780
function StarfallEX()
3781
attack = true
3782
hum.WalkSpeed = 0
3783
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
3784
for i = 0, 10, 0.1 do
3785
swait()
3786
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)
3787
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)
3788
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)
3789
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)
3790
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)
3791
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3792
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)
3793
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)
3794
end
3795
local Overed = false
3796
CameraEnshaking(2,20)
3797
sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3798
sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3799
sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
3800
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
3801
local orb = Instance.new("Part", char)
3802
        orb.Anchored = true
3803
        orb.BrickColor = BrickColor.new("Toothpaste")
3804
        orb.CanCollide = false
3805
        orb.FormFactor = 3
3806
        orb.Name = "Remenant"
3807
        orb.Material = "Neon"
3808
orb.CFrame = root.CFrame*CFrame.new(0,250,0)
3809
        orb.Size = Vector3.new(1, 1, 1)
3810
        orb.Transparency = 1
3811
        orb.TopSurface = 0
3812
        orb.BottomSurface = 0
3813
hum.WalkSpeed = storehumanoidWS
3814
coroutine.resume(coroutine.create(function()
3815
for i = 0, 4 do
3816
swait(15)
3817
				 local lb = Instance.new("Part")
3818
    lb.Color = MAINRUINCOLOR.Color
3819
     lb.CanCollide = false
3820
lb.Material = "Neon"
3821
     lb.Anchored = true
3822
lb.TopSurface = 0
3823
        lb.BottomSurface = 0
3824
     lb.Transparency = 0
3825
     lb.Size = vt(1,1,1)
3826
     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)))
3827
lb.Anchored = false
3828
  lb.Parent = char
3829
local thingery = Instance.new("SpecialMesh",lb)
3830
     thingery.MeshType = "Sphere"
3831
thingery.Scale = vt(50,50,50)
3832
game:GetService("Debris"):AddItem(lb, 10)
3833
  local bv = Instance.new("BodyVelocity")
3834
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3835
  bv.velocity = lb.CFrame.lookVector*math.random(50,420)
3836
  bv.Parent = lb
3837
sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
3838
sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
3839
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
3840
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
3841
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
3842
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
3843
local hitted = false
3844
coroutine.resume(coroutine.create(function()
3845
while true do
3846
swait(1)
3847
if lb.Parent ~= nil and hitted == false then
3848
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))),25,25,25,0.25,MAINRUINCOLOR,-2)
3849
elseif lb.Parent == nil then
3850
break
3851
end
3852
end
3853
end))
3854
3855
game:GetService("Debris"):AddItem(a, 0.1)
3856
3857
coroutine.resume(coroutine.create(function()
3858
swait(1)
3859
lb.Touched:connect(function(hit)
3860
if hitted == false then
3861
hitted = true
3862
lb.Transparency = 1
3863
lb.Anchored = true
3864
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
3865
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
3866
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
3867
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
3868
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
3869
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
3870
MagniDamage(lb, 50, 60,99, 0, "Normal")
3871
CameraEnshaking(1,5)
3872
sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
3873
sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
3874
for i = 0, 9 do
3875
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,100,-0.1,MAINRUINCOLOR,0)
3876
end
3877
for i = 0, 99 do
3878
swait()
3879
MagniDamage(lb, 30, 6,18, 0, "Normal")
3880
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))),32,32,32,0.32,MAINRUINCOLOR,0)
3881
end
3882
end
3883
end)
3884
end))
3885
end
3886
Overed = true
3887
orb:Destroy()
3888
end))
3889
3890
attack = false
3891
end
3892
3893
function DivineBlast()
3894
attack = true
3895
hum.WalkSpeed = 0
3896
local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
3897
elocacenter.Anchored = true
3898
elocacenter.CFrame = sorb.CFrame
3899
local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3900
eloca1.Anchored = true
3901
eloca1.CFrame = elocacenter.CFrame
3902
local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3903
eloca2.Anchored = true
3904
eloca2.CFrame = elocacenter.CFrame
3905
local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3906
eloca3.Anchored = true
3907
eloca3.CFrame = elocacenter.CFrame
3908
local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3909
eloca4.Anchored = true
3910
eloca4.CFrame = elocacenter.CFrame
3911
local lookavec = 0 
3912
local speeds = 0
3913
CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
3914
for i = 0, 3, 0.1 do
3915
swait()
3916
---
3917
lookavec = lookavec + 0.1
3918
speeds = speeds + 10
3919
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3920
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3921
PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3922
3923
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3924
PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3925
3926
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3927
PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3928
3929
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3930
PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3931
---
3932
root.CFrame = FaceMouse()[1]
3933
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)
3934
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)
3935
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)
3936
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)
3937
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3938
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)
3939
end
3940
for i = 0, 3, 0.1 do
3941
swait()
3942
---
3943
speeds = speeds + 10
3944
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3945
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3946
PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3947
3948
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3949
PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3950
3951
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3952
PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3953
3954
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3955
PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3956
---
3957
root.CFrame = FaceMouse()[1]
3958
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)
3959
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)
3960
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)
3961
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)
3962
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3963
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)
3964
end
3965
CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
3966
for i = 0, 3, 0.1 do
3967
swait()
3968
---
3969
speeds = speeds + 10
3970
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3971
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3972
PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3973
3974
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3975
PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3976
3977
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3978
PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3979
3980
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3981
PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2)
3982
---
3983
root.CFrame = FaceMouse()[1]
3984
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)
3985
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)
3986
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(40)),.1)
3987
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1)
3988
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
3989
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)
3990
end
3991
coroutine.resume(coroutine.create(function()
3992
local a = Instance.new("Part",Character)
3993
	a.Name = "Direction"	
3994
	a.Anchored = true
3995
	a.BrickColor = bc("White")
3996
a.Material = "Neon"
3997
a.Transparency = 0
3998
a.Shape = "Cylinder"
3999
	a.CanCollide = false
4000
local a2 = Instance.new("Part",Character)
4001
	a2.Name = "Direction"	
4002
	a2.Anchored = true
4003
	a2.BrickColor = bc("Bright yellow")
4004
a2.Material = "Neon"
4005
a2.Transparency = 0
4006
a2.Shape = "Cylinder"
4007
	a2.CanCollide = false
4008
local b = Instance.new("Part",Character)
4009
	b.Name = "HitDirect"	
4010
	b.Anchored = true
4011
	b.BrickColor = bc("Cool yellow")
4012
b.Material = "Neon"
4013
b.Transparency = 1
4014
	b.CanCollide = false
4015
	local ray = Ray.new(
4016
	    elocacenter.CFrame.p,                           -- origin
4017
	    (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
4018
	) 
4019
	local ignore = Character
4020
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
4021
	a.BottomSurface = 10
4022
	a.TopSurface = 10
4023
	a2.BottomSurface = 10
4024
	a2.TopSurface = 10
4025
	local distance = (elocacenter.CFrame.p - position).magnitude
4026
	a.Size = Vector3.new(distance, 1, 1)
4027
	a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
4028
	a2.Size = Vector3.new(distance, 1, 1)
4029
	a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
4030
b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
4031
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
4032
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
4033
game:GetService("Debris"):AddItem(a, 10)
4034
game:GetService("Debris"):AddItem(a2, 10)
4035
game:GetService("Debris"):AddItem(b, 10)
4036
local msh = Instance.new("SpecialMesh",a)
4037
msh.MeshType = "Cylinder"
4038
msh.Scale = vt(1,2,2)
4039
local msh2 = Instance.new("SpecialMesh",a2)
4040
msh2.MeshType = "Cylinder"
4041
msh2.Scale = vt(1,2.5,2.5)
4042
CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
4043
coroutine.resume(coroutine.create(function()
4044
for i = 0,10,0.1 do
4045
swait()
4046
msh.Scale = msh.Scale + vt(0,0.05,0.05)
4047
a.Transparency = a.Transparency + 0.025
4048
msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
4049
a2.Transparency = a2.Transparency + 0.05
4050
end
4051
a:Destroy()
4052
a2:Destroy()
4053
end))
4054
CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
4055
CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
4056
CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
4057
CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
4058
CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
4059
CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
4060
MagniDamage(b, 25, 40,65, 0, "Normal")
4061
for i = 0, 49 do
4062
PixelBlock(2,math.random(10,20),"Add",b.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.04,BrickColor.new("Bright yellow"),0)
4063
PixelBlock(1,math.random(1,10),"Add",b.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("Bright yellow"),0)
4064
end
4065
sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
4066
sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
4067
sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4068
sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4069
sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4070
sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4071
end))
4072
game:GetService("Debris"):AddItem(elocacenter, 5)
4073
hum.WalkSpeed = storehumanoidWS
4074
attack = false
4075
end
4076
4077
function StarDivision()
4078
attack = true
4079
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
4080
for i = 0, 2, 0.1 do
4081
swait()
4082
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)
4083
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)
4084
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)
4085
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)
4086
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
4087
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)
4088
end
4089
local orb = Instance.new("Part", char)
4090
        orb.BrickColor = MAINRUINCOLOR
4091
        orb.CanCollide = false
4092
        orb.FormFactor = 3
4093
        orb.Name = "Ring"
4094
        orb.Material = "Neon"
4095
        orb.Size = Vector3.new(1, 1, 1)
4096
        orb.Transparency = 0
4097
        orb.TopSurface = 0
4098
        orb.BottomSurface = 0
4099
        local orbm = Instance.new("SpecialMesh", orb)
4100
        orbm.MeshType = "Sphere"
4101
orbm.Name = "SizeMesh"
4102
orbm.Scale = vt(2,2,2)
4103
local a = Instance.new("Part",workspace)
4104
	a.Name = "Direction"	
4105
	a.Anchored = true
4106
	a.BrickColor = bc("Bright red")
4107
a.Material = "Neon"
4108
a.Transparency = 1
4109
	a.CanCollide = false
4110
	local ray = Ray.new(
4111
	    sorb.CFrame.p,                           -- origin
4112
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
4113
	) 
4114
	local ignore = sorb
4115
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
4116
	a.BottomSurface = 10
4117
	a.TopSurface = 10
4118
	local distance = (sorb.CFrame.p - position).magnitude
4119
	a.Size = Vector3.new(0.1, 0.1, 0.1)
4120
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
4121
orb.CFrame = a.CFrame
4122
a:Destroy()
4123
local bv = Instance.new("BodyVelocity")
4124
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4125
bv.velocity = orb.CFrame.lookVector*100
4126
bv.Parent = orb
4127
local hitted = false
4128
game:GetService("Debris"):AddItem(orb, 10)
4129
CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
4130
CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
4131
CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
4132
CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
4133
CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
4134
coroutine.resume(coroutine.create(function()
4135
while true do
4136
swait(1)
4137
if orb.Parent ~= nil and hitted == false then
4138
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)
4139
elseif orb.Parent == nil then
4140
break
4141
end
4142
end
4143
end))
4144
coroutine.resume(coroutine.create(function()
4145
swait(1)
4146
orb.Touched:connect(function(hit)
4147
if hitted == false then
4148
hitted = true
4149
game:GetService("Debris"):AddItem(orb, 5)
4150
orb.Transparency = 1
4151
orb.Anchored = true
4152
local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4153
elocacenter.Anchored = true
4154
elocacenter.CFrame = orb.CFrame
4155
elocacenter.Orientation = vt(0,0,0)
4156
local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4157
eloca1.Anchored = true
4158
eloca1.CFrame = elocacenter.CFrame
4159
local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4160
eloca2.Anchored = true
4161
eloca2.CFrame = elocacenter.CFrame
4162
local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4163
eloca3.Anchored = true
4164
eloca3.CFrame = elocacenter.CFrame
4165
local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4166
eloca4.Anchored = true
4167
eloca4.CFrame = elocacenter.CFrame
4168
local lookavec = 0 
4169
local speeds = 0
4170
CameraEnshaking(1,1)
4171
CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
4172
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4173
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4174
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4175
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4176
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4177
for i = 0, 99 do
4178
swait()
4179
lookavec = lookavec + 1
4180
speeds = speeds + 0.1
4181
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4182
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4183
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)
4184
4185
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4186
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)
4187
4188
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4189
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)
4190
4191
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4192
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)
4193
end
4194
4195
for i = 0, 149 do
4196
swait()
4197
speeds = speeds + 0.1
4198
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4199
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4200
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)
4201
4202
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4203
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)
4204
4205
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4206
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)
4207
4208
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4209
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)
4210
end
4211
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
4212
if v:FindFirstChild('Head') then
4213
dmg(v)
4214
end
4215
end
4216
CameraEnshaking(7,30)
4217
MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
4218
CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
4219
CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
4220
CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
4221
CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
4222
sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
4223
sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
4224
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4225
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4226
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4227
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4228
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4229
for i = 0, 24 do
4230
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)
4231
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)
4232
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)
4233
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)
4234
end
4235
coroutine.resume(coroutine.create(function()
4236
for i = 0, 499 do
4237
swait(1)
4238
MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
4239
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)
4240
end
4241
elocacenter:Destroy()
4242
eloca1:Destroy()
4243
eloca2:Destroy()
4244
eloca3:Destroy()
4245
eloca4:Destroy()
4246
end))
4247
end
4248
end)
4249
end))
4250
attack = false
4251
end
4252
4253
4254
function THE_TRUE_POWER_OF_VIOLENCE()
4255
attack = true
4256
hum.WalkSpeed = 0
4257
CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
4258
for i = 0, 10, 0.1 do
4259
swait()
4260
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)
4261
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)
4262
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(0)),.4)
4263
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(40)),.4)
4264
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
4265
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4266
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
4267
end
4268
local orb = Instance.new("Part", char)
4269
        orb.BrickColor = MAINRUINCOLOR
4270
        orb.CanCollide = false
4271
        orb.FormFactor = 3
4272
        orb.Name = "Ring"
4273
        orb.Material = "Neon"
4274
        orb.Size = Vector3.new(1, 1, 1)
4275
        orb.Transparency = 0
4276
        orb.TopSurface = 0
4277
        orb.BottomSurface = 0
4278
orb.CFrame = sorb.CFrame
4279
        local orbm = Instance.new("SpecialMesh", orb)
4280
        orbm.MeshType = "Sphere"
4281
orbm.Name = "SizeMesh"
4282
orbm.Scale = vt(0,0,0)
4283
        local sbs = Instance.new("BodyPosition", orb)
4284
        sbs.P = 3000
4285
        sbs.D = 1000
4286
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
4287
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
4288
CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
4289
sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4290
sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4291
sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4292
sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4293
sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4294
for i = 0, 10, 0.1 do
4295
swait()
4296
PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0)
4297
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))),.6)
4298
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(0)),.6)
4299
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(60)),.6)
4300
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
4301
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4302
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
4303
end
4304
orb.Anchored = true
4305
local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4306
elocacenter.Anchored = true
4307
elocacenter.CFrame = orb.CFrame
4308
elocacenter.Orientation = vt(0,0,0)
4309
local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4310
eloca1.Anchored = true
4311
eloca1.CFrame = elocacenter.CFrame
4312
local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4313
eloca2.Anchored = true
4314
eloca2.CFrame = elocacenter.CFrame
4315
local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4316
eloca3.Anchored = true
4317
eloca3.CFrame = elocacenter.CFrame
4318
local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4319
eloca4.Anchored = true
4320
eloca4.CFrame = elocacenter.CFrame
4321
local lookavec = 0 
4322
local speeds = 0
4323
CameraEnshaking(1,1)
4324
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
4325
CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
4326
CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
4327
CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
4328
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4329
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4330
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4331
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4332
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4333
for i = 0, 99 do
4334
swait()
4335
lookavec = lookavec + 2.5
4336
speeds = speeds + 0.25
4337
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4338
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4339
PixelBlockNeg(2,0,"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)
4340
4341
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4342
PixelBlockNeg(2,0,"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)
4343
4344
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4345
PixelBlockNeg(2,0,"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)
4346
4347
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4348
PixelBlockNeg(2,0,"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)
4349
end
4350
4351
for i = 0, 149 do
4352
swait()
4353
speeds = speeds + 0.25
4354
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4355
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4356
PixelBlockNeg(2,0,"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)
4357
4358
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4359
PixelBlockNeg(2,0,"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)
4360
4361
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4362
PixelBlockNeg(2,0,"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)
4363
4364
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4365
PixelBlockNeg(2,0,"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)
4366
end
4367
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
4368
for i = 0, 99 do
4369
swait()
4370
lookavec = lookavec - 2.5
4371
speeds = speeds + 0.25
4372
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4373
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4374
PixelBlockNeg(2,0,"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)
4375
4376
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4377
PixelBlockNeg(2,0,"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)
4378
4379
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4380
PixelBlockNeg(2,0,"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)
4381
4382
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4383
PixelBlockNeg(2,0,"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)
4384
end
4385
local scaled = 0.1*75
4386
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
4387
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
4388
CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
4389
CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
4390
CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
4391
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
4392
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4393
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4394
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4395
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4396
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4397
for i = 0, 10, 0.1 do
4398
swait()
4399
scaled = scaled - 0.001*75
4400
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4401
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)
4402
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))),.6)
4403
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(0)),.6)
4404
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(60)),.6)
4405
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
4406
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4407
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6)
4408
end
4409
for x = 0, 4 do
4410
for i = 0, 9 do
4411
sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
4412
end
4413
CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
4414
CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
4415
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4416
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4417
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4418
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4419
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4420
for i = 0, 5, 0.1 do
4421
swait()
4422
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)
4423
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)
4424
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)
4425
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(0)),.1)
4426
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)
4427
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
4428
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
4429
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
4430
end
4431
end
4432
local speedearn = 0
4433
CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
4434
CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
4435
CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
4436
for i = 0, 30, 0.1 do
4437
swait()
4438
scaled = scaled - 0.001*75/10
4439
speedearn = speedearn + 0.5
4440
for i = 0, 4 do 
4441
sphereMK(1+speedearn,speedearn,"Add",elocacenter.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)
4442
end
4443
PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0)
4444
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4445
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)
4446
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)
4447
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))),.6)
4448
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(0)),.6)
4449
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)),.6)
4450
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
4451
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
4452
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
4453
end
4454
orb.Transparency = 1
4455
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
4456
if v:FindFirstChild('Head') then
4457
dmg(v)
4458
end
4459
end
4460
CameraEnshaking(7,30)
4461
MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
4462
CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
4463
CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
4464
CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
4465
CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
4466
CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
4467
CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
4468
CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
4469
CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
4470
CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
4471
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
4472
CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
4473
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
4474
CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
4475
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4476
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4477
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4478
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4479
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4480
for i = 0, 99 do
4481
PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
4482
PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0)
4483
end
4484
for i = 0, 24 do
4485
sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0)
4486
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)
4487
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)
4488
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)
4489
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)
4490
end
4491
game:GetService("Debris"):AddItem(orb, 10)
4492
hum.WalkSpeed = storehumanoidWS
4493
attack = false
4494
end
4495
4496
4497
function ViolentRing()
4498
attack = true
4499
CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
4500
for i = 0, 2, 0.1 do
4501
swait()
4502
local snap = math.random(1,10)
4503
if snap == 1 then
4504
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1)
4505
end
4506
PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
4507
PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
4508
PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0)
4509
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))),.6)
4510
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(0)),.6)
4511
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)),.6)
4512
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
4513
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
4514
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)),.6)
4515
RootPart.CFrame = FaceMouse()[1]
4516
end
4517
local orb = Instance.new("Part", char)
4518
        orb.BrickColor = MAINRUINCOLOR
4519
        orb.CanCollide = false
4520
        orb.FormFactor = 3
4521
        orb.Name = "Ring"
4522
        orb.Material = "Neon"
4523
        orb.Size = Vector3.new(1, 1, 1)
4524
        orb.Transparency = 0
4525
        orb.TopSurface = 0
4526
        orb.BottomSurface = 0
4527
        local orbm = Instance.new("SpecialMesh", orb)
4528
        orbm.MeshType = "Sphere"
4529
orbm.Name = "SizeMesh"
4530
orbm.Scale = vt(2,2,2)
4531
orb.CFrame = mouse.Hit
4532
local bv = Instance.new("BodyVelocity")
4533
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4534
bv.velocity = orb.CFrame.lookVector*100
4535
bv.Parent = orb
4536
local hitted = false
4537
coroutine.resume(coroutine.create(function()
4538
game:GetService("Debris"):AddItem(orb, 5)
4539
orb.Transparency = 1
4540
orb.Anchored = true
4541
local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4542
elocacenter.Anchored = true
4543
elocacenter.CFrame = orb.CFrame
4544
elocacenter.Orientation = vt(0,0,0)
4545
local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4546
eloca1.Anchored = true
4547
eloca1.CFrame = elocacenter.CFrame
4548
local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4549
eloca2.Anchored = true
4550
eloca2.CFrame = elocacenter.CFrame
4551
local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4552
eloca3.Anchored = true
4553
eloca3.CFrame = elocacenter.CFrame
4554
local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4555
eloca4.Anchored = true
4556
eloca4.CFrame = elocacenter.CFrame
4557
local lookavec = 0 
4558
local speeds = 0
4559
CameraEnshaking(1,1)
4560
CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
4561
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4562
sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4563
sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4564
sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4565
sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4566
for i = 0, 24 do
4567
swait()
4568
lookavec = lookavec + 3.5
4569
speeds = speeds + 1
4570
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4571
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4572
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)
4573
4574
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4575
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)
4576
4577
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4578
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)
4579
4580
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4581
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)
4582
end
4583
4584
local risen = 0
4585
for i = 0, 49 do
4586
swait()
4587
risen = risen + 0.05
4588
speeds = speeds + 0.1
4589
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4590
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4591
PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
4592
4593
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4594
PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
4595
4596
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4597
PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
4598
4599
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4600
PixelBlockNeg(2,math.random(1+risen,2+risen),"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)
4601
end
4602
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
4603
if v:FindFirstChild('Head') then
4604
dmg(v)
4605
end
4606
end
4607
CameraEnshaking(4,10)
4608
MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
4609
CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
4610
CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
4611
CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
4612
CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
4613
CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
4614
sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
4615
sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
4616
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4617
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4618
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4619
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4620
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4621
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
4622
for i = 0, 24 do
4623
sphereMK(2,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.25,MAINRUINCOLOR,0)
4624
sphereMK(4,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)
4625
sphereMK(6,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)
4626
sphereMK(8,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)
4627
end
4628
coroutine.resume(coroutine.create(function()
4629
wait(10)
4630
elocacenter:Destroy()
4631
eloca1:Destroy()
4632
eloca2:Destroy()
4633
eloca3:Destroy()
4634
eloca4:Destroy()
4635
end))
4636
end))
4637
attack = false
4638
end
4639
4640
function UniversalCollapse()
4641
attack = true
4642
local speedearn = 0
4643
hum.WalkSpeed = 0
4644
        local sbs = Instance.new("BodyPosition", root)
4645
        sbs.P = 3000
4646
        sbs.D = 1000
4647
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
4648
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
4649
CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
4650
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
4651
for i = 0, 110, 0.1 do
4652
swait()
4653
speedearn = speedearn + 0.1
4654
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)
4655
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)
4656
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)
4657
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)
4658
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)
4659
sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
4660
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)
4661
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)
4662
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)
4663
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
4664
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)
4665
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)
4666
end
4667
CameraEnshaking(5,50)
4668
sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
4669
for i = 0, 2 do 
4670
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
4671
CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
4672
CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
4673
CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
4674
end
4675
for i = 0, 49 do
4676
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)
4677
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)
4678
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)
4679
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)
4680
end
4681
sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4682
sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4683
sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4684
sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4685
sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4686
sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4687
sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4688
sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4689
sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4690
sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4691
sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4692
sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4693
for i = 0, 99 do
4694
PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0)
4695
PixelBlock(2,math.random(250,1000),"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,10,0.2,MAINRUINCOLOR,0)
4696
end
4697
for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
4698
if v:FindFirstChild('Head') then
4699
dmg(v)
4700
end
4701
end
4702
MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
4703
sbs:Destroy()
4704
hum.WalkSpeed = storehumanoidWS
4705
attack = false
4706
end
4707
4708
4709
function ChaosEND()
4710
attack = true
4711
local speedearn = 0
4712
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
4713
for i = 0, 15, 0.1 do
4714
swait()
4715
speedearn = speedearn + 0.25
4716
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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
4717
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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
4718
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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
4719
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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
4720
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))),25,25,10*speedearn,-0.25,BrickColor.random(),0)
4721
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)
4722
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)
4723
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4724
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4725
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
4726
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
4727
end
4728
CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
4729
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
4730
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
4731
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
4732
CameraEnshaking(5,25)
4733
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
4734
if v:FindFirstChild('Head') then
4735
dmg(v)
4736
end
4737
end
4738
sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
4739
sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
4740
sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
4741
for i = 0, 3, 0.1 do
4742
swait()
4743
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))),25,25,250,-0.25,BrickColor.random(),0)
4744
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))),25,25,250,-0.25,BrickColor.random(),0)
4745
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))),25,25,250,-0.25,BrickColor.random(),0)
4746
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))),25,25,250,-0.25,BrickColor.random(),0)
4747
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)
4748
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)
4749
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4750
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4751
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
4752
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
4753
end
4754
attack = false
4755
end
4756
4757
function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
4758
local orb = Instance.new("Part", char)
4759
        orb.Anchored = true
4760
        orb.BrickColor = color
4761
        orb.CanCollide = false
4762
        orb.FormFactor = 3
4763
        orb.Name = "Ring"
4764
        orb.Material = "Neon"
4765
        orb.Size = Vector3.new(1, 1, 1)
4766
        orb.Transparency = 0
4767
        orb.TopSurface = 0
4768
        orb.BottomSurface = 0
4769
        local orbm = Instance.new("SpecialMesh", orb)
4770
        orbm.MeshType = "Sphere"
4771
orb.CFrame = positted
4772
orbm.Name = "SizeMesh"
4773
orbm.Scale = vt(1,1,1)
4774
CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
4775
sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
4776
--[[for i = 0, 2 do
4777
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)
4778
end]]--
4779
coroutine.resume(coroutine.create(function()
4780
wait(timer)
4781
CameraEnshaking(3,ShakePower)
4782
orb.Transparency = 1
4783
MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
4784
sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
4785
--[[for i = 0, 4 do
4786
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)
4787
end]]--
4788
CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
4789
wait(3)
4790
orb:Destroy()
4791
end))
4792
end
4793
4794
function orb_spawn(positted,timer)
4795
local randomcol = math.random(1,2)
4796
local orb = Instance.new("Part", char)
4797
        orb.Anchored = true
4798
if randomcol == 1 then
4799
        orb.BrickColor = BrickColor.new("White")
4800
elseif randomcol == 2 then
4801
orb.BrickColor = BrickColor.new("Really black")
4802
end
4803
        orb.CanCollide = false
4804
        orb.FormFactor = 3
4805
        orb.Name = "Ring"
4806
        orb.Material = "Neon"
4807
        orb.Size = Vector3.new(1, 1, 1)
4808
        orb.Transparency = 0
4809
        orb.TopSurface = 0
4810
        orb.BottomSurface = 0
4811
        local orbm = Instance.new("SpecialMesh", orb)
4812
        orbm.MeshType = "Sphere"
4813
orb.CFrame = positted
4814
orbm.Name = "SizeMesh"
4815
orbm.Scale = vt(1,1,1)
4816
CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
4817
sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
4818
for i = 0, 2 do
4819
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)
4820
end
4821
coroutine.resume(coroutine.create(function()
4822
wait(timer)
4823
CameraEnshaking(3,2)
4824
orb.Transparency = 1
4825
MagniDamage(orb, 17.5, 10,50, 0, "Normal")
4826
sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
4827
for i = 0, 4 do
4828
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)
4829
end
4830
CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
4831
wait(3)
4832
orb:Destroy()
4833
end))
4834
end
4835
4836
function scattercorrupt()
4837
attack = true
4838
local rot = 0
4839
local randomrotations = math.random(1,2)
4840
local lookv = 2.5
4841
local power = 5
4842
sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
4843
sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
4844
for i = 0, 9 do
4845
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("Royal purple"),0)
4846
end
4847
	CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
4848
	CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
4849
	CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
4850
CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
4851
CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
4852
local hite = Instance.new("Part", char)
4853
        hite.Anchored = true
4854
        hite.CanCollide = false
4855
        hite.FormFactor = 3
4856
        hite.Name = "Ring"
4857
        hite.Material = "Neon"
4858
        hite.Size = Vector3.new(1, 1, 1)
4859
        hite.Transparency = 1
4860
        hite.TopSurface = 0
4861
        hite.BottomSurface = 0
4862
hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
4863
local rem = Instance.new("Part", char)
4864
        rem.Anchored = true
4865
        rem.CanCollide = false
4866
        rem.FormFactor = 3
4867
        rem.Name = "Ring"
4868
        rem.Material = "Neon"
4869
        rem.Size = Vector3.new(1, 1, 1)
4870
        rem.Transparency = 1
4871
        rem.TopSurface = 0
4872
        rem.BottomSurface = 0
4873
rem.CFrame = hite.CFrame
4874
local rem2 = rem:Clone()
4875
rem2.Parent = char
4876
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
4877
local rem3 = rem:Clone()
4878
rem3.Parent = char
4879
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
4880
local rem4 = rem:Clone()
4881
rem4.Parent = char
4882
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
4883
hite:Destroy()
4884
coroutine.resume(coroutine.create(function()
4885
for i = 0, 24 do
4886
swait(1)
4887
if randomrotations == 1 then
4888
rot = rot + 1
4889
elseif randomrotations == 2 then
4890
rot = rot - 1
4891
end
4892
power = power + 0.5
4893
lookv = lookv + 7.5
4894
rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
4895
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
4896
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
4897
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
4898
orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4899
orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4900
orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4901
orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4902
end
4903
end))
4904
attack = false
4905
end
4906
function yinyangi()
4907
attack = true
4908
for i = 0, 2, 0.1 do
4909
swait()
4910
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)
4911
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)
4912
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)
4913
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4914
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
4915
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
4916
end
4917
local bv = Instance.new("BodyVelocity")
4918
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4919
bv.velocity = root.CFrame.lookVector*175
4920
bv.Parent = root
4921
for Rotations = 0, 9 do
4922
for i = 0, 1, 0.5 do
4923
swait()
4924
bv.velocity = root.CFrame.lookVector*175
4925
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)
4926
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)
4927
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)
4928
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4929
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4930
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4931
end
4932
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4933
for i = 0, 1, 0.5 do
4934
swait()
4935
bv.velocity = root.CFrame.lookVector*175
4936
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)
4937
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)
4938
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)
4939
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4940
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4941
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4942
end
4943
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4944
for i = 0, 1, 0.5 do
4945
swait()
4946
bv.velocity = root.CFrame.lookVector*175
4947
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)
4948
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)
4949
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)
4950
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4951
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4952
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4953
end
4954
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4955
for i = 0, 1, 0.5 do
4956
swait()
4957
bv.velocity = root.CFrame.lookVector*175
4958
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)
4959
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)
4960
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)
4961
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4962
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4963
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4964
end
4965
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4966
end
4967
bv:Destroy()
4968
attack = false
4969
end
4970
4971
function createBGCircle(size,parent,color)
4972
local bgui = Instance.new("BillboardGui",parent)
4973
bgui.Size = UDim2.new(size, 0, size, 0)
4974
local imgc = Instance.new("ImageLabel",bgui)
4975
imgc.BackgroundTransparency = 1
4976
imgc.ImageTransparency = 0
4977
imgc.Size = UDim2.new(1,0,1,0)
4978
imgc.Image = "rbxassetid://997291547" --997291547,521073910
4979
imgc.ImageColor3 = color
4980
return bgui,imgc
4981
end
4982
4983
function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
4984
local bgui,imgc = createBGCircle(size,guipar,color)
4985
bgui.AlwaysOnTop = true
4986
imgc.Image = "rbxassetid://" ..img
4987
local rrot = math.random(1,2)
4988
CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
4989
coroutine.resume(coroutine.create(function()
4990
for i = 0, 24*delay do
4991
swait()
4992
if rotationenabled == true then
4993
if rrot == 1 then
4994
imgc.Rotation = imgc.Rotation + rotsp
4995
elseif rrot == 2 then
4996
imgc.Rotation = imgc.Rotation - rotsp
4997
end
4998
end
4999
bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
5000
imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
5001
end
5002
bgui:Destroy()
5003
end))
5004
end
5005
function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
5006
for i, v in pairs(mw2:GetChildren()) do
5007
if v:IsA("Part") then
5008
v.BrickColor = one
5009
v.Material = "Neon"
5010
end
5011
end
5012
CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
5013
symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
5014
symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
5015
tr1.Color = ColorSequence.new(one.Color)
5016
tr2.Color = ColorSequence.new(one.Color)
5017
tr3.Color = ColorSequence.new(one.Color)
5018
for i, v in pairs(mw1:GetChildren()) do
5019
if v:IsA("Part") then
5020
if secondaryenabled == false then
5021
v.Transparency = 1
5022
elseif secondaryenabled == true then
5023
v.Transparency = 0
5024
end
5025
v.BrickColor = two
5026
v.Material = "Neon"
5027
end
5028
end
5029
if secondaryenabled == false then
5030
tl1.Enabled = false
5031
tl2.Enabled = false
5032
tl3.Enabled = false
5033
elseif secondaryenabled == true then
5034
tl1.Enabled = true
5035
tl2.Enabled = true
5036
tl3.Enabled = true
5037
end
5038
tl1.Color = ColorSequence.new(two.Color)
5039
tl2.Color = ColorSequence.new(two.Color)
5040
tl3.Color = ColorSequence.new(two.Color)
5041
for i, v in pairs(m:GetChildren()) do
5042
if v:IsA("Part") then
5043
v.BrickColor = three
5044
v.Material = "Ice"
5045
end
5046
end
5047
for i, v in pairs(m2:GetChildren()) do
5048
if v:IsA("Part") then
5049
v.BrickColor = four
5050
v.Material = "Ice"
5051
end
5052
end
5053
for i, v in pairs(m3:GetChildren()) do
5054
if v:IsA("Part") then
5055
v.BrickColor = five
5056
v.Material = "Neon"
5057
end
5058
end
5059
for i, v in pairs(extrawingmod1:GetChildren()) do
5060
if v:IsA("Part") then
5061
v.Transparency = exonetran
5062
v.BrickColor = exone
5063
v.Material = "Neon"
5064
end
5065
end
5066
for i, v in pairs(extrawingmod2:GetChildren()) do
5067
if v:IsA("Part") then
5068
v.Transparency = extwotran
5069
v.BrickColor = extwo
5070
v.Material = "Neon"
5071
end
5072
end
5073
end
5074
5075
5076
function normalmog()
5077
attack = true
5078
hum.WalkSpeed = 0
5079
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
5080
for i = 0,6,0.1 do
5081
swait()
5082
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)
5083
slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR)
5084
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)),.2)
5085
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)),.2)
5086
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
5087
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2)
5088
RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
5089
LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
5090
end
5091
CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
5092
CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
5093
CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
5094
CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
5095
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
5096
CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
5097
CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
5098
rainbowmode = false
5099
chaosmode = false
5100
ModeOfGlitch = 1
5101
storehumanoidWS = 16
5102
newTheme("rbxassetid://614032233",48.6,1,1.25)
5103
RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
5104
CameraEnshaking(5,2.5)
5105
MAINRUINCOLOR = BrickColor.new("Really red")
5106
sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
5107
for i = 0, 49 do
5108
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)
5109
end
5110
for i = 0, 24 do
5111
sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR)
5112
slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
5113
end
5114
for i = 0,3,0.1 do
5115
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)
5116
end
5117
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
5118
for i = 0,2,0.1 do
5119
swait()
5120
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)
5121
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)
5122
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
5123
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)
5124
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)
5125
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)
5126
end
5127
hum.WalkSpeed = storehumanoidWS
5128
attack = false
5129
end
5130
5131
function attackone()
5132
	attack = true
5133
local keptcolor = MAINRUINCOLOR
5134
	for i = 0,1,0.1 do
5135
		swait()
5136
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
5137
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
5138
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
5139
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5140
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(-15),math.rad(0),math.rad(0)),.3)
5141
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(0),math.rad(0)),.3)
5142
	end
5143
local distlook = 5
5144
coroutine.resume(coroutine.create(function()
5145
for i = 0, 4 do
5146
swait(2)
5147
CameraEnshaking(2,3)
5148
local hite = Instance.new("Part", char)
5149
        hite.Anchored = true
5150
        hite.CanCollide = false
5151
        hite.FormFactor = 3
5152
        hite.Name = "Ring"
5153
        hite.Material = "Neon"
5154
        hite.Size = Vector3.new(1, 1, 1)
5155
        hite.Transparency = 1
5156
        hite.TopSurface = 0
5157
        hite.BottomSurface = 0
5158
hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
5159
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
5160
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
5161
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
5162
sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
5163
MagniDamage(hite, 9, 10,25, 0, "Normal")
5164
for i = 0, 14 do
5165
local rsiz = math.random(5,20)
5166
sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
5167
end
5168
CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
5169
CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
5170
game:GetService("Debris"):AddItem(hite, 5)
5171
distlook = distlook + 10
5172
end
5173
end))
5174
	for i = 0,1,0.1 do
5175
		swait()
5176
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
5177
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
5178
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
5179
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
5180
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(-10)),.5)
5181
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(0),math.rad(-10)),.5)
5182
	end
5183
	attack = false
5184
end
5185
5186
function attacktwo()
5187
	attack = true
5188
hum.WalkSpeed = 2
5189
local keptcolor = MAINRUINCOLOR
5190
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
5191
sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
5192
sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
5193
for i = 0, 14 do
5194
PixelBlock(1,math.random(1,3),"Add",rarm.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,keptcolor,0)
5195
end
5196
for i = 0,1,0.1 do
5197
swait()
5198
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5199
RH.C0=clerp(RH.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(-5)),.3)
5200
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(30),math.rad(0)),.3)
5201
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
5202
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
5203
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
5204
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
5205
end
5206
for i = 0, 1 do
5207
CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
5208
for i = 0,1,0.6 do
5209
swait()
5210
sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5211
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5212
RH.C0=clerp(RH.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(-5)),.6)
5213
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(30),math.rad(0)),.6)
5214
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
5215
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5216
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5217
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5218
end
5219
for i = 0,1,0.6 do
5220
swait()
5221
sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5222
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5223
RH.C0=clerp(RH.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(-5)),.6)
5224
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(30),math.rad(0)),.6)
5225
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
5226
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5227
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5228
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5229
end
5230
for i = 0,1,0.6 do
5231
swait()
5232
sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5233
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5234
RH.C0=clerp(RH.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(-5)),.6)
5235
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(30),math.rad(0)),.6)
5236
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
5237
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5238
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5239
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5240
end
5241
for i = 0,1,0.6 do
5242
swait()
5243
sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5244
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5245
RH.C0=clerp(RH.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(-5)),.6)
5246
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(30),math.rad(0)),.6)
5247
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
5248
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5249
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5250
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5251
end
5252
local rot = 0
5253
local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
5254
CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
5255
dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
5256
CreateMesh(dis,"Sphere",10,1,10)
5257
local at1 = Instance.new("Attachment",dis)
5258
at1.Position = vt(-5,0,0)
5259
local at2 = Instance.new("Attachment",dis)
5260
at2.Position = vt(5,0,0)
5261
local trl = Instance.new('Trail',wed)
5262
trl.Attachment0 = at1
5263
trl.Attachment1 = at2
5264
trl.Texture = "rbxassetid://1049219073"
5265
trl.LightEmission = 1
5266
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5267
trl.Color = ColorSequence.new(dis.Color)
5268
trl.Lifetime = 0.6
5269
local a = Instance.new("Part",workspace)
5270
	a.Name = "Direction"	
5271
	a.Anchored = true
5272
	a.BrickColor = bc("Bright red")
5273
a.Material = "Neon"
5274
a.Transparency = 1
5275
	a.CanCollide = false
5276
	local ray = Ray.new(
5277
	    dis.CFrame.p,                           -- origin
5278
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
5279
	) 
5280
	local ignore = dis
5281
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5282
	a.BottomSurface = 10
5283
	a.TopSurface = 10
5284
	local distance = (dis.CFrame.p - position).magnitude
5285
	a.Size = Vector3.new(0.1, 0.1, 0.1)
5286
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
5287
dis.CFrame = a.CFrame
5288
dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
5289
a:Destroy()
5290
local bv = Instance.new("BodyVelocity")
5291
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5292
bv.velocity = dis.CFrame.lookVector*250
5293
bv.Parent = dis
5294
game:GetService("Debris"):AddItem(dis, 5)
5295
local hitted = false
5296
coroutine.resume(coroutine.create(function()
5297
dis.Touched:connect(function(hit) 
5298
	if hitted == false and hit.Parent ~= char then
5299
	hitted = true
5300
	CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
5301
	MagniDamage(dis, 30, 33,56, 0, "Normal")
5302
	sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
5303
	sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5304
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5305
	coroutine.resume(coroutine.create(function()
5306
		for i = 0, 9 do
5307
local disr = CreateParta(char,1,1,"Neon",keptcolor)
5308
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
5309
local at1 = Instance.new("Attachment",disr)
5310
at1.Position = vt(-5,0,0)
5311
local at2 = Instance.new("Attachment",disr)
5312
at2.Position = vt(5,0,0)
5313
local trl = Instance.new('Trail',disr)
5314
trl.Attachment0 = at1
5315
trl.FaceCamera = true
5316
trl.Attachment1 = at2
5317
trl.Texture = "rbxassetid://2342682798"
5318
trl.LightEmission = 1
5319
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5320
trl.Color = ColorSequence.new(keptcolor.Color)
5321
trl.Lifetime = 0.5
5322
local bv = Instance.new("BodyVelocity")
5323
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5324
bv.velocity = disr.CFrame.lookVector*math.random(50,200)
5325
bv.Parent = disr
5326
local val = 0
5327
coroutine.resume(coroutine.create(function()
5328
	swait(30)
5329
	for i = 0, 9 do
5330
		swait()
5331
		val = val + 0.1
5332
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
5333
	end
5334
game:GetService("Debris"):AddItem(disr, 3)
5335
end))
5336
end
5337
local eff = Instance.new("ParticleEmitter",dis)
5338
eff.Texture = "rbxassetid://2273224484"
5339
eff.LightEmission = 1
5340
eff.Color = ColorSequence.new(keptcolor.Color)
5341
eff.Rate = 500000
5342
eff.Lifetime = NumberRange.new(0.5,2)
5343
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
5344
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
5345
eff.Speed = NumberRange.new(20,250)
5346
eff.Drag = 5
5347
eff.Rotation = NumberRange.new(-500,500)
5348
eff.VelocitySpread = 9000
5349
eff.RotSpeed = NumberRange.new(-50,50)
5350
wait(0.25)
5351
eff.Enabled = false
5352
end))
5353
	for i = 0, 9 do
5354
		slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
5355
	end
5356
for i = 0, 19 do
5357
PixelBlock(1,math.random(5,20),"Add",dis.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,keptcolor,0)
5358
end
5359
coroutine.resume(coroutine.create(function()
5360
for i = 0, 19 do
5361
swait()
5362
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
5363
end
5364
hum.CameraOffset = vt(0,0,0)
5365
end))
5366
dis.Anchored = true
5367
dis.Transparency = 1
5368
wait(8)
5369
dis:Destroy()
5370
end
5371
end)
5372
end))
5373
rot = rot - 15
5374
end
5375
for i = 0,2,0.1 do
5376
swait()
5377
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
5378
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(5)),.3)
5379
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
5380
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
5381
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
5382
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
5383
end
5384
attack = false
5385
hum.WalkSpeed = storehumanoidWS
5386
end
5387
5388
function attackthree()
5389
attack = true
5390
local keptcolor = MAINRUINCOLOR
5391
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
5392
	for i = 0,2,0.1 do
5393
		swait()
5394
		sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5395
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
5396
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
5397
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
5398
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
5399
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-50),math.rad(-10)),.3)
5400
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(40)),.3)
5401
	end
5402
CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
5403
CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
5404
CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
5405
CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
5406
sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
5407
sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
5408
for i = 0, 24 do
5409
		slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(50,200)/250,BrickColor.new("White"))
5410
end
5411
for i = 0,4,0.1 do
5412
		swait()
5413
		root.CFrame = root.CFrame + root.CFrame.lookVector*5
5414
		local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
5415
CreateMesh(dis,"Sphere",1,1,1)
5416
dis.Anchored = true
5417
dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
5418
sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
5419
coroutine.resume(coroutine.create(function()
5420
	swait(30)
5421
	dis.Transparency = 1
5422
coroutine.resume(coroutine.create(function()
5423
for i = 0, 19 do
5424
swait()
5425
hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
5426
end
5427
hum.CameraOffset = vt(0,0,0)
5428
end))
5429
coroutine.resume(coroutine.create(function()
5430
local eff = Instance.new("ParticleEmitter",dis)
5431
eff.Texture = "rbxassetid://2273224484"
5432
eff.LightEmission = 1
5433
eff.Color = ColorSequence.new(dis.Color)
5434
eff.Rate = 500000
5435
eff.Lifetime = NumberRange.new(0.5,2)
5436
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
5437
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
5438
eff.Speed = NumberRange.new(50,450)
5439
eff.Drag = 5
5440
eff.Rotation = NumberRange.new(-500,500)
5441
eff.VelocitySpread = 9000
5442
eff.RotSpeed = NumberRange.new(-50,50)
5443
wait(0.125)
5444
eff.Enabled = false
5445
end))
5446
MagniDamage(dis, 30, 45,50, 0, "Normal")
5447
    for i = 0, 2 do
5448
		slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor)
5449
	end
5450
	CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
5451
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
5452
	CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
5453
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
5454
end))
5455
game:GetService("Debris"):AddItem(dis, 5)
5456
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
5457
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
5458
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
5459
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
5460
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5)
5461
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5)
5462
	end
5463
attack = false
5464
end
5465
----------------------------------- Abilities
5466
5467
function ExtinctiveHeartbreak()
5468
local targetted = nil
5469
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
5470
targetted = mouse.Target.Parent
5471
end
5472
if targetted ~= nil then
5473
attack = true
5474
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
5475
for i = 0, 9 do
5476
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("Really red"),0)
5477
end
5478
for i = 0, 24 do
5479
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,BrickColor.new("Really red"),0)
5480
end
5481
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5482
local originalpos = root.CFrame
5483
RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
5484
for i = 0, 9 do
5485
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("Really red"),0)
5486
end
5487
for i = 0, 24 do
5488
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,BrickColor.new("Really red"),0)
5489
end
5490
hum.WalkSpeed = 0
5491
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5492
local radm = math.random(1,3)
5493
if radm == 1 then
5494
bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
5495
elseif radm == 2 then
5496
bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
5497
elseif radm == 3 then
5498
bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
5499
end
5500
for i = 0,2,0.1 do
5501
swait()
5502
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(-10),math.rad(0)),.4)
5503
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)
5504
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)
5505
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
5506
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)
5507
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)
5508
end
5509
CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
5510
CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
5511
for i = 0,2,0.1 do
5512
swait()
5513
coroutine.resume(coroutine.create(function()
5514
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
5515
for i,v in pairs(targetted:GetChildren()) do
5516
if v:IsA("Part") or v:IsA("MeshPart") then
5517
v.Velocity = vt(0,0,0)
5518
end
5519
end
5520
end))
5521
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)
5522
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(10),math.rad(0)),.8)
5523
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)
5524
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
5525
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)
5526
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)
5527
end
5528
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
5529
CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
5530
for i = 0, 1 do
5531
CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
5532
end
5533
CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
5534
--chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
5535
for i = 0,4,0.1 do
5536
swait()
5537
coroutine.resume(coroutine.create(function()
5538
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
5539
dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
5540
local at1 = Instance.new("Attachment",dis)
5541
at1.Position = vt(-25000,0,0)
5542
local at2 = Instance.new("Attachment",dis)
5543
at2.Position = vt(25000,0,0)
5544
local trl = Instance.new('Trail',dis)
5545
trl.Attachment0 = at1
5546
trl.FaceCamera = true
5547
trl.Attachment1 = at2
5548
trl.Texture = "rbxassetid://1049219073"
5549
trl.LightEmission = 1
5550
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5551
trl.Color = ColorSequence.new(Color3.new(1,0,0))
5552
trl.Lifetime = 5
5553
local bv = Instance.new("BodyVelocity")
5554
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5555
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
5556
bv.Parent = dis
5557
game:GetService("Debris"):AddItem(dis, 5)
5558
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
5559
CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
5560
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
5561
CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
5562
CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
5563
CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
5564
sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR)
5565
targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
5566
for i = 0, 2 do
5567
slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson"))
5568
end
5569
symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
5570
for i,v in pairs(targetted:GetChildren()) do
5571
if v:IsA("Part") or v:IsA("MeshPart") then
5572
v.Velocity = vt(0,0,0)
5573
end
5574
end
5575
end))
5576
hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
5577
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)
5578
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(10),math.rad(0)),.8)
5579
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)
5580
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
5581
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(40)),.8)
5582
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
5583
end
5584
hum.CameraOffset = vt(0,0,0)
5585
for i = 0, 49 do
5586
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
5587
dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
5588
local at1 = Instance.new("Attachment",dis)
5589
at1.Position = vt(-50000,0,0)
5590
local at2 = Instance.new("Attachment",dis)
5591
at2.Position = vt(50000,0,0)
5592
local trl = Instance.new('Trail',dis)
5593
trl.Attachment0 = at1
5594
trl.FaceCamera = true
5595
trl.Attachment1 = at2
5596
trl.Texture = "rbxassetid://1049219073"
5597
trl.LightEmission = 1
5598
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5599
trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
5600
trl.Lifetime = 5
5601
local bv = Instance.new("BodyVelocity")
5602
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5603
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
5604
bv.Parent = dis
5605
game:GetService("Debris"):AddItem(dis, 5)
5606
end
5607
for i = 0, 49 do
5608
sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR)
5609
slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
5610
end
5611
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
5612
for i = 0, 1 do
5613
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
5614
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
5615
end
5616
for i = 0, 4 do
5617
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
5618
end
5619
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
5620
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
5621
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
5622
dmg(targetted)
5623
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
5624
for i = 0, 9 do
5625
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("Really red"),0)
5626
end
5627
for i = 0, 24 do
5628
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,BrickColor.new("Really red"),0)
5629
end
5630
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5631
root.CFrame = originalpos
5632
for i = 0, 9 do
5633
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("Really red"),0)
5634
end
5635
for i = 0, 24 do
5636
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,BrickColor.new("Really red"),0)
5637
end
5638
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5639
attack = false
5640
hum.WalkSpeed = storehumanoidWS
5641
end
5642
end
5643
5644
function CorruptionEvent()
5645
attack = true
5646
hum.WalkSpeed = 0
5647
CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
5648
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
5649
local keptcolor = MAINRUINCOLOR
5650
for i = 0,4,0.1 do
5651
swait()
5652
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
5653
block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5654
RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
5655
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
5656
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
5657
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
5658
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
5659
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
5660
end
5661
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
5662
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
5663
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
5664
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
5665
CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
5666
CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
5667
CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
5668
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
5669
hum.CameraOffset = vt(0,0,0)
5670
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5671
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5672
for i = 0, 24 do
5673
slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
5674
end
5675
local rrot = 0
5676
coroutine.resume(coroutine.create(function()
5677
for i = 0, 4 do
5678
rrot = rrot + 45
5679
local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5680
xa.Anchored = true
5681
local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5682
xb.Anchored = true
5683
local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5684
xc.Anchored = true
5685
local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5686
xd.Anchored = true
5687
CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
5688
CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
5689
CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
5690
CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
5691
CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
5692
CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
5693
CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
5694
CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
5695
CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
5696
CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
5697
CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
5698
CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
5699
xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
5700
xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
5701
xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
5702
xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
5703
MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5704
MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5705
MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5706
MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5707
for i = 0, 9 do
5708
slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
5709
slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
5710
slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
5711
slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
5712
end
5713
block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5714
block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5715
block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5716
block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5717
sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
5718
sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
5719
sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
5720
sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color)
5721
sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
5722
sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
5723
sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
5724
sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
5725
game:GetService("Debris"):AddItem(xa, 5)
5726
game:GetService("Debris"):AddItem(xb, 5)
5727
game:GetService("Debris"):AddItem(xc, 5)
5728
game:GetService("Debris"):AddItem(xd, 5)
5729
coroutine.resume(coroutine.create(function()
5730
for i = 0, 19 do
5731
swait()
5732
hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
5733
end
5734
hum.CameraOffset = vt(0,0,0)
5735
end))
5736
swait(9)
5737
end
5738
end))
5739
for i = 0,2,0.1 do
5740
swait()
5741
RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
5742
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
5743
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
5744
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
5745
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
5746
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
5747
end
5748
attack = false
5749
hum.WalkSpeed = storehumanoidWS
5750
end
5751
5752
function EndGROUND()
5753
	attack = true
5754
hum.WalkSpeed = 0
5755
bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
5756
--CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
5757
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
5758
CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
5759
CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
5760
local keptcolor = MAINRUINCOLOR
5761
for i = 0,4,0.1 do
5762
swait()
5763
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
5764
block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5765
slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
5766
RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
5767
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
5768
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
5769
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
5770
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
5771
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
5772
end
5773
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
5774
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
5775
CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
5776
CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
5777
CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
5778
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
5779
coroutine.resume(coroutine.create(function()
5780
	local shval = 10
5781
	for i = 0, 99 do
5782
		swait()
5783
		shval = shval - 0.1
5784
		hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
5785
	end
5786
	hum.CameraOffset = vt(0,0,0)
5787
end))
5788
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5789
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5790
for i = 0, 24 do
5791
slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
5792
end
5793
local rrot = 0
5794
local xam = 1
5795
coroutine.resume(coroutine.create(function()
5796
for i = 0, 14 do
5797
--swait()
5798
rrot = rrot + 40*xam
5799
xam = xam + 0.25
5800
local bonus = xam
5801
local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
5802
xa.Anchored = true
5803
xa.Color = Color3.new(0,0,0)
5804
xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
5805
CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
5806
local xc = 0
5807
coroutine.resume(coroutine.create(function()
5808
for i = 0, 99 do
5809
	swait()
5810
	xc = xc + 0.01
5811
	xa.Color = Color3.new(xc,0,0)
5812
end
5813
xa.Transparency = 1
5814
CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
5815
MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
5816
for i = 0, 9 do
5817
slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
5818
end
5819
block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5820
sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color)
5821
sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
5822
game:GetService("Debris"):AddItem(xa, 5)
5823
coroutine.resume(coroutine.create(function()
5824
for i = 0, 19 do
5825
swait()
5826
hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
5827
end
5828
hum.CameraOffset = vt(0,0,0)
5829
end))
5830
end))
5831
end
5832
end))
5833
for i = 0,2,0.1 do
5834
swait()
5835
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8)
5836
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8)
5837
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
5838
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
5839
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
5840
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
5841
end
5842
attack = false
5843
hum.WalkSpeed = storehumanoidWS
5844
end
5845
5846
function HeavenlyDisk()
5847
attack = true
5848
hum.WalkSpeed = 2
5849
local keptcolor = MAINRUINCOLOR
5850
local radm = math.random(1,3)
5851
if radm == 1 then
5852
bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
5853
elseif radm == 2 then
5854
bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
5855
elseif radm == 3 then
5856
bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
5857
end
5858
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
5859
CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
5860
sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
5861
sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color)
5862
for i = 0, 14 do
5863
PixelBlock(1,math.random(1,3),"Add",larm.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,BrickColor.new("Toothpaste"),0)
5864
end
5865
for i = 0,2,0.1 do
5866
swait()
5867
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5868
RH.C0=clerp(RH.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(-5)),.3)
5869
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(30),math.rad(0)),.3)
5870
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
5871
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
5872
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
5873
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
5874
end
5875
CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
5876
for i = 0,1,0.6 do
5877
swait()
5878
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5879
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5880
RH.C0=clerp(RH.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(-5)),.6)
5881
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(30),math.rad(0)),.6)
5882
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
5883
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5884
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5885
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5886
end
5887
for i = 0,1,0.6 do
5888
swait()
5889
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5890
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5891
RH.C0=clerp(RH.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(-5)),.6)
5892
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(30),math.rad(0)),.6)
5893
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
5894
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5895
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5896
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5897
end
5898
for i = 0,1,0.6 do
5899
swait()
5900
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5901
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5902
RH.C0=clerp(RH.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(-5)),.6)
5903
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(30),math.rad(0)),.6)
5904
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
5905
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5906
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5907
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5908
end
5909
for i = 0,1,0.6 do
5910
swait()
5911
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color)
5912
slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
5913
RH.C0=clerp(RH.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(-5)),.6)
5914
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(30),math.rad(0)),.6)
5915
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
5916
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5917
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5918
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5919
end
5920
local rot = 15
5921
for i = 0, 2 do
5922
local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
5923
CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
5924
dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
5925
CreateMesh(dis,"Sphere",10,1,10)
5926
local at1 = Instance.new("Attachment",dis)
5927
at1.Position = vt(-5,0,0)
5928
local at2 = Instance.new("Attachment",dis)
5929
at2.Position = vt(5,0,0)
5930
local trl = Instance.new('Trail',wed)
5931
trl.Attachment0 = at1
5932
trl.Attachment1 = at2
5933
trl.Texture = "rbxassetid://1049219073"
5934
trl.LightEmission = 1
5935
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5936
trl.Color = ColorSequence.new(dis.Color)
5937
trl.Lifetime = 0.6
5938
local a = Instance.new("Part",workspace)
5939
	a.Name = "Direction"	
5940
	a.Anchored = true
5941
	a.BrickColor = bc("Bright red")
5942
a.Material = "Neon"
5943
a.Transparency = 1
5944
	a.CanCollide = false
5945
	local ray = Ray.new(
5946
	    dis.CFrame.p,                           -- origin
5947
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
5948
	) 
5949
	local ignore = dis
5950
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5951
	a.BottomSurface = 10
5952
	a.TopSurface = 10
5953
	local distance = (dis.CFrame.p - position).magnitude
5954
	a.Size = Vector3.new(0.1, 0.1, 0.1)
5955
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
5956
dis.CFrame = a.CFrame
5957
dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
5958
a:Destroy()
5959
local bv = Instance.new("BodyVelocity")
5960
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5961
bv.velocity = dis.CFrame.lookVector*250
5962
bv.Parent = dis
5963
game:GetService("Debris"):AddItem(dis, 5)
5964
local hitted = false
5965
coroutine.resume(coroutine.create(function()
5966
dis.Touched:connect(function(hit) 
5967
	if hitted == false and hit.Parent ~= char then
5968
	hitted = true
5969
	CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
5970
	MagniDamage(dis, 30, 82,34575, 0, "Normal")
5971
	sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
5972
	sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5973
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
5974
	coroutine.resume(coroutine.create(function()
5975
		for i = 0, 9 do
5976
local disr = CreateParta(char,1,1,"Neon",keptcolor)
5977
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
5978
local at1 = Instance.new("Attachment",disr)
5979
at1.Position = vt(-2,0,0)
5980
local at2 = Instance.new("Attachment",disr)
5981
at2.Position = vt(2,0,0)
5982
local trl = Instance.new('Trail',disr)
5983
trl.Attachment0 = at1
5984
trl.FaceCamera = true
5985
trl.Attachment1 = at2
5986
trl.Texture = "rbxassetid://2342682798"
5987
trl.LightEmission = 1
5988
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5989
trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
5990
trl.Lifetime = 0.5
5991
local bv = Instance.new("BodyVelocity")
5992
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5993
bv.velocity = disr.CFrame.lookVector*math.random(50,200)
5994
bv.Parent = disr
5995
local val = 0
5996
coroutine.resume(coroutine.create(function()
5997
	swait(30)
5998
	for i = 0, 9 do
5999
		swait()
6000
		val = val + 0.1
6001
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
6002
	end
6003
game:GetService("Debris"):AddItem(disr, 3)
6004
end))
6005
end
6006
local eff = Instance.new("ParticleEmitter",dis)
6007
eff.Texture = "rbxassetid://2273224484"
6008
eff.LightEmission = 1
6009
eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
6010
eff.Rate = 500000
6011
eff.Lifetime = NumberRange.new(0.5,2)
6012
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
6013
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
6014
eff.Speed = NumberRange.new(20,250)
6015
eff.Drag = 5
6016
eff.Rotation = NumberRange.new(-500,500)
6017
eff.VelocitySpread = 9000
6018
eff.RotSpeed = NumberRange.new(-50,50)
6019
wait(0.25)
6020
eff.Enabled = false
6021
end))
6022
	for i = 0, 9 do
6023
		slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
6024
	end
6025
for i = 0, 19 do
6026
PixelBlock(1,math.random(5,20),"Add",dis.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("Toothpaste"),0)
6027
end
6028
coroutine.resume(coroutine.create(function()
6029
for i = 0, 19 do
6030
swait()
6031
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
6032
end
6033
hum.CameraOffset = vt(0,0,0)
6034
end))
6035
dis.Anchored = true
6036
dis.Transparency = 1
6037
wait(8)
6038
dis:Destroy()
6039
end
6040
end)
6041
end))
6042
rot = rot - 15
6043
end
6044
for i = 0,2,0.1 do
6045
swait()
6046
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3)
6047
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(5)),.3)
6048
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
6049
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
6050
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
6051
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
6052
end
6053
attack = false
6054
hum.WalkSpeed = storehumanoidWS
6055
end
6056
6057
function RapidBurst()
6058
attack = true
6059
hum.WalkSpeed = 0
6060
CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
6061
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
6062
CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
6063
bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
6064
local keptcolor = MAINRUINCOLOR
6065
for i = 0,8,0.1 do
6066
swait()
6067
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
6068
slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random())
6069
block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color)
6070
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1)
6071
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1)
6072
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
6073
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6074
RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1)
6075
LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1)
6076
end
6077
for i = 0, 99 do
6078
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6079
dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
6080
local at1 = Instance.new("Attachment",dis)
6081
at1.Position = vt(-25000,0,0)
6082
local at2 = Instance.new("Attachment",dis)
6083
at2.Position = vt(25000,0,0)
6084
local trl = Instance.new('Trail',dis)
6085
trl.Attachment0 = at1
6086
trl.FaceCamera = true
6087
trl.Attachment1 = at2
6088
trl.Texture = "rbxassetid://1049219073"
6089
trl.LightEmission = 1
6090
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6091
trl.Color = ColorSequence.new(BrickColor.random().Color)
6092
trl.Lifetime = 5
6093
local bv = Instance.new("BodyVelocity")
6094
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6095
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
6096
bv.Parent = dis
6097
game:GetService("Debris"):AddItem(dis, 5)
6098
end
6099
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
6100
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
6101
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
6102
sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
6103
sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
6104
sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
6105
sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
6106
CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
6107
CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
6108
CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
6109
hum.CameraOffset = vt(0,0,0)
6110
for i = 0, 24 do
6111
slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random())
6112
end
6113
local distam = 0
6114
coroutine.resume(coroutine.create(function()
6115
for i = 0, 99 do
6116
	wait()
6117
distam = distam + 1
6118
local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
6119
xa.Anchored = true
6120
xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
6121
game:GetService("Debris"):AddItem(xa, 5)
6122
for i = 0, 4 do
6123
slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random())
6124
end
6125
coroutine.resume(coroutine.create(function()
6126
local eff = Instance.new("ParticleEmitter",xa)
6127
eff.Texture = "rbxassetid://2273224484"
6128
eff.LightEmission = 1
6129
eff.Color = ColorSequence.new(BrickColor.random().Color)
6130
eff.Rate = 500000
6131
eff.Lifetime = NumberRange.new(1,3)
6132
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
6133
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
6134
eff.Speed = NumberRange.new(50,500)
6135
eff.Drag = 5
6136
eff.Rotation = NumberRange.new(-500,500)
6137
eff.VelocitySpread = 9000
6138
eff.RotSpeed = NumberRange.new(-50,50)
6139
wait(0.25)
6140
eff.Enabled = false
6141
end))
6142
coroutine.resume(coroutine.create(function()
6143
for i = 0, 19 do
6144
swait()
6145
hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
6146
end
6147
hum.CameraOffset = vt(0,0,0)
6148
end))
6149
CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
6150
sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
6151
sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
6152
MagniDamage(xa, 60, 9999,99999, 0, "Normal")
6153
end
6154
end))
6155
attack = false
6156
hum.WalkSpeed = storehumanoidWS
6157
end
6158
6159
6160
function FallenOrbs()
6161
attack = true
6162
hum.WalkSpeed = 2
6163
local keptcolor = MAINRUINCOLOR
6164
CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
6165
CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
6166
local radm = math.random(1,3)
6167
if radm == 1 then
6168
bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
6169
elseif radm == 2 then
6170
bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
6171
elseif radm == 3 then
6172
bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
6173
end
6174
coroutine.resume(coroutine.create(function()
6175
for i = 0, 29 do
6176
swait(2)
6177
local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
6178
dis.Anchored = true
6179
CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
6180
dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
6181
CreateMesh(dis,"Sphere",2,2,2)
6182
sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
6183
slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("White"))
6184
coroutine.resume(coroutine.create(function()
6185
wait(0.5)
6186
dis.Anchored = false
6187
CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
6188
local at1 = Instance.new("Attachment",dis)
6189
at1.Position = vt(-1,0,0)
6190
local at2 = Instance.new("Attachment",dis)
6191
at2.Position = vt(1,0,0)
6192
local trl = Instance.new('Trail',dis)
6193
trl.Attachment0 = at1
6194
trl.FaceCamera = true
6195
trl.Attachment1 = at2
6196
trl.Texture = "rbxassetid://1049219073"
6197
trl.LightEmission = 1
6198
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6199
trl.Color = ColorSequence.new(dis.Color)
6200
trl.Lifetime = 0.6
6201
local a = Instance.new("Part",workspace)
6202
	a.Name = "Direction"	
6203
	a.Anchored = true
6204
	a.BrickColor = bc("Bright red")
6205
a.Material = "Neon"
6206
a.Transparency = 1
6207
	a.CanCollide = false
6208
	local ray = Ray.new(
6209
	    dis.CFrame.p,                           -- origin
6210
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
6211
	) 
6212
	local ignore = dis
6213
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
6214
	a.BottomSurface = 10
6215
	a.TopSurface = 10
6216
	local distance = (dis.CFrame.p - position).magnitude
6217
	a.Size = Vector3.new(0.1, 0.1, 0.1)
6218
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
6219
dis.CFrame = a.CFrame
6220
a:Destroy()
6221
local bv = Instance.new("BodyVelocity")
6222
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6223
bv.velocity = dis.CFrame.lookVector*500
6224
bv.Parent = dis
6225
game:GetService("Debris"):AddItem(dis, 5)
6226
local hitted = false
6227
coroutine.resume(coroutine.create(function()
6228
dis.Touched:connect(function(hit) 
6229
	if hitted == false and hit.Parent ~= char then
6230
	hitted = true
6231
	CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
6232
	MagniDamage(dis, 60, 25456,124672, 0, "Normal")
6233
	sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
6234
	sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
6235
	coroutine.resume(coroutine.create(function()
6236
for i = 0, 4 do
6237
local disr = CreateParta(char,1,1,"Neon",keptcolor)
6238
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
6239
local at1 = Instance.new("Attachment",disr)
6240
at1.Position = vt(-10,0,0)
6241
local at2 = Instance.new("Attachment",disr)
6242
at2.Position = vt(10,0,0)
6243
local trl = Instance.new('Trail',disr)
6244
trl.Attachment0 = at1
6245
trl.FaceCamera = true
6246
trl.Attachment1 = at2
6247
trl.Texture = "rbxassetid://2342682798"
6248
trl.LightEmission = 1
6249
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6250
trl.Color = ColorSequence.new(disr.Color)
6251
trl.Lifetime = 0.5
6252
local bv = Instance.new("BodyVelocity")
6253
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6254
bv.velocity = disr.CFrame.lookVector*math.random(125,250)
6255
bv.Parent = disr
6256
local val = 0
6257
coroutine.resume(coroutine.create(function()
6258
	swait(30)
6259
	for i = 0, 9 do
6260
		swait()
6261
		val = val + 0.1
6262
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
6263
	end
6264
game:GetService("Debris"):AddItem(disr, 3)
6265
end))
6266
end
6267
local eff = Instance.new("ParticleEmitter",dis)
6268
eff.Texture = "rbxassetid://2273224484"
6269
eff.LightEmission = 1
6270
eff.Color = ColorSequence.new(dis.Color)
6271
eff.Rate = 500000
6272
eff.Lifetime = NumberRange.new(0.5,2)
6273
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
6274
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
6275
eff.Speed = NumberRange.new(20,250)
6276
eff.Drag = 5
6277
eff.Rotation = NumberRange.new(-500,500)
6278
eff.VelocitySpread = 9000
6279
eff.RotSpeed = NumberRange.new(-50,50)
6280
wait(0.5)
6281
eff.Enabled = false
6282
end))
6283
	for i = 0, 4 do
6284
		slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
6285
	end
6286
coroutine.resume(coroutine.create(function()
6287
for i = 0, 19 do
6288
swait()
6289
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
6290
end
6291
hum.CameraOffset = vt(0,0,0)
6292
end))
6293
dis.Anchored = true
6294
dis.Transparency = 1
6295
wait(8)
6296
dis:Destroy()
6297
end
6298
end)
6299
end))
6300
end))
6301
end
6302
end))
6303
for i = 0,9,0.1 do
6304
swait()
6305
sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
6306
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3)
6307
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3)
6308
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3)
6309
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3)
6310
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3)
6311
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3)
6312
end
6313
attack = false
6314
hum.WalkSpeed = storehumanoidWS
6315
end
6316
6317
function EquinoxOrbs()
6318
hum.WalkSpeed = 0
6319
attack = true
6320
for i = 0,1,0.1 do
6321
swait()
6322
	RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
6323
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
6324
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
6325
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
6326
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
6327
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
6328
end
6329
sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
6330
sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
6331
for i = 0, 24 do
6332
		slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White"))
6333
end
6334
CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
6335
CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
6336
CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
6337
CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
6338
for i = 0,4,0.1 do
6339
swait()
6340
root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
6341
local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
6342
CreateMesh(dis,"Sphere",1,1,1)
6343
dis.Anchored = true
6344
dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
6345
local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
6346
CreateMesh(dis2,"Sphere",1,1,1)
6347
dis2.Anchored = true
6348
dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
6349
sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
6350
sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
6351
coroutine.resume(coroutine.create(function()
6352
	swait(60)
6353
	dis.Transparency = 1
6354
	dis2.Transparency = 1
6355
coroutine.resume(coroutine.create(function()
6356
for i = 0, 19 do
6357
swait()
6358
hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
6359
end
6360
hum.CameraOffset = vt(0,0,0)
6361
end))
6362
coroutine.resume(coroutine.create(function()
6363
local eff = Instance.new("ParticleEmitter",dis)
6364
eff.Texture = "rbxassetid://2273224484"
6365
eff.LightEmission = 1
6366
eff.Color = ColorSequence.new(dis.Color)
6367
eff.Rate = 500000
6368
eff.Lifetime = NumberRange.new(0.5,2)
6369
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
6370
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
6371
eff.Speed = NumberRange.new(50,450)
6372
eff.Drag = 5
6373
eff.Rotation = NumberRange.new(-500,500)
6374
eff.VelocitySpread = 9000
6375
eff.RotSpeed = NumberRange.new(-50,50)
6376
local eff2 = eff:Clone()
6377
eff2.Parent = dis2
6378
eff2.LightEmission = 0
6379
eff2.Color = ColorSequence.new(dis2.Color)
6380
wait(0.25)
6381
eff.Enabled = false
6382
eff2.Enabled = false
6383
end))
6384
MagniDamage(dis, 55, 89,219788936, 0, "Normal")
6385
MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
6386
    for i = 0, 2 do
6387
		slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis.BrickColor)
6388
		slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,300)/250,dis2.BrickColor)
6389
	end
6390
	CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
6391
	CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
6392
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
6393
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
6394
	CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
6395
	CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
6396
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
6397
	sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
6398
end))
6399
game:GetService("Debris"):AddItem(dis, 5)
6400
game:GetService("Debris"):AddItem(dis2, 5)
6401
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20)),.2)
6402
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20)),.2)
6403
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
6404
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
6405
RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
6406
LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
6407
end
6408
attack = false
6409
hum.WalkSpeed = storehumanoidWS
6410
end
6411
function FallenDEMISE()
6412
attack = true
6413
hum.WalkSpeed = 0
6414
local keptcolor = MAINRUINCOLOR
6415
bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
6416
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
6417
CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
6418
for i = 0, 15, 0.1 do
6419
swait()
6420
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6421
dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
6422
local at1 = Instance.new("Attachment",dis)
6423
at1.Position = vt(-25000,0,0)
6424
local at2 = Instance.new("Attachment",dis)
6425
at2.Position = vt(25000,0,0)
6426
local trl = Instance.new('Trail',dis)
6427
trl.Attachment0 = at1
6428
trl.FaceCamera = true
6429
trl.Attachment1 = at2
6430
trl.Texture = "rbxassetid://1049219073"
6431
trl.LightEmission = 1
6432
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6433
trl.Color = ColorSequence.new(dis.Color)
6434
trl.Lifetime = 5
6435
local bv = Instance.new("BodyVelocity")
6436
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6437
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
6438
bv.Parent = dis
6439
game:GetService("Debris"):AddItem(dis, 1)
6440
sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
6441
slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste"))
6442
slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange"))
6443
RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
6444
LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
6445
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
6446
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6447
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
6448
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
6449
end
6450
CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
6451
for i = 0, 30, 0.1 do
6452
swait()
6453
coroutine.resume(coroutine.create(function()
6454
for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
6455
if v:FindFirstChild('Head') then
6456
dmg(v)
6457
end
6458
end
6459
end))
6460
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6461
dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
6462
local at1 = Instance.new("Attachment",dis)
6463
at1.Position = vt(-50000,0,0)
6464
local at2 = Instance.new("Attachment",dis)
6465
at2.Position = vt(50000,0,0)
6466
local trl = Instance.new('Trail',dis)
6467
trl.Attachment0 = at1
6468
trl.FaceCamera = true
6469
trl.Attachment1 = at2
6470
trl.Texture = "rbxassetid://1049219073"
6471
trl.LightEmission = 1
6472
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6473
trl.Color = ColorSequence.new(dis.Color)
6474
trl.Lifetime = 10
6475
local bv = Instance.new("BodyVelocity")
6476
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6477
bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
6478
bv.Parent = dis
6479
game:GetService("Debris"):AddItem(dis, math.random(1,4))
6480
sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
6481
sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
6482
sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange"))
6483
sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste"))
6484
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange"))
6485
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste"))
6486
for i = 0, 2 do
6487
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR)
6488
end
6489
RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1)
6490
LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1)
6491
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
6492
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6493
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
6494
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
6495
end
6496
attack = false
6497
hum.WalkSpeed = storehumanoidWS
6498
end
6499
-------------------------------------
6500
6501
Humanoid.Animator.Parent = nil
6502
6503
-------------------------------------
6504
6505
local attacktype = 1
6506
mouse.Button1Down:connect(function()
6507
  if attack == false and attacktype == 1 then
6508
    attacktype = 2
6509
    attackone()
6510
  elseif attack == false and attacktype == 2 then
6511
    attacktype = 3
6512
    attacktwo()
6513
  elseif attack == false and attacktype == 3 then
6514
    attacktype = 1
6515
    attackthree()
6516
  elseif attack == false and attacktype == 4 then
6517
    attacktype = 1
6518
    --attackfour()
6519
  end
6520
end)
6521
mouse.KeyDown:connect(function(k)
6522
if k == "q" and attack == false and ModeOfGlitch ~= 1 then
6523
--normalmog() ---Disabled due to crashing... only in VSB
6524
ModeOfGlitch = 1
6525
storehumanoidWS = 16
6526
hum.WalkSpeed = 16
6527
rainbowmode = false
6528
chaosmode = false
6529
newTheme("rbxassetid://614032233",48.6,1,1.25)
6530
RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
6531
MAINRUINCOLOR = BrickColor.new("Really red")
6532
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
6533
end
6534
if k == "e" and attack == false and ModeOfGlitch ~= 2 then
6535
ModeOfGlitch = 2
6536
storehumanoidWS = 16
6537
hum.WalkSpeed = 16
6538
rainbowmode = false
6539
chaosmode = false
6540
RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
6541
newTheme("rbxassetid://1539245059",0,1,1.25)
6542
MAINRUINCOLOR = BrickColor.new("Toothpaste")
6543
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6544
end
6545
if k == "r" and attack == false and ModeOfGlitch ~= 3 then
6546
               ModeOfGlitch = 3
6547
storehumanoidWS = 16
6548
hum.WalkSpeed = 16
6549
rainbowmode = false
6550
chaosmode = false
6551
RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
6552
newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
6553
MAINRUINCOLOR = BrickColor.new("Royal purple")
6554
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6555
end
6556
if k == "t" and attack == false and ModeOfGlitch ~= 4 then
6557
               ModeOfGlitch = 4
6558
storehumanoidWS = 16
6559
hum.WalkSpeed = 16
6560
rainbowmode = false
6561
chaosmode = true
6562
RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
6563
newTheme("rbxassetid://1369263130",0,1.01,1.25)
6564
MAINRUINCOLOR = BrickColor.new("Black")
6565
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6566
end
6567
if k == "y" and attack == false and ModeOfGlitch ~= 5 then
6568
               ModeOfGlitch = 5
6569
storehumanoidWS = 16
6570
hum.WalkSpeed = 16
6571
rainbowmode = false
6572
chaosmode = false
6573
RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
6574
newTheme("rbxassetid://661079869",0,1.02,1.25)
6575
MAINRUINCOLOR = BrickColor.new("Bright yellow")
6576
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6577
end
6578
if k == "u" and attack == false and ModeOfGlitch ~= 6 then
6579
               ModeOfGlitch = 6
6580
storehumanoidWS = 100
6581
hum.WalkSpeed = 100
6582
rainbowmode = false
6583
chaosmode = false
6584
RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
6585
newTheme("rbxassetid://1347011178",0,1.01,1.25)
6586
MAINRUINCOLOR = BrickColor.new("White")
6587
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6588
end
6589
if k == "f" and attack == false and ModeOfGlitch ~= 8 then
6590
               ModeOfGlitch = 8
6591
storehumanoidWS = 140
6592
hum.WalkSpeed = 140
6593
rainbowmode = false
6594
chaosmode = false
6595
RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
6596
newTheme("rbxassetid://1495032271",0,1.01,1.25)
6597
MAINRUINCOLOR = BrickColor.new("Alder")
6598
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6599
end
6600
if k == "g" and attack == false and ModeOfGlitch ~= 9 then
6601
               ModeOfGlitch = 9
6602
storehumanoidWS = 150
6603
hum.WalkSpeed = 150
6604
rainbowmode = false
6605
chaosmode = false
6606
RecolorTextAndRename("INFESTATION",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
6607
newTheme("rbxassetid://708334127",0,1.01,1.25)
6608
MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
6609
RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6610
end
6611
if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
6612
               ModeOfGlitch = 8889
6613
storehumanoidWS = 180
6614
hum.WalkSpeed = 180
6615
rainbowmode = false
6616
chaosmode = false
6617
RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
6618
newTheme("rbxassetid://1359036559",0,1.01,1.25)
6619
MAINRUINCOLOR = BrickColor.new("Lilac")
6620
RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6621
end
6622
if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
6623
               ModeOfGlitch = 55469696922
6624
storehumanoidWS = 275
6625
hum.WalkSpeed = 275
6626
rainbowmode = false
6627
chaosmode = false
6628
RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
6629
newTheme("rbxassetid://582020393",0,1.005,1.25)
6630
MAINRUINCOLOR = BrickColor.new("Hot pink")
6631
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6632
end
6633
if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
6634
               ModeOfGlitch = 4367677813
6635
storehumanoidWS = 225
6636
hum.WalkSpeed = 225
6637
rainbowmode = false
6638
chaosmode = false
6639
RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
6640
newTheme("rbxassetid://363284685",0,1.01,1.25)
6641
MAINRUINCOLOR = BrickColor.new("Baby blue")
6642
RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6643
end
6644
if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
6645
               ModeOfGlitch = 9999999921111
6646
storehumanoidWS = 300
6647
hum.WalkSpeed = 300
6648
rainbowmode = false
6649
chaosmode = false
6650
RecolorTextAndRename("OMEGA",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
6651
newTheme("rbxassetid://643309199",0,1.01,1.25)
6652
MAINRUINCOLOR = BrickColor.new("Bright bluish green")
6653
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6654
end
6655
if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
6656
               ModeOfGlitch = 999999999556
6657
storehumanoidWS = 500
6658
hum.WalkSpeed = 500
6659
rainbowmode = false
6660
chaosmode = false
6661
RecolorTextAndRename("CRAZED",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
6662
newTheme("rbxassetid://719008519",0,1.02,1.25)
6663
MAINRUINCOLOR = BrickColor.new("Navy blue")
6664
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6665
end
6666
if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
6667
               ModeOfGlitch = 1264532489
6668
storehumanoidWS = 250
6669
hum.WalkSpeed = 250
6670
rainbowmode = false
6671
chaosmode = false
6672
RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
6673
newTheme("rbxassetid://1505487022",0,1.01,1.25)
6674
MAINRUINCOLOR = BrickColor.new("Pastel green")
6675
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6676
end
6677
if k == "l" and mutedtog == false then
6678
mutedtog = true
6679
kan.Volume = 0
6680
elseif k == "l" and mutedtog == true then
6681
mutedtog = false
6682
kan.Volume = 1.25
6683
end
6684
if k == "p" and toggleTag == false then
6685
toggleTag = true
6686
modet.TextTransparency = 0
6687
modet.TextStrokeTransparency = 0
6688
elseif k == "p" and toggleTag == true then
6689
toggleTag = false
6690
modet.TextTransparency = 1
6691
modet.TextStrokeTransparency = 1
6692
end
6693
if k == "z" and attack == false and ModeOfGlitch == 1 then
6694
ExtinctiveHeartbreak()
6695
elseif k == "z" and attack == false and ModeOfGlitch == 2 then
6696
HeavenlyDisk()
6697
elseif k == "z" and attack == false and ModeOfGlitch == 3 then
6698
CorruptionEvent()
6699
elseif k == "z" and attack == false and ModeOfGlitch == 4 then
6700
RapidBurst()
6701
elseif k == "z" and attack == false and ModeOfGlitch == 5 then
6702
--DivineLights()
6703
elseif k == "z" and attack == false and ModeOfGlitch == 6 then
6704
EquinoxOrbs()
6705
elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
6706
FallenOrbs()
6707
end
6708
if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
6709
FallenDEMISE()
6710
end
6711
if k == "x" and attack == false and ModeOfGlitch == 1 then
6712
EndGROUND()
6713
end
6714
end)
6715
6716
coroutine.resume(coroutine.create(function()
6717
while true do
6718
swait()
6719
if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 9 or ModeOfGlitch == 8889 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
6720
sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0)
6721
end
6722
end
6723
end))
6724
--[[coroutine.resume(coroutine.create(function()
6725
while true do
6726
swait(2)
6727
if chaosmode == true then
6728
tl1.Color = ColorSequence.new(BrickColor.random().Color)
6729
tl2.Color = ColorSequence.new(BrickColor.random().Color)
6730
tl3.Color = ColorSequence.new(BrickColor.random().Color)
6731
RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
6732
for i, v in pairs(mw1:GetChildren()) do
6733
if v:IsA("Part") then
6734
v.Transparency = 0.75
6735
v.BrickColor = BrickColor.random()
6736
v.Material = "Neon"
6737
end
6738
end
6739
for i, v in pairs(m2:GetChildren()) do
6740
if v:IsA("Part") then
6741
v.BrickColor = BrickColor.random()
6742
v.Material = "Neon"
6743
end
6744
end
6745
end
6746
end
6747
end))]]--
6748
Humanoid.Name = "STARGLITCHER"
6749
Humanoid.MaxHealth = math.huge
6750
Humanoid.Health = math.huge
6751
Instance.new("ForceField",char).Visible = false
6752
6753
local bguis = Instance.new("BillboardGui",tors)
6754
bguis.Size = UDim2.new(25, 0, 25, 0)
6755
local imgca = Instance.new("ImageLabel",bguis)
6756
imgca.BackgroundTransparency = 1
6757
imgca.ImageTransparency = 1
6758
imgca.Size = UDim2.new(1,0,1,0)
6759
imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
6760
imgca.ImageColor3 = Color3.new(0,0,0)
6761
6762
idleanim=.4
6763
while true do
6764
if mutedtog == false then
6765
kan.Volume = currentVol
6766
elseif mutedtog == true then
6767
kan.Volume = 0
6768
end
6769
kan.PlaybackSpeed = currentPitch
6770
kan.Pitch = currentPitch
6771
kan.SoundId = currentThemePlaying
6772
kan.Looped = true
6773
kan.Parent = char
6774
kan:Resume()
6775
if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
6776
imgca.ImageTransparency = 1
6777
elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
6778
imgca.ImageColor3 = MAINRUINCOLOR.Color
6779
imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
6780
end
6781
imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
6782
bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
6783
coroutine.resume(coroutine.create(function()
6784
	if chaosmode == true then
6785
for i, v in pairs(mw1:GetChildren()) do
6786
if v:IsA("Part") then
6787
v.Transparency = 0
6788
v.BrickColor = BrickColor.random()
6789
v.Material = "Neon"
6790
end
6791
end
6792
tl1.Color = ColorSequence.new(BrickColor.random().Color)
6793
tl2.Color = ColorSequence.new(BrickColor.random().Color)
6794
tl3.Color = ColorSequence.new(BrickColor.random().Color)
6795
	RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
6796
	end
6797
end))
6798
if chaosmode == false then
6799
modet.Position = UDim2.new(0,0,0,0)
6800
modet.Rotation = -5 * math.cos(sine / 32)
6801
techc.Rotation = techc.Rotation + 1
6802
circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
6803
circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
6804
imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
6805
imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
6806
ned.Rotation = 0 - 2 * math.cos(sine / 24)
6807
ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
6808
else
6809
	techc.Rotation = techc.Rotation + 1
6810
circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
6811
circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
6812
imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
6813
imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
6814
ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
6815
ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
6816
modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
6817
modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
6818
end
6819
CameraManager()
6820
swait()
6821
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)
6822
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)
6823
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)
6824
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)
6825
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)
6826
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)
6827
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)
6828
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)
6829
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)
6830
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)
6831
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)
6832
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)
6833
 sine = sine + change
6834
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
6835
local velderp=RootPart.Velocity.y
6836
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
6837
coroutine.resume(coroutine.create(function()
6838
if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
6839
if hitfloor ~= nil then
6840
slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,50)/250,BrickColor.new("White"))
6841
if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
6842
slash(math.random(75,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,150)/250,MAINRUINCOLOR)
6843
end
6844
end
6845
end
6846
end))
6847
if equipped==true or equipped==false then
6848
if attack==false then
6849
idle=idle+1
6850
else
6851
idle=0
6852
end
6853
if idle>=500 then
6854
if attack==false then
6855
--Sheath()
6856
end
6857
end
6858
if RootPart.Velocity.y > 1 and hitfloor==nil then 
6859
Anim="Jump"
6860
if attack==false then
6861
RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
6862
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)
6863
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)
6864
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
6865
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)
6866
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)
6867
end
6868
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
6869
Anim="Fall"
6870
if attack==false then
6871
RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
6872
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)
6873
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)
6874
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
6875
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
6876
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
6877
end
6878
elseif torvel<1 and hitfloor~=nil then
6879
Anim="Idle"
6880
if attack==false then
6881
if ModeOfGlitch == 1 then
6882
local snap = math.random(1,10)
6883
if snap == 1 then
6884
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
6885
end
6886
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(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
6887
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(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
6888
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
6889
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
6890
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
6891
LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
6892
elseif ModeOfGlitch == 2 then
6893
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
6894
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
6895
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1)
6896
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1)
6897
RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
6898
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
6899
elseif ModeOfGlitch == 3 then
6900
local snap = math.random(1,32)
6901
if snap == 1 then
6902
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
6903
end
6904
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
6905
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
6906
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1)
6907
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6908
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1)
6909
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1)
6910
elseif ModeOfGlitch == 4 then
6911
local snap = math.random(1,5)
6912
if snap == 1 then
6913
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
6914
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
6915
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
6916
end
6917
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1)
6918
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1)
6919
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
6920
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6921
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1)
6922
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1)
6923
elseif ModeOfGlitch == 5 then
6924
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
6925
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
6926
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
6927
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
6928
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1)
6929
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
6930
elseif ModeOfGlitch == 6 then
6931
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
6932
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
6933
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
6934
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6935
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1)
6936
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1)
6937
elseif ModeOfGlitch == 8 then
6938
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1)
6939
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1)
6940
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1)
6941
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1)
6942
RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
6943
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
6944
elseif ModeOfGlitch == 9 then
6945
sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
6946
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
6947
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1)
6948
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1)
6949
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1)
6950
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6951
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1)
6952
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1)
6953
elseif ModeOfGlitch == 8889 then
6954
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1)
6955
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1)
6956
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1)
6957
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1)
6958
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1)
6959
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1)
6960
elseif ModeOfGlitch == 1264532489 then
6961
sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
6962
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1)
6963
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1)
6964
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
6965
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6966
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1)
6967
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
6968
elseif ModeOfGlitch == 9999999921111 then
6969
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
6970
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
6971
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1)
6972
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
6973
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1)
6974
LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1)
6975
elseif ModeOfGlitch == 4367677813 then
6976
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1)
6977
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1)
6978
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1)
6979
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
6980
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1)
6981
LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1)
6982
elseif ModeOfGlitch == 55469696922 then
6983
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1)
6984
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1)
6985
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
6986
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1)
6987
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1)
6988
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1)
6989
elseif ModeOfGlitch == 999999999556 then
6990
RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1)
6991
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1)
6992
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1)
6993
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1)
6994
RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
6995
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
6996
end
6997
end
6998
elseif torvel>2 and torvel<22 and hitfloor~=nil then
6999
Anim="Walk"
7000
if attack==false then
7001
RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 35 * math.cos(sine / 8))),.1)
7002
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 35 * math.cos(sine / 8))),.1)
7003
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
7004
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
7005
RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
7006
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
7007
end
7008
elseif torvel>=22 and hitfloor~=nil then
7009
Anim="Run"
7010
if attack==false then
7011
if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
7012
RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*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)
7013
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*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)
7014
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
7015
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
7016
RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
7017
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
7018
if ModeOfGlitch == 9 then
7019
	sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
7020
sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
7021
sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
7022
end
7023
elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
7024
RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
7025
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
7026
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
7027
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
7028
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
7029
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
7030
end
7031
end
7032
end
7033
end
7034
end