View difference between Paste ID: bwsiMWGS and a9uAUEe8
SHOW: | | - or go back to the newest paste.
1-
local Player = game:GetService("Players").yjw0592
1+
local Player = game:GetService("Players").jassm11
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.2)
63
64
65
warn([[SpectrumGlitcher v5 AWAKENED Loaded.
66
The super switcher.
67
Velnorum is one of the first wielders.
68
69
Created, Reworked by NoobyGames12
70
Edited by GodzPlaysRB
71
Edited by wanTH092 (Gam_Filano CH)
72
SpectrumGlitcher Developers ^^^
73
]])
74
75
76
------------- ORIGINAL WIELDER OC: Velnorum
77
print([[Icons:
78
! = New
79
? = Spoilers
80
* = Exclusivity
81
C = Changes
82
83
]])
84
warn([[V 4.35 Update Log:
85
! - Added Betrayal mode (Chaos M)
86
87
!? - Added z move to destiny
88
!c? = Added calamity transition
89
!? - upcoming transition for some mode..
90
- Removed some voice sound effects because they didnt sound right
91
]])
92
--- its obs smooth af do not touch 
93
---- Sources and functions might be taken from others
94
plr = game:GetService("Players").yjw0592
95
char = plr.Character
96
hum = char.Humanoid
97
local cam = game.Workspace.CurrentCamera
98
Camera = cam
99
local CamInterrupt = false
100
local TwoD = false
101
local TargetInfo = {nil, nil}
102
cam.CameraType = "Custom"
103
t = char.Torso
104
h = char.Head
105
ra = char["Right Arm"]
106
la = char["Left Arm"]
107
rl = char["Right Leg"]
108
ll = char["Left Leg"]
109
tors = char.Torso
110
lleg = char["Left Leg"]
111
root = char.HumanoidRootPart
112
hed = char.Head
113
rleg = char["Right Leg"]
114
rarm = char["Right Arm"]
115
larm = char["Left Arm"]
116
radian = math.rad
117
random = math.random
118
Vec3 = Vector3.new
119
Inst = Instance.new
120
cFrame = CFrame.new
121
Euler = CFrame.fromEulerAnglesXYZ
122
vt = Vector3.new
123
bc = BrickColor.new
124
br = BrickColor.random
125
it = Instance.new
126
cf = CFrame.new
127
local Player_Size = 0
128
cam = game.Workspace.CurrentCamera
129
CF = CFrame.new
130
angles = CFrame.Angles
131
attack = false
132
Euler = CFrame.fromEulerAnglesXYZ
133
Rad = math.rad
134
IT = Instance.new
135
BrickC = BrickColor.new
136
Cos = math.cos
137
Acos = math.acos
138
Sin = math.sin
139
Asin = math.asin
140
Abs = math.abs
141
Mrandom = math.random
142
Floor = math.floor
143
IT = Instance.new
144
CF = CFrame.new
145
VT = Vector3.new
146
RAD = math.rad
147
C3 = Color3.new
148
UD2 = UDim2.new
149
BRICKC = BrickColor.new
150
ANGLES = CFrame.Angles
151
EULER = CFrame.fromEulerAnglesXYZ
152
COS = math.cos
153
ACOS = math.acos
154
SIN = math.sin
155
ASIN = math.asin
156
ABS = math.abs
157
MRANDOM = math.random
158
FLOOR = math.floor
159
local SINE = 0
160
161
local Booleans = {
162
  CamFollow = true,
163
  GyroUse = true
164
}
165
166
function lerp(object, newCFrame, alpha)
167
  return object:lerp(newCFrame, alpha)
168
end
169
170
local Directer = Inst("BodyGyro", root)
171
Directer.MaxTorque = Vec3(0, 0, 0)
172
Directer.P = 600000
173
local CPart = Inst("Part")
174
CPart.Anchored = true
175
CPart.CanCollide = false
176
CPart.Locked = true
177
CPart.Transparency = 1
178
179
local rainbowmode = false
180
local chaosmode = false
181
182
local kan = Instance.new("Sound",tors)
183
kan.Volume = 0.85
184
kan.TimePosition = 0
185
kan.PlaybackSpeed = 1
186
kan.Pitch = 1
187
kan.SoundId = "rbxassetid://1255569288"
188
kan.Name = "wrecked"
189
kan.Looped = true
190
kan:Play()
191
192
local currentThemePlaying = kan.SoundId
193
local currentPitch = kan.Pitch
194
local currentVol = kan.Volume
195
function newTheme(ID,timepos,pitch,vol)
196
local kanz = kan
197
--kanz:Stop()
198
kanz.Volume = vol
199
--kanz.TimePosition = timepos
200
kanz.PlaybackSpeed = pitch
201
kanz.Pitch = pitch
202
kanz.SoundId = ID
203
kanz.Name = "wrecked"
204
kanz.Looped = true
205
currentThemePlaying = kanz.SoundId
206
currentVol = kanz.Volume
207
currentPitch = kanz.Pitch
208
--kanz:Play()
209
--coroutine.resume(coroutine.create(function()
210
--wait(0.05)
211
--end))
212
end
213
214
215
function newThemeCust(ID,timepos,pitch,vol)
216
local kanz = kan
217
kanz:Stop()
218
kanz.Volume = vol
219
kanz.TimePosition = timepos
220
kanz.PlaybackSpeed = pitch
221
kanz.Pitch = pitch
222
kanz.SoundId = ID
223
kanz.Name = "wrecked"
224
kanz.Looped = true
225
currentThemePlaying = kanz.SoundId
226
currentVol = kanz.Volume
227
currentPitch = kanz.Pitch
228
kanz:Play()
229
coroutine.resume(coroutine.create(function()
230
wait(0.05)
231
end))
232
end
233
234
local mutedtog = false
235
236
function CameraEnshaking(Length,Intensity)
237
coroutine.resume(coroutine.create(function()
238
      local intensity = 1*Intensity
239
      local rotM = 0.01*Intensity
240
for i = 0, Length, 0.1 do
241
swait()
242
intensity = intensity - 0.05*Intensity/Length
243
rotM = rotM - 0.0005*Intensity/Length
244
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
245
      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)
246
end
247
Humanoid.CameraOffset = Vec3(0, 0, 0)
248
end))
249
end
250
CamShake=function(Part,Distan,Power,Times) 
251
local de=Part.Position
252
for i,v in pairs(workspace:children()) do
253
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
254
for _,c in pairs(v:children()) do
255
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
256
local Noob=v.Humanoid
257
if Noob~=nil then
258
coroutine.resume(coroutine.create(function()
259
FV = Instance.new("BoolValue", Noob)
260
FV.Name = "CameraShake"
261
for ShakeNum=1,Times do
262
swait()
263
local ef=Power
264
  if ef>=1 then
265
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
266
  else
267
   ef=Power*10
268
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
269
  end	
270
end
271
Humanoid.CameraOffset = Vector3.new(0,0,0)
272
FV:Destroy()
273
end))
274
CameraShake(Times, Power, Noob)
275
end
276
end
277
end
278
end
279
end
280
end
281
282
local toggleTag = true
283
local bilguit = Instance.new("BillboardGui", hed)
284
bilguit.Adornee = nil
285
bilguit.Name = "ModeName"
286
bilguit.Size = UDim2.new(4, 0, 1.2, 0)
287
bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
288
local modet = Instance.new("TextLabel", bilguit)
289
modet.Size = UDim2.new(10/2, 0, 7/2, 0)
290
modet.FontSize = "Size8"
291
modet.TextScaled = true
292
modet.TextTransparency = 0
293
modet.BackgroundTransparency = 1 
294
modet.TextTransparency = 0
295
modet.TextStrokeTransparency = 0
296
modet.Font = "Antique"
297
modet.TextStrokeColor3 = Color3.new(1,0,0)
298
modet.TextColor3 = Color3.new(0.25,0,0)
299
modet.Text = "Hopeless Guest"
300
301
302
function chatfunc(text,color,typet,font,timeex)
303
local chat = coroutine.wrap(function()
304
if Character:FindFirstChild("TalkingBillBoard")~= nil then
305
Character:FindFirstChild("TalkingBillBoard"):destroy()
306
end
307
local naeeym2 = Instance.new("BillboardGui",Character)
308
naeeym2.Size = UDim2.new(0,100,0,40)
309
naeeym2.StudsOffset = Vector3.new(0,3,0)
310
naeeym2.Adornee = Character.Head
311
naeeym2.Name = "TalkingBillBoard"
312
local tecks2 = Instance.new("TextLabel",naeeym2)
313
tecks2.BackgroundTransparency = 1
314
tecks2.BorderSizePixel = 0
315
tecks2.Text = ""
316
tecks2.Font = font
317
tecks2.TextSize = 30
318
tecks2.TextStrokeTransparency = 0
319
tecks2.TextColor3 = color
320
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
321
tecks2.Size = UDim2.new(1,0,0.5,0)
322
local tecks3 = Instance.new("TextLabel",naeeym2)
323
tecks3.BackgroundTransparency = 1
324
tecks3.BorderSizePixel = 0
325
tecks3.Text = ""
326
tecks3.Font = font
327
tecks3.TextSize = 30
328
tecks3.TextStrokeTransparency = 0
329
if typet == "Inverted" then
330
tecks3.TextColor3 = Color3.new(0,0,0)
331
tecks3.TextStrokeColor3 = color
332
elseif typet == "Normal" then
333
tecks3.TextColor3 = color
334
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
335
end
336
tecks3.Size = UDim2.new(1,0,0.5,0)
337
coroutine.resume(coroutine.create(function()
338
while true do
339
swait(1)
340
if chaosmode == true then
341
tecks2.TextColor3 = BrickColor.random().Color
342
tecks3.TextStrokeColor3 = BrickColor.random().Color
343
end
344
end
345
end))
346
modet.TextTransparency = modet.TextTransparency  + 1
347
modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
348
for i = 0, 74*timeex do
349
swait()
350
modet.TextTransparency = 1
351
modet.TextStrokeTransparency = 1
352
tecks2.Text = text
353
tecks3.Text = text
354
end
355
local randomrot = math.random(1,2)
356
if randomrot == 1 then
357
for i = 1, 50 do
358
swait()
359
tecks2.Text = text
360
tecks3.Text = text
361
modet.TextTransparency = modet.TextTransparency - .02
362
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
363
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
364
tecks2.TextTransparency = tecks2.TextTransparency + .04
365
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
366
tecks3.TextTransparency = tecks2.TextTransparency + .04
367
end
368
elseif randomrot == 2 then
369
	for i = 1, 50 do
370
swait()
371
tecks2.Text = text
372
tecks3.Text = text
373
modet.TextTransparency = modet.TextTransparency - .02
374
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
375
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
376
tecks2.TextTransparency = tecks2.TextTransparency + .04
377
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
378
tecks3.TextTransparency = tecks2.TextTransparency + .04
379
end
380
end
381
modet.TextTransparency = 0
382
modet.TextStrokeTransparency = 0
383
if toggleTag == false then
384
modet.TextTransparency = 1
385
modet.TextStrokeTransparency = 1
386
end
387
naeeym2:Destroy()
388
end)
389
chat()
390
end
391
392
function bosschatfunc(text,color,watval)
393
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
394
coroutine.resume(coroutine.create(function()
395
if v.PlayerGui:FindFirstChild("Dialog")~= nil then
396
v.PlayerGui:FindFirstChild("Dialog"):destroy()
397
end
398
local scrg = Instance.new("ScreenGui",v.PlayerGui)
399
CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
400
scrg.Name = "Dialog"
401
local txtlb = Instance.new("TextLabel",scrg)
402
txtlb.Text = ""
403
txtlb.Font = "Bodoni"
404
txtlb.TextColor3 = Color3.new(0,0,0)
405
txtlb.TextStrokeTransparency = 0
406
txtlb.BackgroundTransparency = 0.75
407
txtlb.BackgroundColor3 = Color3.new(0,0,0)
408
txtlb.TextStrokeColor3 = color
409
txtlb.TextScaled = true
410
txtlb.Size = UDim2.new(1,0,0.25,0)
411
txtlb.TextXAlignment = "Left"
412
txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
413
local txtlb2 = Instance.new("TextLabel",scrg)
414
txtlb2.Text = plr.Name.." The Glitcher:"
415
txtlb2.Font = "Arcade"
416
txtlb2.TextColor3 = Color3.new(0,0,0)
417
txtlb2.TextStrokeTransparency = 0
418
txtlb2.BackgroundTransparency = 1
419
txtlb2.TextStrokeColor3 = color
420
txtlb2.TextSize = 40
421
txtlb2.Size = UDim2.new(1,0,0.25,0)
422
txtlb2.TextXAlignment = "Left"
423
txtlb2.Position = UDim2.new(0,0,1,0)
424
local fvalen = 0.55
425
local fval = -0.49
426
coroutine.resume(coroutine.create(function()
427
while true do
428
swait()
429
if chaosmode == true then
430
txtlb.Rotation = math.random(-1,1)
431
txtlb2.Rotation = math.random(-1,1)
432
txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
433
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
434
txtlb.TextStrokeColor3 = BrickColor.random().Color
435
txtlb2.TextStrokeColor3 = BrickColor.random().Color
436
end
437
end
438
end))
439
coroutine.resume(coroutine.create(function()
440
while true do
441
swait()
442
if scrg.Parent ~= nil then
443
	fvalen = fvalen - 0.0001
444
elseif scrg.Parent == nil then
445
break
446
end
447
end
448
end))
449
local flol = 1.75
450
local flil = 1.6
451
coroutine.resume(coroutine.create(function()
452
	for i = 0, 9 do
453
		swait()
454
		fval = fval + 0.05
455
		flol = flol - 0.1
456
		flil = flil - 0.1
457
		txtlb.Text = ""
458
		txtlb.Position = UDim2.new(0,0,flol,0)
459
		txtlb2.Position = UDim2.new(0,0,flil,0)
460
	end
461
	txtlb.Text = text
462
wait(watval)
463
local valinc = 0
464
for i = 0, 99 do
465
swait()
466
valinc = valinc + 0.0001
467
flol = flol + valinc
468
flil = flil + valinc
469
txtlb.Rotation = txtlb.Rotation + valinc*20
470
txtlb2.Rotation = txtlb2.Rotation - valinc*50
471
txtlb.Position = UDim2.new(0,0,flol,0)
472
txtlb2.Position = UDim2.new(0,0,flil,0)
473
txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
474
txtlb.TextTransparency = txtlb.TextTransparency + 0.01
475
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
476
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
477
txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
478
end
479
scrg:Destroy()
480
end))
481
end))
482
end
483
end
484
485
486
local Create = LoadLibrary("RbxUtility").Create
487
488
CFuncs = {	
489
	["Part"] = {
490
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
491
			local Part = Create("Part"){
492
				Parent = Parent,
493
				Reflectance = Reflectance,
494
				Transparency = Transparency,
495
				CanCollide = false,
496
				Locked = true,
497
				BrickColor = BrickColor.new(tostring(BColor)),
498
				Name = Name,
499
				Size = Size,
500
				Material = Material,
501
			}
502
			RemoveOutlines(Part)
503
			return Part
504
		end;
505
	};
506
	
507
	["Mesh"] = {
508
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
509
			local Msh = Create(Mesh){
510
				Parent = Part,
511
				Offset = OffSet,
512
				Scale = Scale,
513
			}
514
			if Mesh == "SpecialMesh" then
515
				Msh.MeshType = MeshType
516
				Msh.MeshId = MeshId
517
			end
518
			return Msh
519
		end;
520
	};
521
	
522
	["Mesh"] = {
523
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
524
			local Msh = Create(Mesh){
525
				Parent = Part,
526
				Offset = OffSet,
527
				Scale = Scale,
528
			}
529
			if Mesh == "SpecialMesh" then
530
				Msh.MeshType = MeshType
531
				Msh.MeshId = MeshId
532
			end
533
			return Msh
534
		end;
535
	};
536
	
537
	["Weld"] = {
538
		Create = function(Parent, Part0, Part1, C0, C1)
539
			local Weld = Create("Weld"){
540
				Parent = Parent,
541
				Part0 = Part0,
542
				Part1 = Part1,
543
				C0 = C0,
544
				C1 = C1,
545
			}
546
			return Weld
547
		end;
548
	};
549
550
	["Sound"] = {
551
		Create = function(id, par, vol, pit) 
552
			coroutine.resume(coroutine.create(function()
553
				local S = Create("Sound"){
554
					Volume = vol,
555
                                        Name = "EffectSoundo",
556
					Pitch = pit or 1,
557
					SoundId = id,
558
					Parent = par or workspace,
559
				}
560
				wait() 
561
				S:play() 
562
				game:GetService("Debris"):AddItem(S, 10)
563
			end))
564
		end;
565
	};
566
567
	["TimeSound"] = {
568
		Create = function(id, par, vol, pit, timepos) 
569
			coroutine.resume(coroutine.create(function()
570
				local S = Create("Sound"){
571
					Volume = vol,
572
                                        Name = "EffectSoundo",
573
					Pitch = pit or 1,
574
					SoundId = id,
575
                                        TimePosition = timepos,
576
					Parent = par or workspace,
577
				}
578
				wait() 
579
				S:play() 
580
				game:GetService("Debris"):AddItem(S, 10)
581
			end))
582
		end;
583
	};
584
		["EchoSound"] = {
585
		Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) 
586
			coroutine.resume(coroutine.create(function()
587
				local Sas = Create("Sound"){
588
					Volume = vol,
589
                    Name = "EffectSoundo",
590
					Pitch = pit or 1,
591
					SoundId = id,
592
                    TimePosition = timepos,
593
					Parent = par or workspace,
594
				}
595
				local E = Create("EchoSoundEffect"){
596
					Delay = echodelay,
597
                    Name = "Echo",
598
					Feedback = fedb,
599
                    DryLevel = dryl,
600
					Parent = Sas,
601
				}
602
				wait() 
603
				Sas:play() 
604
				game:GetService("Debris"):AddItem(Sas, delays)
605
			end))
606
		end;
607
	};
608
609
["LongSound"] = {
610
		Create = function(id, par, vol, pit) 
611
			coroutine.resume(coroutine.create(function()
612
				local S = Create("Sound"){
613
					Volume = vol,
614
					Pitch = pit or 1,
615
					SoundId = id,
616
					Parent = par or workspace,
617
				}
618
				wait() 
619
				S:play() 
620
				game:GetService("Debris"):AddItem(S, 60)
621
			end))
622
		end;
623
	};
624
	
625
	["ParticleEmitter"] = {
626
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
627
			local fp = Create("ParticleEmitter"){
628
				Parent = Parent,
629
				Color = ColorSequence.new(Color1, Color2),
630
				LightEmission = LightEmission,
631
				Size = Size,
632
				Texture = Texture,
633
				Transparency = Transparency,
634
				ZOffset = ZOffset,
635
				Acceleration = Accel,
636
				Drag = Drag,
637
				LockedToPart = LockedToPart,
638
				VelocityInheritance = VelocityInheritance,
639
				EmissionDirection = EmissionDirection,
640
				Enabled = Enabled,
641
				Lifetime = LifeTime,
642
				Rate = Rate,
643
				Rotation = Rotation,
644
				RotSpeed = RotSpeed,
645
				Speed = Speed,
646
				VelocitySpread = VelocitySpread,
647
			}
648
			return fp
649
		end;
650
	};
651
652
	CreateTemplate = {
653
	
654
	};
655
}
656
657
658
659
New = function(Object, Parent, Name, Data)
660
	local Object = Instance.new(Object)
661
	for Index, Value in pairs(Data or {}) do
662
		Object[Index] = Value
663
	end
664
	Object.Parent = Parent
665
	Object.Name = Name
666
	return Object
667
end
668
local halocolor = BrickColor.new("Pastel light blue")
669
local halocolor2 = BrickColor.new("Cool yellow")
670
local starcolor = BrickColor.new("Bright yellow")
671
local lunacolor = BrickColor.new("Navy blue")
672
local lunacolor2 = BrickColor.new("Bright blue")
673
local wepcolor = BrickColor.new("Really black")
674
local maincolor = BrickColor.new("Really black")
675
local m = Instance.new("Model",char)
676
local m2 = Instance.new("Model",char)
677
local m3 = Instance.new("Model",char)
678
local mw1 = Instance.new("Model",char)
679
local mw2 = Instance.new("Model",char)
680
681
682
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
683
  local gui = it(GuiType)
684
  gui.Parent = parent
685
  gui.Text = text
686
  gui.BackgroundTransparency = backtrans
687
  gui.BackgroundColor3 = backcol
688
  gui.SizeConstraint = "RelativeXY"
689
  gui.TextXAlignment = "Center"
690
  gui.TextYAlignment = "Center"
691
  gui.Position = pos
692
  gui.Size = size
693
  gui.Font = "SourceSans"
694
  gui.FontSize = "Size14"
695
  gui.TextWrapped = false
696
  gui.TextStrokeTransparency = 0
697
  gui.TextColor = BrickColor.new("White")
698
  return gui
699
end
700
--------------------------- GUI STUFF
701
local basgui = it("GuiMain")
702
basgui.Parent = plr.PlayerGui
703
basgui.Name = "VISgui"
704
local fullscreenz = it("Frame")
705
fullscreenz.Parent = basgui
706
fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
707
fullscreenz.BackgroundTransparency = 1
708
fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
709
fullscreenz.Size = UDim2.new(1, 0, 1, 0)
710
fullscreenz.Position = UDim2.new(0, 0, 0, 0)
711
local imgl2 = Instance.new("ImageLabel",fullscreenz)
712
imgl2.BackgroundTransparency = 1
713
imgl2.BorderSizePixel = 0
714
imgl2.ImageTransparency = 0.5
715
imgl2.ImageColor3 = Color3.new(1,0,0)
716
imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
717
imgl2.Size = UDim2.new(0,1000,0,1000)
718
imgl2.Image = "rbxassetid://2325939897"
719
local techc = imgl2:Clone()
720
techc.Parent = fullscreenz
721
techc.ImageTransparency = 0
722
techc.Size = UDim2.new(0,900,0,900)
723
techc.Position = UDim2.new(0.75,-150,0.55,-150)
724
techc.ImageColor3 = Color3.new(1,0,0)
725
techc.Image = "rbxassetid://2273224484"
726
local circl = imgl2:Clone()
727
circl.Parent = fullscreenz
728
circl.ImageTransparency = 0
729
circl.Size = UDim2.new(0,550,0,550)
730
circl.Position = UDim2.new(0.75,25,0.55,25)
731
circl.ImageColor3 = Color3.new(0,0,0)
732
circl.Image = "rbxassetid://2312119891"
733
local circl2 = imgl2:Clone()
734
circl2.Parent = fullscreenz
735
circl2.ImageTransparency = 0
736
circl2.Size = UDim2.new(0,700,0,700)
737
circl2.Position = UDim2.new(0.75,-50,0.55,-50)
738
circl2.ImageColor3 = Color3.new(1,0,0)
739
circl2.Image = "rbxassetid://2312119891"
740
local imgl2b = imgl2:Clone()
741
imgl2b.Parent = fullscreenz
742
imgl2b.ImageTransparency = 0
743
imgl2b.Size = UDim2.new(0,800,0,800)
744
imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
745
imgl2b.ImageColor3 = Color3.new(0,0,0)
746
local ned = Instance.new("TextLabel",fullscreenz)
747
ned.ZIndex = 2
748
ned.Font = "Arcade"
749
ned.BackgroundTransparency = 1
750
ned.BorderSizePixel = 0.65
751
ned.Size = UDim2.new(0.3,0,0.2,0)
752
ned.Position = UDim2.new(0.7,0,0.8,0)
753
ned.TextColor3 = BrickColor.new("Really red").Color
754
ned.TextStrokeColor3 = BrickColor.new("Really black").Color
755
ned.TextScaled = true
756
ned.TextStrokeTransparency = 0
757
ned.Text = "Hopeless Guest"
758
ned.TextSize = 24
759
ned.Rotation = 1
760
ned.TextXAlignment = "Right"
761
ned.TextYAlignment = "Bottom"
762
763
local extrawingmod1 = Instance.new("Model",char)
764
local extrawingmod2 = Instance.new("Model",char)
765
766
function CreateParta(parent,transparency,reflectance,material,brickcolor)
767
local p = Instance.new("Part")
768
p.TopSurface = 0
769
p.BottomSurface = 0
770
p.Parent = parent
771
p.Size = Vector3.new(0.1,0.1,0.1)
772
p.Transparency = transparency
773
p.Reflectance = reflectance
774
p.CanCollide = false
775
p.Locked = true
776
p.BrickColor = brickcolor
777
p.Material = material
778
return p
779
end
780
781
function CreateMesh(parent,meshtype,x1,y1,z1)
782
local mesh = Instance.new("SpecialMesh",parent)
783
mesh.MeshType = meshtype
784
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
785
return mesh
786
end
787
788
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
789
local mesh = Instance.new("SpecialMesh",parent)
790
mesh.MeshType = "FileMesh"
791
mesh.MeshId = meshid
792
mesh.Scale = Vector3.new(x1,y1,z1)
793
return mesh
794
end
795
796
797
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
798
local mesh = Instance.new("SpecialMesh",parent)
799
mesh.MeshType = "FileMesh"
800
mesh.MeshId = meshid
801
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
802
mesh.Scale = Vector3.new(x1,y1,z1)
803
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
804
return mesh
805
end
806
807
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
808
local weld = Instance.new("Weld")
809
weld.Parent = parent
810
weld.Part0 = part0
811
weld.Part1 = part1
812
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
813
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
814
return weld
815
end
816
817
818
--------------
819
--------------
820
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
821
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))
822
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
823
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))
824
825
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
826
CreateMesh(handle,"Brick",0,0,0)
827
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))
828
local valuaring = 10
829
for i = 0, 49 do
830
	valuaring = valuaring + 10
831
rn = CreateParta(mw2,0,0,"Neon",halocolor)
832
CreateMesh(rn,"Brick",0.25,0.1,0.1)
833
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))
834
end
835
836
handlex = CreateParta(mw2,1,1,"Neon",maincolor)
837
CreateMesh(handle,"Brick",0,0,0)
838
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))
839
local valuaring = 10
840
for i = 0, 49 do
841
	valuaring = valuaring + 10
842
rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
843
CreateMesh(rn,"Brick",0.5,0.2,0.2)
844
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))
845
end
846
847
848
local handle = CreateParta(m,1,1,"Neon",maincolor)
849
CreateMesh(handle,"Brick",0.5,0.5,0.5)
850
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))
851
852
--- Left wing.
853
854
local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
855
CreateMesh(handle,"Brick",0.5,0.5,0.5)
856
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))
857
858
wed = CreateParta(mw1,0,0,"Neon",halocolor)
859
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
860
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))
861
wed = CreateParta(mw1,0,0,"Neon",halocolor)
862
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
863
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))
864
A0 = Instance.new('Attachment',wed)
865
A0.Position = vt(0,0.25,0.25)
866
wed = CreateParta(mw1,0,0,"Neon",halocolor)
867
CreateMesh(wed,"Wedge",0.05,0.5,3)
868
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))
869
A1 = Instance.new('Attachment',wed)
870
A1.Position = vt(0,-0.25,-2)
871
wed = CreateParta(mw1,0,0,"Neon",halocolor)
872
CreateMesh(wed,"Wedge",0.05,3,0.5)
873
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))
874
875
tl1 = Instance.new('Trail',wed)
876
tl1.Attachment0 = A1
877
tl1.Attachment1 = A0
878
tl1.Texture = "rbxassetid://2108945559"
879
tl1.LightEmission = 1
880
tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
881
tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
882
tl1.Lifetime = 0.6
883
884
885
local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
886
CreateMesh(handle,"Brick",0.5,0.5,0.5)
887
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))
888
889
wed = CreateParta(mw1,0,0,"Neon",halocolor)
890
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
891
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))
892
wed = CreateParta(mw1,0,0,"Neon",halocolor)
893
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
894
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))
895
A0 = Instance.new('Attachment',wed)
896
A0.Position = vt(0,0.25,0.25)
897
wed = CreateParta(mw1,0,0,"Neon",halocolor)
898
CreateMesh(wed,"Wedge",0.05,0.5,3)
899
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))
900
A1 = Instance.new('Attachment',wed)
901
A1.Position = vt(0,-0.25,-2)
902
wed = CreateParta(mw1,0,0,"Neon",halocolor)
903
CreateMesh(wed,"Wedge",0.05,3,0.5)
904
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))
905
906
tl2 = Instance.new('Trail',wed)
907
tl2.Attachment0 = A1
908
tl2.Attachment1 = A0
909
tl2.Texture = "rbxassetid://2108945559"
910
tl2.LightEmission = 1
911
tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
912
tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
913
tl2.Lifetime = 0.6
914
915
local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
916
CreateMesh(handle,"Brick",0.5,0.5,0.5)
917
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))
918
919
wed = CreateParta(mw1,0,0,"Neon",halocolor)
920
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
921
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))
922
wed = CreateParta(mw1,0,0,"Neon",halocolor)
923
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
924
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))
925
A0 = Instance.new('Attachment',wed)
926
A0.Position = vt(0,0.25,0.25)
927
wed = CreateParta(mw1,0,0,"Neon",halocolor)
928
CreateMesh(wed,"Wedge",0.05,0.5,3)
929
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))
930
A1 = Instance.new('Attachment',wed)
931
A1.Position = vt(0,-0.25,-2)
932
wed = CreateParta(mw1,0,0,"Neon",halocolor)
933
CreateMesh(wed,"Wedge",0.05,3,0.5)
934
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))
935
936
tl3 = Instance.new('Trail',wed)
937
tl3.Attachment0 = A1
938
tl3.Attachment1 = A0
939
tl3.Texture = "rbxassetid://2108945559"
940
tl3.LightEmission = 1
941
tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
942
tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
943
tl3.Lifetime = 0.6
944
945
tl1.Enabled = false
946
tl2.Enabled = false
947
tl3.Enabled = false
948
local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
949
CreateMesh(handle,"Brick",0.5,0.5,0.5)
950
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))
951
952
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
953
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
954
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))
955
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
956
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
957
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))
958
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
959
CreateMesh(wed,"Wedge",0.05,0.5,3)
960
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))
961
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
962
CreateMesh(wed,"Wedge",0.05,3,0.5)
963
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))
964
965
local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
966
CreateMesh(handle,"Brick",0.5,0.5,0.5)
967
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))
968
969
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
970
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
971
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))
972
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
973
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
974
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))
975
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
976
CreateMesh(wed,"Wedge",0.05,0.5,3)
977
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))
978
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
979
CreateMesh(wed,"Wedge",0.05,3,0.5)
980
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))
981
982
local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
983
CreateMesh(handle,"Brick",0.5,0.5,0.5)
984
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))
985
986
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
987
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
988
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))
989
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
990
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
991
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))
992
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
993
CreateMesh(wed,"Wedge",0.05,0.5,3)
994
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))
995
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
996
CreateMesh(wed,"Wedge",0.05,3,0.5)
997
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))
998
999
-- Right wing.
1000
1001
local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
1002
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1003
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))
1004
1005
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1006
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1007
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))
1008
A0 = Instance.new('Attachment',wed)
1009
A0.Position = vt(0,0.25,0.25)
1010
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1011
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1012
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))
1013
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1014
CreateMesh(wed,"Wedge",0.05,0.5,3)
1015
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))
1016
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1017
CreateMesh(wed,"Wedge",0.05,3,0.5)
1018
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))
1019
A1 = Instance.new('Attachment',wed)
1020
A1.Position = vt(0,2,0.25)
1021
1022
tr1 = Instance.new('Trail',wed)
1023
tr1.Attachment0 = A1
1024
tr1.Attachment1 = A0
1025
tr1.Texture = "rbxassetid://2108945559"
1026
tr1.LightEmission = 1
1027
tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1028
tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1029
tr1.Lifetime = 0.6
1030
1031
local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
1032
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1033
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))
1034
1035
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1036
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1037
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))
1038
A0 = Instance.new('Attachment',wed)
1039
A0.Position = vt(0,0.25,0.25)
1040
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1041
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1042
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))
1043
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1044
CreateMesh(wed,"Wedge",0.05,0.5,3)
1045
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))
1046
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1047
CreateMesh(wed,"Wedge",0.05,3,0.5)
1048
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))
1049
A1 = Instance.new('Attachment',wed)
1050
A1.Position = vt(0,2,0.25)
1051
1052
tr2 = Instance.new('Trail',wed)
1053
tr2.Attachment0 = A1
1054
tr2.Attachment1 = A0
1055
tr2.Texture = "rbxassetid://2108945559"
1056
tr2.LightEmission = 1
1057
tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1058
tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1059
tr2.Lifetime = 0.6
1060
1061
local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
1062
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1063
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))
1064
1065
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1066
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1067
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))
1068
A0 = Instance.new('Attachment',wed)
1069
A0.Position = vt(0,0.25,0.25)
1070
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1071
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1072
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))
1073
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1074
CreateMesh(wed,"Wedge",0.05,0.5,3)
1075
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))
1076
wed = CreateParta(mw2,0,0,"Neon",halocolor)
1077
CreateMesh(wed,"Wedge",0.05,3,0.5)
1078
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))
1079
A1 = Instance.new('Attachment',wed)
1080
A1.Position = vt(0,2,0.25)
1081
1082
tr3 = Instance.new('Trail',wed)
1083
tr3.Attachment0 = A1
1084
tr3.Attachment1 = A0
1085
tr3.Texture = "rbxassetid://2108945559"
1086
tr3.LightEmission = 1
1087
tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1088
tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1089
tr3.Lifetime = 0.6
1090
1091
1092
local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
1093
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1094
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))
1095
1096
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1097
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1098
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))
1099
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1100
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1101
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))
1102
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1103
CreateMesh(wed,"Wedge",0.05,0.5,3)
1104
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))
1105
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1106
CreateMesh(wed,"Wedge",0.05,3,0.5)
1107
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))
1108
1109
local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
1110
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1111
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))
1112
1113
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1114
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1115
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))
1116
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1117
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1118
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))
1119
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1120
CreateMesh(wed,"Wedge",0.05,0.5,3)
1121
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))
1122
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1123
CreateMesh(wed,"Wedge",0.05,3,0.5)
1124
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))
1125
1126
local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
1127
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1128
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))
1129
1130
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1131
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1132
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))
1133
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1134
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1135
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))
1136
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1137
CreateMesh(wed,"Wedge",0.05,0.5,3)
1138
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))
1139
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1140
CreateMesh(wed,"Wedge",0.05,3,0.5)
1141
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))
1142
1143
--HERES THE RING
1144
1145
1146
--[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1147
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1148
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))
1149
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1150
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1151
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))
1152
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1153
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1154
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))
1155
1156
1157
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1158
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1159
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))
1160
1161
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1162
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1163
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))
1164
1165
1166
1167
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1168
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1169
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))
1170
1171
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1172
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1173
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))
1174
1175
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1176
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1177
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))
1178
1179
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1180
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1181
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))
1182
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1183
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1184
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))]]--
1185
1186
--- second ring
1187
1188
1189
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1190
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1191
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))
1192
1193
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1194
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1195
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))
1196
1197
1198
1199
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1200
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1201
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))
1202
1203
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1204
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1205
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))
1206
1207
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1208
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1209
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))
1210
1211
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1212
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1213
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))
1214
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1215
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1216
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))
1217
1218
1219
1220
for i, v in pairs(m:GetChildren()) do
1221
if v:IsA("Part") then
1222
v.BrickColor = BrickColor.new("Really black")
1223
v.Material = "Glass"
1224
end
1225
end
1226
for i, v in pairs(m2:GetChildren()) do
1227
if v:IsA("Part") then
1228
v.BrickColor = BrickColor.new("Crimson")
1229
v.Material = "Granite"
1230
end
1231
end
1232
for i, v in pairs(m3:GetChildren()) do
1233
if v:IsA("Part") then
1234
v.BrickColor = BrickColor.new("Really red")
1235
v.Material = "Neon"
1236
end
1237
end
1238
for i, v in pairs(mw2:GetChildren()) do
1239
if v:IsA("Part") then
1240
v.BrickColor = BrickColor.new("Really red")
1241
v.Material = "Neon"
1242
end
1243
end
1244
for i, v in pairs(mw1:GetChildren()) do
1245
if v:IsA("Part") then
1246
v.Transparency = 1
1247
v.BrickColor = BrickColor.new("Really red")
1248
v.Material = "Neon"
1249
end
1250
end
1251
for i, v in pairs(extrawingmod1:GetChildren()) do
1252
if v:IsA("Part") then
1253
v.Transparency = 1
1254
v.BrickColor = BrickColor.new("White")
1255
v.Material = "Neon"
1256
end
1257
end
1258
for i, v in pairs(extrawingmod2:GetChildren()) do
1259
if v:IsA("Part") then
1260
v.Transparency = 1
1261
v.BrickColor = BrickColor.new("White")
1262
v.Material = "Neon"
1263
end
1264
end
1265
local MAINRUINCOLOR = BrickColor.new("Really red")
1266
------
1267
1268
1269
function RemoveOutlines(part)
1270
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1271
end
1272
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1273
  local Part = Create("Part")({
1274
    Parent = Parent,
1275
    Reflectance = Reflectance,
1276
    Transparency = Transparency,
1277
    CanCollide = false,
1278
    Locked = true,
1279
    BrickColor = BrickColor.new(tostring(BColor)),
1280
    Name = Name,
1281
    Size = Size,
1282
    Material = Material
1283
  })
1284
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1285
  RemoveOutlines(Part)
1286
  return Part
1287
end
1288
function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1289
  local Msh = Create(Mesh)({
1290
    Parent = Part,
1291
    Offset = OffSet,
1292
    Scale = Scale
1293
  })
1294
  if Mesh == "SpecialMesh" then
1295
    Msh.MeshType = MeshType
1296
    Msh.MeshId = MeshId
1297
  end
1298
  return Msh
1299
end
1300
function CreateWeld(Parent, Part0, Part1, C0, C1)
1301
  local Weld = Create("Weld")({
1302
    Parent = Parent,
1303
    Part0 = Part0,
1304
    Part1 = Part1,
1305
    C0 = C0,
1306
    C1 = C1
1307
  })
1308
  return Weld
1309
end
1310
1311
Player = plr
1312
Character=Player.Character 
1313
PlayerGui=Player.PlayerGui 
1314
Backpack=Player.Backpack 
1315
Torso=Character.Torso 
1316
Head=Character.Head 
1317
Humanoid=Character.Humanoid
1318
m=Instance.new('Model',Character)
1319
LeftArm=Character["Left Arm"] 
1320
LeftLeg=Character["Left Leg"] 
1321
RightArm=Character["Right Arm"] 
1322
RightLeg=Character["Right Leg"] 
1323
LS=Torso["Left Shoulder"] 
1324
LH=Torso["Left Hip"] 
1325
RS=Torso["Right Shoulder"] 
1326
RH=Torso["Right Hip"] 
1327
Face = Head.face
1328
Neck=Torso.Neck
1329
it=Instance.new
1330
attacktype=1
1331
vt=Vector3.new
1332
cf=CFrame.new
1333
euler=CFrame.fromEulerAnglesXYZ
1334
angles=CFrame.Angles
1335
cloaked=false
1336
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1337
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1338
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1339
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1340
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1341
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1342
RootPart=Character.HumanoidRootPart
1343
RootJoint=RootPart.RootJoint
1344
RootCF=euler(-1.57,0,3.14)
1345
attack = false 
1346
attackdebounce = false 
1347
deb=false
1348
equipped=true
1349
hand=false
1350
combo=0
1351
mana=0
1352
trispeed=.2
1353
attackmode='none'
1354
local idle=0
1355
local Anim="Idle"
1356
local Effects={}
1357
local gun=false
1358
local shoot=false
1359
local sine = 0
1360
local change = 1
1361
1362
function RecolorTextAndRename(name,col1,col2,font)
1363
modet.TextStrokeColor3 = col2
1364
modet.TextColor3 = col1
1365
modet.Font = font
1366
modet.Text = name
1367
techc.ImageColor3 = col2
1368
circl.ImageColor3 = col2
1369
circl2.ImageColor3 = col1
1370
imgl2.ImageColor3 = col1
1371
imgl2b.ImageColor3 = col2
1372
ned.Text = name
1373
ned.TextColor3 = col1
1374
ned.TextStrokeColor3 = col2
1375
end
1376
--save shoulders 
1377
RSH, LSH=nil, nil 
1378
--welds 
1379
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1380
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1381
LH=Torso["Left Hip"]
1382
RH=Torso["Right Hip"]
1383
TorsoColor=Torso.BrickColor
1384
function NoOutline(Part)
1385
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1386
end
1387
ch=Character
1388
RSH=ch.Torso["Right Shoulder"] 
1389
LSH=ch.Torso["Left Shoulder"] 
1390
-- 
1391
RSH.Parent=nil 
1392
LSH.Parent=nil 
1393
-- 
1394
RW.Name="Right Shoulder"
1395
RW.Part0=ch.Torso 
1396
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1397
RW.C1=cf(0, 0.5, 0) 
1398
RW.Part1=ch["Right Arm"] 
1399
RW.Parent=ch.Torso 
1400
-- 
1401
LW.Name="Left Shoulder"
1402
LW.Part0=ch.Torso 
1403
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1404
LW.C1=cf(0, 0.5, 0) 
1405
LW.Part1=ch["Left Arm"] 
1406
LW.Parent=ch.Torso 
1407
1408
local Stats=Instance.new("BoolValue")
1409
Stats.Name="Stats"
1410
Stats.Parent=Character
1411
local Atk=Instance.new("NumberValue")
1412
Atk.Name="Damage"
1413
Atk.Parent=Stats
1414
Atk.Value=1
1415
local Def=Instance.new("NumberValue")
1416
Def.Name="Defense"
1417
Def.Parent=Stats
1418
Def.Value=1
1419
local Speed=Instance.new("NumberValue")
1420
Speed.Name="Speed"
1421
Speed.Parent=Stats
1422
Speed.Value=1
1423
local Mvmt=Instance.new("NumberValue")
1424
Mvmt.Name="Movement"
1425
Mvmt.Parent=Stats
1426
Mvmt.Value=1
1427
1428
local donum=0
1429
local ast = {744586075,385254610}
1430
1431
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1432
local fp=it("Part")
1433
fp.formFactor=formfactor 
1434
fp.Parent=parent
1435
fp.Reflectance=reflectance
1436
fp.Transparency=transparency
1437
fp.CanCollide=false 
1438
fp.Locked=true
1439
fp.BrickColor=brickcolor
1440
fp.Name=name
1441
fp.Size=size
1442
fp.Position=Torso.Position 
1443
NoOutline(fp)
1444
fp.Material="SmoothPlastic"
1445
fp:BreakJoints()
1446
return fp 
1447
end 
1448
 
1449
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1450
local mesh=it(Mesh) 
1451
mesh.Parent=part
1452
if Mesh=="SpecialMesh" then
1453
mesh.MeshType=meshtype
1454
if meshid~="nil" then
1455
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1456
end
1457
end
1458
mesh.Offset=offset
1459
mesh.Scale=scale
1460
return mesh
1461
end
1462
 
1463
function weld(parent,part0,part1,c0)
1464
local weld=it("Weld") 
1465
weld.Parent=parent
1466
weld.Part0=part0 
1467
weld.Part1=part1 
1468
weld.C0=c0
1469
return weld
1470
end
1471
 
1472
local Color1=Torso.BrickColor
1473
1474
local bodvel=Instance.new("BodyVelocity")
1475
local bg=Instance.new("BodyGyro")
1476
1477
--------- SazEreno's Artificial HB --------------
1478
ArtificialHB = Instance.new("BindableEvent", script)
1479
ArtificialHB.Name = "ArtificialHB"
1480
1481
script:WaitForChild("ArtificialHB")
1482
Frame_Speed = 1 / 60
1483
frame = Frame_Speed
1484
tf = 0
1485
allowframeloss = false
1486
tossremainder = false
1487
lastframe = tick()
1488
script.ArtificialHB:Fire()
1489
1490
game:GetService("RunService").Heartbeat:connect(function(s, p)
1491
	tf = tf + s
1492
	if tf >= frame then
1493
		if allowframeloss then
1494
			script.ArtificialHB:Fire()
1495
			lastframe = tick()
1496
		else
1497
			for i = 1, math.floor(tf / frame) do
1498
				script.ArtificialHB:Fire()
1499
			end
1500
		lastframe = tick()
1501
		end
1502
		if tossremainder then
1503
			tf = 0
1504
		else
1505
			tf = tf - frame * math.floor(tf / frame)
1506
		end
1507
	end
1508
end)
1509
1510
------------------
1511
function swait(num)
1512
if num == 0 or num == nil then
1513
		ArtificialHB.Event:wait()
1514
	else
1515
		for i = 1, num do
1516
			ArtificialHB.Event:wait()
1517
		end
1518
	end
1519
end
1520
-------- RAINBOW LEAVE IT TO ME
1521
local r = 255
1522
local g = 0
1523
local b = 0
1524
coroutine.resume(coroutine.create(function()
1525
while wait() do
1526
	for i = 0, 254/5 do
1527
		swait()
1528
		g = g + 5
1529
	end
1530
	for i = 0, 254/5 do
1531
		swait()
1532
		r = r - 5
1533
	end
1534
	for i = 0, 254/5 do
1535
		swait()
1536
		b = b + 5
1537
	end
1538
	for i = 0, 254/5 do
1539
		swait()
1540
		g = g - 5
1541
	end
1542
	for i = 0, 254/5 do
1543
		swait()
1544
		r = r + 5
1545
	end
1546
	for i = 0, 254/5 do
1547
		swait()
1548
		b = b - 5
1549
	end
1550
end
1551
end))
1552
 
1553
 
1554
so = function(id,par,vol,pit) 
1555
coroutine.resume(coroutine.create(function()
1556
local sou = Instance.new("Sound",par or workspace)
1557
sou.Volume=vol
1558
sou.Pitch=pit or 1
1559
sou.SoundId=id
1560
swait() 
1561
sou:play() 
1562
game:GetService("Debris"):AddItem(sou,6)
1563
end))
1564
end
1565
 
1566
function clerp(a,b,t) 
1567
local qa = {QuaternionFromCFrame(a)}
1568
local qb = {QuaternionFromCFrame(b)} 
1569
local ax, ay, az = a.x, a.y, a.z 
1570
local bx, by, bz = b.x, b.y, b.z
1571
local _t = 1-t
1572
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1573
end 
1574
 
1575
function QuaternionFromCFrame(cf) 
1576
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1577
local trace = m00 + m11 + m22 
1578
if trace > 0 then 
1579
local s = math.sqrt(1 + trace) 
1580
local recip = 0.5/s 
1581
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1582
else 
1583
local i = 0 
1584
if m11 > m00 then
1585
i = 1
1586
end
1587
if m22 > (i == 0 and m00 or m11) then 
1588
i = 2 
1589
end 
1590
if i == 0 then 
1591
local s = math.sqrt(m00-m11-m22+1) 
1592
local recip = 0.5/s 
1593
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1594
elseif i == 1 then 
1595
local s = math.sqrt(m11-m22-m00+1) 
1596
local recip = 0.5/s 
1597
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1598
elseif i == 2 then 
1599
local s = math.sqrt(m22-m00-m11+1) 
1600
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1601
end 
1602
end 
1603
end
1604
 
1605
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1606
local xs, ys, zs = x + x, y + y, z + z 
1607
local wx, wy, wz = w*xs, w*ys, w*zs 
1608
local xx = x*xs 
1609
local xy = x*ys 
1610
local xz = x*zs 
1611
local yy = y*ys 
1612
local yz = y*zs 
1613
local zz = z*zs 
1614
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)) 
1615
end
1616
 
1617
function QuaternionSlerp(a, b, t) 
1618
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1619
local startInterp, finishInterp; 
1620
if cosTheta >= 0.0001 then 
1621
if (1 - cosTheta) > 0.0001 then 
1622
local theta = math.acos(cosTheta) 
1623
local invSinTheta = 1/math.sin(theta) 
1624
startInterp = math.sin((1-t)*theta)*invSinTheta 
1625
finishInterp = math.sin(t*theta)*invSinTheta  
1626
else 
1627
startInterp = 1-t 
1628
finishInterp = t 
1629
end 
1630
else 
1631
if (1+cosTheta) > 0.0001 then 
1632
local theta = math.acos(-cosTheta) 
1633
local invSinTheta = 1/math.sin(theta) 
1634
startInterp = math.sin((t-1)*theta)*invSinTheta 
1635
finishInterp = math.sin(t*theta)*invSinTheta 
1636
else 
1637
startInterp = t-1 
1638
finishInterp = t 
1639
end 
1640
end 
1641
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 
1642
end
1643
1644
local function CFrameFromTopBack(at, top, back)
1645
local right = top:Cross(back)
1646
return CFrame.new(at.x, at.y, at.z,
1647
right.x, top.x, back.x,
1648
right.y, top.y, back.y,
1649
right.z, top.z, back.z)
1650
end
1651
1652
function Triangle(a, b, c)
1653
local edg1 = (c-a):Dot((b-a).unit)
1654
local edg2 = (a-b):Dot((c-b).unit)
1655
local edg3 = (b-c):Dot((a-c).unit)
1656
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1657
a, b, c = a, b, c
1658
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1659
a, b, c = b, c, a
1660
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1661
a, b, c = c, a, b
1662
else
1663
assert(false, "unreachable")
1664
end
1665
 
1666
local len1 = (c-a):Dot((b-a).unit)
1667
local len2 = (b-a).magnitude - len1
1668
local width = (a + (b-a).unit*len1 - c).magnitude
1669
 
1670
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1671
 
1672
local list = {}
1673
 
1674
if len1 > 0.01 then
1675
local w1 = Instance.new('WedgePart', m)
1676
game:GetService("Debris"):AddItem(w1,5)
1677
w1.Material = "SmoothPlastic"
1678
w1.FormFactor = 'Custom'
1679
w1.BrickColor = BrickColor.new("Really red")
1680
w1.Transparency = 0
1681
w1.Reflectance = 0
1682
w1.Material = "SmoothPlastic"
1683
w1.CanCollide = false
1684
local l1 = Instance.new("PointLight",w1)
1685
l1.Color = Color3.new(170,0,0)
1686
NoOutline(w1)
1687
local sz = Vector3.new(0.2, width, len1)
1688
w1.Size = sz
1689
local sp = Instance.new("SpecialMesh",w1)
1690
sp.MeshType = "Wedge"
1691
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1692
w1:BreakJoints()
1693
w1.Anchored = true
1694
w1.Parent = workspace
1695
w1.Transparency = 0.7
1696
table.insert(Effects,{w1,"Disappear",.01})
1697
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1698
table.insert(list,w1)
1699
end
1700
 
1701
if len2 > 0.01 then
1702
local w2 = Instance.new('WedgePart', m)
1703
game:GetService("Debris"):AddItem(w2,5)
1704
w2.Material = "SmoothPlastic"
1705
w2.FormFactor = 'Custom'
1706
w2.BrickColor = BrickColor.new("Really red")
1707
w2.Transparency = 0
1708
w2.Reflectance = 0
1709
w2.Material = "SmoothPlastic"
1710
w2.CanCollide = false
1711
local l2 = Instance.new("PointLight",w2)
1712
l2.Color = Color3.new(170,0,0)
1713
NoOutline(w2)
1714
local sz = Vector3.new(0.2, width, len2)
1715
w2.Size = sz
1716
local sp = Instance.new("SpecialMesh",w2)
1717
sp.MeshType = "Wedge"
1718
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1719
w2:BreakJoints()
1720
w2.Anchored = true
1721
w2.Parent = workspace
1722
w2.Transparency = 0.7
1723
table.insert(Effects,{w2,"Disappear",.01})
1724
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1725
table.insert(list,w2)
1726
end
1727
return unpack(list)
1728
end
1729
 
1730
1731
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1732
  if hit.Parent == nil then
1733
    return
1734
  end
1735
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1736
  for _, v in pairs(hit.Parent:children()) do
1737
    if v:IsA("Humanoid") then
1738
      h = v
1739
    end
1740
  end
1741
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1742
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1743
      return
1744
    end
1745
    local c = Create("ObjectValue")({
1746
      Name = "creator",
1747
      Value = game:GetService("Players").yjw0592,
1748
      Parent = h
1749
    })
1750
    game:GetService("Debris"):AddItem(c, 0.5)
1751
    if HitSound ~= nil and HitPitch ~= nil then
1752
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1753
    end
1754
    local Damage = math.random(minim, maxim)
1755
    local blocked = false
1756
    local block = hit.Parent:findFirstChild("Block")
1757
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1758
      blocked = true
1759
      block.Value = block.Value - 1
1760
      print(block.Value)
1761
    end
1762
    if blocked == false then
1763
      HitHealth = h.Health
1764
      h.MaxHealth = 100
1765
      h.Health = h.Health - Damage
1766
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1767
        print("gained kill")
1768
        dmg(h.Parent)
1769
      end
1770
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1771
    else
1772
      h.Health = h.Health - Damage / 2
1773
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1774
    end
1775
    if Type == "Knockdown" then
1776
      local hum = hit.Parent.Humanoid
1777
      hum.PlatformStand = true
1778
      coroutine.resume(coroutine.create(function(HHumanoid)
1779
        swait(1)
1780
        HHumanoid.PlatformStand = false
1781
      end), hum)
1782
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1783
      local bodvol = Create("BodyVelocity")({
1784
        velocity = angle * knockback,
1785
        P = 5000,
1786
        maxForce = Vector3.new(8000, 8000, 8000),
1787
        Parent = hit
1788
      })
1789
      local rl = Create("BodyAngularVelocity")({
1790
        P = 3000,
1791
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1792
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1793
        Parent = hit
1794
      })
1795
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1796
      game:GetService("Debris"):AddItem(rl, 0.5)
1797
    elseif Type == "Normal" then
1798
      local vp = Create("BodyVelocity")({
1799
        P = 500,
1800
        maxForce = Vector3.new(math.huge, 0, math.huge),
1801
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1802
      })
1803
      if knockback > 0 then
1804
        vp.Parent = hit.Parent.Head
1805
      end
1806
      game:GetService("Debris"):AddItem(vp, 0.5)
1807
    elseif Type == "Up" then
1808
      local bodyVelocity = Create("BodyVelocity")({
1809
        velocity = Vector3.new(0, 20, 0),
1810
        P = 5000,
1811
        maxForce = Vector3.new(8000, 8000, 8000),
1812
        Parent = hit
1813
      })
1814
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
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, 1)
1822
    elseif Type == "Leech" then
1823
      local hum = hit.Parent.Humanoid
1824
      if hum ~= nil then
1825
        for i = 0, 2 do
1826
          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)
1827
        end
1828
        Humanoid.Health = Humanoid.Health + 10
1829
      end
1830
    elseif Type == "UpKnock" then
1831
      local hum = hit.Parent.Humanoid
1832
      hum.PlatformStand = true
1833
      if hum ~= nil then
1834
        hitr = true
1835
      end
1836
      coroutine.resume(coroutine.create(function(HHumanoid)
1837
        swait(5)
1838
        HHumanoid.PlatformStand = false
1839
        hitr = false
1840
      end), hum)
1841
      local bodyVelocity = Create("BodyVelocity")({
1842
        velocity = Vector3.new(0, 20, 0),
1843
        P = 5000,
1844
        maxForce = Vector3.new(8000, 8000, 8000),
1845
        Parent = hit
1846
      })
1847
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1848
      local bodyVelocity = Create("BodyVelocity")({
1849
        velocity = Vector3.new(0, 20, 0),
1850
        P = 5000,
1851
        maxForce = Vector3.new(8000, 8000, 8000),
1852
        Parent = hit
1853
      })
1854
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1855
    elseif Type == "Snare" then
1856
      local bp = Create("BodyPosition")({
1857
        P = 2000,
1858
        D = 100,
1859
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1860
        position = hit.Parent.Torso.Position,
1861
        Parent = hit.Parent.Torso
1862
      })
1863
      game:GetService("Debris"):AddItem(bp, 1)
1864
    elseif Type == "Slashnare" then
1865
      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)
1866
      for i = 1, math.random(4, 5) do
1867
        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)
1868
      end
1869
      local bp = Create("BodyPosition")({
1870
        P = 2000,
1871
        D = 100,
1872
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1873
        position = hit.Parent.Torso.Position,
1874
        Parent = hit.Parent.Torso
1875
      })
1876
      game:GetService("Debris"):AddItem(bp, 1)
1877
    elseif Type == "Spike" then
1878
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1879
      local bp = Create("BodyPosition")({
1880
        P = 2000,
1881
        D = 100,
1882
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1883
        position = hit.Parent.Torso.Position,
1884
        Parent = hit.Parent.Torso
1885
      })
1886
      game:GetService("Debris"):AddItem(bp, 1)
1887
    elseif Type == "Freeze" then
1888
      local BodPos = Create("BodyPosition")({
1889
        P = 50000,
1890
        D = 1000,
1891
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1892
        position = hit.Parent.Torso.Position,
1893
        Parent = hit.Parent.Torso
1894
      })
1895
      local BodGy = Create("BodyGyro")({
1896
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1897
        P = 20000,
1898
        Parent = hit.Parent.Torso,
1899
        cframe = hit.Parent.Torso.CFrame
1900
      })
1901
      hit.Parent.Torso.Anchored = true
1902
      coroutine.resume(coroutine.create(function(Part)
1903
        swait(1.5)
1904
        Part.Anchored = false
1905
      end), hit.Parent.Torso)
1906
      game:GetService("Debris"):AddItem(BodPos, 3)
1907
      game:GetService("Debris"):AddItem(BodGy, 3)
1908
    end
1909
    local debounce = Create("BoolValue")({
1910
      Name = "DebounceHit",
1911
      Parent = hit.Parent,
1912
      Value = true
1913
    })
1914
    game:GetService("Debris"):AddItem(debounce, Delay)
1915
    c = Instance.new("ObjectValue")
1916
    c.Name = "creator"
1917
    c.Value = Player
1918
    c.Parent = h
1919
    game:GetService("Debris"):AddItem(c, 0.5)
1920
  end
1921
end
1922
function ShowDamage(Pos, Text, Time, Color)
1923
  local Rate = 0.03333333333333333
1924
  local Pos = Pos or Vector3.new(0, 0, 0)
1925
  local Text = Text or ""
1926
  local Time = Time or 2
1927
  local Color = Color or Color3.new(1, 0, 1)
1928
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1929
  EffectPart.Anchored = true
1930
  local BillboardGui = Create("BillboardGui")({
1931
    Size = UDim2.new(3, 0, 3, 0),
1932
    Adornee = EffectPart,
1933
    Parent = EffectPart
1934
  })
1935
  local TextLabel = Create("TextLabel")({
1936
    BackgroundTransparency = 1,
1937
    Size = UDim2.new(1, 0, 1, 0),
1938
    Text = Text,
1939
    TextColor3 = Color,
1940
    TextScaled = true,
1941
    Font = Enum.Font.ArialBold,
1942
    Parent = BillboardGui
1943
  })
1944
  game.Debris:AddItem(EffectPart, Time + 0.1)
1945
  EffectPart.Parent = game:GetService("Workspace")
1946
  delay(0, function()
1947
    local Frames = Time / Rate
1948
    for Frame = 1, Frames do
1949
      wait(Rate)
1950
      local Percent = Frame / Frames
1951
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1952
      TextLabel.TextTransparency = Percent
1953
    end
1954
    if EffectPart and EffectPart.Parent then
1955
      EffectPart:Destroy()
1956
    end
1957
  end)
1958
end
1959
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1960
  for _, c in pairs(workspace:children()) do
1961
    local hum = c:findFirstChildOfClass("Humanoid")
1962
    if hum ~= nil then
1963
      local head = c:findFirstChild("Head")
1964
      if head ~= nil then
1965
        local targ = head.Position - Part.Position
1966
        local mag = targ.magnitude
1967
        if magni >= mag and c.Name ~= Player.Name then
1968
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1969
        end
1970
      end
1971
    end
1972
  end
1973
end
1974
1975
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1976
  for _, c in pairs(workspace:children()) do
1977
    local hum = c:findFirstChild("Humanoid")
1978
    if hum ~= nil then
1979
      local head = c:findFirstChild("Torso")
1980
      if head ~= nil then
1981
        local targ = head.Position - Part.Position
1982
        local mag = targ.magnitude
1983
        if magni >= mag and c.Name ~= Player.Name then
1984
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
1985
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1986
        end
1987
      end
1988
    end
1989
  end
1990
end
1991
1992
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1993
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1994
end 
1995
1996
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1997
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1998
prt.Anchored=true
1999
prt.CFrame=cframe
2000
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
2001
--http://www.roblox.com/asset/?id=4770560
2002
game:GetService("Debris"):AddItem(prt,2)
2003
CF=prt.CFrame
2004
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
2005
for i=0,1,0.2 do
2006
wait()
2007
Part.CFrame=CF*cf(0,0,-0.4)
2008
end
2009
for i=0,1,delay do
2010
wait()
2011
--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)
2012
Mesh.Scale=Mesh.Scale
2013
end
2014
for i=0,1,0.1 do
2015
wait()
2016
Part.Transparency=i
2017
end
2018
Part.Parent=nil
2019
end),prt,msh,CF)
2020
end
2021
 
2022
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2023
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2024
prt.Anchored=true
2025
prt.Material = "Neon"
2026
prt.CFrame=cframe
2027
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2028
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2029
game:GetService("Debris"):AddItem(prt,5)
2030
coroutine.resume(coroutine.create(function(Part,Mesh) 
2031
for i=0,1,delay do
2032
swait()
2033
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2034
Part.Transparency=i
2035
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2036
end
2037
Part.Parent=nil
2038
end),prt,msh)
2039
end
2040
2041
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2042
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2043
prt.Anchored=true
2044
prt.Material = "Neon"
2045
prt.CFrame=cframe
2046
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2047
game:GetService("Debris"):AddItem(prt,5)
2048
coroutine.resume(coroutine.create(function(Part,Mesh) 
2049
	local rtype = rottype
2050
for i=0,1,delay do
2051
swait()
2052
if rtype == 1 then
2053
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2054
elseif rtype == 2 then
2055
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2056
end
2057
Part.Transparency=i
2058
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2059
end
2060
Part.Parent=nil
2061
end),prt,msh)
2062
end
2063
2064
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2065
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2066
prt.Anchored=true
2067
prt.CFrame=cframe
2068
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2069
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2070
game:GetService("Debris"):AddItem(prt,5)
2071
coroutine.resume(coroutine.create(function(Part,Mesh) 
2072
for i=0,1,delay do
2073
wait()
2074
Part.Transparency=i
2075
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2076
end
2077
Part.Parent=nil
2078
end),prt,msh)
2079
end
2080
2081
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2082
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2083
prt.Anchored=true
2084
prt.Material = "Neon"
2085
prt.CFrame=cframe
2086
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2087
game:GetService("Debris"):AddItem(prt,5)
2088
coroutine.resume(coroutine.create(function(Part,Mesh) 
2089
	local rtype = rottype
2090
for i=0,1,delay do
2091
swait()
2092
if rtype == 1 then
2093
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2094
elseif rtype == 2 then
2095
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2096
end
2097
Part.Transparency=i
2098
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2099
end
2100
Part.Parent=nil
2101
end),prt,msh)
2102
end
2103
2104
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2105
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
2106
prt.Anchored=true
2107
prt.Material = "Neon"
2108
prt.CFrame=cframe
2109
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2110
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2111
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2112
game:GetService("Debris"):AddItem(prt,5)
2113
coroutine.resume(coroutine.create(function(Part,Mesh) 
2114
	local rtype = rottype
2115
for i=0,1,delay do
2116
swait()
2117
if rtype == 1 then
2118
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2119
elseif rtype == 2 then
2120
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2121
end
2122
dec.Transparency=i
2123
dec2.Transparency=i
2124
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2125
end
2126
Part.Parent=nil
2127
end),prt,msh)
2128
end
2129
2130
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2131
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2132
prt.Anchored=true
2133
prt.Material = "Neon"
2134
prt.CFrame=cframe
2135
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2136
game:GetService("Debris"):AddItem(prt,5)
2137
coroutine.resume(coroutine.create(function(Part,Mesh) 
2138
	local rtype = rottype
2139
for i=0,1,delay do
2140
swait()
2141
if rtype == 1 then
2142
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2143
elseif rtype == 2 then
2144
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2145
end
2146
prt.Transparency=i
2147
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2148
end
2149
Part.Parent=nil
2150
end),prt,msh)
2151
end
2152
2153
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
2154
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2155
prt.Anchored=true
2156
prt.Material = "Neon"
2157
prt.CFrame=cframe
2158
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
2159
game:GetService("Debris"):AddItem(prt,5)
2160
coroutine.resume(coroutine.create(function(Part,Mesh) 
2161
	local rtype = rottype
2162
for i=0,1,delay do
2163
swait()
2164
if rtype == 1 then
2165
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
2166
elseif rtype == 2 then
2167
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
2168
end
2169
prt.Transparency=i
2170
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
2171
end
2172
Part.Parent=nil
2173
end),prt,msh)
2174
end
2175
2176
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
2177
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2178
prt.Anchored=true
2179
prt.Material = "Neon"
2180
prt.CFrame=cframe
2181
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2182
game:GetService("Debris"):AddItem(prt,5)
2183
coroutine.resume(coroutine.create(function(Part,Mesh) 
2184
	local rtype = rottype
2185
for i=0,1,delay do
2186
swait()
2187
if rtype == 1 then
2188
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2189
elseif rtype == 2 then
2190
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2191
end
2192
prt.Transparency=i
2193
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2194
end
2195
Part.Parent=nil
2196
end),prt,msh)
2197
end
2198
2199
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2200
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2201
prt.Anchored=true
2202
prt.Material = "Neon"
2203
prt.CFrame=cframe
2204
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2205
game:GetService("Debris"):AddItem(prt,5)
2206
coroutine.resume(coroutine.create(function(Part,Mesh) 
2207
	local rtype = rottype
2208
for i=0,1,delay do
2209
swait()
2210
if rtype == 1 then
2211
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2212
elseif rtype == 2 then
2213
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2214
end
2215
prt.Transparency=i
2216
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2217
end
2218
Part.Parent=nil
2219
end),prt,msh)
2220
end
2221
 
2222
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2223
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2224
prt.Anchored=false
2225
prt.CFrame=cframe
2226
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2227
local wld=weld(prt,prt,Parent,cframe)
2228
game:GetService("Debris"):AddItem(prt,5)
2229
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2230
for i=0,1,delay do
2231
wait()
2232
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
2233
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2234
Part.Transparency=i
2235
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2236
end
2237
Part.Parent=nil
2238
end),prt,msh,wld)
2239
end
2240
 
2241
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2242
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2243
prt.Anchored=false
2244
prt.CFrame=cframe
2245
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2246
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
2247
game:GetService("Debris"):AddItem(prt,5)
2248
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2249
for i=0,1,delay do
2250
wait()
2251
Weld.C0=euler(i*20,0,0)
2252
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2253
Part.Transparency=i
2254
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2255
end
2256
Part.Parent=nil
2257
end),prt,msh,wld)
2258
end
2259
 
2260
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2261
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2262
prt.Anchored=true
2263
prt.CFrame=cframe
2264
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2265
game:GetService("Debris"):AddItem(prt,2)
2266
coroutine.resume(coroutine.create(function(Part,Mesh) 
2267
for i=0,1,delay do
2268
wait()
2269
Part.CFrame=Part.CFrame
2270
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2271
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2272
prt2.Anchored=true
2273
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2274
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
2275
game:GetService("Debris"):AddItem(prt2,2)
2276
coroutine.resume(coroutine.create(function(Part,Mesh) 
2277
for i=0,1,0.1 do
2278
wait()
2279
Part.CFrame=Part.CFrame*cf(0,0.5,0)
2280
end
2281
Part.Parent=nil
2282
end),prt2,msh2)
2283
end
2284
for i=0,1,delay*2 do
2285
wait()
2286
Part.CFrame=Part.CFrame
2287
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
2288
end
2289
Part.Parent=nil
2290
end),prt,msh)
2291
end
2292
 
2293
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2294
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2295
prt.Anchored=true
2296
prt.CFrame=cframe
2297
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2298
game:GetService("Debris"):AddItem(prt,2)
2299
coroutine.resume(coroutine.create(function(Part,Mesh) 
2300
for i=0,1,delay do
2301
wait()
2302
Part.CFrame=Part.CFrame
2303
Part.Transparency=i
2304
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2305
end
2306
Part.Parent=nil
2307
end),prt,msh)
2308
end
2309
 
2310
function BreakEffect(brickcolor,cframe,x1,y1,z1)
2311
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2312
prt.Anchored=true
2313
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2314
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2315
game:GetService("Debris"):AddItem(prt,2)
2316
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2317
CF=Part.CFrame
2318
Numbb=0
2319
randnumb=math.random()/10
2320
rand1=math.random()/10
2321
for i=0,1,rand1 do
2322
wait()
2323
CF=CF*cf(0,math.random()/2,0)
2324
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2325
Part.CFrame=CF*euler(Numbb,0,0)
2326
Part.Transparency=i
2327
Numbb=Numbb+randnumb
2328
end
2329
Part.Parent=nil
2330
end),prt,CF,Numbb,randnumb)
2331
end
2332
 
2333
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2334
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2335
prt.Anchored=true
2336
prt.CFrame=cframe
2337
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2338
game:GetService("Debris"):AddItem(prt,5)
2339
coroutine.resume(coroutine.create(function(Part,Mesh) 
2340
for i=0,1,delay do
2341
wait()
2342
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2343
Part.Transparency=i
2344
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2345
end
2346
Part.Parent=nil
2347
end),prt,msh)
2348
end
2349
 
2350
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2351
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2352
prt.Anchored=true
2353
prt.CFrame=cframe
2354
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2355
game:GetService("Debris"):AddItem(prt,2)
2356
coroutine.resume(coroutine.create(function(Part,Mesh) 
2357
for i=0,1,delay do
2358
wait()
2359
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2360
Part.Transparency=i
2361
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2362
end
2363
Part.Parent=nil
2364
end),prt,msh)
2365
end
2366
 
2367
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2368
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2369
prt.Anchored=true
2370
prt.CFrame=cframe*cf(x,y,z)
2371
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2372
game:GetService("Debris"):AddItem(prt,5)
2373
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2374
local num=math.random()
2375
local num2=math.random(-3,2)+math.random()
2376
local numm=0
2377
for i=0,1,delay*2 do
2378
swait()
2379
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2380
Part.Transparency=i
2381
numm=numm+0.01
2382
end
2383
Part.Parent=nil
2384
Mesh.Parent=nil
2385
end),prt,msh,x,y,z)
2386
end
2387
2388
function dmgstart(dmg,what)
2389
	hitcon = what.Touched:connect(function(hit)
2390
		local hum = hit.Parent:FindFirstChild("Humanoid")
2391
		if hum and not hum:IsDescendantOf(Character) then
2392
			hum:TakeDamage(dmg)
2393
		end
2394
	end)
2395
end
2396
2397
function dmgstop()
2398
	hitcon:disconnect()
2399
end
2400
2401
function Cloak()
2402
Face.Parent=nil
2403
cloaked=true
2404
        for _,v in pairs(Torso.Parent:children()) do
2405
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2406
                coroutine.resume(coroutine.create(function() 
2407
                for i=0,1,0.2 do
2408
                wait()
2409
                v.Transparency=i
2410
                end
2411
                v.Transparency=1
2412
                end))
2413
                end
2414
                if v.className=="Hat" then
2415
                hatp=v.Handle
2416
                coroutine.resume(coroutine.create(function(derp) 
2417
                for i=0,1,0.2 do
2418
                wait()
2419
                derp.Transparency=i
2420
                end
2421
                derp.Transparency=1
2422
                end),hatp)
2423
                end
2424
        end
2425
        for _,v in pairs(m:children()) do
2426
                if v.className=="Part" then
2427
                coroutine.resume(coroutine.create(function() 
2428
                for i=0,1,0.2 do
2429
                wait()
2430
                v.Transparency=i
2431
                end
2432
                v.Transparency=1
2433
                end))
2434
                end
2435
        end
2436
end
2437
 
2438
function UnCloak()
2439
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
2440
Face.Parent=Head 
2441
cloaked=false
2442
        for _,v in pairs(Torso.Parent:children()) do
2443
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2444
                coroutine.resume(coroutine.create(function() 
2445
                for i=0,1,0.1 do
2446
                wait()
2447
                v.Transparency=v.Transparency-0.1
2448
                end
2449
                v.Transparency=0
2450
                end))
2451
                end
2452
                if v.className=="Hat" then
2453
                hatp=v.Handle
2454
                coroutine.resume(coroutine.create(function(derp) 
2455
                for i=0,1,0.1 do
2456
                wait()
2457
                derp.Transparency=derp.Transparency-0.1
2458
                end
2459
                derp.Transparency=0
2460
                end),hatp)
2461
                end
2462
        end
2463
        for _,v in pairs(m:children()) do
2464
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2465
                coroutine.resume(coroutine.create(function() 
2466
                for i=0,1,0.1 do
2467
                wait()
2468
                v.Transparency=v.Transparency-0.1
2469
                end
2470
                v.Transparency=0
2471
                end))
2472
                v.Transparency=0
2473
                end
2474
        end
2475
end
2476
2477
local origcolor = BrickColor.new("Pastel light blue")
2478
---- This section of explosions.
2479
2480
----
2481
2482
2483
function ring(type,pos,scale,value)
2484
local type = type
2485
local rng = Instance.new("Part", char)
2486
        rng.Anchored = true
2487
        rng.BrickColor = origcolor
2488
        rng.CanCollide = false
2489
        rng.FormFactor = 3
2490
        rng.Name = "Ring"
2491
        rng.Size = Vector3.new(1, 1, 1)
2492
        rng.Transparency = 0
2493
        rng.TopSurface = 0
2494
        rng.BottomSurface = 0
2495
        rng.CFrame = pos
2496
        local rngm = Instance.new("SpecialMesh", rng)
2497
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2498
rngm.Scale = scale
2499
local scaler2 = 1
2500
if type == "Add" then
2501
scaler2 = 1*value
2502
elseif type == "Divide" then
2503
scaler2 = 1/value
2504
end
2505
coroutine.resume(coroutine.create(function()
2506
for i = 0,10,0.1 do
2507
swait()
2508
if type == "Add" then
2509
scaler2 = scaler2 - 0.01*value
2510
elseif type == "Divide" then
2511
scaler2 = scaler2 - 0.01/value
2512
end
2513
rng.Transparency = rng.Transparency + 0.01
2514
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2515
end
2516
rng:Destroy()
2517
end))
2518
end
2519
2520
2521
function wave(type,pos,scale,value)
2522
local type = type
2523
local rng = Instance.new("Part", char)
2524
        rng.Anchored = true
2525
        rng.BrickColor = origcolor
2526
        rng.CanCollide = false
2527
        rng.FormFactor = 3
2528
        rng.Name = "Ring"
2529
        rng.Size = Vector3.new(1, 1, 1)
2530
        rng.Transparency = 0
2531
        rng.TopSurface = 0
2532
        rng.BottomSurface = 0
2533
        rng.CFrame = pos
2534
        local rngm = Instance.new("SpecialMesh", rng)
2535
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2536
rngm.Scale = scale
2537
local scaler2 = 1
2538
if type == "Add" then
2539
scaler2 = 1*value
2540
elseif type == "Divide" then
2541
scaler2 = 1/value
2542
end
2543
coroutine.resume(coroutine.create(function()
2544
for i = 0,10,0.1 do
2545
swait()
2546
if type == "Add" then
2547
scaler2 = scaler2 - 0.01*value
2548
elseif type == "Divide" then
2549
scaler2 = scaler2 - 0.01/value
2550
end
2551
rng.Transparency = rng.Transparency + 0.01
2552
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2553
end
2554
rng:Destroy()
2555
end))
2556
end
2557
2558
function wind(type,pos,scale,value,speed)
2559
local type = type
2560
local rng = Instance.new("Part", char)
2561
        rng.Anchored = true
2562
        rng.BrickColor = origcolor
2563
        rng.CanCollide = false
2564
        rng.FormFactor = 3
2565
        rng.Name = "Ring"
2566
        rng.Size = Vector3.new(1, 1, 1)
2567
        rng.Transparency = 0
2568
        rng.TopSurface = 0
2569
        rng.BottomSurface = 0
2570
        rng.CFrame = pos
2571
        local rngm = Instance.new("SpecialMesh", rng)
2572
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2573
rngm.Scale = scale
2574
local scaler2 = 1
2575
if type == "Add" then
2576
scaler2 = 1*value
2577
elseif type == "Divide" then
2578
scaler2 = 1/value
2579
end
2580
coroutine.resume(coroutine.create(function()
2581
for i = 0,10,0.1 do
2582
swait()
2583
if type == "Add" then
2584
scaler2 = scaler2 - 0.01*value
2585
elseif type == "Divide" then
2586
scaler2 = scaler2 - 0.01/value
2587
end
2588
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2589
rng.Transparency = rng.Transparency + 0.01
2590
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2591
end
2592
rng:Destroy()
2593
end))
2594
end
2595
2596
function groundwind(type,pos,scale,value,speed)
2597
local type = type
2598
local rng = Instance.new("Part", char)
2599
        rng.Anchored = true
2600
        rng.BrickColor = origcolor
2601
        rng.CanCollide = false
2602
        rng.FormFactor = 3
2603
        rng.Name = "Ring"
2604
        rng.Size = Vector3.new(1, 1, 1)
2605
        rng.Transparency = 0
2606
        rng.TopSurface = 0
2607
        rng.BottomSurface = 0
2608
        rng.CFrame = pos
2609
        local rngm = Instance.new("SpecialMesh", rng)
2610
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2611
rngm.Scale = scale
2612
local scaler2 = 1
2613
if type == "Add" then
2614
scaler2 = 1*value
2615
elseif type == "Divide" then
2616
scaler2 = 1/value
2617
end
2618
coroutine.resume(coroutine.create(function()
2619
for i = 0,10,0.1 do
2620
swait()
2621
if type == "Add" then
2622
scaler2 = scaler2 - 0.01*value
2623
elseif type == "Divide" then
2624
scaler2 = scaler2 - 0.01/value
2625
end
2626
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2627
rng.Transparency = rng.Transparency + 0.01
2628
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
2629
end
2630
rng:Destroy()
2631
end))
2632
end
2633
2634
function CameraManager()
2635
  if TwoD and not CamInterrupt then
2636
    if Humanoid.Health > 0 then
2637
      Camera.CameraSubject = Humanoid
2638
      Camera.CameraType = "Scriptable"
2639
      Humanoid.AutoRotate = false
2640
      if Booleans.GyroUse then
2641
        Directer.MaxTorque = Vec3(0, huge, 0)
2642
      else
2643
        Directer.MaxTorque = Vec3(0, 0, 0)
2644
      end
2645
      if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
2646
        if Booleans.CamFollow then
2647
          CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
2648
          Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
2649
        else
2650
          CPart.Position = RootPart.Position
2651
        end
2652
      else
2653
        local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
2654
        CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
2655
      end
2656
      Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
2657
    else
2658
      Camera.CameraSubject = Humanoid
2659
      Camera.CameraType = "Custom"
2660
      Controller.Disabled = false
2661
    end
2662
  end
2663
end
2664
2665
function ring(type,pos,scale,value)
2666
local type = type
2667
local rng = Instance.new("Part", char)
2668
        rng.Anchored = true
2669
        rng.BrickColor = origcolor
2670
        rng.CanCollide = false
2671
        rng.FormFactor = 3
2672
        rng.Name = "Ring"
2673
        rng.Size = Vector3.new(1, 1, 1)
2674
        rng.Transparency = 0
2675
        rng.TopSurface = 0
2676
        rng.BottomSurface = 0
2677
        rng.CFrame = pos
2678
        local rngm = Instance.new("SpecialMesh", rng)
2679
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2680
rngm.Scale = scale
2681
local scaler2 = 1
2682
if type == "Add" then
2683
scaler2 = 1*value
2684
elseif type == "Divide" then
2685
scaler2 = 1/value
2686
end
2687
coroutine.resume(coroutine.create(function()
2688
for i = 0,10,0.1 do
2689
swait()
2690
if type == "Add" then
2691
scaler2 = scaler2 - 0.01*value
2692
elseif type == "Divide" then
2693
scaler2 = scaler2 - 0.01/value
2694
end
2695
rng.Transparency = rng.Transparency + 0.01
2696
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2697
end
2698
rng:Destroy()
2699
end))
2700
end
2701
2702
2703
function wave(type,pos,scale,value)
2704
local type = type
2705
local rng = Instance.new("Part", char)
2706
        rng.Anchored = true
2707
        rng.BrickColor = origcolor
2708
        rng.CanCollide = false
2709
        rng.FormFactor = 3
2710
        rng.Name = "Ring"
2711
        rng.Size = Vector3.new(1, 1, 1)
2712
        rng.Transparency = 0
2713
        rng.TopSurface = 0
2714
        rng.BottomSurface = 0
2715
        rng.CFrame = pos
2716
        local rngm = Instance.new("SpecialMesh", rng)
2717
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2718
rngm.Scale = scale
2719
local scaler2 = 1
2720
if type == "Add" then
2721
scaler2 = 1*value
2722
elseif type == "Divide" then
2723
scaler2 = 1/value
2724
end
2725
coroutine.resume(coroutine.create(function()
2726
for i = 0,10,0.1 do
2727
swait()
2728
if type == "Add" then
2729
scaler2 = scaler2 - 0.01*value
2730
elseif type == "Divide" then
2731
scaler2 = scaler2 - 0.01/value
2732
end
2733
rng.Transparency = rng.Transparency + 0.01
2734
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2735
end
2736
rng:Destroy()
2737
end))
2738
end
2739
2740
function sphere(bonuspeed,type,pos,scale,value,color)
2741
local type = type
2742
local rng = Instance.new("Part", char)
2743
        rng.Anchored = true
2744
if ModeOfGlitch ~= 9 then
2745
        rng.BrickColor = color
2746
elseif ModeOfGlitch == 9 then
2747
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2748
end
2749
        rng.CanCollide = false
2750
        rng.FormFactor = 3
2751
        rng.Name = "Ring"
2752
        rng.Material = "Neon"
2753
        rng.Size = Vector3.new(1, 1, 1)
2754
        rng.Transparency = 0
2755
        rng.TopSurface = 0
2756
        rng.BottomSurface = 0
2757
        rng.CFrame = pos
2758
        local rngm = Instance.new("SpecialMesh", rng)
2759
        rngm.MeshType = "Sphere"
2760
rngm.Scale = scale
2761
if rainbowmode == true then
2762
rng.Color = Color3.new(r/255,g/255,b/255)
2763
end
2764
if ModeOfGlitch == 9 then
2765
coroutine.resume(coroutine.create(function()
2766
while true do
2767
swait()
2768
if rng.Parent ~= nil then
2769
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2770
else
2771
break
2772
end
2773
end
2774
end))
2775
end
2776
local scaler2 = 1
2777
if type == "Add" then
2778
scaler2 = 1*value
2779
elseif type == "Divide" then
2780
scaler2 = 1/value
2781
end
2782
coroutine.resume(coroutine.create(function()
2783
for i = 0,10/bonuspeed,0.1 do
2784
swait()
2785
if rainbowmode == true then
2786
rng.Color = Color3.new(r/255,g/255,b/255)
2787
end
2788
if type == "Add" then
2789
scaler2 = scaler2 - 0.01*value/bonuspeed
2790
elseif type == "Divide" then
2791
scaler2 = scaler2 - 0.01/value*bonuspeed
2792
end
2793
if chaosmode == true then
2794
rng.BrickColor = BrickColor.random()
2795
end
2796
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2797
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2798
end
2799
rng:Destroy()
2800
end))
2801
end
2802
2803
function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
2804
local type = type
2805
local rng = Instance.new("Part", char)
2806
        rng.Anchored = true
2807
if ModeOfGlitch ~= 9 then
2808
        rng.BrickColor = color
2809
elseif ModeOfGlitch == 9 then
2810
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2811
end
2812
        rng.CanCollide = false
2813
        rng.FormFactor = 3
2814
        rng.Name = "Ring"
2815
        rng.Material = "Neon"
2816
        rng.Size = Vector3.new(1, 1, 1)
2817
        rng.Transparency = 0
2818
        rng.TopSurface = 0
2819
        rng.BottomSurface = 0
2820
        rng.CFrame = pos
2821
        local rngm = Instance.new("SpecialMesh", rng)
2822
        rngm.MeshType = "Sphere"
2823
rngm.Scale = scale
2824
local scaler2 = 1
2825
local scaler2b = 1
2826
local scaler2c = 1
2827
if type == "Add" then
2828
scaler2 = 1*value
2829
scaler2b = 1*value2
2830
scaler2c = 1*value3
2831
elseif type == "Divide" then
2832
scaler2 = 1/value
2833
scaler2b = 1/value2
2834
scaler2c = 1/value3
2835
end
2836
if ModeOfGlitch == 9 then
2837
coroutine.resume(coroutine.create(function()
2838
while true do
2839
swait()
2840
if rng.Parent ~= nil then
2841
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2842
else
2843
break
2844
end
2845
end
2846
end))
2847
end
2848
coroutine.resume(coroutine.create(function()
2849
for i = 0,10/bonuspeed,0.1 do
2850
swait()
2851
if type == "Add" then
2852
scaler2 = scaler2 - 0.01*value/bonuspeed
2853
scaler2b = scaler2b - 0.01*value/bonuspeed
2854
scaler2c = scaler2c - 0.01*value/bonuspeed
2855
elseif type == "Divide" then
2856
scaler2 = scaler2 - 0.01/value*bonuspeed
2857
scaler2b = scaler2b - 0.01/value*bonuspeed
2858
scaler2c = scaler2c - 0.01/value*bonuspeed
2859
end
2860
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2861
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
2862
end
2863
rng:Destroy()
2864
end))
2865
end
2866
2867
function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
2868
local type = type
2869
local rotenable = rotatingop
2870
local rng = Instance.new("Part", char)
2871
        rng.Anchored = true
2872
        rng.BrickColor = color
2873
        rng.CanCollide = false
2874
        rng.FormFactor = 3
2875
        rng.Name = "Ring"
2876
        rng.Material = "Neon"
2877
        rng.Size = Vector3.new(1, 1, 1)
2878
        rng.Transparency = 0
2879
if typeoftrans == "In" then
2880
rng.Transparency = 1
2881
end
2882
        rng.TopSurface = 0
2883
        rng.BottomSurface = 0
2884
        rng.CFrame = pos
2885
        local rngm = Instance.new("SpecialMesh", rng)
2886
        rngm.MeshType = "FileMesh"
2887
if typeofshape == "Normal" then
2888
rngm.MeshId = "rbxassetid://662586858"
2889
elseif typeofshape == "Round" then
2890
rngm.MeshId = "rbxassetid://662585058"
2891
end
2892
rngm.Scale = scale
2893
local scaler2 = 1/10
2894
if type == "Add" then
2895
scaler2 = 1*value/10
2896
elseif type == "Divide" then
2897
scaler2 = 1/value/10
2898
end
2899
local randomrot = math.random(1,2)
2900
coroutine.resume(coroutine.create(function()
2901
for i = 0,10/bonuspeed,0.1 do
2902
swait()
2903
if type == "Add" then
2904
scaler2 = scaler2 - 0.01*value/bonuspeed/10
2905
elseif type == "Divide" then
2906
scaler2 = scaler2 - 0.01/value*bonuspeed/10
2907
end
2908
if rotenable == true then
2909
if randomrot == 1 then
2910
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
2911
elseif randomrot == 2 then
2912
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
2913
end
2914
end
2915
if typeoftrans == "Out" then
2916
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2917
elseif typeoftrans == "In" then
2918
rng.Transparency = rng.Transparency - 0.01*bonuspeed
2919
end
2920
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
2921
end
2922
rng:Destroy()
2923
end))
2924
end
2925
2926
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2927
local type = type
2928
local rng = Instance.new("Part", char)
2929
        rng.Anchored = true
2930
        rng.BrickColor = color
2931
        rng.CanCollide = false
2932
        rng.FormFactor = 3
2933
        rng.Name = "Ring"
2934
        rng.Material = "Neon"
2935
        rng.Size = Vector3.new(1, 1, 1)
2936
        rng.Transparency = 0
2937
        rng.TopSurface = 0
2938
        rng.BottomSurface = 0
2939
        rng.CFrame = pos
2940
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2941
        local rngm = Instance.new("SpecialMesh", rng)
2942
        rngm.MeshType = "Brick"
2943
rngm.Scale = vt(x1,y1,z1)
2944
if rainbowmode == true then
2945
rng.Color = Color3.new(r/255,g/255,b/255)
2946
end
2947
local scaler2 = 1
2948
local speeder = FastSpeed/10
2949
if type == "Add" then
2950
scaler2 = 1*value
2951
elseif type == "Divide" then
2952
scaler2 = 1/value
2953
end
2954
coroutine.resume(coroutine.create(function()
2955
for i = 0,10/bonuspeed,0.1 do
2956
swait()
2957
if rainbowmode == true then
2958
rng.Color = Color3.new(r/255,g/255,b/255)
2959
end
2960
if type == "Add" then
2961
scaler2 = scaler2 - 0.01*value/bonuspeed
2962
elseif type == "Divide" then
2963
scaler2 = scaler2 - 0.01/value*bonuspeed
2964
end
2965
if chaosmode == true then
2966
rng.BrickColor = BrickColor.random()
2967
end
2968
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2969
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2970
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2971
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2972
end
2973
rng:Destroy()
2974
end))
2975
end
2976
2977
function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2978
local type = type
2979
local rng = Instance.new("Part", char)
2980
        rng.Anchored = true
2981
        rng.BrickColor = color
2982
        rng.CanCollide = false
2983
        rng.FormFactor = 3
2984
        rng.Name = "Ring"
2985
        rng.Material = "Neon"
2986
        rng.Size = Vector3.new(1, 1, 1)
2987
        rng.Transparency = 0
2988
        rng.TopSurface = 0
2989
        rng.BottomSurface = 0
2990
        rng.CFrame = pos
2991
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2992
        local rngm = Instance.new("SpecialMesh", rng)
2993
        rngm.MeshType = "Brick"
2994
rngm.Scale = vt(x1,y1,z1)
2995
if rainbowmode == true then
2996
rng.Color = Color3.new(r/255,g/255,b/255)
2997
end
2998
local scaler2 = 1
2999
local speeder = FastSpeed/10
3000
if type == "Add" then
3001
scaler2 = 1*value
3002
elseif type == "Divide" then
3003
scaler2 = 1/value
3004
end
3005
coroutine.resume(coroutine.create(function()
3006
for i = 0,10/bonuspeed,0.1 do
3007
swait()
3008
if rainbowmode == true then
3009
rng.Color = Color3.new(r/255,g/255,b/255)
3010
end
3011
if type == "Add" then
3012
scaler2 = scaler2 - 0.01*value/bonuspeed
3013
elseif type == "Divide" then
3014
scaler2 = scaler2 - 0.01/value*bonuspeed
3015
end
3016
if chaosmode == true then
3017
rng.BrickColor = BrickColor.random()
3018
end
3019
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
3020
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3021
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3022
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3023
end
3024
rng:Destroy()
3025
end))
3026
end
3027
3028
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3029
local type = type
3030
local rng = Instance.new("Part", char)
3031
        rng.Anchored = true
3032
        rng.BrickColor = color
3033
        rng.CanCollide = false
3034
        rng.FormFactor = 3
3035
        rng.Name = "Ring"
3036
        rng.Material = "Neon"
3037
        rng.Size = Vector3.new(1, 1, 1)
3038
        rng.Transparency = 0
3039
        rng.TopSurface = 0
3040
        rng.BottomSurface = 0
3041
        rng.CFrame = pos
3042
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3043
        local rngm = Instance.new("SpecialMesh", rng)
3044
        rngm.MeshType = "Brick"
3045
rngm.Scale = vt(x1,y1,z1)
3046
if rainbowmode == true then
3047
rng.Color = Color3.new(r/255,g/255,b/255)
3048
end
3049
local scaler2 = 0
3050
local speeder = FastSpeed/10
3051
if type == "Add" then
3052
scaler2 = 1*value
3053
elseif type == "Divide" then
3054
scaler2 = 1/value
3055
end
3056
coroutine.resume(coroutine.create(function()
3057
for i = 0,10/bonuspeed,0.1 do
3058
swait()
3059
if rainbowmode == true then
3060
rng.Color = Color3.new(r/255,g/255,b/255)
3061
end
3062
if type == "Add" then
3063
scaler2 = scaler2 - 0.01*value/bonuspeed
3064
elseif type == "Divide" then
3065
scaler2 = scaler2 - 0.01/value*bonuspeed
3066
end
3067
if chaosmode == true then
3068
rng.BrickColor = BrickColor.random()
3069
end
3070
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
3071
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3072
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
3073
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
3074
end
3075
rng:Destroy()
3076
end))
3077
end
3078
3079
function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
3080
local type = type
3081
local rng = Instance.new("Part", char)
3082
        rng.Anchored = true
3083
        rng.BrickColor = color
3084
        rng.Color = color3
3085
        rng.CanCollide = false
3086
        rng.FormFactor = 3
3087
        rng.Name = "Ring"
3088
        rng.Material = "Neon"
3089
        rng.Size = Vector3.new(1, 1, 1)
3090
        rng.Transparency = 0
3091
        rng.TopSurface = 0
3092
        rng.BottomSurface = 0
3093
        rng.CFrame = pos
3094
        local rngm = Instance.new("SpecialMesh", rng)
3095
        rngm.MeshType = "Brick"
3096
rngm.Scale = scale
3097
local scaler2 = 1
3098
local scaler2b = 1
3099
local scaler2c = 1
3100
if type == "Add" then
3101
scaler2 = 1*value
3102
scaler2b = 1*value2
3103
scaler2c = 1*value3
3104
elseif type == "Divide" then
3105
scaler2 = 1/value
3106
scaler2b = 1/value2
3107
scaler2c = 1/value3
3108
end
3109
coroutine.resume(coroutine.create(function()
3110
for i = 0,10/bonuspeed,0.1 do
3111
swait()
3112
if type == "Add" then
3113
scaler2 = scaler2 - 0.01*value/bonuspeed
3114
scaler2b = scaler2b - 0.01*value/bonuspeed
3115
scaler2c = scaler2c - 0.01*value/bonuspeed
3116
elseif type == "Divide" then
3117
scaler2 = scaler2 - 0.01/value*bonuspeed
3118
scaler2b = scaler2b - 0.01/value*bonuspeed
3119
scaler2c = scaler2c - 0.01/value*bonuspeed
3120
end
3121
rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
3122
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3123
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
3124
end
3125
rng:Destroy()
3126
end))
3127
end
3128
3129
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3130
local type = type
3131
local rng = Instance.new("Part", char)
3132
        rng.Anchored = true
3133
if ModeOfGlitch ~= 9 then
3134
        rng.BrickColor = color
3135
elseif ModeOfGlitch == 9 then
3136
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3137
end
3138
        rng.CanCollide = false
3139
        rng.FormFactor = 3
3140
        rng.Name = "Ring"
3141
        rng.Material = "Neon"
3142
        rng.Size = Vector3.new(1, 1, 1)
3143
        rng.Transparency = 0
3144
        rng.TopSurface = 0
3145
        rng.BottomSurface = 0
3146
        rng.CFrame = pos
3147
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3148
        local rngm = Instance.new("SpecialMesh", rng)
3149
        rngm.MeshType = "Sphere"
3150
rngm.Scale = vt(x1,y1,z1)
3151
if rainbowmode == true then
3152
rng.Color = Color3.new(r/255,g/255,b/255)
3153
end
3154
if ModeOfGlitch == 9 then
3155
coroutine.resume(coroutine.create(function()
3156
while true do
3157
swait()
3158
if rng.Parent ~= nil then
3159
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3160
else
3161
break
3162
end
3163
end
3164
end))
3165
end
3166
local scaler2 = 1
3167
local speeder = FastSpeed
3168
if type == "Add" then
3169
scaler2 = 1*value
3170
elseif type == "Divide" then
3171
scaler2 = 1/value
3172
end
3173
coroutine.resume(coroutine.create(function()
3174
for i = 0,10/bonuspeed,0.1 do
3175
swait()
3176
if rainbowmode == true then
3177
rng.Color = Color3.new(r/255,g/255,b/255)
3178
end
3179
if type == "Add" then
3180
scaler2 = scaler2 - 0.01*value/bonuspeed
3181
elseif type == "Divide" then
3182
scaler2 = scaler2 - 0.01/value*bonuspeed
3183
end
3184
if chaosmode == true then
3185
rng.BrickColor = BrickColor.random()
3186
end
3187
speeder = speeder - 0.01*FastSpeed*bonuspeed
3188
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3189
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3190
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3191
end
3192
rng:Destroy()
3193
end))
3194
end
3195
3196
3197
function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3198
local type = type
3199
local rng = Instance.new("Part", char)
3200
        rng.Anchored = true
3201
if ModeOfGlitch ~= 9 then
3202
        rng.BrickColor = color
3203
elseif ModeOfGlitch == 9 then
3204
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3205
end
3206
        rng.CanCollide = false
3207
        rng.FormFactor = 3
3208
        rng.Name = "Ring"
3209
        rng.Material = "Neon"
3210
        rng.Size = Vector3.new(1, 1, 1)
3211
        rng.Transparency = 1
3212
        rng.TopSurface = 0
3213
        rng.BottomSurface = 0
3214
        rng.CFrame = pos
3215
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3216
        local rngm = Instance.new("SpecialMesh", rng)
3217
        rngm.MeshType = "Sphere"
3218
rngm.Scale = vt(x1,y1,z1)
3219
if rainbowmode == true then
3220
rng.Color = Color3.new(r/255,g/255,b/255)
3221
end
3222
if ModeOfGlitch == 9 then
3223
coroutine.resume(coroutine.create(function()
3224
while true do
3225
swait()
3226
if rng.Parent ~= nil then
3227
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3228
else
3229
break
3230
end
3231
end
3232
end))
3233
end
3234
local scaler2 = 1
3235
local speeder = FastSpeed
3236
if type == "Add" then
3237
scaler2 = 1*value
3238
elseif type == "Divide" then
3239
scaler2 = 1/value
3240
end
3241
coroutine.resume(coroutine.create(function()
3242
for i = 0,10/bonuspeed,0.1 do
3243
swait()
3244
if rainbowmode == true then
3245
rng.Color = Color3.new(r/255,g/255,b/255)
3246
end
3247
if type == "Add" then
3248
scaler2 = scaler2 - 0.01*value/bonuspeed
3249
elseif type == "Divide" then
3250
scaler2 = scaler2 - 0.01/value*bonuspeed
3251
end
3252
if chaosmode == true then
3253
rng.BrickColor = BrickColor.random()
3254
end
3255
speeder = speeder - 0.01*FastSpeed*bonuspeed
3256
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3257
rng.Transparency = rng.Transparency - 0.01*bonuspeed
3258
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3259
end
3260
rng:Destroy()
3261
end))
3262
end
3263
3264
function dmg(dude)
3265
if dude.Name ~= Character then
3266
local keptcolor = MAINRUINCOLOR
3267
local bgf = Instance.new("BodyGyro",dude.Head)
3268
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
3269
--[[local val = Instance.new("BoolValue",dude)
3270
val.Name = "IsHit"]]--
3271
local ds = coroutine.wrap(function()
3272
dude:WaitForChild("Head"):BreakJoints()
3273
for i, v in pairs(dude:GetChildren()) do
3274
if v:IsA("Part") or v:IsA("MeshPart") then
3275
v.Name = "DEMINISHED"
3276
end
3277
end
3278
wait(0.5)
3279
targetted = nil
3280
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
3281
coroutine.resume(coroutine.create(function()
3282
for i, v in pairs(dude:GetChildren()) do
3283
if v:IsA("Accessory") then
3284
v:Destroy()
3285
end
3286
if v:IsA("Humanoid") then
3287
v:Destroy()
3288
end
3289
if v:IsA("CharacterMesh") then
3290
v:Destroy()
3291
end
3292
if v:IsA("Model") then
3293
v:Destroy()
3294
end
3295
if v:IsA("Part") or v:IsA("MeshPart") then
3296
for x, o in pairs(v:GetChildren()) do
3297
if o:IsA("Decal") then
3298
o:Destroy()
3299
end
3300
end
3301
coroutine.resume(coroutine.create(function()
3302
v.Material = "Neon"
3303
v.CanCollide = false
3304
v.Anchored = false
3305
local bld = Instance.new("ParticleEmitter",v)
3306
bld.LightEmission = 0.75
3307
bld.Texture = "rbxassetid://363275192" ---284205403
3308
bld.Color = ColorSequence.new(keptcolor.Color)
3309
bld.Rate = 500
3310
bld.Lifetime = NumberRange.new(1)
3311
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
3312
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
3313
bld.Speed = NumberRange.new(2,5)
3314
bld.VelocitySpread = 50000
3315
bld.Rotation = NumberRange.new(-500,500)
3316
bld.RotSpeed = NumberRange.new(-500,500)
3317
        local sbs = Instance.new("BodyPosition", v)
3318
        sbs.P = 3000
3319
        sbs.D = 1000
3320
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
3321
        sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
3322
v.Color = keptcolor.Color
3323
coroutine.resume(coroutine.create(function()
3324
for i = 0, 49 do
3325
swait(1)
3326
v:BreakJoints()
3327
v.Transparency = v.Transparency + 0.02
3328
end
3329
v:BreakJoints()
3330
sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
3331
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
3332
bld.Speed = NumberRange.new(10,25)
3333
bld.Drag = 5
3334
bld.Acceleration = vt(0,2,0)
3335
wait(0.5)
3336
bld.Enabled = false
3337
wait(8)
3338
v:Destroy()
3339
dude:Destroy()
3340
end))
3341
end))
3342
end
3343
end
3344
end))
3345
end)
3346
ds()
3347
end
3348
end
3349
3350
3351
function FindNearestHead(Position, Distance, SinglePlayer)
3352
	if SinglePlayer then
3353
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
3354
	end
3355
	local List = {}
3356
	for i, v in pairs(workspace:GetChildren()) do
3357
		if v:IsA("Model") then
3358
			if v:findFirstChild("Head") then
3359
				if v ~= Character then
3360
					if (v.Head.Position - Position).magnitude <= Distance then
3361
						table.insert(List, v)
3362
					end 
3363
				end 
3364
			end 
3365
		end 
3366
	end
3367
	return List
3368
end
3369
3370
function FaceMouse()
3371
  Cam = workspace.CurrentCamera
3372
  return {
3373
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
3374
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3375
  }
3376
end
3377
3378
function FaceMouse2()
3379
  Cam = workspace.CurrentCamera
3380
  return {
3381
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
3382
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3383
  }
3384
end
3385
3386
local ModeOfGlitch = 1
3387
-- Functions are ready.
3388
local storehumanoidWS = 16
3389
3390
function CorruptBlink()
3391
for i = 0, 14 do
3392
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)
3393
end
3394
sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3395
CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
3396
RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
3397
CameraEnshaking(2,10)
3398
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
3399
if v:FindFirstChild('Head') then
3400
dmg(v)
3401
end
3402
end
3403
for i = 0, 14 do
3404
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)
3405
end
3406
sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3407
end
3408
function PureBomb()
3409
attack = true
3410
hum.WalkSpeed = 0
3411
local orb = Instance.new("Part", char)
3412
        orb.Anchored = true
3413
        orb.BrickColor = BrickColor.new("Toothpaste")
3414
        orb.CanCollide = false
3415
        orb.FormFactor = 3
3416
        orb.Name = "Ring"
3417
        orb.Material = "Neon"
3418
        orb.Size = Vector3.new(1, 1, 1)
3419
        orb.Transparency = 0
3420
        orb.TopSurface = 0
3421
        orb.BottomSurface = 0
3422
        local orbm = Instance.new("SpecialMesh", orb)
3423
        orbm.MeshType = "Sphere"
3424
orbm.Name = "SizeMesh"
3425
orbm.Scale = vt(0,0,0)
3426
local scaled = 0.1
3427
local posid = 0
3428
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
3429
for i = 0, 5, 0.1 do
3430
swait()
3431
scaled = scaled - 0.001
3432
posid = posid - scaled
3433
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3434
local scaled = 0.1
3435
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
3436
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)
3437
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)
3438
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)
3439
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)
3440
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)
3441
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3442
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
3443
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)
3444
end
3445
for i = 0, 2, 0.1 do
3446
swait()
3447
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3448
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)
3449
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)
3450
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)
3451
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
3452
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
3453
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)
3454
end
3455
coroutine.resume(coroutine.create(function()
3456
orb.Anchored = false
3457
CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
3458
	local a = Instance.new("Part",workspace)
3459
	a.Name = "Direction"	
3460
	a.Anchored = true
3461
	a.BrickColor = bc("Bright red")
3462
a.Material = "Neon"
3463
a.Transparency = 1
3464
	a.CanCollide = false
3465
	local ray = Ray.new(
3466
	    orb.CFrame.p,                           -- origin
3467
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
3468
	) 
3469
	local ignore = orb
3470
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3471
	a.BottomSurface = 10
3472
	a.TopSurface = 10
3473
	local distance = (orb.CFrame.p - position).magnitude
3474
	a.Size = Vector3.new(0.1, 0.1, 0.1)
3475
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
3476
orb.CFrame = a.CFrame
3477
a:Destroy()
3478
local bv = Instance.new("BodyVelocity")
3479
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3480
bv.velocity = orb.CFrame.lookVector*125
3481
bv.Parent = orb
3482
local hitted = false
3483
game:GetService("Debris"):AddItem(orb, 15)
3484
wait()
3485
local hit =orb.Touched:connect(function(hit) 
3486
	if hitted == false then
3487
	hitted = true
3488
CameraEnshaking(10,2.5)
3489
CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
3490
	MagniDamage(orb, 65, 65,90, 0, "Normal")
3491
sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
3492
sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
3493
for i = 0, 49 do
3494
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)
3495
end
3496
for i = 0, 9 do
3497
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)
3498
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)
3499
end
3500
orb.Anchored = true
3501
orb.Transparency = 1
3502
wait(8)
3503
orb:Destroy()
3504
end
3505
end)
3506
end))
3507
for i = 0, 1, 0.1 do
3508
swait()
3509
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)
3510
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)
3511
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)
3512
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
3513
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
3514
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)
3515
end
3516
hum.WalkSpeed = storehumanoidWS
3517
attack = false
3518
end
3519
3520
function BanishingOrb()
3521
attack = true
3522
hum.WalkSpeed = 0
3523
local radm = math.random(1,3)
3524
if radm == 1 then
3525
bosschatfunc("Let it's go..",MAINRUINCOLOR.Color,1)
3526
elseif radm == 2 then
3527
bosschatfunc("So this is it..",MAINRUINCOLOR.Color,1)
3528
elseif radm == 3 then
3529
bosschatfunc("I have enough thing..",MAINRUINCOLOR.Color,1)
3530
end
3531
CFuncs["EchoSound"].Create("rbxassetid://1535994940", char, 5, 1,0,10,0.15,0.5,1)
3532
CFuncs["EchoSound"].Create("rbxassetid://1535994940", root, 60, 1,0,10,0.15,0.5,1)
3533
local orb = Instance.new("Part", char)
3534
        orb.Anchored = true
3535
        orb.BrickColor = BrickColor.new("Lime green")
3536
        orb.CanCollide = false
3537
        orb.FormFactor = 3
3538
        orb.Name = "Ring"
3539
        orb.Material = "Neon"
3540
        orb.Size = Vector3.new(1, 1, 1)
3541
        orb.Transparency = 0
3542
        orb.TopSurface = 0
3543
        orb.BottomSurface = 0
3544
        local orbm = Instance.new("SpecialMesh", orb)
3545
        orbm.MeshType = "Sphere"
3546
orbm.Name = "SizeMesh"
3547
orbm.Scale = vt(0,0,0)
3548
local scaled = 0.1
3549
local posid = 0
3550
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
3551
for i = 0, 5, 0.1 do
3552
swait()
3553
scaled = scaled - 0.001
3554
posid = posid - scaled
3555
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3556
local scaled = 0.1
3557
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
3558
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("Cool yellow"),10)
3559
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)
3560
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)
3561
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)
3562
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3563
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
3564
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)
3565
end
3566
for i = 0, 2, 0.1 do
3567
swait()
3568
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3569
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)
3570
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)
3571
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)
3572
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
3573
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
3574
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)
3575
end
3576
coroutine.resume(coroutine.create(function()
3577
orb.Anchored = false
3578
CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
3579
	local a = Instance.new("Part",workspace)
3580
	a.Name = "Direction"	
3581
	a.Anchored = true
3582
	a.BrickColor = bc("Lime green")
3583
a.Material = "Neon"
3584
a.Transparency = 1
3585
	a.CanCollide = false
3586
	local ray = Ray.new(
3587
	    orb.CFrame.p,                           -- origin
3588
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
3589
	) 
3590
	local ignore = orb
3591
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3592
	a.BottomSurface = 10
3593
	a.TopSurface = 10
3594
	local distance = (orb.CFrame.p - position).magnitude
3595
	a.Size = Vector3.new(0.1, 0.1, 0.1)
3596
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
3597
orb.CFrame = a.CFrame
3598
a:Destroy()
3599
local bv = Instance.new("BodyVelocity")
3600
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3601
bv.velocity = orb.CFrame.lookVector*0
3602
bv.Parent = orb
3603
local hitted = false
3604
local rate = 0
3605
coroutine.resume(coroutine.create(function()
3606
for i = 0, 24 do
3607
wait(0.1)
3608
rate = rate + 0.25
3609
bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
3610
for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
3611
if v:FindFirstChild('Head') then
3612
dmg(v)
3613
end
3614
end
3615
CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
3616
sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,bc"Lime green")
3617
sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
3618
end
3619
orb.Anchored = true
3620
orb.Transparency = 1
3621
for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
3622
if v:FindFirstChild('Head') then
3623
dmg(v)
3624
end
3625
end
3626
local eff = Instance.new("ParticleEmitter",orb)
3627
eff.Texture = "rbxassetid://296874871"
3628
eff.LightEmission = 0.95
3629
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3630
eff.Rate = 1000000000
3631
eff.Lifetime = NumberRange.new(3)
3632
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)})
3633
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3634
eff.Speed = NumberRange.new(30)
3635
eff.Acceleration = vt(0,-15,0)
3636
eff.Rotation = NumberRange.new(-500,500)
3637
eff.VelocitySpread = 100000
3638
eff.RotSpeed = NumberRange.new(-500,500)
3639
coroutine.resume(coroutine.create(function()
3640
	wait(0.6)
3641
	eff.Enabled = false
3642
end))
3643
CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
3644
CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
3645
sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,bc"Lime green")
3646
sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3647
sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
3648
game:GetService("Debris"):AddItem(orb, 15)
3649
end))
3650
end))
3651
for i = 0, 1, 0.1 do
3652
swait()
3653
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)
3654
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)
3655
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)
3656
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
3657
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
3658
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)
3659
end
3660
hum.WalkSpeed = storehumanoidWS
3661
attack = false
3662
end
3663
3664
3665
function ChaosGroundStrike()
3666
attack = true
3667
for i = 0, 2, 0.1 do
3668
swait()
3669
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)
3670
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)
3671
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
3672
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
3673
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
3674
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
3675
end
3676
CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
3677
CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
3678
CameraEnshaking(4,12)
3679
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
3680
if v:FindFirstChild('Head') then
3681
dmg(v)
3682
end
3683
end
3684
sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
3685
sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
3686
sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
3687
for i = 0, 2, 0.1 do
3688
swait()
3689
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)
3690
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)
3691
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)
3692
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)
3693
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
3694
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
3695
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
3696
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
3697
end
3698
attack = false
3699
end
3700
3701
3702
3703
function Starfall()
3704
attack = true
3705
hum.WalkSpeed = 0
3706
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
3707
for i = 0, 5, 0.1 do
3708
swait()
3709
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)
3710
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)
3711
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)
3712
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)
3713
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)
3714
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3715
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)
3716
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)
3717
end
3718
local Overed = false
3719
CameraEnshaking(2,20)
3720
sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3721
sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3722
sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
3723
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
3724
local orb = Instance.new("Part", char)
3725
        orb.Anchored = true
3726
        orb.BrickColor = BrickColor.new("Toothpaste")
3727
        orb.CanCollide = false
3728
        orb.FormFactor = 3
3729
        orb.Name = "Remenant"
3730
        orb.Material = "Neon"
3731
orb.CFrame = root.CFrame*CFrame.new(0,150,0)
3732
        orb.Size = Vector3.new(1, 1, 1)
3733
        orb.Transparency = 1
3734
        orb.TopSurface = 0
3735
        orb.BottomSurface = 0
3736
hum.WalkSpeed = storehumanoidWS
3737
coroutine.resume(coroutine.create(function()
3738
for i = 0, 9 do
3739
swait(10)
3740
				 local lb = Instance.new("Part")
3741
    lb.Color = MAINRUINCOLOR.Color
3742
     lb.CanCollide = false
3743
lb.Material = "Neon"
3744
     lb.Anchored = true
3745
lb.TopSurface = 0
3746
        lb.BottomSurface = 0
3747
     lb.Transparency = 0
3748
     lb.Size = vt(1,1,1)
3749
     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)))
3750
lb.Anchored = false
3751
  lb.Parent = char
3752
local thingery = Instance.new("SpecialMesh",lb)
3753
     thingery.MeshType = "Sphere"
3754
thingery.Scale = vt(20,20,20)
3755
game:GetService("Debris"):AddItem(lb, 10)
3756
  local bv = Instance.new("BodyVelocity")
3757
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3758
  bv.velocity = lb.CFrame.lookVector*math.random(75,250)
3759
  bv.Parent = lb
3760
sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
3761
sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
3762
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
3763
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
3764
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
3765
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
3766
local hitted = false
3767
coroutine.resume(coroutine.create(function()
3768
while true do
3769
swait(1)
3770
if lb.Parent ~= nil and hitted == false then
3771
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)
3772
elseif lb.Parent == nil then
3773
break
3774
end
3775
end
3776
end))
3777
3778
game:GetService("Debris"):AddItem(a, 0.1)
3779
3780
coroutine.resume(coroutine.create(function()
3781
swait(1)
3782
lb.Touched:connect(function(hit)
3783
if hitted == false then
3784
hitted = true
3785
lb.Transparency = 1
3786
lb.Anchored = true
3787
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
3788
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
3789
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
3790
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
3791
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
3792
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
3793
MagniDamage(lb, 45, 45,85, 0, "Normal")
3794
CameraEnshaking(1,5)
3795
sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
3796
sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
3797
for i = 0, 9 do
3798
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)
3799
end
3800
for i = 0, 49 do
3801
swait()
3802
MagniDamage(lb, 30, 2,4, 0, "Normal")
3803
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)
3804
end
3805
end
3806
end)
3807
end))
3808
end
3809
Overed = true
3810
orb:Destroy()
3811
end))
3812
3813
attack = false
3814
end
3815
3816
function StarfallEX()
3817
attack = true
3818
hum.WalkSpeed = 0
3819
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
3820
for i = 0, 10, 0.1 do
3821
swait()
3822
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)
3823
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)
3824
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)
3825
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)
3826
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)
3827
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3828
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)
3829
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)
3830
end
3831
local Overed = false
3832
CameraEnshaking(2,20)
3833
sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3834
sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3835
sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
3836
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
3837
local orb = Instance.new("Part", char)
3838
        orb.Anchored = true
3839
        orb.BrickColor = BrickColor.new("Toothpaste")
3840
        orb.CanCollide = false
3841
        orb.FormFactor = 3
3842
        orb.Name = "Remenant"
3843
        orb.Material = "Neon"
3844
orb.CFrame = root.CFrame*CFrame.new(0,250,0)
3845
        orb.Size = Vector3.new(1, 1, 1)
3846
        orb.Transparency = 1
3847
        orb.TopSurface = 0
3848
        orb.BottomSurface = 0
3849
hum.WalkSpeed = storehumanoidWS
3850
coroutine.resume(coroutine.create(function()
3851
for i = 0, 4 do
3852
swait(15)
3853
				 local lb = Instance.new("Part")
3854
    lb.Color = MAINRUINCOLOR.Color
3855
     lb.CanCollide = false
3856
lb.Material = "Neon"
3857
     lb.Anchored = true
3858
lb.TopSurface = 0
3859
        lb.BottomSurface = 0
3860
     lb.Transparency = 0
3861
     lb.Size = vt(1,1,1)
3862
     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)))
3863
lb.Anchored = false
3864
  lb.Parent = char
3865
local thingery = Instance.new("SpecialMesh",lb)
3866
     thingery.MeshType = "Sphere"
3867
thingery.Scale = vt(50,50,50)
3868
game:GetService("Debris"):AddItem(lb, 10)
3869
  local bv = Instance.new("BodyVelocity")
3870
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3871
  bv.velocity = lb.CFrame.lookVector*math.random(50,420)
3872
  bv.Parent = lb
3873
sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
3874
sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
3875
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
3876
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
3877
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
3878
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
3879
local hitted = false
3880
coroutine.resume(coroutine.create(function()
3881
while true do
3882
swait(1)
3883
if lb.Parent ~= nil and hitted == false then
3884
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)
3885
elseif lb.Parent == nil then
3886
break
3887
end
3888
end
3889
end))
3890
3891
game:GetService("Debris"):AddItem(a, 0.1)
3892
3893
coroutine.resume(coroutine.create(function()
3894
swait(1)
3895
lb.Touched:connect(function(hit)
3896
if hitted == false then
3897
hitted = true
3898
lb.Transparency = 1
3899
lb.Anchored = true
3900
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
3901
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
3902
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
3903
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
3904
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
3905
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
3906
MagniDamage(lb, 50, 60,99, 0, "Normal")
3907
CameraEnshaking(1,5)
3908
sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
3909
sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
3910
for i = 0, 9 do
3911
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)
3912
end
3913
for i = 0, 99 do
3914
swait()
3915
MagniDamage(lb, 30, 6,18, 0, "Normal")
3916
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)
3917
end
3918
end
3919
end)
3920
end))
3921
end
3922
Overed = true
3923
orb:Destroy()
3924
end))
3925
3926
attack = false
3927
end
3928
3929
function DivineBlast()
3930
attack = true
3931
bosschatfunc("Justice Beam!!",MAINRUINCOLOR.Color,0.7)
3932
hum.WalkSpeed = 0
3933
local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
3934
elocacenter.Anchored = true
3935
elocacenter.CFrame = sorb.CFrame
3936
local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3937
eloca1.Anchored = true
3938
eloca1.CFrame = elocacenter.CFrame
3939
local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3940
eloca2.Anchored = true
3941
eloca2.CFrame = elocacenter.CFrame
3942
local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3943
eloca3.Anchored = true
3944
eloca3.CFrame = elocacenter.CFrame
3945
local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3946
eloca4.Anchored = true
3947
eloca4.CFrame = elocacenter.CFrame
3948
local lookavec = 0 
3949
local speeds = 0
3950
CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
3951
for i = 0, 3, 0.1 do
3952
swait()
3953
---
3954
lookavec = lookavec + 0.1
3955
speeds = speeds + 10
3956
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3957
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3958
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)
3959
3960
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3961
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)
3962
3963
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3964
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)
3965
3966
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3967
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)
3968
---
3969
root.CFrame = FaceMouse()[1]
3970
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)
3971
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)
3972
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
3973
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)
3974
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3975
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)
3976
end
3977
for i = 0, 3, 0.1 do
3978
swait()
3979
---
3980
speeds = speeds + 10
3981
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3982
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3983
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)
3984
3985
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3986
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)
3987
3988
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3989
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)
3990
3991
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3992
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)
3993
---
3994
root.CFrame = FaceMouse()[1]
3995
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)
3996
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)
3997
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
3998
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)
3999
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
4000
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)
4001
end
4002
CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
4003
CFuncs["Sound"].Create("rbxassetid://1436239652", char, 40,1)
4004
for i = 0, 3, 0.1 do
4005
swait()
4006
---
4007
speeds = speeds + 10
4008
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4009
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4010
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)
4011
4012
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4013
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)
4014
4015
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4016
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)
4017
4018
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4019
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)
4020
---
4021
root.CFrame = FaceMouse()[1]
4022
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)
4023
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)
4024
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
4025
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)
4026
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
4027
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)
4028
end
4029
coroutine.resume(coroutine.create(function()
4030
local a = Instance.new("Part",Character)
4031
	a.Name = "Direction"	
4032
	a.Anchored = true
4033
	a.BrickColor = bc("White")
4034
a.Material = "Neon"
4035
a.Transparency = 0
4036
a.Shape = "Cylinder"
4037
	a.CanCollide = false
4038
local a2 = Instance.new("Part",Character)
4039
	a2.Name = "Direction"	
4040
	a2.Anchored = true
4041
	a2.BrickColor = bc("Bright yellow")
4042
a2.Material = "Neon"
4043
a2.Transparency = 0
4044
a2.Shape = "Cylinder"
4045
	a2.CanCollide = false
4046
local b = Instance.new("Part",Character)
4047
	b.Name = "HitDirect"	
4048
	b.Anchored = true
4049
	b.BrickColor = bc("Cool yellow")
4050
b.Material = "Neon"
4051
b.Transparency = 1
4052
	b.CanCollide = false
4053
	local ray = Ray.new(
4054
	    elocacenter.CFrame.p,                           -- origin
4055
	    (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
4056
	) 
4057
	local ignore = Character
4058
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
4059
	a.BottomSurface = 10
4060
	a.TopSurface = 10
4061
	a2.BottomSurface = 10
4062
	a2.TopSurface = 10
4063
	local distance = (elocacenter.CFrame.p - position).magnitude
4064
	a.Size = Vector3.new(distance, 1, 1)
4065
	a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
4066
	a2.Size = Vector3.new(distance, 1, 1)
4067
	a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
4068
b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
4069
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
4070
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
4071
game:GetService("Debris"):AddItem(a, 10)
4072
game:GetService("Debris"):AddItem(a2, 10)
4073
game:GetService("Debris"):AddItem(b, 10)
4074
local eff = Instance.new("ParticleEmitter",b)
4075
eff.Texture = "rbxassetid://2273224484"
4076
eff.LightEmission = 1
4077
eff.Color = ColorSequence.new(Color3.new(1,1,0))
4078
eff.Rate = 500000
4079
eff.Lifetime = NumberRange.new(0.5,2)
4080
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)})
4081
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)})
4082
eff.Speed = NumberRange.new(20,250)
4083
eff.Drag = 5
4084
eff.Rotation = NumberRange.new(-500,500)
4085
eff.VelocitySpread = 9000
4086
eff.RotSpeed = NumberRange.new(-50,50)
4087
coroutine.resume(coroutine.create(function()
4088
wait(0.25)
4089
eff.Enabled = false
4090
end))
4091
local msh = Instance.new("SpecialMesh",a)
4092
msh.MeshType = "Cylinder"
4093
msh.Scale = vt(1,2,2)
4094
local msh2 = Instance.new("SpecialMesh",a2)
4095
msh2.MeshType = "Cylinder"
4096
msh2.Scale = vt(1,2.5,2.5)
4097
CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
4098
coroutine.resume(coroutine.create(function()
4099
for i = 0,10,0.1 do
4100
swait()
4101
msh.Scale = msh.Scale + vt(0,0.05,0.05)
4102
a.Transparency = a.Transparency + 0.025
4103
msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
4104
a2.Transparency = a2.Transparency + 0.05
4105
end
4106
a:Destroy()
4107
a2:Destroy()
4108
end))
4109
CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
4110
CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
4111
CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
4112
CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
4113
CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
4114
CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
4115
MagniDamage(b, 25, 40,65, 0, "Normal")
4116
for i = 0, 49 do
4117
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)
4118
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)
4119
end
4120
sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
4121
sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
4122
sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4123
sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4124
sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4125
sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4126
end))
4127
game:GetService("Debris"):AddItem(elocacenter, 5)
4128
hum.WalkSpeed = storehumanoidWS
4129
attack = false
4130
end
4131
4132
function StarDivision()
4133
attack = true
4134
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
4135
for i = 0, 2, 0.1 do
4136
swait()
4137
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)
4138
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)
4139
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)
4140
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)
4141
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
4142
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)
4143
end
4144
local orb = Instance.new("Part", char)
4145
        orb.BrickColor = MAINRUINCOLOR
4146
        orb.CanCollide = false
4147
        orb.FormFactor = 3
4148
        orb.Name = "Ring"
4149
        orb.Material = "Neon"
4150
        orb.Size = Vector3.new(1, 1, 1)
4151
        orb.Transparency = 0
4152
        orb.TopSurface = 0
4153
        orb.BottomSurface = 0
4154
        local orbm = Instance.new("SpecialMesh", orb)
4155
        orbm.MeshType = "Sphere"
4156
orbm.Name = "SizeMesh"
4157
orbm.Scale = vt(2,2,2)
4158
local a = Instance.new("Part",workspace)
4159
	a.Name = "Direction"	
4160
	a.Anchored = true
4161
	a.BrickColor = bc("Bright red")
4162
a.Material = "Neon"
4163
a.Transparency = 1
4164
	a.CanCollide = false
4165
	local ray = Ray.new(
4166
	    sorb.CFrame.p,                           -- origin
4167
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
4168
	) 
4169
	local ignore = sorb
4170
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
4171
	a.BottomSurface = 10
4172
	a.TopSurface = 10
4173
	local distance = (sorb.CFrame.p - position).magnitude
4174
	a.Size = Vector3.new(0.1, 0.1, 0.1)
4175
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
4176
orb.CFrame = a.CFrame
4177
a:Destroy()
4178
local bv = Instance.new("BodyVelocity")
4179
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4180
bv.velocity = orb.CFrame.lookVector*100
4181
bv.Parent = orb
4182
local hitted = false
4183
game:GetService("Debris"):AddItem(orb, 10)
4184
CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
4185
CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
4186
CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
4187
CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
4188
CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
4189
coroutine.resume(coroutine.create(function()
4190
while true do
4191
swait(1)
4192
if orb.Parent ~= nil and hitted == false then
4193
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)
4194
elseif orb.Parent == nil then
4195
break
4196
end
4197
end
4198
end))
4199
coroutine.resume(coroutine.create(function()
4200
swait(1)
4201
orb.Touched:connect(function(hit)
4202
if hitted == false then
4203
hitted = true
4204
game:GetService("Debris"):AddItem(orb, 5)
4205
orb.Transparency = 1
4206
orb.Anchored = true
4207
local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4208
elocacenter.Anchored = true
4209
elocacenter.CFrame = orb.CFrame
4210
elocacenter.Orientation = vt(0,0,0)
4211
local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4212
eloca1.Anchored = true
4213
eloca1.CFrame = elocacenter.CFrame
4214
local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4215
eloca2.Anchored = true
4216
eloca2.CFrame = elocacenter.CFrame
4217
local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4218
eloca3.Anchored = true
4219
eloca3.CFrame = elocacenter.CFrame
4220
local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4221
eloca4.Anchored = true
4222
eloca4.CFrame = elocacenter.CFrame
4223
local lookavec = 0 
4224
local speeds = 0
4225
CameraEnshaking(1,1)
4226
CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
4227
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4228
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4229
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4230
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4231
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4232
for i = 0, 99 do
4233
swait()
4234
lookavec = lookavec + 1
4235
speeds = speeds + 0.1
4236
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4237
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4238
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)
4239
4240
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4241
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)
4242
4243
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4244
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)
4245
4246
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4247
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)
4248
end
4249
4250
for i = 0, 149 do
4251
swait()
4252
speeds = speeds + 0.1
4253
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4254
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4255
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)
4256
4257
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4258
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)
4259
4260
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4261
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)
4262
4263
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4264
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)
4265
end
4266
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
4267
if v:FindFirstChild('Head') then
4268
dmg(v)
4269
end
4270
end
4271
CameraEnshaking(7,30)
4272
MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
4273
CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
4274
CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
4275
CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
4276
CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
4277
sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
4278
sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
4279
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4280
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4281
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4282
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4283
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4284
for i = 0, 24 do
4285
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)
4286
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)
4287
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)
4288
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)
4289
end
4290
coroutine.resume(coroutine.create(function()
4291
for i = 0, 499 do
4292
swait(1)
4293
MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
4294
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)
4295
end
4296
elocacenter:Destroy()
4297
eloca1:Destroy()
4298
eloca2:Destroy()
4299
eloca3:Destroy()
4300
eloca4:Destroy()
4301
end))
4302
end
4303
end)
4304
end))
4305
attack = false
4306
end
4307
4308
4309
function THE_TRUE_POWER_OF_VIOLENCE()
4310
attack = true
4311
hum.WalkSpeed = 0
4312
bosschatfunc("ALL YOUR DESTINY...",MAINRUINCOLOR.Color,4)
4313
for i = 0, 10, 0.1 do
4314
swait()
4315
PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
4316
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)
4317
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)
4318
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
4319
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
4320
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4321
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)
4322
end
4323
local orb = Instance.new("Part", char)
4324
        orb.BrickColor = MAINRUINCOLOR
4325
        orb.CanCollide = false
4326
        orb.FormFactor = 3
4327
        orb.Name = "Ring"
4328
        orb.Material = "Neon"
4329
        orb.Size = Vector3.new(1, 1, 1)
4330
        orb.Transparency = 0
4331
        orb.TopSurface = 0
4332
        orb.BottomSurface = 0
4333
orb.CFrame = sorb.CFrame
4334
        local orbm = Instance.new("SpecialMesh", orb)
4335
        orbm.MeshType = "Sphere"
4336
orbm.Name = "SizeMesh"
4337
orbm.Scale = vt(0,0,0)
4338
        local sbs = Instance.new("BodyPosition", orb)
4339
        sbs.P = 3000
4340
        sbs.D = 1000
4341
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
4342
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
4343
CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
4344
sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4345
sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4346
sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4347
sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4348
sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4349
for i = 0, 10, 0.1 do
4350
swait()
4351
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)
4352
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)
4353
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)
4354
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
4355
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
4356
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4357
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)
4358
end
4359
orb.Anchored = true
4360
local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4361
elocacenter.Anchored = true
4362
elocacenter.CFrame = orb.CFrame
4363
elocacenter.Orientation = vt(0,0,0)
4364
local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4365
eloca1.Anchored = true
4366
eloca1.CFrame = elocacenter.CFrame
4367
local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4368
eloca2.Anchored = true
4369
eloca2.CFrame = elocacenter.CFrame
4370
local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4371
eloca3.Anchored = true
4372
eloca3.CFrame = elocacenter.CFrame
4373
local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4374
eloca4.Anchored = true
4375
eloca4.CFrame = elocacenter.CFrame
4376
local lookavec = 0 
4377
local speeds = 0
4378
CameraEnshaking(1,1)
4379
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
4380
CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
4381
CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
4382
CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
4383
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4384
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4385
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4386
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4387
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4388
for i = 0, 99 do
4389
swait()
4390
lookavec = lookavec + 2.5
4391
speeds = speeds + 0.25
4392
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4393
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4394
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)
4395
4396
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4397
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)
4398
4399
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4400
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)
4401
4402
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4403
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)
4404
end
4405
4406
for i = 0, 149 do
4407
swait()
4408
speeds = speeds + 0.25
4409
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4410
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4411
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)
4412
4413
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4414
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)
4415
4416
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4417
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)
4418
4419
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4420
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)
4421
end
4422
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
4423
for i = 0, 99 do
4424
swait()
4425
lookavec = lookavec - 2.5
4426
speeds = speeds + 0.25
4427
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4428
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4429
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)
4430
4431
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4432
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)
4433
4434
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4435
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)
4436
4437
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4438
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)
4439
end
4440
local scaled = 0.1*75
4441
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
4442
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
4443
CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
4444
CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
4445
CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
4446
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
4447
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4448
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4449
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4450
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4451
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4452
4453
for i = 0, 10, 0.1 do
4454
swait()
4455
scaled = scaled - 0.001*75
4456
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4457
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)
4458
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)
4459
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)
4460
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
4461
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
4462
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4463
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)
4464
end
4465
bosschatfunc("WILL BE MINE!!!!",MAINRUINCOLOR.Color,2)
4466
CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 10, 1,0,10,0.15,0.5,1)
4467
CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 60, 1,0,10,0.15,0.5,1)
4468
for x = 0, 4 do
4469
for i = 0, 9 do
4470
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)
4471
end
4472
CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
4473
CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
4474
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4475
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4476
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4477
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4478
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4479
for i = 0, 5, 0.1 do
4480
swait()
4481
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)
4482
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)
4483
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)
4484
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)
4485
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
4486
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
4487
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
4488
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
4489
end
4490
end
4491
local speedearn = 0
4492
CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
4493
CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
4494
CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
4495
for i = 0, 30, 0.1 do
4496
swait()
4497
scaled = scaled - 0.001*75/10
4498
speedearn = speedearn + 0.5
4499
for i = 0, 4 do 
4500
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)
4501
end
4502
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)
4503
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4504
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)
4505
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)
4506
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)
4507
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)
4508
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
4509
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
4510
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
4511
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
4512
end
4513
orb.Transparency = 1
4514
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
4515
if v:FindFirstChild('Head') then
4516
dmg(v)
4517
end
4518
end
4519
CameraEnshaking(7,30)
4520
MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
4521
CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
4522
CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
4523
CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
4524
CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
4525
CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
4526
CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
4527
CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
4528
CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
4529
CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
4530
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
4531
CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
4532
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
4533
CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
4534
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4535
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4536
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4537
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4538
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4539
for i = 0, 99 do
4540
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)
4541
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)
4542
end
4543
for i = 0, 24 do
4544
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)
4545
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)
4546
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)
4547
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)
4548
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)
4549
end
4550
game:GetService("Debris"):AddItem(orb, 10)
4551
hum.WalkSpeed = storehumanoidWS
4552
attack = false
4553
end
4554
4555
4556
function ViolentRing()
4557
attack = true
4558
CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
4559
bosschatfunc("SHOULD I TAKE THAT EASIER?!",MAINRUINCOLOR.Color,0.7)
4560
CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
4561
CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
4562
for i = 0, 2, 0.1 do
4563
swait()
4564
local snap = math.random(1,10)
4565
if snap == 1 then
4566
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)
4567
end
4568
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)
4569
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)
4570
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)
4571
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)
4572
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)
4573
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)
4574
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
4575
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
4576
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)
4577
RootPart.CFrame = FaceMouse()[1]
4578
end
4579
local orb = Instance.new("Part", char)
4580
        orb.BrickColor = MAINRUINCOLOR
4581
        orb.CanCollide = false
4582
        orb.FormFactor = 3
4583
        orb.Name = "Ring"
4584
        orb.Material = "Neon"
4585
        orb.Size = Vector3.new(1, 1, 1)
4586
        orb.Transparency = 0
4587
        orb.TopSurface = 0
4588
        orb.BottomSurface = 0
4589
        local orbm = Instance.new("SpecialMesh", orb)
4590
        orbm.MeshType = "Sphere"
4591
orbm.Name = "SizeMesh"
4592
orbm.Scale = vt(2,2,2)
4593
orb.CFrame = mouse.Hit
4594
local bv = Instance.new("BodyVelocity")
4595
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4596
bv.velocity = orb.CFrame.lookVector*100
4597
bv.Parent = orb
4598
local hitted = false
4599
coroutine.resume(coroutine.create(function()
4600
game:GetService("Debris"):AddItem(orb, 5)
4601
orb.Transparency = 1
4602
orb.Anchored = true
4603
local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4604
elocacenter.Anchored = true
4605
elocacenter.CFrame = orb.CFrame
4606
elocacenter.Orientation = vt(0,0,0)
4607
local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4608
eloca1.Anchored = true
4609
eloca1.CFrame = elocacenter.CFrame
4610
local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4611
eloca2.Anchored = true
4612
eloca2.CFrame = elocacenter.CFrame
4613
local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4614
eloca3.Anchored = true
4615
eloca3.CFrame = elocacenter.CFrame
4616
local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4617
eloca4.Anchored = true
4618
eloca4.CFrame = elocacenter.CFrame
4619
local lookavec = 0 
4620
local speeds = 0
4621
CameraEnshaking(1,1)
4622
CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
4623
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4624
sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4625
sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4626
sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4627
sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4628
for i = 0, 24 do
4629
swait()
4630
lookavec = lookavec + 3.5
4631
speeds = speeds + 1
4632
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4633
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4634
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)
4635
4636
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4637
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)
4638
4639
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4640
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)
4641
4642
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4643
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)
4644
end
4645
4646
local risen = 0
4647
for i = 0, 49 do
4648
swait()
4649
risen = risen + 0.05
4650
speeds = speeds + 0.1
4651
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4652
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4653
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)
4654
4655
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4656
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)
4657
4658
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4659
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)
4660
4661
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4662
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)
4663
end
4664
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
4665
if v:FindFirstChild('Head') then
4666
dmg(v)
4667
end
4668
end
4669
CameraEnshaking(4,10)
4670
MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
4671
CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
4672
CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
4673
CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
4674
CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
4675
CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
4676
local eff = Instance.new("ParticleEmitter",elocacenter)
4677
eff.Texture = "rbxassetid://2273224484"
4678
eff.LightEmission = 1
4679
eff.Color = ColorSequence.new(Color3.new(1,1,0))
4680
eff.Rate = 1000000
4681
eff.Lifetime = NumberRange.new(0.5,2)
4682
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)})
4683
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)})
4684
eff.Speed = NumberRange.new(20,250)
4685
eff.Drag = 5
4686
eff.Rotation = NumberRange.new(-500,500)
4687
eff.VelocitySpread = 5000000
4688
eff.RotSpeed = NumberRange.new(-50,50)
4689
coroutine.resume(coroutine.create(function()
4690
wait(1)
4691
eff.Enabled = false
4692
end))
4693
sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
4694
sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
4695
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4696
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4697
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4698
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4699
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4700
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
4701
for i = 0, 24 do
4702
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)
4703
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)
4704
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)
4705
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)
4706
end
4707
coroutine.resume(coroutine.create(function()
4708
wait(10)
4709
elocacenter:Destroy()
4710
eloca1:Destroy()
4711
eloca2:Destroy()
4712
eloca3:Destroy()
4713
eloca4:Destroy()
4714
end))
4715
end))
4716
attack = false
4717
end
4718
4719
function UniversalCollapse()
4720
attack = true
4721
local speedearn = 0
4722
hum.WalkSpeed = 0
4723
        local sbs = Instance.new("BodyPosition", root)
4724
        sbs.P = 3000
4725
        sbs.D = 1000
4726
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
4727
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
4728
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
4729
for i = 0, 85, 0.1 do
4730
swait()
4731
speedearn = speedearn + 0.1
4732
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)
4733
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)
4734
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)
4735
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)
4736
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)
4737
sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
4738
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)
4739
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)
4740
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)
4741
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
4742
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)
4743
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)
4744
end
4745
bosschatfunc("Universary..",MAINRUINCOLOR.Color,1)
4746
CFuncs["EchoSound"].Create("rbxassetid://1448032598", char, 5, 1,0,10,0.15,0.5,1)
4747
CFuncs["EchoSound"].Create("rbxassetid://1448032598", root, 20, 1,0,10,0.15,0.5,1)
4748
for i = 0, 25, 0.1 do
4749
swait()
4750
speedearn = speedearn + 0.1
4751
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)
4752
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)
4753
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)
4754
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)
4755
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)
4756
sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
4757
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)
4758
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)
4759
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)
4760
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
4761
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)
4762
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)
4763
end
4764
bosschatfunc("COLLAPSE!!!",MAINRUINCOLOR.Color,1)
4765
CFuncs["EchoSound"].Create("rbxassetid://1436241883", char, 5, 1,0,10,0.15,0.5,1)
4766
CFuncs["EchoSound"].Create("rbxassetid://1436241883", root, 20, 1,0,10,0.15,0.5,1)
4767
CameraEnshaking(5,50)
4768
sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
4769
for i = 0, 2 do 
4770
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
4771
CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
4772
CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
4773
CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
4774
end
4775
for i = 0, 49 do
4776
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)
4777
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)
4778
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)
4779
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)
4780
end
4781
sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4782
sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4783
sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4784
sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4785
sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4786
sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4787
sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4788
sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4789
sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4790
sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4791
sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4792
sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4793
for i = 0, 99 do
4794
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)
4795
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)
4796
end
4797
for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
4798
if v:FindFirstChild('Head') then
4799
dmg(v)
4800
end
4801
end
4802
MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
4803
sbs:Destroy()
4804
hum.WalkSpeed = storehumanoidWS
4805
attack = false
4806
end
4807
4808
4809
function ChaosEND()
4810
attack = true
4811
local speedearn = 0
4812
bosschatfunc("THIS IS..",MAINRUINCOLOR.Color,0.8)
4813
CFuncs["EchoSound"].Create("rbxassetid://1548599511", char, 4.5, 1,0,10,0.15,0.5,1)
4814
CFuncs["EchoSound"].Create("rbxassetid://1548599511", root, 30, 1,0,10,0.15,0.5,1)
4815
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
4816
for i = 0, 15, 0.1 do
4817
swait()
4818
speedearn = speedearn + 0.25
4819
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)
4820
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)
4821
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)
4822
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)
4823
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)
4824
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)
4825
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)
4826
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4827
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4828
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
4829
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
4830
end
4831
CFuncs["Sound"].Create("rbxassetid://438666141", char, 3,1)
4832
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 4, 1)
4833
bosschatfunc("THE END!!!",MAINRUINCOLOR.Color,2)
4834
CFuncs["EchoSound"].Create("rbxassetid://1548599962", char, 8, 1,0,10,0.15,0.5,1)
4835
CFuncs["EchoSound"].Create("rbxassetid://1548599962", root, 40, 1,0,10,0.15,0.5,1)
4836
CameraEnshaking(5,25)
4837
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
4838
if v:FindFirstChild('Head') then
4839
dmg(v)
4840
end
4841
end
4842
sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
4843
sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
4844
sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
4845
for i = 0, 3, 0.1 do
4846
swait()
4847
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)
4848
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)
4849
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)
4850
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)
4851
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)
4852
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)
4853
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4854
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4855
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
4856
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
4857
end
4858
attack = false
4859
end
4860
4861
function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
4862
local orb = Instance.new("Part", char)
4863
        orb.Anchored = true
4864
        orb.BrickColor = color
4865
        orb.CanCollide = false
4866
        orb.FormFactor = 3
4867
        orb.Name = "Ring"
4868
        orb.Material = "Neon"
4869
        orb.Size = Vector3.new(1, 1, 1)
4870
        orb.Transparency = 0
4871
        orb.TopSurface = 0
4872
        orb.BottomSurface = 0
4873
        local orbm = Instance.new("SpecialMesh", orb)
4874
        orbm.MeshType = "Sphere"
4875
orb.CFrame = positted
4876
orbm.Name = "SizeMesh"
4877
orbm.Scale = vt(1,1,1)
4878
CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
4879
sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
4880
--[[for i = 0, 2 do
4881
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)
4882
end]]--
4883
coroutine.resume(coroutine.create(function()
4884
wait(timer)
4885
CameraEnshaking(3,ShakePower)
4886
orb.Transparency = 1
4887
MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
4888
sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
4889
--[[for i = 0, 4 do
4890
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)
4891
end]]--
4892
CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
4893
wait(3)
4894
orb:Destroy()
4895
end))
4896
end
4897
4898
function orb_spawn(positted,timer)
4899
local randomcol = math.random(1,2)
4900
local orb = Instance.new("Part", char)
4901
        orb.Anchored = true
4902
if randomcol == 1 then
4903
        orb.BrickColor = BrickColor.new("White")
4904
elseif randomcol == 2 then
4905
orb.BrickColor = BrickColor.new("Really black")
4906
end
4907
        orb.CanCollide = false
4908
        orb.FormFactor = 3
4909
        orb.Name = "Ring"
4910
        orb.Material = "Neon"
4911
        orb.Size = Vector3.new(1, 1, 1)
4912
        orb.Transparency = 0
4913
        orb.TopSurface = 0
4914
        orb.BottomSurface = 0
4915
        local orbm = Instance.new("SpecialMesh", orb)
4916
        orbm.MeshType = "Sphere"
4917
orb.CFrame = positted
4918
orbm.Name = "SizeMesh"
4919
orbm.Scale = vt(1,1,1)
4920
CFuncs["Sound"].Create("rbxassetid://183763506", orb, 0.15, 1)
4921
sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
4922
for i = 0, 2 do
4923
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)
4924
end
4925
coroutine.resume(coroutine.create(function()
4926
wait(timer)
4927
CameraEnshaking(3,2)
4928
orb.Transparency = 1
4929
MagniDamage(orb, 17.5, 10,50, 0, "Normal")
4930
sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
4931
for i = 0, 4 do
4932
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)
4933
end
4934
CFuncs["Sound"].Create("rbxassetid://192410089", orb, 0.15, 0.7)
4935
wait(3)
4936
orb:Destroy()
4937
end))
4938
end
4939
4940
function scattercorrupt()
4941
attack = true
4942
hum.WalkSpeed = 0
4943
for i = 0, 2, 0.1 do
4944
swait()
4945
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(0)),.2)
4946
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(0)),.2)
4947
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
4948
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4949
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(30)),.2)
4950
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.2)
4951
end
4952
local rot = 0
4953
local randomrotations = math.random(1,2)
4954
local lookv = 2.5
4955
local power = 7
4956
local radm = math.random(1,3)
4957
if radm == 1 then
4958
bosschatfunc("HOW LONG CAN YOU TAKE THIS?",MAINRUINCOLOR.Color,1)
4959
elseif radm == 2 then
4960
bosschatfunc("SWAMP!!",MAINRUINCOLOR.Color,1)
4961
elseif radm == 3 then
4962
bosschatfunc("SCATTER!!",MAINRUINCOLOR.Color,1)
4963
end
4964
CFuncs["Sound"].Create("rbxassetid://183763506", RightLeg, 2, 1)
4965
for i = 0, 1, 0.1 do
4966
swait()
4967
RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(15),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
4968
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(15),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.15)
4969
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(15),math.rad(0),math.rad(0)),.15)
4970
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.15)
4971
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(40)),.15)
4972
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-40)),.15)
4973
end
4974
CFuncs["EchoSound"].Create("rbxassetid://1535994669", char, 5, 1,0,10,0.15,0.5,1)
4975
CFuncs["EchoSound"].Create("rbxassetid://1535994669", root, 20, 1,0,10,0.15,0.5,1)
4976
sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
4977
sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
4978
for i = 0, 9 do
4979
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)
4980
end
4981
local hite = Instance.new("Part", char)
4982
        hite.Anchored = true
4983
        hite.CanCollide = false
4984
        hite.FormFactor = 3
4985
        hite.Name = "Ring"
4986
        hite.Material = "Neon"
4987
        hite.Size = Vector3.new(1, 1, 1)
4988
        hite.Transparency = 1
4989
        hite.TopSurface = 0
4990
        hite.BottomSurface = 0
4991
hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
4992
local rem = Instance.new("Part", char)
4993
        rem.Anchored = true
4994
        rem.CanCollide = false
4995
        rem.FormFactor = 3
4996
        rem.Name = "Ring"
4997
        rem.Material = "Neon"
4998
        rem.Size = Vector3.new(1, 1, 1)
4999
        rem.Transparency = 1
5000
        rem.TopSurface = 0
5001
        rem.BottomSurface = 0
5002
rem.CFrame = hite.CFrame
5003
local rem2 = rem:Clone()
5004
rem2.Parent = char
5005
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
5006
local rem3 = rem:Clone()
5007
rem3.Parent = char
5008
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
5009
local rem4 = rem:Clone()
5010
rem4.Parent = char
5011
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
5012
hite:Destroy()
5013
coroutine.resume(coroutine.create(function()
5014
for i = 0, 24 do
5015
swait(1)
5016
if randomrotations == 1 then
5017
rot = rot + 1
5018
elseif randomrotations == 2 then
5019
rot = rot - 1
5020
end
5021
power = power + 0.5
5022
lookv = lookv + 7.5
5023
rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
5024
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
5025
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
5026
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
5027
orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
5028
orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
5029
orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
5030
orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,1)
5031
end
5032
end))
5033
wait(2)
5034
hum.WalkSpeed = storehumanoidWS
5035
attack = false
5036
end
5037
function yinyangi()
5038
attack = true
5039
for i = 0, 2, 0.1 do
5040
swait()
5041
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)
5042
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)
5043
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)
5044
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
5045
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
5046
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
5047
end
5048
local bv = Instance.new("BodyVelocity")
5049
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5050
bv.velocity = root.CFrame.lookVector*175
5051
bv.Parent = root
5052
for Rotations = 0, 9 do
5053
for i = 0, 1, 0.5 do
5054
swait()
5055
bv.velocity = root.CFrame.lookVector*175
5056
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)
5057
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)
5058
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)
5059
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5060
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5061
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5062
end
5063
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5064
for i = 0, 1, 0.5 do
5065
swait()
5066
bv.velocity = root.CFrame.lookVector*175
5067
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)
5068
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)
5069
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)
5070
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5071
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5072
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5073
end
5074
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5075
for i = 0, 1, 0.5 do
5076
swait()
5077
bv.velocity = root.CFrame.lookVector*175
5078
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)
5079
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)
5080
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)
5081
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5082
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5083
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5084
end
5085
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5086
for i = 0, 1, 0.5 do
5087
swait()
5088
bv.velocity = root.CFrame.lookVector*175
5089
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)
5090
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)
5091
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)
5092
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
5093
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
5094
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
5095
end
5096
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
5097
end
5098
bv:Destroy()
5099
attack = false
5100
end
5101
5102
function createBGCircle(size,parent,color)
5103
local bgui = Instance.new("BillboardGui",parent)
5104
bgui.Size = UDim2.new(size, 0, size, 0)
5105
local imgc = Instance.new("ImageLabel",bgui)
5106
imgc.BackgroundTransparency = 1
5107
imgc.ImageTransparency = 0
5108
imgc.Size = UDim2.new(1,0,1,0)
5109
imgc.Image = "rbxassetid://997291547" --997291547,521073910
5110
imgc.ImageColor3 = color
5111
return bgui,imgc
5112
end
5113
5114
function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
5115
local bgui,imgc = createBGCircle(size,guipar,color)
5116
bgui.AlwaysOnTop = true
5117
imgc.Image = "rbxassetid://" ..img
5118
local rrot = math.random(1,2)
5119
CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
5120
coroutine.resume(coroutine.create(function()
5121
for i = 0, 24*delay do
5122
swait()
5123
if rotationenabled == true then
5124
if rrot == 1 then
5125
imgc.Rotation = imgc.Rotation + rotsp
5126
elseif rrot == 2 then
5127
imgc.Rotation = imgc.Rotation - rotsp
5128
end
5129
end
5130
bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
5131
imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
5132
end
5133
bgui:Destroy()
5134
end))
5135
end
5136
function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
5137
for i, v in pairs(mw2:GetChildren()) do
5138
if v:IsA("Part") then
5139
v.BrickColor = one
5140
v.Material = "Neon"
5141
end
5142
end
5143
CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
5144
symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
5145
symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
5146
tr1.Color = ColorSequence.new(one.Color)
5147
tr2.Color = ColorSequence.new(one.Color)
5148
tr3.Color = ColorSequence.new(one.Color)
5149
for i, v in pairs(mw1:GetChildren()) do
5150
if v:IsA("Part") then
5151
if secondaryenabled == false then
5152
v.Transparency = 1
5153
elseif secondaryenabled == true then
5154
v.Transparency = 0
5155
end
5156
v.BrickColor = two
5157
v.Material = "Neon"
5158
end
5159
end
5160
if secondaryenabled == false then
5161
tl1.Enabled = false
5162
tl2.Enabled = false
5163
tl3.Enabled = false
5164
elseif secondaryenabled == true then
5165
tl1.Enabled = true
5166
tl2.Enabled = true
5167
tl3.Enabled = true
5168
end
5169
tl1.Color = ColorSequence.new(two.Color)
5170
tl2.Color = ColorSequence.new(two.Color)
5171
tl3.Color = ColorSequence.new(two.Color)
5172
for i, v in pairs(m:GetChildren()) do
5173
if v:IsA("Part") then
5174
v.BrickColor = three
5175
v.Material = "Ice"
5176
end
5177
end
5178
for i, v in pairs(m2:GetChildren()) do
5179
if v:IsA("Part") then
5180
v.BrickColor = four
5181
v.Material = "Ice"
5182
end
5183
end
5184
for i, v in pairs(m3:GetChildren()) do
5185
if v:IsA("Part") then
5186
v.BrickColor = five
5187
v.Material = "Neon"
5188
end
5189
end
5190
for i, v in pairs(extrawingmod1:GetChildren()) do
5191
if v:IsA("Part") then
5192
v.Transparency = exonetran
5193
v.BrickColor = exone
5194
v.Material = "Neon"
5195
end
5196
end
5197
for i, v in pairs(extrawingmod2:GetChildren()) do
5198
if v:IsA("Part") then
5199
v.Transparency = extwotran
5200
v.BrickColor = extwo
5201
v.Material = "Neon"
5202
end
5203
end
5204
end
5205
5206
5207
function normalmog()
5208
attack = true
5209
hum.WalkSpeed = 0
5210
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
5211
for i = 0,6,0.1 do
5212
swait()
5213
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)
5214
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)
5215
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)
5216
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)
5217
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
5218
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)
5219
RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
5220
LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
5221
end
5222
CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
5223
CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
5224
CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
5225
CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
5226
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
5227
CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
5228
CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
5229
rainbowmode = false
5230
chaosmode = false
5231
ModeOfGlitch = 1
5232
storehumanoidWS = 16
5233
newTheme("rbxassetid://723652641",48.6,1,1.25)
5234
RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
5235
CameraEnshaking(5,2.5)
5236
MAINRUINCOLOR = BrickColor.new("Really red")
5237
sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
5238
for i = 0, 49 do
5239
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)
5240
end
5241
for i = 0, 24 do
5242
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)
5243
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"))
5244
end
5245
for i = 0,3,0.1 do
5246
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)
5247
end
5248
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
5249
for i = 0,2,0.1 do
5250
swait()
5251
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)
5252
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)
5253
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
5254
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)
5255
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)
5256
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)
5257
end
5258
hum.WalkSpeed = storehumanoidWS
5259
attack = false
5260
end
5261
5262
function attackone()
5263
	attack = true
5264
local keptcolor = MAINRUINCOLOR
5265
	for i = 0,1,0.1 do
5266
		swait()
5267
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
5268
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
5269
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
5270
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5271
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)
5272
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)
5273
	end
5274
local distlook = 5
5275
coroutine.resume(coroutine.create(function()
5276
for i = 0, 4 do
5277
swait(2)
5278
CameraEnshaking(2,3)
5279
local hite = Instance.new("Part", char)
5280
        hite.Anchored = true
5281
        hite.CanCollide = false
5282
        hite.FormFactor = 3
5283
        hite.Name = "Ring"
5284
        hite.Material = "Neon"
5285
        hite.Size = Vector3.new(1, 1, 1)
5286
        hite.Transparency = 1
5287
        hite.TopSurface = 0
5288
        hite.BottomSurface = 0
5289
hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
5290
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)
5291
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)
5292
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)
5293
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)
5294
MagniDamage(hite, 9, 10,25, 0, "Normal")
5295
for i = 0, 14 do
5296
local rsiz = math.random(5,20)
5297
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)
5298
end
5299
CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
5300
CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
5301
game:GetService("Debris"):AddItem(hite, 5)
5302
distlook = distlook + 10
5303
end
5304
end))
5305
	for i = 0,1,0.1 do
5306
		swait()
5307
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
5308
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
5309
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
5310
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
5311
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)
5312
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)
5313
	end
5314
	attack = false
5315
end
5316
5317
function attacktwo()
5318
	attack = true
5319
hum.WalkSpeed = 2
5320
local keptcolor = MAINRUINCOLOR
5321
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
5322
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)
5323
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)
5324
for i = 0, 14 do
5325
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)
5326
end
5327
for i = 0,1,0.1 do
5328
swait()
5329
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)
5330
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)
5331
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)
5332
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
5333
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
5334
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
5335
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
5336
end
5337
for i = 0, 1 do
5338
CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
5339
for i = 0,1,0.6 do
5340
swait()
5341
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)
5342
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"))
5343
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)
5344
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)
5345
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
5346
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5347
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5348
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5349
end
5350
for i = 0,1,0.6 do
5351
swait()
5352
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)
5353
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"))
5354
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)
5355
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)
5356
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
5357
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5358
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5359
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5360
end
5361
for i = 0,1,0.6 do
5362
swait()
5363
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)
5364
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"))
5365
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)
5366
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)
5367
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
5368
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5369
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5370
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5371
end
5372
for i = 0,1,0.6 do
5373
swait()
5374
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)
5375
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"))
5376
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)
5377
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)
5378
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
5379
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5380
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5381
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5382
end
5383
local rot = 0
5384
local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
5385
CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
5386
dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
5387
CreateMesh(dis,"Sphere",10,1,10)
5388
local at1 = Instance.new("Attachment",dis)
5389
at1.Position = vt(-5,0,0)
5390
local at2 = Instance.new("Attachment",dis)
5391
at2.Position = vt(5,0,0)
5392
local trl = Instance.new('Trail',wed)
5393
trl.Attachment0 = at1
5394
trl.Attachment1 = at2
5395
trl.Texture = "rbxassetid://1049219073"
5396
trl.LightEmission = 1
5397
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5398
trl.Color = ColorSequence.new(dis.Color)
5399
trl.Lifetime = 0.6
5400
local a = Instance.new("Part",workspace)
5401
	a.Name = "Direction"	
5402
	a.Anchored = true
5403
	a.BrickColor = bc("Bright red")
5404
a.Material = "Neon"
5405
a.Transparency = 1
5406
	a.CanCollide = false
5407
	local ray = Ray.new(
5408
	    dis.CFrame.p,                           -- origin
5409
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
5410
	) 
5411
	local ignore = dis
5412
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5413
	a.BottomSurface = 10
5414
	a.TopSurface = 10
5415
	local distance = (dis.CFrame.p - position).magnitude
5416
	a.Size = Vector3.new(0.1, 0.1, 0.1)
5417
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
5418
dis.CFrame = a.CFrame
5419
dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
5420
a:Destroy()
5421
local bv = Instance.new("BodyVelocity")
5422
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5423
bv.velocity = dis.CFrame.lookVector*250
5424
bv.Parent = dis
5425
game:GetService("Debris"):AddItem(dis, 5)
5426
local hitted = false
5427
coroutine.resume(coroutine.create(function()
5428
dis.Touched:connect(function(hit) 
5429
	if hitted == false and hit.Parent ~= char then
5430
	hitted = true
5431
	CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
5432
	MagniDamage(dis, 30, 33,56, 0, "Normal")
5433
	sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
5434
	sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5435
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5436
	coroutine.resume(coroutine.create(function()
5437
		for i = 0, 9 do
5438
local disr = CreateParta(char,1,1,"Neon",keptcolor)
5439
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
5440
local at1 = Instance.new("Attachment",disr)
5441
at1.Position = vt(-5,0,0)
5442
local at2 = Instance.new("Attachment",disr)
5443
at2.Position = vt(5,0,0)
5444
local trl = Instance.new('Trail',disr)
5445
trl.Attachment0 = at1
5446
trl.FaceCamera = true
5447
trl.Attachment1 = at2
5448
trl.Texture = "rbxassetid://2342682798"
5449
trl.LightEmission = 1
5450
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5451
trl.Color = ColorSequence.new(keptcolor.Color)
5452
trl.Lifetime = 0.5
5453
local bv = Instance.new("BodyVelocity")
5454
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5455
bv.velocity = disr.CFrame.lookVector*math.random(50,200)
5456
bv.Parent = disr
5457
local val = 0
5458
coroutine.resume(coroutine.create(function()
5459
	swait(30)
5460
	for i = 0, 9 do
5461
		swait()
5462
		val = val + 0.1
5463
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
5464
	end
5465
game:GetService("Debris"):AddItem(disr, 3)
5466
end))
5467
end
5468
local eff = Instance.new("ParticleEmitter",dis)
5469
eff.Texture = "rbxassetid://2273224484"
5470
eff.LightEmission = 1
5471
eff.Color = ColorSequence.new(keptcolor.Color)
5472
eff.Rate = 500000
5473
eff.Lifetime = NumberRange.new(0.5,2)
5474
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)})
5475
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)})
5476
eff.Speed = NumberRange.new(20,250)
5477
eff.Drag = 5
5478
eff.Rotation = NumberRange.new(-500,500)
5479
eff.VelocitySpread = 9000
5480
eff.RotSpeed = NumberRange.new(-50,50)
5481
wait(0.25)
5482
eff.Enabled = false
5483
end))
5484
	for i = 0, 9 do
5485
		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"))
5486
	end
5487
for i = 0, 19 do
5488
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)
5489
end
5490
coroutine.resume(coroutine.create(function()
5491
for i = 0, 19 do
5492
swait()
5493
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
5494
end
5495
hum.CameraOffset = vt(0,0,0)
5496
end))
5497
dis.Anchored = true
5498
dis.Transparency = 1
5499
wait(8)
5500
dis:Destroy()
5501
end
5502
end)
5503
end))
5504
rot = rot - 15
5505
end
5506
for i = 0,2,0.1 do
5507
swait()
5508
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)
5509
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)
5510
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
5511
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
5512
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
5513
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
5514
end
5515
attack = false
5516
hum.WalkSpeed = storehumanoidWS
5517
end
5518
5519
function attackthree()
5520
attack = true
5521
local keptcolor = MAINRUINCOLOR
5522
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
5523
	for i = 0,2,0.1 do
5524
		swait()
5525
		sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5526
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
5527
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
5528
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
5529
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
5530
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)
5531
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)
5532
	end
5533
CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
5534
CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
5535
CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
5536
CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
5537
sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
5538
sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
5539
for i = 0, 24 do
5540
		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"))
5541
end
5542
for i = 0,4,0.1 do
5543
		swait()
5544
		root.CFrame = root.CFrame + root.CFrame.lookVector*5
5545
		local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
5546
CreateMesh(dis,"Sphere",1,1,1)
5547
dis.Anchored = true
5548
dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
5549
sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
5550
coroutine.resume(coroutine.create(function()
5551
	swait(30)
5552
	dis.Transparency = 1
5553
coroutine.resume(coroutine.create(function()
5554
for i = 0, 19 do
5555
swait()
5556
hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
5557
end
5558
hum.CameraOffset = vt(0,0,0)
5559
end))
5560
coroutine.resume(coroutine.create(function()
5561
local eff = Instance.new("ParticleEmitter",dis)
5562
eff.Texture = "rbxassetid://2273224484"
5563
eff.LightEmission = 1
5564
eff.Color = ColorSequence.new(dis.Color)
5565
eff.Rate = 500000
5566
eff.Lifetime = NumberRange.new(0.5,2)
5567
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)})
5568
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)})
5569
eff.Speed = NumberRange.new(50,450)
5570
eff.Drag = 5
5571
eff.Rotation = NumberRange.new(-500,500)
5572
eff.VelocitySpread = 9000
5573
eff.RotSpeed = NumberRange.new(-50,50)
5574
wait(0.125)
5575
eff.Enabled = false
5576
end))
5577
MagniDamage(dis, 30, 45,50, 0, "Normal")
5578
    for i = 0, 2 do
5579
		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)
5580
	end
5581
	CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
5582
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
5583
	CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
5584
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
5585
end))
5586
game:GetService("Debris"):AddItem(dis, 5)
5587
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
5588
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
5589
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
5590
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
5591
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)
5592
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)
5593
	end
5594
attack = false
5595
end
5596
----------------------------------- Abilities
5597
5598
function ExtinctiveHeartbreak()
5599
local targetted = nil
5600
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
5601
targetted = mouse.Target.Parent
5602
end
5603
if targetted ~= nil then
5604
attack = true
5605
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
5606
for i = 0, 9 do
5607
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)
5608
end
5609
for i = 0, 24 do
5610
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)
5611
end
5612
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5613
local originalpos = root.CFrame
5614
RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
5615
for i = 0, 9 do
5616
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)
5617
end
5618
for i = 0, 24 do
5619
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)
5620
end
5621
hum.WalkSpeed = 0
5622
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5623
local radm = math.random(1,3)
5624
if radm == 1 then
5625
bosschatfunc("YOU WONT BE NECCESSARY.",MAINRUINCOLOR.Color,2)
5626
elseif radm == 2 then
5627
bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
5628
elseif radm == 3 then
5629
bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
5630
end
5631
for i = 0,2,0.1 do
5632
swait()
5633
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)
5634
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)
5635
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)
5636
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
5637
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)
5638
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)
5639
end
5640
CFuncs["Sound"].Create("rbxassetid://153092227", root, 0.5,1)
5641
CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 2, 1,0,10,0.25,0.5,1)
5642
for i = 0,2,0.1 do
5643
swait()
5644
coroutine.resume(coroutine.create(function()
5645
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
5646
for i,v in pairs(targetted:GetChildren()) do
5647
if v:IsA("Part") or v:IsA("MeshPart") then
5648
v.Velocity = vt(0,0,0)
5649
end
5650
end
5651
end))
5652
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)
5653
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)
5654
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)
5655
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
5656
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)
5657
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)
5658
end
5659
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 0.5, 1,0,10,0.25,0.5,1)
5660
CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 0.5, 0.9,0,10,0.25,0.5,1)
5661
for i = 0, 1 do
5662
CFuncs["EchoSound"].Create("rbxassetid://159882598", char, 2, 1,0.1,10,0.15,0.5,1)
5663
end
5664
CFuncs["EchoSound"].Create("rbxassetid://159882598", root, 15, 1,0.1,10,0.15,0.5,1)
5665
--chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
5666
for i = 0,4,0.1 do
5667
swait()
5668
coroutine.resume(coroutine.create(function()
5669
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
5670
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)))
5671
local at1 = Instance.new("Attachment",dis)
5672
at1.Position = vt(-25000,0,0)
5673
local at2 = Instance.new("Attachment",dis)
5674
at2.Position = vt(25000,0,0)
5675
local trl = Instance.new('Trail',dis)
5676
trl.Attachment0 = at1
5677
trl.FaceCamera = true
5678
trl.Attachment1 = at2
5679
trl.Texture = "rbxassetid://1049219073"
5680
trl.LightEmission = 1
5681
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5682
trl.Color = ColorSequence.new(Color3.new(1,0,0))
5683
trl.Lifetime = 5
5684
local bv = Instance.new("BodyVelocity")
5685
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5686
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
5687
bv.Parent = dis
5688
game:GetService("Debris"):AddItem(dis, 5)
5689
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
5690
CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
5691
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
5692
CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
5693
CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
5694
CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
5695
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)
5696
targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
5697
for i = 0, 2 do
5698
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"))
5699
end
5700
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)
5701
for i,v in pairs(targetted:GetChildren()) do
5702
if v:IsA("Part") or v:IsA("MeshPart") then
5703
v.Velocity = vt(0,0,0)
5704
end
5705
end
5706
end))
5707
hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
5708
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)
5709
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)
5710
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)
5711
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
5712
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)
5713
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)
5714
end
5715
hum.CameraOffset = vt(0,0,0)
5716
for i = 0, 49 do
5717
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
5718
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)))
5719
local at1 = Instance.new("Attachment",dis)
5720
at1.Position = vt(-50000,0,0)
5721
local at2 = Instance.new("Attachment",dis)
5722
at2.Position = vt(50000,0,0)
5723
local trl = Instance.new('Trail',dis)
5724
trl.Attachment0 = at1
5725
trl.FaceCamera = true
5726
trl.Attachment1 = at2
5727
trl.Texture = "rbxassetid://1049219073"
5728
trl.LightEmission = 1
5729
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5730
trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
5731
trl.Lifetime = 5
5732
local bv = Instance.new("BodyVelocity")
5733
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5734
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
5735
bv.Parent = dis
5736
game:GetService("Debris"):AddItem(dis, 5)
5737
end
5738
for i = 0, 49 do
5739
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)
5740
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"))
5741
end
5742
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
5743
for i = 0, 1 do
5744
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
5745
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
5746
end
5747
for i = 0, 4 do
5748
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
5749
end
5750
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
5751
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
5752
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
5753
dmg(targetted)
5754
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
5755
for i = 0, 9 do
5756
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)
5757
end
5758
for i = 0, 24 do
5759
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)
5760
end
5761
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5762
root.CFrame = originalpos
5763
for i = 0, 9 do
5764
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)
5765
end
5766
for i = 0, 24 do
5767
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)
5768
end
5769
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5770
attack = false
5771
hum.WalkSpeed = storehumanoidWS
5772
end
5773
end
5774
5775
function CorruptionEvent()
5776
attack = true
5777
hum.WalkSpeed = 0
5778
CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
5779
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
5780
local keptcolor = MAINRUINCOLOR
5781
for i = 0,4,0.1 do
5782
swait()
5783
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
5784
block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5785
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)
5786
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)
5787
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
5788
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
5789
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
5790
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
5791
end
5792
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
5793
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
5794
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
5795
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
5796
CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
5797
CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
5798
CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
5799
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
5800
hum.CameraOffset = vt(0,0,0)
5801
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5802
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5803
for i = 0, 24 do
5804
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"))
5805
end
5806
local rrot = 0
5807
coroutine.resume(coroutine.create(function()
5808
for i = 0, 4 do
5809
rrot = rrot + 45
5810
local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5811
xa.Anchored = true
5812
local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5813
xb.Anchored = true
5814
local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5815
xc.Anchored = true
5816
local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5817
xd.Anchored = true
5818
CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
5819
CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
5820
CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
5821
CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
5822
CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
5823
CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
5824
CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
5825
CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
5826
CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
5827
CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
5828
CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
5829
CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
5830
xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
5831
xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
5832
xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
5833
xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
5834
MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5835
MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5836
MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5837
MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5838
for i = 0, 9 do
5839
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"))
5840
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"))
5841
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"))
5842
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"))
5843
end
5844
block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5845
block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5846
block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5847
block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5848
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)
5849
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)
5850
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)
5851
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)
5852
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))
5853
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))
5854
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))
5855
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))
5856
game:GetService("Debris"):AddItem(xa, 5)
5857
game:GetService("Debris"):AddItem(xb, 5)
5858
game:GetService("Debris"):AddItem(xc, 5)
5859
game:GetService("Debris"):AddItem(xd, 5)
5860
coroutine.resume(coroutine.create(function()
5861
for i = 0, 19 do
5862
swait()
5863
hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
5864
end
5865
hum.CameraOffset = vt(0,0,0)
5866
end))
5867
swait(9)
5868
end
5869
end))
5870
for i = 0,2,0.1 do
5871
swait()
5872
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)
5873
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)
5874
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
5875
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
5876
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
5877
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
5878
end
5879
attack = false
5880
hum.WalkSpeed = storehumanoidWS
5881
end
5882
5883
function EndGROUND()
5884
	attack = true
5885
hum.WalkSpeed = 0
5886
bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
5887
--CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
5888
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
5889
CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
5890
CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
5891
local keptcolor = MAINRUINCOLOR
5892
for i = 0,4,0.1 do
5893
swait()
5894
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
5895
block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5896
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"))
5897
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)
5898
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)
5899
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
5900
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
5901
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
5902
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
5903
end
5904
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
5905
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
5906
CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
5907
CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
5908
CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
5909
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
5910
coroutine.resume(coroutine.create(function()
5911
	local shval = 10
5912
	for i = 0, 99 do
5913
		swait()
5914
		shval = shval - 0.1
5915
		hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
5916
	end
5917
	hum.CameraOffset = vt(0,0,0)
5918
end))
5919
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5920
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5921
for i = 0, 24 do
5922
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"))
5923
end
5924
local rrot = 0
5925
local xam = 1
5926
coroutine.resume(coroutine.create(function()
5927
for i = 0, 14 do
5928
--swait()
5929
rrot = rrot + 40*xam
5930
xam = xam + 0.25
5931
local bonus = xam
5932
local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
5933
xa.Anchored = true
5934
xa.Color = Color3.new(0,0,0)
5935
xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
5936
CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
5937
local xc = 0
5938
coroutine.resume(coroutine.create(function()
5939
for i = 0, 99 do
5940
	swait()
5941
	xc = xc + 0.01
5942
	xa.Color = Color3.new(xc,0,0)
5943
end
5944
xa.Transparency = 1
5945
CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
5946
MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
5947
for i = 0, 9 do
5948
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"))
5949
end
5950
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)
5951
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)
5952
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))
5953
game:GetService("Debris"):AddItem(xa, 5)
5954
coroutine.resume(coroutine.create(function()
5955
for i = 0, 19 do
5956
swait()
5957
hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
5958
end
5959
hum.CameraOffset = vt(0,0,0)
5960
end))
5961
end))
5962
end
5963
end))
5964
for i = 0,2,0.1 do
5965
swait()
5966
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)
5967
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)
5968
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
5969
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
5970
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
5971
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
5972
end
5973
attack = false
5974
hum.WalkSpeed = storehumanoidWS
5975
end
5976
5977
function HeavenlyDisk()
5978
attack = true
5979
hum.WalkSpeed = 2
5980
local keptcolor = MAINRUINCOLOR
5981
local radm = math.random(1,3)
5982
if radm == 1 then
5983
bosschatfunc("Dont make this too easy for you.",MAINRUINCOLOR.Color,1)
5984
elseif radm == 2 then
5985
bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
5986
elseif radm == 3 then
5987
bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
5988
end
5989
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
5990
CFuncs["EchoSound"].Create("rbxassetid://1625448638", char, 4, 1,0,10,0.15,0.5,1)
5991
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)
5992
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)
5993
for i = 0, 14 do
5994
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)
5995
end
5996
for i = 0,2,0.1 do
5997
swait()
5998
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)
5999
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)
6000
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)
6001
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
6002
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
6003
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
6004
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
6005
end
6006
CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
6007
for i = 0,1,0.6 do
6008
swait()
6009
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)
6010
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"))
6011
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)
6012
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)
6013
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
6014
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
6015
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
6016
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
6017
end
6018
for i = 0,1,0.6 do
6019
swait()
6020
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)
6021
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"))
6022
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)
6023
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)
6024
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
6025
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
6026
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
6027
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
6028
end
6029
for i = 0,1,0.6 do
6030
swait()
6031
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)
6032
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"))
6033
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)
6034
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)
6035
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
6036
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
6037
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
6038
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
6039
end
6040
for i = 0,1,0.6 do
6041
swait()
6042
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)
6043
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"))
6044
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)
6045
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)
6046
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
6047
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
6048
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
6049
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
6050
end
6051
local rot = 15
6052
for i = 0, 2 do
6053
local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
6054
CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
6055
dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
6056
CreateMesh(dis,"Sphere",10,1,10)
6057
local at1 = Instance.new("Attachment",dis)
6058
at1.Position = vt(-5,0,0)
6059
local at2 = Instance.new("Attachment",dis)
6060
at2.Position = vt(5,0,0)
6061
local trl = Instance.new('Trail',wed)
6062
trl.Attachment0 = at1
6063
trl.Attachment1 = at2
6064
trl.Texture = "rbxassetid://1049219073"
6065
trl.LightEmission = 1
6066
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6067
trl.Color = ColorSequence.new(dis.Color)
6068
trl.Lifetime = 0.6
6069
local a = Instance.new("Part",workspace)
6070
	a.Name = "Direction"	
6071
	a.Anchored = true
6072
	a.BrickColor = bc("Bright red")
6073
a.Material = "Neon"
6074
a.Transparency = 1
6075
	a.CanCollide = false
6076
	local ray = Ray.new(
6077
	    dis.CFrame.p,                           -- origin
6078
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
6079
	) 
6080
	local ignore = dis
6081
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
6082
	a.BottomSurface = 10
6083
	a.TopSurface = 10
6084
	local distance = (dis.CFrame.p - position).magnitude
6085
	a.Size = Vector3.new(0.1, 0.1, 0.1)
6086
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
6087
dis.CFrame = a.CFrame
6088
dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
6089
a:Destroy()
6090
local bv = Instance.new("BodyVelocity")
6091
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6092
bv.velocity = dis.CFrame.lookVector*250
6093
bv.Parent = dis
6094
game:GetService("Debris"):AddItem(dis, 5)
6095
local hitted = false
6096
coroutine.resume(coroutine.create(function()
6097
dis.Touched:connect(function(hit) 
6098
	if hitted == false and hit.Parent ~= char then
6099
	hitted = true
6100
	CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
6101
	MagniDamage(dis, 30, 82,34575, 0, "Normal")
6102
	sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
6103
	sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
6104
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
6105
	coroutine.resume(coroutine.create(function()
6106
		for i = 0, 9 do
6107
local disr = CreateParta(char,1,1,"Neon",keptcolor)
6108
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
6109
local at1 = Instance.new("Attachment",disr)
6110
at1.Position = vt(-2,0,0)
6111
local at2 = Instance.new("Attachment",disr)
6112
at2.Position = vt(2,0,0)
6113
local trl = Instance.new('Trail',disr)
6114
trl.Attachment0 = at1
6115
trl.FaceCamera = true
6116
trl.Attachment1 = at2
6117
trl.Texture = "rbxassetid://2342682798"
6118
trl.LightEmission = 1
6119
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6120
trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
6121
trl.Lifetime = 0.5
6122
local bv = Instance.new("BodyVelocity")
6123
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6124
bv.velocity = disr.CFrame.lookVector*math.random(50,200)
6125
bv.Parent = disr
6126
local val = 0
6127
coroutine.resume(coroutine.create(function()
6128
	swait(30)
6129
	for i = 0, 9 do
6130
		swait()
6131
		val = val + 0.1
6132
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
6133
	end
6134
game:GetService("Debris"):AddItem(disr, 3)
6135
end))
6136
end
6137
local eff = Instance.new("ParticleEmitter",dis)
6138
eff.Texture = "rbxassetid://2273224484"
6139
eff.LightEmission = 1
6140
eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
6141
eff.Rate = 500000
6142
eff.Lifetime = NumberRange.new(0.5,2)
6143
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)})
6144
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)})
6145
eff.Speed = NumberRange.new(20,250)
6146
eff.Drag = 5
6147
eff.Rotation = NumberRange.new(-500,500)
6148
eff.VelocitySpread = 9000
6149
eff.RotSpeed = NumberRange.new(-50,50)
6150
wait(0.25)
6151
eff.Enabled = false
6152
end))
6153
	for i = 0, 9 do
6154
		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"))
6155
	end
6156
for i = 0, 19 do
6157
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)
6158
end
6159
coroutine.resume(coroutine.create(function()
6160
for i = 0, 19 do
6161
swait()
6162
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
6163
end
6164
hum.CameraOffset = vt(0,0,0)
6165
end))
6166
dis.Anchored = true
6167
dis.Transparency = 1
6168
wait(8)
6169
dis:Destroy()
6170
end
6171
end)
6172
end))
6173
rot = rot - 15
6174
end
6175
for i = 0,2,0.1 do
6176
swait()
6177
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)
6178
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)
6179
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
6180
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
6181
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
6182
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
6183
end
6184
attack = false
6185
hum.WalkSpeed = storehumanoidWS
6186
end
6187
6188
6189
function RapidBurst()
6190
attack = true
6191
hum.WalkSpeed = 0
6192
CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
6193
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
6194
CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
6195
bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.8)
6196
bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,1.9)
6197
bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
6198
local keptcolor = MAINRUINCOLOR
6199
for i = 0,8,0.1 do
6200
swait()
6201
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
6202
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())
6203
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)
6204
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)
6205
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)
6206
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)
6207
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)
6208
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)
6209
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)
6210
end
6211
for i = 0, 99 do
6212
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6213
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)))
6214
local at1 = Instance.new("Attachment",dis)
6215
at1.Position = vt(-25000,0,0)
6216
local at2 = Instance.new("Attachment",dis)
6217
at2.Position = vt(25000,0,0)
6218
local trl = Instance.new('Trail',dis)
6219
trl.Attachment0 = at1
6220
trl.FaceCamera = true
6221
trl.Attachment1 = at2
6222
trl.Texture = "rbxassetid://1049219073"
6223
trl.LightEmission = 1
6224
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6225
trl.Color = ColorSequence.new(BrickColor.random().Color)
6226
trl.Lifetime = 5
6227
local bv = Instance.new("BodyVelocity")
6228
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6229
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
6230
bv.Parent = dis
6231
game:GetService("Debris"):AddItem(dis, 5)
6232
end
6233
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
6234
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
6235
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
6236
sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
6237
sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
6238
sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
6239
sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
6240
CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
6241
CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
6242
CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
6243
hum.CameraOffset = vt(0,0,0)
6244
for i = 0, 24 do
6245
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())
6246
end
6247
local distam = 0
6248
coroutine.resume(coroutine.create(function()
6249
for i = 0, 99 do
6250
	wait()
6251
distam = distam + 1
6252
local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
6253
xa.Anchored = true
6254
xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
6255
game:GetService("Debris"):AddItem(xa, 5)
6256
for i = 0, 4 do
6257
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())
6258
end
6259
coroutine.resume(coroutine.create(function()
6260
local eff = Instance.new("ParticleEmitter",xa)
6261
eff.Texture = "rbxassetid://2273224484"
6262
eff.LightEmission = 1
6263
eff.Color = ColorSequence.new(BrickColor.random().Color)
6264
eff.Rate = 500000
6265
eff.Lifetime = NumberRange.new(1,3)
6266
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)})
6267
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)})
6268
eff.Speed = NumberRange.new(50,500)
6269
eff.Drag = 5
6270
eff.Rotation = NumberRange.new(-500,500)
6271
eff.VelocitySpread = 9000
6272
eff.RotSpeed = NumberRange.new(-50,50)
6273
wait(0.25)
6274
eff.Enabled = false
6275
end))
6276
coroutine.resume(coroutine.create(function()
6277
for i = 0, 19 do
6278
swait()
6279
hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
6280
end
6281
hum.CameraOffset = vt(0,0,0)
6282
end))
6283
CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
6284
sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
6285
sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
6286
MagniDamage(xa, 60, 9999,99999, 0, "Normal")
6287
end
6288
end))
6289
attack = false
6290
hum.WalkSpeed = storehumanoidWS
6291
end
6292
6293
6294
function FallenOrbs()
6295
attack = true
6296
hum.WalkSpeed = 2
6297
local keptcolor = MAINRUINCOLOR
6298
CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
6299
CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
6300
local radm = math.random(1,3)
6301
if radm == 1 then
6302
bosschatfunc("This wont be easy to you.",MAINRUINCOLOR.Color,1)
6303
elseif radm == 2 then
6304
bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
6305
elseif radm == 3 then
6306
bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
6307
end
6308
coroutine.resume(coroutine.create(function()
6309
for i = 0, 29 do
6310
swait(2)
6311
local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
6312
dis.Anchored = true
6313
CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
6314
dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
6315
CreateMesh(dis,"Sphere",2,2,2)
6316
sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
6317
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"))
6318
coroutine.resume(coroutine.create(function()
6319
wait(0.5)
6320
dis.Anchored = false
6321
CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 9, 1,0,2,0.15,0.1,1)
6322
local at1 = Instance.new("Attachment",dis)
6323
at1.Position = vt(-1,0,0)
6324
local at2 = Instance.new("Attachment",dis)
6325
at2.Position = vt(1,0,0)
6326
local trl = Instance.new('Trail',dis)
6327
trl.Attachment0 = at1
6328
trl.FaceCamera = true
6329
trl.Attachment1 = at2
6330
trl.Texture = "rbxassetid://1049219073"
6331
trl.LightEmission = 1
6332
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6333
trl.Color = ColorSequence.new(dis.Color)
6334
trl.Lifetime = 0.6
6335
local a = Instance.new("Part",workspace)
6336
	a.Name = "Direction"	
6337
	a.Anchored = true
6338
	a.BrickColor = bc("Bright red")
6339
a.Material = "Neon"
6340
a.Transparency = 1
6341
	a.CanCollide = false
6342
	local ray = Ray.new(
6343
	    dis.CFrame.p,                           -- origin
6344
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
6345
	) 
6346
	local ignore = dis
6347
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
6348
	a.BottomSurface = 10
6349
	a.TopSurface = 10
6350
	local distance = (dis.CFrame.p - position).magnitude
6351
	a.Size = Vector3.new(0.1, 0.1, 0.1)
6352
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
6353
dis.CFrame = a.CFrame
6354
a:Destroy()
6355
local bv = Instance.new("BodyVelocity")
6356
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6357
bv.velocity = dis.CFrame.lookVector*500
6358
bv.Parent = dis
6359
game:GetService("Debris"):AddItem(dis, 5)
6360
local hitted = false
6361
coroutine.resume(coroutine.create(function()
6362
dis.Touched:connect(function(hit) 
6363
	if hitted == false and hit.Parent ~= char then
6364
	hitted = true
6365
	CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 5, 0.8,0,10,0.15,0.5,1)
6366
	MagniDamage(dis, 60, 25456,124672, 0, "Normal")
6367
	sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
6368
	sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
6369
	coroutine.resume(coroutine.create(function()
6370
for i = 0, 4 do
6371
local disr = CreateParta(char,1,1,"Neon",keptcolor)
6372
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
6373
local at1 = Instance.new("Attachment",disr)
6374
at1.Position = vt(-10,0,0)
6375
local at2 = Instance.new("Attachment",disr)
6376
at2.Position = vt(10,0,0)
6377
local trl = Instance.new('Trail',disr)
6378
trl.Attachment0 = at1
6379
trl.FaceCamera = true
6380
trl.Attachment1 = at2
6381
trl.Texture = "rbxassetid://2342682798"
6382
trl.LightEmission = 1
6383
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6384
trl.Color = ColorSequence.new(disr.Color)
6385
trl.Lifetime = 0.5
6386
local bv = Instance.new("BodyVelocity")
6387
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6388
bv.velocity = disr.CFrame.lookVector*math.random(125,250)
6389
bv.Parent = disr
6390
local val = 0
6391
coroutine.resume(coroutine.create(function()
6392
	swait(30)
6393
	for i = 0, 9 do
6394
		swait()
6395
		val = val + 0.1
6396
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
6397
	end
6398
game:GetService("Debris"):AddItem(disr, 3)
6399
end))
6400
end
6401
local eff = Instance.new("ParticleEmitter",dis)
6402
eff.Texture = "rbxassetid://1049219073"
6403
eff.LightEmission = 1
6404
eff.Color = ColorSequence.new(dis.Color)
6405
eff.Rate = 500000
6406
eff.Lifetime = NumberRange.new(0.5,2)
6407
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)})
6408
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)})
6409
eff.Speed = NumberRange.new(20,250)
6410
eff.Drag = 5
6411
eff.Rotation = NumberRange.new(-500,500)
6412
eff.VelocitySpread = 9000
6413
eff.RotSpeed = NumberRange.new(-50,50)
6414
wait(0.5)
6415
eff.Enabled = false
6416
end))
6417
	for i = 0, 4 do
6418
		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"))
6419
	end
6420
coroutine.resume(coroutine.create(function()
6421
for i = 0, 19 do
6422
swait()
6423
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
6424
end
6425
hum.CameraOffset = vt(0,0,0)
6426
end))
6427
dis.Anchored = true
6428
dis.Transparency = 1
6429
wait(8)
6430
dis:Destroy()
6431
end
6432
end)
6433
end))
6434
end))
6435
end
6436
end))
6437
for i = 0,9,0.1 do
6438
swait()
6439
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)
6440
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)
6441
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)
6442
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)
6443
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)
6444
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)
6445
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)
6446
end
6447
attack = false
6448
hum.WalkSpeed = storehumanoidWS
6449
end
6450
6451
function CyberSlash()
6452
local posit = -2
6453
attack = true
6454
hum.WalkSpeed = 5
6455
CFuncs["EchoSound"].Create("rbxassetid://1448033920", char, 5, 1,0,10,0.15,0.5,1)
6456
local radm = math.random(1,3)
6457
if radm == 1 then
6458
bosschatfunc("FIBER!!!",MAINRUINCOLOR.Color,1)
6459
elseif radm == 2 then
6460
bosschatfunc("SLASHED!!",MAINRUINCOLOR.Color,1)
6461
elseif radm == 3 then
6462
bosschatfunc("TAKE MY CLAW!!",MAINRUINCOLOR.Color,1)
6463
end
6464
CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
6465
	for i = 0,2,0.1 do
6466
		swait()
6467
sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
6468
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
6469
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
6470
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
6471
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
6472
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)
6473
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)
6474
	end
6475
for i = 0, 2 do
6476
CameraEnshaking(1,2)
6477
local hite = Instance.new("Part", char)
6478
        hite.Anchored = true
6479
        hite.CanCollide = false
6480
        hite.FormFactor = 3
6481
        hite.Name = "Ring"
6482
        hite.Material = "Neon"
6483
        hite.Size = Vector3.new(1, 1, 1)
6484
        hite.Transparency = 1
6485
        hite.TopSurface = 0
6486
        hite.BottomSurface = 0
6487
hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
6488
CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
6489
CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
6490
coroutine.resume(coroutine.create(function()
6491
for i = 0, 1 do
6492
	swait()
6493
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
6494
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
6495
	    sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
6496
end
6497
end))
6498
sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
6499
MagniDamage(hite, 3, 30,40, 0, "Normal")
6500
game:GetService("Debris"):AddItem(hite, 5)
6501
posit = posit + 2
6502
end
6503
	for i = 0,1,0.1 do
6504
		swait()
6505
sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
6506
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
6507
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
6508
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
6509
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
6510
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(-20),math.rad(0)),.5)
6511
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(0)),.5)
6512
	end
6513
	for i = 0,1,0.1 do
6514
		swait()
6515
sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
6516
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,1)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
6517
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
6518
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
6519
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
6520
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(-20),math.rad(30)),.5)
6521
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(40)),.5)
6522
	end
6523
	posit = -6
6524
	for i = 0, 6 do
6525
CameraEnshaking(1,3)
6526
local hite = Instance.new("Part", char)
6527
        hite.Anchored = true
6528
        hite.CanCollide = false
6529
        hite.FormFactor = 3
6530
        hite.Name = "Ring"
6531
        hite.Material = "Neon"
6532
        hite.Size = Vector3.new(1, 1, 1)
6533
        hite.Transparency = 1
6534
        hite.TopSurface = 0
6535
        hite.BottomSurface = 0
6536
hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
6537
CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
6538
CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
6539
sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
6540
coroutine.resume(coroutine.create(function()
6541
for i = 0, 2 do
6542
	swait()
6543
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
6544
		sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
6545
	    sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
6546
end
6547
end))
6548
MagniDamage(hite, 5, 40,70, 0, "Normal")
6549
game:GetService("Debris"):AddItem(hite, 5)
6550
posit = posit + 2
6551
	end
6552
	for i = 0,1,0.1 do
6553
		swait()
6554
sphere2(7,"Add",sorb2.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,0.075,-0.01,MAINRUINCOLOR)
6555
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
6556
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
6557
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
6558
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
6559
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(10),math.rad(-10)),.5)
6560
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(60)),.5)
6561
	end
6562
	hum.WalkSpeed = storehumanoidWS
6563
attack = false
6564
end
6565
6566
function EquinoxOrbs()
6567
hum.WalkSpeed = 0
6568
attack = true
6569
local radm = math.random(1,3)
6570
if radm == 1 then
6571
bosschatfunc("NOX-DASH!!!",MAINRUINCOLOR.Color,1)
6572
elseif radm == 2 then
6573
bosschatfunc("Beware from behind",MAINRUINCOLOR.Color,1)
6574
elseif radm == 3 then
6575
bosschatfunc("I'M COMING!!",MAINRUINCOLOR.Color,1)
6576
end
6577
for i = 0,1,0.1 do
6578
swait()
6579
	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)
6580
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)
6581
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
6582
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
6583
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
6584
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
6585
end
6586
sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
6587
sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
6588
for i = 0, 24 do
6589
		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"))
6590
end
6591
CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
6592
CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
6593
CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
6594
CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
6595
for i = 0,4,0.1 do
6596
swait()
6597
root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
6598
local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
6599
CreateMesh(dis,"Sphere",1,1,1)
6600
dis.Anchored = true
6601
dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
6602
local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
6603
CreateMesh(dis2,"Sphere",1,1,1)
6604
dis2.Anchored = true
6605
dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
6606
sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
6607
sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
6608
coroutine.resume(coroutine.create(function()
6609
	swait(60)
6610
	dis.Transparency = 1
6611
	dis2.Transparency = 1
6612
coroutine.resume(coroutine.create(function()
6613
for i = 0, 19 do
6614
swait()
6615
hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
6616
end
6617
hum.CameraOffset = vt(0,0,0)
6618
end))
6619
coroutine.resume(coroutine.create(function()
6620
local eff = Instance.new("ParticleEmitter",dis)
6621
eff.Texture = "rbxassetid://2273224484"
6622
eff.LightEmission = 1
6623
eff.Color = ColorSequence.new(dis.Color)
6624
eff.Rate = 500000
6625
eff.Lifetime = NumberRange.new(0.5,2)
6626
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)})
6627
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)})
6628
eff.Speed = NumberRange.new(50,450)
6629
eff.Drag = 5
6630
eff.Rotation = NumberRange.new(-500,500)
6631
eff.VelocitySpread = 9000
6632
eff.RotSpeed = NumberRange.new(-50,50)
6633
local eff2 = eff:Clone()
6634
eff2.Parent = dis2
6635
eff2.LightEmission = 0
6636
eff2.Color = ColorSequence.new(dis2.Color)
6637
wait(0.25)
6638
eff.Enabled = false
6639
eff2.Enabled = false
6640
end))
6641
MagniDamage(dis, 55, 89,219788936, 0, "Normal")
6642
MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
6643
    for i = 0, 2 do
6644
		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)
6645
		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)
6646
	end
6647
	CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
6648
	CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
6649
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
6650
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
6651
	CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
6652
	CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
6653
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
6654
	sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
6655
end))
6656
game:GetService("Debris"):AddItem(dis, 5)
6657
game:GetService("Debris"):AddItem(dis2, 5)
6658
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)
6659
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)
6660
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
6661
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
6662
RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
6663
LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
6664
end
6665
attack = false
6666
hum.WalkSpeed = storehumanoidWS
6667
end
6668
function FallenDEMISE()
6669
attack = true
6670
hum.WalkSpeed = 0
6671
local keptcolor = MAINRUINCOLOR
6672
bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
6673
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
6674
CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
6675
for i = 0, 15, 0.1 do
6676
swait()
6677
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6678
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)))
6679
local at1 = Instance.new("Attachment",dis)
6680
at1.Position = vt(-25000,0,0)
6681
local at2 = Instance.new("Attachment",dis)
6682
at2.Position = vt(25000,0,0)
6683
local trl = Instance.new('Trail',dis)
6684
trl.Attachment0 = at1
6685
trl.FaceCamera = true
6686
trl.Attachment1 = at2
6687
trl.Texture = "rbxassetid://1049219073"
6688
trl.LightEmission = 1
6689
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6690
trl.Color = ColorSequence.new(dis.Color)
6691
trl.Lifetime = 5
6692
local bv = Instance.new("BodyVelocity")
6693
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6694
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
6695
bv.Parent = dis
6696
game:GetService("Debris"):AddItem(dis, 1)
6697
sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
6698
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"))
6699
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"))
6700
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)
6701
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)
6702
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
6703
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6704
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
6705
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
6706
end
6707
CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
6708
for i = 0, 30, 0.1 do
6709
swait()
6710
coroutine.resume(coroutine.create(function()
6711
for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
6712
if v:FindFirstChild('Head') then
6713
dmg(v)
6714
end
6715
end
6716
end))
6717
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6718
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)))
6719
local at1 = Instance.new("Attachment",dis)
6720
at1.Position = vt(-50000,0,0)
6721
local at2 = Instance.new("Attachment",dis)
6722
at2.Position = vt(50000,0,0)
6723
local trl = Instance.new('Trail',dis)
6724
trl.Attachment0 = at1
6725
trl.FaceCamera = true
6726
trl.Attachment1 = at2
6727
trl.Texture = "rbxassetid://1049219073"
6728
trl.LightEmission = 1
6729
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6730
trl.Color = ColorSequence.new(dis.Color)
6731
trl.Lifetime = 10
6732
local bv = Instance.new("BodyVelocity")
6733
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6734
bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
6735
bv.Parent = dis
6736
game:GetService("Debris"):AddItem(dis, math.random(1,4))
6737
sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
6738
sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
6739
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"))
6740
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"))
6741
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"))
6742
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"))
6743
for i = 0, 2 do
6744
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)
6745
end
6746
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)
6747
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)
6748
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
6749
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6750
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
6751
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
6752
end
6753
attack = false
6754
hum.WalkSpeed = storehumanoidWS
6755
end
6756
6757
function SpeedDrop()
6758
attack = true
6759
hum.WalkSpeed = 0
6760
CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
6761
local poste = 3
6762
local rotation = 0
6763
local rate = 0
6764
bosschatfunc("AUFHHIGYBIBYHHIHIGHGI",MAINRUINCOLOR.Color,2)
6765
for i = 0, 124 do
6766
swait()
6767
rotation = rotation + rate
6768
poste = poste + 0.1
6769
rate = rate + 0.1
6770
sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
6771
sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
6772
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
6773
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
6774
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
6775
sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
6776
RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
6777
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)),.5)
6778
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
6779
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
6780
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
6781
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
6782
end
6783
CameraEnshaking(3,7)
6784
bosschatfunc("AN ERROR HAS OCCURED",MAINRUINCOLOR.Color,2)
6785
local loc = Instance.new("Part", char)
6786
loc.BrickColor = MAINRUINCOLOR
6787
loc.CanCollide = false
6788
loc.FormFactor = 3
6789
loc.Name = "Ring"
6790
loc.Material = "Neon"
6791
loc.Size = Vector3.new(1, 1, 1)
6792
loc.Transparency = 1
6793
loc.TopSurface = 0
6794
loc.BottomSurface = 0
6795
loc.Anchored = true
6796
loc.CFrame = root.CFrame + root.CFrame.lookVector*100
6797
CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
6798
CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
6799
MagniDamage(loc, 95, 500,6000, 0, "Normal")
6800
sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
6801
sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
6802
sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
6803
sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
6804
coroutine.resume(coroutine.create(function()
6805
local eff = Instance.new("ParticleEmitter",loc)
6806
eff.Texture = "rbxassetid://363275192"
6807
eff.LightEmission = 0.95
6808
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6809
eff.Rate = 10000
6810
eff.Lifetime = NumberRange.new(1)
6811
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
6812
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
6813
eff.Speed = NumberRange.new(100,500)
6814
eff.Drag = 5
6815
eff.Rotation = NumberRange.new(-500,500)
6816
eff.VelocitySpread = 9000
6817
eff.RotSpeed = NumberRange.new(-50,50)
6818
wait(0.5)
6819
eff.Enabled = false
6820
end))
6821
for i = 0, 49 do
6822
sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
6823
end
6824
for i = 0, 9 do
6825
sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
6826
end
6827
game:GetService("Debris"):AddItem(loc, 5)
6828
root.CFrame = root.CFrame + root.CFrame.lookVector*200
6829
hum.WalkSpeed = storehumanoidWS
6830
attack = false
6831
end
6832
6833
function cutesigh()
6834
attack = true
6835
hum.WalkSpeed = 0
6836
bosschatfunc("sigh~~",MAINRUINCOLOR.Color,2)
6837
local blush = Instance.new("Decal",hed)
6838
blush.Texture = "rbxassetid://898404027"
6839
blush.Face = "Front"
6840
CFuncs["Sound"].Create("rbxassetid://294861193", char, 9,1)
6841
for i = 0, 9, 0.1 do
6842
swait()
6843
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)
6844
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)
6845
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)
6846
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)
6847
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 + 0 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 5 * math.cos(sine / 51))),.1)
6848
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0 * math.cos(sine / 73)),math.rad(2 - 3 * math.cos(sine / 53)),math.rad(-33 - 5 * math.cos(sine / 51))),.1)
6849
end
6850
coroutine.resume(coroutine.create(function()
6851
for i = 0, 49 do
6852
swait()
6853
blush.Transparency = blush.Transparency + 0.02
6854
end
6855
blush:Destroy()
6856
end))
6857
hum.WalkSpeed = storehumanoidWS
6858
attack = false
6859
end
6860
6861
function smiter()
6862
local targetted = nil
6863
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
6864
targetted = mouse.Target.Parent
6865
end
6866
if targetted ~= nil then
6867
RootPart.CFrame = FaceMouse()[1]
6868
attack = true
6869
local radm = math.random(1,3)
6870
if radm == 1 then
6871
bosschatfunc("SMITED!!",MAINRUINCOLOR.Color,1)
6872
elseif radm == 2 then
6873
bosschatfunc("FROM ABOVE!!",MAINRUINCOLOR.Color,1)
6874
elseif radm == 3 then
6875
bosschatfunc("LOOK UP!!",MAINRUINCOLOR.Color,1)
6876
end
6877
hum.WalkSpeed = 0
6878
coroutine.resume(coroutine.create(function()
6879
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
6880
sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
6881
local vel = Instance.new("BodyPosition", targetted.Head)
6882
vel.P = 12500
6883
vel.D = 1000
6884
vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
6885
vel.position = targetted.Head.CFrame.p
6886
end))
6887
CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
6888
CFuncs["EchoSound"].Create("rbxassetid://1436242685", char, 4, 1,0,10,0.15,0.5,1)
6889
CFuncs["EchoSound"].Create("rbxassetid://1436242685", root, 60, 1,0,10,0.15,0.5,1)
6890
	for i = 0,4,0.1 do
6891
		swait()
6892
sphere2(4,"Add",sorb2.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,0.125,-0.01,MAINRUINCOLOR)
6893
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
6894
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
6895
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
6896
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
6897
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)
6898
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)
6899
	end
6900
coroutine.resume(coroutine.create(function()
6901
CameraEnshaking(6,5)
6902
MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
6903
CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
6904
CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
6905
CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
6906
sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
6907
sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
6908
sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
6909
sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
6910
coroutine.resume(coroutine.create(function()
6911
local eff = Instance.new("ParticleEmitter",targetted.Head)
6912
eff.Texture = "rbxassetid://2273224484"
6913
eff.LightEmission = 1
6914
eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
6915
eff.Rate = 500000
6916
eff.Lifetime = NumberRange.new(0.5,2)
6917
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)})
6918
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)})
6919
eff.Speed = NumberRange.new(20,250)
6920
eff.Drag = 5
6921
eff.Rotation = NumberRange.new(-500,500)
6922
eff.VelocitySpread = 9000
6923
eff.RotSpeed = NumberRange.new(-50,50)
6924
wait(0.25)
6925
eff.Enabled = false
6926
local eff = Instance.new("ParticleEmitter",targetted.Head)
6927
eff.Texture = "rbxassetid://363275192"
6928
eff.LightEmission = 0.95
6929
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
6930
eff.Rate = 10000
6931
eff.Lifetime = NumberRange.new(1.5)
6932
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
6933
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
6934
eff.Speed = NumberRange.new(25,150)
6935
eff.Drag = 5
6936
eff.Rotation = NumberRange.new(-500,500)
6937
eff.VelocitySpread = 9000
6938
eff.RotSpeed = NumberRange.new(-50,50)
6939
local eff2 = eff:Clone()
6940
eff2.Parent = targetted.Head
6941
eff2.Texture = "rbxassetid://284205403"
6942
eff2.Rate = 10000
6943
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
6944
eff2.Drag = 5
6945
eff2.Rotation = NumberRange.new(-500,500)
6946
eff2.VelocitySpread = 9000
6947
wait(0.5)
6948
eff2.Enabled = false
6949
eff.Enabled = false
6950
end))
6951
for i = 0, 9 do
6952
sphere2(3,"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(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
6953
end
6954
for i = 0, 49 do
6955
local rsiz = math.random(10,50)
6956
sphereMK(math.random(1,4),1,"Add",targetted.Head.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,MAINRUINCOLOR,0)
6957
end
6958
game:GetService("Debris"):AddItem(vel,1)
6959
dmg(targetted)
6960
end))
6961
	for i = 0,1,0.1 do
6962
		swait()
6963
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
6964
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
6965
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
6966
LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
6967
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)
6968
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)
6969
	end
6970
attack = false
6971
hum.WalkSpeed = storehumanoidWS
6972
end
6973
end
6974
6975
function shytaunty()
6976
attack = true
6977
hum.WalkSpeed = 0
6978
CFuncs["Sound"].Create("rbxassetid://543623779", char, 1, 1)
6979
local blush = Instance.new("Decal",hed)
6980
blush.Texture = "rbxassetid://898404027"
6981
blush.Face = "Front"
6982
for i = 0, 13, 0.1 do
6983
swait()
6984
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
6985
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
6986
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
6987
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
6988
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
6989
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
6990
end
6991
coroutine.resume(coroutine.create(function()
6992
for i = 0, 49 do
6993
swait()
6994
blush.Transparency = blush.Transparency + 0.02
6995
end
6996
blush:Destroy()
6997
end))
6998
hum.WalkSpeed = storehumanoidWS
6999
attack = false
7000
end
7001
7002
function PureBomb()
7003
attack = true
7004
CFuncs["EchoSound"].Create("rbxassetid://1436241485", char, 5, 1,0,10,0.15,0.5,1)
7005
CFuncs["EchoSound"].Create("rbxassetid://1436241485", root, 60, 1,0,10,0.15,0.5,1)
7006
bosschatfunc("Purified..",MAINRUINCOLOR.Color,2)
7007
local orb = Instance.new("Part", char)
7008
        orb.Anchored = true
7009
        orb.BrickColor = BrickColor.new("Toothpaste")
7010
        orb.CanCollide = false
7011
        orb.FormFactor = 3
7012
        orb.Name = "Ring"
7013
        orb.Material = "Neon"
7014
        orb.Size = Vector3.new(1, 1, 1)
7015
        orb.Transparency = 0
7016
        orb.TopSurface = 0
7017
        orb.BottomSurface = 0
7018
        local orbm = Instance.new("SpecialMesh", orb)
7019
        orbm.MeshType = "Sphere"
7020
orbm.Name = "SizeMesh"
7021
orbm.Scale = vt(0,0,0)
7022
local scaled = 0.1
7023
local posid = 0
7024
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 30,1)
7025
for i = 0, 5, 0.1 do
7026
swait()
7027
scaled = scaled - 0.001
7028
posid = posid - scaled
7029
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
7030
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
7031
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)
7032
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)
7033
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)
7034
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)
7035
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)
7036
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
7037
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
7038
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)
7039
end
7040
for i = 0, 2, 0.1 do
7041
swait()
7042
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
7043
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)
7044
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)
7045
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)
7046
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
7047
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
7048
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)
7049
end
7050
CFuncs["EchoSound"].Create("rbxassetid://1436240026", char, 4, 1,0,10,0.15,0.5,1)
7051
CFuncs["EchoSound"].Create("rbxassetid://1436240026", root, 60, 1,0,10,0.15,0.5,1)
7052
bosschatfunc("BOMB!!",MAINRUINCOLOR.Color,2)
7053
coroutine.resume(coroutine.create(function()
7054
orb.Anchored = false
7055
CFuncs["Sound"].Create("rbxassetid://260433768", root, 555,1)
7056
	local a = Instance.new("Part",workspace)
7057
	a.Name = "Direction"	
7058
	a.Anchored = true
7059
	a.BrickColor = bc("Bright red")
7060
a.Material = "Neon"
7061
a.Transparency = 1
7062
	a.CanCollide = false
7063
	local ray = Ray.new(
7064
	    orb.CFrame.p,                           -- origin
7065
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
7066
	) 
7067
	local ignore = orb
7068
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
7069
	a.BottomSurface = 10
7070
	a.TopSurface = 10
7071
	local distance = (orb.CFrame.p - position).magnitude
7072
	a.Size = Vector3.new(0.1, 0.1, 0.1)
7073
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
7074
orb.CFrame = a.CFrame
7075
a:Destroy()
7076
local bv = Instance.new("BodyVelocity")
7077
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
7078
bv.velocity = orb.CFrame.lookVector*125
7079
bv.Parent = orb
7080
local hitted = false
7081
game:GetService("Debris"):AddItem(orb, 15)
7082
wait()
7083
local hit =orb.Touched:connect(function(hit) 
7084
	if hitted == false then
7085
	hitted = true
7086
CameraEnshaking(10,2.5)
7087
	MagniDamage(orb, 65, 65,90, 0, "Normal")
7088
sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
7089
sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
7090
for i = 0, 49 do
7091
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)
7092
end
7093
local eff = Instance.new("ParticleEmitter",orb)
7094
eff.Texture = "rbxassetid://2273224484"
7095
eff.LightEmission = 1
7096
eff.Color = ColorSequence.new(Color3.new(4/255,175/255,236/255))
7097
eff.Rate = 500000
7098
eff.Lifetime = NumberRange.new(0.5,2)
7099
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)})
7100
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)})
7101
eff.Speed = NumberRange.new(20,250)
7102
eff.Drag = 5
7103
eff.Rotation = NumberRange.new(-500,500)
7104
eff.VelocitySpread = 9000
7105
eff.RotSpeed = NumberRange.new(-50,50)
7106
coroutine.resume(coroutine.create(function()
7107
wait(0.25)
7108
eff.Enabled = false
7109
end))
7110
CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
7111
for i = 0, 9 do
7112
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)
7113
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)
7114
end
7115
orb.Anchored = true
7116
orb.Transparency = 1
7117
local eff = Instance.new("ParticleEmitter",orb)
7118
eff.Texture = "rbxassetid://2273224484"
7119
eff.LightEmission = 1
7120
eff.Color = ColorSequence.new(Color3.new(M))
7121
eff.Rate = 500000
7122
eff.Lifetime = NumberRange.new(0.5,2)
7123
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)})
7124
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)})
7125
eff.Speed = NumberRange.new(20,250)
7126
eff.Drag = 5
7127
eff.Rotation = NumberRange.new(-500,500)
7128
eff.VelocitySpread = 9000
7129
eff.RotSpeed = NumberRange.new(-50,50)
7130
coroutine.resume(coroutine.create(function()
7131
wait(1)
7132
eff.Enabled = false
7133
end))
7134
wait(8)
7135
orb:Destroy()
7136
end
7137
end)
7138
end))
7139
for i = 0, 1, 0.1 do
7140
swait()
7141
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)
7142
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)
7143
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)
7144
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
7145
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
7146
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)
7147
end
7148
attack = false
7149
end
7150
7151
7152
function BeamOfDeath()
7153
coroutine.resume(coroutine.create(function()
7154
attack = true
7155
hum.WalkSpeed = 0 
7156
for i = 0, 11, 0.1 do
7157
swait()
7158
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)
7159
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)
7160
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(-16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
7161
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)
7162
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(125 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
7163
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)
7164
end
7165
for i = 0, 1, 0.1 do
7166
swait()
7167
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)
7168
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)
7169
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(16 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1)
7170
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)
7171
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(-5 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 14 * math.cos(sine / 45))),.1)
7172
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)
7173
end
7174
hum.WalkSpeed = storehumanoidWS
7175
attack = false
7176
end))
7177
CFuncs["Sound"].Create("rbxassetid://430315987", char, 5, 1,0,10,0.10,0.25,1)
7178
local radm = math.random(1,3)
7179
if radm == 1 then
7180
bosschatfunc("YAHHHH!!!",MAINRUINCOLOR.Color,1)
7181
elseif radm == 2 then
7182
bosschatfunc("TAKE THAT!!",MAINRUINCOLOR.Color,1)
7183
elseif radm == 3 then
7184
bosschatfunc("CONSUMED!!!",MAINRUINCOLOR.Color,1)
7185
end
7186
local keptcolor = MAINRUINCOLOR
7187
local orb = Instance.new("Part", char)
7188
        orb.BrickColor = keptcolor
7189
        orb.CanCollide = false
7190
        orb.FormFactor = 3
7191
        orb.Name = "Ring"
7192
        orb.Material = "Neon"
7193
        orb.Size = Vector3.new(1, 1, 1)
7194
        orb.Transparency = 1
7195
        orb.TopSurface = 0
7196
        orb.BottomSurface = 0
7197
        local orbm = Instance.new("SpecialMesh", orb)
7198
        orbm.MeshType = "Sphere"
7199
orbm.Name = "SizeMesh"
7200
orbm.Scale = vt(22.5,10000,22.5)
7201
orb.CFrame = mouse.Hit
7202
orb.Anchored = true
7203
orb.Orientation = vt(0,0,0)
7204
orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
7205
CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 0.5, 1.2)
7206
coroutine.resume(coroutine.create(function()
7207
coroutine.resume(coroutine.create(function()
7208
for i = 0, 175 do
7209
swait()
7210
orbm.Scale = orbm.Scale - vt(0.1,0,0.1)
7211
orb.Transparency = orb.Transparency - 0.005
7212
end
7213
end))
7214
wait(2)
7215
coroutine.resume(coroutine.create(function()
7216
local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
7217
if hfr ~= nil then
7218
	for i = 0, 24.5 do
7219
local deb = Instance.new("Part", char)
7220
deb.Anchored = true
7221
deb.CanCollide = false
7222
deb.FormFactor = 3
7223
deb.Name = "Ring"
7224
deb.Material = hitfloor.Material
7225
deb.Color = hitfloor.Color
7226
deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
7227
deb.Transparency = 0
7228
deb.TopSurface = 0
7229
deb.BottomSurface = 0
7230
deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
7231
local deb2 = Instance.new("Part", char)
7232
deb2.CanCollide = false
7233
deb2.FormFactor = 3
7234
deb2.Name = "Ring"
7235
deb2.Material = hitfloor.Material
7236
deb2.Color = hitfloor.Color
7237
deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
7238
deb2.Transparency = 0
7239
deb2.TopSurface = 0
7240
deb2.BottomSurface = 0
7241
deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
7242
deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
7243
local eff = Instance.new("ParticleEmitter",deb)
7244
eff.Texture = "rbxassetid://363275192"
7245
eff.LightEmission = 0.95
7246
eff.Color = ColorSequence.new(keptcolor.Color)
7247
eff.Rate = 100
7248
eff.Lifetime = NumberRange.new(1)
7249
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
7250
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
7251
eff.Speed = NumberRange.new(0,5)
7252
eff.Rotation = NumberRange.new(-500,500)
7253
eff.VelocitySpread = 9000
7254
eff.RotSpeed = NumberRange.new(-10,10)
7255
local at1 = Instance.new('Attachment',deb2)
7256
at1.Position = vt(0,15,0)
7257
local at2 = Instance.new('Attachment',deb2)
7258
at2.Position = vt(0,-15,0)
7259
local tl = Instance.new('Trail',deb2)
7260
tl.Attachment0 = at1
7261
tl.Attachment1 = at2
7262
tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
7263
tl.Color = ColorSequence.new(BrickColor.new('White').Color)
7264
tl.Lifetime = 1
7265
game:GetService("Debris"):AddItem(deb,30)
7266
game:GetService("Debris"):AddItem(deb2,30)
7267
coroutine.resume(coroutine.create(function()
7268
	wait(15)
7269
eff.Enabled = false
7270
	for i = 0, 49 do
7271
		swait()
7272
		deb.Transparency = deb.Transparency + 0.02
7273
	end
7274
wait(1)
7275
	deb:Destroy()
7276
end))
7277
end
7278
end
7279
end))
7280
for i = 0, 199 do
7281
swait(1.5)
7282
for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
7283
if v:FindFirstChild('Head') then
7284
dmg(v)
7285
end
7286
end
7287
CFuncs["Sound"].Create("rbxassetid://1666361078", orb, 30,1)
7288
sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
7289
sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
7290
sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
7291
sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
7292
end
7293
orb:Destroy()
7294
end))
7295
end
7296
7297
function Beams()
7298
attack = true
7299
hum.WalkSpeed = 0 
7300
CFuncs["EchoSound"].Create("rbxassetid://1436242274", char, 8, 1,0,10,0.15,0.5,1)
7301
CFuncs["EchoSound"].Create("rbxassetid://1436242274", root, 60, 1,0,10,0.15,0.5,1)
7302
bosschatfunc("You'll gone..",MAINRUINCOLOR.Color,2)
7303
local keptcolor = MAINRUINCOLOR
7304
coroutine.resume(coroutine.create(function()
7305
for i = 0, 96 do
7306
swait(5)
7307
local orb = Instance.new("Part", char)
7308
CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
7309
        orb.BrickColor = keptcolor
7310
        orb.CanCollide = false
7311
        orb.FormFactor = 3
7312
        orb.Name = "Ring"
7313
        orb.Material = "Neon"
7314
        orb.Size = Vector3.new(1, 1, 1)
7315
        orb.Transparency = 0
7316
        orb.TopSurface = 0
7317
        orb.BottomSurface = 0
7318
orb.Anchored = true
7319
        local orbm = Instance.new("SpecialMesh", orb)
7320
        orbm.MeshType = "Sphere"
7321
orbm.Name = "SizeMesh"
7322
orbm.Scale = vt(1.25,1.25,1.25)
7323
orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
7324
sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
7325
coroutine.resume(coroutine.create(function()
7326
wait(0.5)
7327
CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
7328
sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
7329
sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
7330
orb.Transparency = 1
7331
	local a = Instance.new("Part",char)
7332
	a.Name = "Direction"	
7333
	a.Anchored = true
7334
	a.BrickColor = keptcolor
7335
a.Material = "Neon"
7336
a.Transparency = 0.25
7337
a.Shape = "Cylinder"
7338
	local ht = Instance.new("Part",char)
7339
	ht.Name = "DirectionHit"	
7340
	ht.Anchored = true
7341
	ht.BrickColor = keptcolor
7342
ht.CanCollide = false
7343
ht.Transparency = 1
7344
ht.Size = vt(0.1,0.1,0.1)
7345
CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.6)
7346
	a.CanCollide = false
7347
	local ray = Ray.new(
7348
	    orb.CFrame.p,                           -- origin
7349
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
7350
	) 
7351
	local ignore = char
7352
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
7353
	a.BottomSurface = 10
7354
	a.TopSurface = 10
7355
	local distance = (orb.CFrame.p - position).magnitude
7356
	a.Size = Vector3.new(distance,1,1)
7357
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
7358
	ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
7359
sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
7360
sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
7361
MagniDamage(ht, 9, 30,60, 0, "Normal")
7362
coroutine.resume(coroutine.create(function()
7363
local eff = Instance.new("ParticleEmitter",ht)
7364
eff.Texture = "rbxassetid://284205403"
7365
eff.LightEmission = 0.95
7366
eff.Color = ColorSequence.new(keptcolor.Color)
7367
eff.Rate = 500
7368
eff.Lifetime = NumberRange.new(0.5)
7369
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
7370
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
7371
eff.Speed = NumberRange.new(10,50)
7372
eff.Drag = 5
7373
eff.Rotation = NumberRange.new(-500,500)
7374
eff.VelocitySpread = 9000
7375
eff.RotSpeed = NumberRange.new(-500,500)
7376
wait(0.25)
7377
eff.Enabled = false
7378
end))
7379
for i = 0, 4 do
7380
sphere2(8,"Add",orb.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.005,0.125,-0.005,keptcolor)
7381
sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
7382
local rsiz = math.random(10,30)
7383
sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*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)
7384
end
7385
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
7386
local msh = Instance.new("SpecialMesh",a)
7387
msh.MeshType = "Cylinder"
7388
msh.Scale = vt(1,1,1)
7389
for i = 0, 49 do
7390
swait()
7391
msh.Scale = msh.Scale + vt(0,0.01,0.01)
7392
a.Transparency = a.Transparency + 0.02
7393
end
7394
orb:Destroy()
7395
a:Destroy()
7396
ht:Destroy()
7397
end))
7398
game:GetService("Debris"):AddItem(orb, 10)
7399
end
7400
end))
7401
	for i = 0,6,0.1 do
7402
		swait()
7403
sphere2(7,"Add",sorb.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,0.075,-0.01,keptcolor)
7404
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.2 * math.cos(sine / 35))* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
7405
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
7406
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
7407
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
7408
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)
7409
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)
7410
	end
7411
hum.WalkSpeed = storehumanoidWS
7412
attack = false
7413
end
7414
7415
function CalamityTrans()
7416
attack = true
7417
rainbowmode = false
7418
chaosmode = false
7419
               ModeOfGlitch = 8889
7420
hum.WalkSpeed = 0
7421
newThemeCust("rbxassetid://919231299",0,1,1.25)
7422
local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random())
7423
elocacenter.Anchored = true
7424
elocacenter.CFrame = root.CFrame
7425
local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
7426
eloca1.Anchored = true
7427
eloca1.CFrame = elocacenter.CFrame
7428
local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
7429
eloca2.Anchored = true
7430
eloca2.CFrame = elocacenter.CFrame
7431
local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
7432
eloca3.Anchored = true
7433
eloca3.CFrame = elocacenter.CFrame
7434
local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
7435
eloca4.Anchored = true
7436
eloca4.CFrame = elocacenter.CFrame
7437
local lookavec = 0 
7438
local speeds = 0
7439
CameraEnshaking(3,2.5)
7440
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
7441
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
7442
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
7443
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
7444
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
7445
CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
7446
CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
7447
for i = 0, 5, 0.1 do
7448
swait()
7449
---
7450
lookavec = lookavec + 1
7451
speeds = speeds + 10
7452
elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
7453
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
7454
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7455
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
7456
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7457
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
7458
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7459
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
7460
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7461
---
7462
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)
7463
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)
7464
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
7465
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
7466
RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
7467
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
7468
end
7469
for i = 0, 5, 0.1 do
7470
swait()
7471
---
7472
speeds = speeds + 10
7473
elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
7474
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
7475
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7476
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
7477
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7478
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
7479
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7480
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
7481
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7482
---
7483
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)
7484
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)
7485
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
7486
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
7487
RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
7488
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
7489
end
7490
MAINRUINCOLOR = BrickColor.new("Bright violet")
7491
CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
7492
CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
7493
CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
7494
CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
7495
CameraEnshaking(1,3)
7496
for i = 0, 24 do
7497
PixelBlock(1,math.random(5,25),"Add",eloca1.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
7498
PixelBlock(1,math.random(5,25),"Add",eloca2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
7499
PixelBlock(1,math.random(5,25),"Add",eloca3.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
7500
PixelBlock(1,math.random(5,25),"Add",eloca4.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0)
7501
end
7502
sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7503
sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7504
sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7505
sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7506
sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7507
sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7508
sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7509
sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7510
sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7511
sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7512
sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7513
sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
7514
for i = 0, 5, 0.1 do
7515
swait()
7516
---
7517
lookavec = lookavec - 1
7518
speeds = speeds + 10
7519
elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0)
7520
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
7521
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7522
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
7523
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7524
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
7525
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7526
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
7527
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))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2)
7528
---
7529
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)
7530
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)
7531
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
7532
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
7533
RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
7534
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
7535
end
7536
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
7537
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
7538
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
7539
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
7540
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
7541
for i = 0, 49 do
7542
PixelBlock(1,math.random(8,16),"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)
7543
PixelBlock(2,math.random(16,32),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,MAINRUINCOLOR,0)
7544
end
7545
CameraEnshaking(5,6)
7546
CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
7547
CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
7548
CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
7549
CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
7550
CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
7551
CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
7552
CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
7553
storehumanoidWS = 100
7554
hum.WalkSpeed = 100
7555
rainbowmode = false
7556
chaosmode = false
7557
tl1.Enabled = true
7558
tl2.Enabled = true
7559
tl3.Enabled = true
7560
RecolorTextAndRename("The Last Guest",Color3.new(10,1,1),Color3.new(0.5,0,1),"Code")
7561
tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7562
tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7563
tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
7564
for i, v in pairs(mw2:GetChildren()) do
7565
if v:IsA("Part") then
7566
v.BrickColor = MAINRUINCOLOR
7567
v.Material = "Neon"
7568
end
7569
end
7570
for i, v in pairs(mw1:GetChildren()) do
7571
if v:IsA("Part") then
7572
v.Transparency = 0
7573
v.BrickColor = MAINRUINCOLOR
7574
v.Material = "Neon"
7575
end
7576
end
7577
for i, v in pairs(m:GetChildren()) do
7578
if v:IsA("Part") then
7579
v.Color = Color3.new(0.5,0,1)
7580
v.Material = "Neon"
7581
end
7582
end
7583
for i, v in pairs(m2:GetChildren()) do
7584
if v:IsA("Part") then
7585
v.Color = Color3.new(0.25,0,1)
7586
v.Material = "Neon"
7587
end
7588
end
7589
for i, v in pairs(m3:GetChildren()) do
7590
if v:IsA("Part") then
7591
v.Color = Color3.new(0.45,0,1)
7592
v.Material = "Neon"
7593
end
7594
end
7595
for i, v in pairs(extrawingmod1:GetChildren()) do
7596
if v:IsA("Part") then
7597
v.Transparency = 0.75
7598
v.Color = Color3.new(0.25,0,1)
7599
v.Material = "Neon"
7600
end
7601
end
7602
for i, v in pairs(extrawingmod2:GetChildren()) do
7603
if v:IsA("Part") then
7604
v.Transparency = 0.75
7605
v.Color = Color3.new(0.5,0,1)
7606
v.Material = "Neon"
7607
end
7608
end
7609
attack = false
7610
end
7611
7612
function GleamingBeam()
7613
attack = true
7614
bosschatfunc("IT ENDS NOW!!!",MAINRUINCOLOR.Color,3)
7615
CFuncs["EchoSound"].Create("rbxassetid://1535995570", char, 8, 1,0,10,0.15,0.5,1)
7616
CFuncs["EchoSound"].Create("rbxassetid://1535995570", root, 60, 1,0,10,0.15,0.5,1)
7617
local rsiz = math.random(1,15)
7618
	local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
7619
	hb.Anchored = true
7620
	hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
7621
	CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
7622
	for i = 0, 16, 0.1 do
7623
		swait()
7624
rsiz = math.random(5,15)
7625
hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
7626
sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)	
7627
sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
7628
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)
7629
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)
7630
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
7631
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-40)),.1)
7632
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
7633
LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.1)
7634
	end
7635
	CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
7636
	CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
7637
for i = 0, 2 do
7638
	CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
7639
end
7640
sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7641
sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7642
sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7643
for i = 0, 49 do 
7644
local rsiza = math.random(1,15)
7645
sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)	
7646
end
7647
local a = Instance.new("Part",Character)
7648
	a.Name = "Direction"	
7649
	a.Anchored = true
7650
	a.BrickColor = MAINRUINCOLOR
7651
a.Material = "Neon"
7652
a.Transparency = 0
7653
a.Shape = "Cylinder"
7654
	a.CanCollide = false
7655
local ba = Instance.new("Part",Character)
7656
	ba.Name = "HitDirect"	
7657
	ba.Anchored = true
7658
	ba.BrickColor = bc("Cool yellow")
7659
ba.Material = "Neon"
7660
ba.Transparency = 1
7661
	ba.CanCollide = false
7662
	local ray = Ray.new(
7663
	    hb.CFrame.p,                           -- origin
7664
	    (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
7665
	) 
7666
	local ignore = Character
7667
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
7668
	a.BottomSurface = 10
7669
	a.TopSurface = 10
7670
	local distance = (hb.CFrame.p - position).magnitude
7671
	a.Size = Vector3.new(distance, 1, 1)
7672
	a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
7673
ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
7674
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
7675
local msh = Instance.new("SpecialMesh",a)
7676
msh.MeshType = "Cylinder"
7677
msh.Scale = vt(1,4,4)
7678
game:GetService("Debris"):AddItem(a, 30)
7679
game:GetService("Debris"):AddItem(ba, 30)
7680
	for i = 0, 25, 0.1 do
7681
		swait()
7682
hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
7683
ray = Ray.new(
7684
	    hb.CFrame.p,                           -- origin
7685
	    (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
7686
	) 
7687
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
7688
distance = (hb.CFrame.p - position).magnitude
7689
	a.Size = Vector3.new(distance, 1, 1)
7690
	a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
7691
ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
7692
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
7693
rsiz = math.random(5,25)
7694
	MagniDamage(ba, 12, 40000,900000, 0, "Normal")
7695
sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,0)
7696
for c = 0, 2 do	
7697
sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,MAINRUINCOLOR,2)
7698
end
7699
sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
7700
sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
7701
RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
7702
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
7703
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(80)),.6)
7704
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(-80)),.6)
7705
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(80)),.6)
7706
LW.C0=clerp(LW.C0,cf(-1.25,0.5,0.5)*angles(math.rad(-20),math.rad(0),math.rad(20)),.6)
7707
	end
7708
	CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
7709
	CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
7710
	CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
7711
	CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
7712
	MagniDamage(ba, 30, 400000,9000000, 0, "Normal")
7713
sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
7714
sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
7715
sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
7716
sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7717
sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7718
sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7719
for i = 0, 49 do 
7720
local rsiza = math.random(1,15)
7721
sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)	
7722
end
7723
for i = 0, 49 do
7724
rsiz = math.random(1,8)	
7725
sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,MAINRUINCOLOR,2)
7726
end
7727
coroutine.resume(coroutine.create(function()
7728
for i = 0, 99 do
7729
swait()
7730
a.Transparency = a.Transparency + 0.01
7731
end
7732
a:Destroy()
7733
ba:Destroy()
7734
end))
7735
hb:Destroy()
7736
attack = false
7737
end
7738
7739
function DualGleamingBeam()
7740
attack = true
7741
hum.WalkSpeed = 0 
7742
CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
7743
CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
7744
local radm = math.random(1,3)
7745
if radm == 1 then
7746
bosschatfunc("YOU CAN'T ESCAPE THIS!!",MAINRUINCOLOR.Color,1)
7747
elseif radm == 2 then
7748
bosschatfunc("HOW DO YOU LIKE THIS?!",MAINRUINCOLOR.Color,1)
7749
elseif radm == 3 then
7750
bosschatfunc("You make the choice..",MAINRUINCOLOR.Color,1)
7751
end
7752
local rsiz = math.random(1,15)
7753
	local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
7754
	hb.Anchored = true
7755
	hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
7756
	local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
7757
	hb2.Anchored = true
7758
	hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
7759
	CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
7760
	for i = 0, 14, 0.1 do
7761
		swait()
7762
rsiz = math.random(5,15)
7763
hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
7764
hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
7765
sphereMK(math.random(3,9),0.25,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)	
7766
sphere2(5,"Add",sorb.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR)
7767
sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Lime green"),-15)	
7768
sphere2(5,"Add",sorb2.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4,4,4),0.01,0.01,0.01,BrickColor.new("Lime green"))
7769
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)
7770
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)
7771
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
7772
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1)
7773
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1)
7774
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1)
7775
	end
7776
	CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
7777
	CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
7778
	CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
7779
	CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
7780
	CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
7781
	CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
7782
sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7783
sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7784
sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7785
sphere2(3,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
7786
sphere2(6,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
7787
sphere2(9,"Add",hb2.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.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
7788
for i = 0, 49 do 
7789
local rsiza = math.random(1,15)
7790
sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)	
7791
sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0)
7792
end
7793
local a = Instance.new("Part",Character)
7794
	a.Name = "Direction"	
7795
	a.Anchored = true
7796
	a.BrickColor = MAINRUINCOLOR
7797
a.Material = "Neon"
7798
a.Transparency = 0
7799
a.Shape = "Cylinder"
7800
	a.CanCollide = false
7801
local a2 = Instance.new("Part",Character)
7802
	a2.Name = "Direction"	
7803
	a2.Anchored = true
7804
	a2.BrickColor = MAINRUINCOLOR
7805
a2.Material = "Neon"
7806
a2.Transparency = 0
7807
a2.Shape = "Cylinder"
7808
	a2.CanCollide = false
7809
local ba = Instance.new("Part",Character)
7810
	ba.Name = "HitDirect"	
7811
	ba.Anchored = true
7812
	ba.BrickColor = MAINRUINCOLOR
7813
ba.Material = "Neon"
7814
ba.Transparency = 1
7815
	ba.CanCollide = false
7816
local ba2 = Instance.new("Part",Character)
7817
	ba2.Name = "HitDirect"	
7818
	ba2.Anchored = true
7819
	ba2.BrickColor = MAINRUINCOLOR
7820
ba2.Material = "Neon"
7821
ba2.Transparency = 1
7822
	ba2.CanCollide = false
7823
	local ray = Ray.new(
7824
	    hb.CFrame.p,                           -- origin
7825
	    (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
7826
	) 
7827
	local ignore = Character
7828
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
7829
	local ray2 = Ray.new(
7830
	    hb2.CFrame.p,                           -- origin
7831
	    (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
7832
	) 
7833
	local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
7834
	local distance2 = (hb2.CFrame.p - position).magnitude
7835
7836
	a.BottomSurface = 10
7837
	a.TopSurface = 10
7838
	local distance = (hb.CFrame.p - position).magnitude
7839
	a.Size = Vector3.new(distance, 1, 1)
7840
	a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
7841
	a2.BottomSurface = 10
7842
	a2.TopSurface = 10
7843
	a2.Size = Vector3.new(distance2, 1, 1)
7844
	a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
7845
ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
7846
ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
7847
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
7848
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
7849
local msh = Instance.new("SpecialMesh",a)
7850
msh.MeshType = "Cylinder"
7851
msh.Scale = vt(1,4,4)
7852
local msh2 = Instance.new("SpecialMesh",a2)
7853
msh2.MeshType = "Cylinder"
7854
msh2.Scale = vt(1,4,4)
7855
game:GetService("Debris"):AddItem(a, 30)
7856
game:GetService("Debris"):AddItem(a2, 30)
7857
game:GetService("Debris"):AddItem(ba, 30)
7858
game:GetService("Debris"):AddItem(ba2, 30)
7859
	for i = 0, 20, 0.1 do
7860
		swait()
7861
hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0)
7862
hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0)
7863
ray = Ray.new(
7864
	    hb.CFrame.p,                           -- origin
7865
	    (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction
7866
	) 
7867
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
7868
distance = (hb.CFrame.p - position).magnitude
7869
ray2 = Ray.new(
7870
	    hb2.CFrame.p,                           -- origin
7871
	    (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction
7872
	) 
7873
hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore)
7874
distance2 = (hb2.CFrame.p - position).magnitude
7875
	a.Size = Vector3.new(distance, 1, 1)
7876
	a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
7877
	a2.Size = Vector3.new(distance2, 1, 1)
7878
	a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2)
7879
ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance)
7880
ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2)
7881
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
7882
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
7883
rsiz = math.random(5,25)
7884
	MagniDamage(ba, 12, 800,18000, 0, "Normal")
7885
	MagniDamage(ba2, 12, 800,18000, 0, "Normal")
7886
for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do
7887
if v:FindFirstChild('Head') then
7888
dmg(v)
7889
end
7890
end
7891
coroutine.resume(coroutine.create(function()
7892
local bx = Instance.new("Part",Character)
7893
bx.Name = "Location"	
7894
bx.Anchored = true
7895
bx.BrickColor = MAINRUINCOLOR
7896
bx.Material = "Neon"
7897
bx.Transparency = 1
7898
bx.CanCollide = false
7899
bx.Position = ba.Position
7900
sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR)
7901
wait(math.random(1,2))
7902
sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
7903
sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR)
7904
sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
7905
	CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
7906
	CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
7907
	MagniDamage(bx, 20, 80000,900000, 0, "Normal")
7908
for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do
7909
if v:FindFirstChild('Head') then
7910
dmg(v)
7911
end
7912
end
7913
wait(5)
7914
bx:Destroy()
7915
end))
7916
sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
7917
sphereMK(math.random(4,8),0.25,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
7918
for c = 0, 2 do	
7919
sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),2)
7920
end
7921
sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
7922
sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR)
7923
sphere2(5,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR)
7924
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)
7925
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)
7926
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.05)
7927
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05)
7928
RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05)
7929
LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05)
7930
	end
7931
for i = 0, 1 do
7932
	CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
7933
	CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
7934
	CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
7935
	CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
7936
end
7937
	MagniDamage(ba, 30, 8000,180000, 0, "Normal")
7938
	MagniDamage(ba2, 30, 8000,180000, 0, "Normal")
7939
for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do
7940
if v:FindFirstChild('Head') then
7941
dmg(v)
7942
end
7943
end
7944
sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
7945
sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
7946
sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR)
7947
sphere2(3,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7948
sphere2(6,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7949
sphere2(9,"Add",hb.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.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR)
7950
sphere2(3,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
7951
sphere2(6,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
7952
sphere2(9,"Add",hb2.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.5,0.5),0.3,0.3,0.3,bc("Lime green"))
7953
for i = 0, 49 do 
7954
local rsiza = math.random(1,15)
7955
sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
7956
sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)	
7957
end
7958
for i = 0, 49 do
7959
rsiz = math.random(1,8)	
7960
sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,bc("Lime green"),2)
7961
end
7962
coroutine.resume(coroutine.create(function()
7963
for i = 0, 99 do
7964
swait()
7965
a.Transparency = a.Transparency + 0.01
7966
a2.Transparency = a2.Transparency + 0.01
7967
end
7968
a:Destroy()
7969
ba:Destroy()
7970
a2:Destroy()
7971
ba2:Destroy()
7972
end))
7973
hum.WalkSpeed = storehumanoidWS
7974
hb:Destroy()
7975
hb2:Destroy()
7976
attack = false
7977
end
7978
7979
function dragin()
7980
local targetted = nil
7981
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
7982
targetted = mouse.Target.Parent
7983
end
7984
if targetted ~= nil then
7985
RootPart.CFrame = FaceMouse()[1]
7986
attack = true
7987
hum.WalkSpeed = 0
7988
for x = 0, 1 do
7989
for i = 0,1,0.5 do
7990
swait()
7991
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)
7992
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)
7993
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
7994
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
7995
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
7996
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
7997
end
7998
for i = 0,1,0.5 do
7999
swait()
8000
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
8001
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
8002
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
8003
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
8004
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
8005
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
8006
end
8007
for i = 0,1,0.5 do
8008
swait()
8009
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
8010
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
8011
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
8012
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
8013
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
8014
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
8015
end
8016
for i = 0,1,0.5 do
8017
swait()
8018
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
8019
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
8020
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
8021
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
8022
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
8023
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
8024
end
8025
end
8026
coroutine.resume(coroutine.create(function()
8027
targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 50
8028
CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
8029
CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
8030
end))
8031
local A1 = Instance.new("Attachment",targetted.Head)
8032
local A2 = Instance.new("Attachment",sorb)
8033
local Beem = Instance.new("Beam",tors)
8034
Beem.Attachment0 = A1
8035
Beem.Attachment1 = A2
8036
Beem.Texture = "rbxassetid://897585362"
8037
Beem.LightEmission = 0.75
8038
Beem.FaceCamera = true
8039
Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
8040
Beem.Width0 = 1
8041
Beem.Width1 = 1
8042
Beem.TextureMode = "Wrap"
8043
Beem.TextureLength = 1
8044
Beem.Color = ColorSequence.new(MAINRUINCOLOR.Color)
8045
sphere2(3,"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(0,0,0),0.15,0.15,0.15,MAINRUINCOLOR)
8046
sphere2(3,"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(0,0,0),0.2,0.2,0.2,MAINRUINCOLOR)
8047
for x = 0, 24 do
8048
local rsiz = math.random(5,15)
8049
sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
8050
end
8051
8052
CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
8053
CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
8054
local radm = math.random(1,2)
8055
if radm == 1 then
8056
bosschatfunc("GOTCHA!!",MAINRUINCOLOR.Color,1)
8057
elseif radm == 2 then
8058
bosschatfunc("COM'ERE!!",MAINRUINCOLOR.Color,1)
8059
end
8060
for i = 0,3,0.1 do
8061
swait()
8062
coroutine.resume(coroutine.create(function()
8063
local rsiz = math.random(5,15)
8064
targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
8065
sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
8066
end))
8067
sphere2(8,"Add",sorb.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,0.01,0.01,MAINRUINCOLOR)
8068
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)
8069
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)
8070
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
8071
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
8072
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6)
8073
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6)
8074
end
8075
CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
8076
CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
8077
local vel = Instance.new("BodyPosition", targetted.Head)
8078
vel.P = 12500
8079
vel.D = 1000
8080
vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
8081
vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
8082
for i = 0,4,0.1 do
8083
swait()
8084
coroutine.resume(coroutine.create(function()
8085
local rsiz = math.random(5,15)
8086
targetted:FindFirstChildOfClass("Humanoid").Health = targetted:FindFirstChildOfClass("Humanoid").Health + 10
8087
sphereMK(math.random(1,5),0.01,"Add",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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
8088
end))
8089
sphere2(8,"Add",sorb.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,0.01,0.01,MAINRUINCOLOR)
8090
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(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
8091
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(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2)
8092
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
8093
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
8094
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
8095
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
8096
end
8097
local visibility = 0
8098
coroutine.resume(coroutine.create(function()
8099
for i = 0, 49 do
8100
swait()
8101
visibility = visibility + 0.02
8102
Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
8103
end
8104
Beem:Destroy()
8105
A1:Destroy()
8106
A2:Destroy()
8107
end))
8108
game:GetService("Debris"):AddItem(vel,0.75)
8109
attack = false
8110
hum.WalkSpeed = storehumanoidWS
8111
8112
end
8113
end
8114
8115
function hugg()
8116
attack = true
8117
hum.WalkSpeed = 5
8118
local rsiz = math.random(5,15)
8119
for i = 0, 2, 0.1 do
8120
swait()
8121
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
8122
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))),.3)
8123
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
8124
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
8125
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(40)),.3)
8126
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(110),math.rad(0),math.rad(-40)),.3)
8127
end
8128
CFuncs["Sound"].Create("rbxassetid://444895479", root, 0.5,1)
8129
	local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
8130
	hb.Anchored = true
8131
	hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
8132
local huggedperson = nil
8133
local act = false
8134
local alreadydid = false
8135
for i = 0, 3, 0.1 do
8136
swait()
8137
if act == false then
8138
for i, v in pairs(FindNearestHead(hb.CFrame.p, 1.25)) do
8139
if v:FindFirstChild('Head') then
8140
if alreadydid == false then
8141
huggedperson = v
8142
hum.WalkSpeed = 0
8143
CFuncs["Sound"].Create("rbxassetid://294861193", root, 1,1)
8144
CFuncs["Sound"].Create("rbxassetid://200632821", root, 1,1.15)
8145
CFuncs["Sound"].Create("rbxassetid://1042716828", root, 1.5,1)
8146
CFuncs["Sound"].Create("rbxassetid://884155627", root, 2,1)
8147
local radm = math.random(1,3)
8148
if radm == 1 then
8149
bosschatfunc("I'm sorry.. if I hurt you..",MAINRUINCOLOR.Color,1)
8150
elseif radm == 2 then
8151
bosschatfunc("I..I'm interested in you",MAINRUINCOLOR.Color,1)
8152
elseif radm == 3 then
8153
bosschatfunc("Don't worry.. I'm with you",MAINRUINCOLOR.Color,1)
8154
end
8155
root.Anchored = true
8156
coroutine.resume(coroutine.create(function()
8157
huggedperson.Humanoid.WalkSpeed = 0
8158
huggedperson:WaitForChild("HumanoidRootPart").Anchored = true
8159
end))
8160
--chatfunc(string.lower(huggedperson.Name).. "~~",BrickColor.new("Pink").Color,"Normal","SourceSansBold",1)
8161
alreadydid = true
8162
act = true
8163
print(huggedperson.Name)
8164
end
8165
end
8166
end
8167
hb.CFrame = root.CFrame*CFrame.new(0,1,0) + root.CFrame.lookVector*2
8168
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(0)),.3)
8169
elseif act == true then
8170
coroutine.resume(coroutine.create(function()
8171
huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
8172
end))
8173
rsiz = math.random(5,15)
8174
sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
8175
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(40)),.1)
8176
huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
8177
end
8178
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
8179
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))),.3)
8180
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
8181
RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
8182
LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
8183
end
8184
hb:Destroy()
8185
if act == true then
8186
for x = 0, 2 do
8187
for i = 0, 2, 0.1 do
8188
swait()
8189
coroutine.resume(coroutine.create(function()
8190
huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
8191
end))
8192
rsiz = math.random(5,15)
8193
sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
8194
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(45)),.1)
8195
huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
8196
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
8197
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))),.3)
8198
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
8199
RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
8200
LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
8201
end
8202
for i = 0, 2, 0.1 do
8203
swait()
8204
coroutine.resume(coroutine.create(function()
8205
huggedperson:FindFirstChildOfClass("Humanoid").Health = huggedperson:FindFirstChildOfClass("Humanoid").Health + 0.2
8206
end))
8207
rsiz = math.random(5,15)
8208
sphereMK(math.random(1,4),0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-8,-4),math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),rsiz/20,rsiz/20,rsiz/20,0,MAINRUINCOLOR,0)
8209
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(10),math.rad(35)),.1)
8210
huggedperson.Head.CFrame = root.CFrame*CFrame.new(0,2.25,-1.25)*CFrame.Angles(0,math.rad(180),0)
8211
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7.5),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
8212
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))),.3)
8213
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
8214
RW.C0=clerp(RW.C0,cf(1,0.7,-1)*angles(math.rad(120),math.rad(0),math.rad(-50)),.3)
8215
LW.C0=clerp(LW.C0,cf(-1,0.7,-1)*angles(math.rad(100),math.rad(0),math.rad(50)),.3)
8216
end
8217
end
8218
end
8219
hum.WalkSpeed = storehumanoidWS
8220
root.Anchored = false
8221
if act == true then
8222
coroutine.resume(coroutine.create(function()
8223
huggedperson.Humanoid.WalkSpeed = 16
8224
huggedperson:WaitForChild("HumanoidRootPart").Anchored = false
8225
end))
8226
end
8227
hum.WalkSpeed = storehumanoidWS
8228
attack = false
8229
end
8230
8231
function Counter()
8232
	hum.WalkSpeed = 0
8233
CFuncs["EchoSound"].Create("rbxassetid://2370794297", char, 5, 1,0,10,0.15,0.5,1)
8234
CFuncs["EchoSound"].Create("rbxassetid://2370794297", root, 60, 1,0,10,0.15,0.5,1)
8235
bosschatfunc("COUNTER!!",MAINRUINCOLOR.Color,1)
8236
	attack = true
8237
	for i = 0,1,0.1 do
8238
		swait()
8239
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
8240
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
8241
RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
8242
LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
8243
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(-1.5),math.rad(0),math.rad(10)),.3)
8244
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)),.3)
8245
	end
8246
CameraEnshaking(3,4)
8247
MagniDamageWithEffect(root, 24, 0,0, 75, "Normal")
8248
sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
8249
sphere2(1.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
8250
sphere2(20,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50)),vt(5,5,5),0.35,0.35,0.35,MAINRUINCOLOR)
8251
coroutine.resume(coroutine.create(function()
8252
local eff = Instance.new("ParticleEmitter",root)
8253
eff.Texture = "rbxassetid://363275192"
8254
eff.LightEmission = 0.95
8255
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
8256
eff.Rate = 10000
8257
eff.Lifetime = NumberRange.new(1)
8258
eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
8259
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
8260
eff.Speed = NumberRange.new(10,125)
8261
eff.Drag = 5
8262
eff.Rotation = NumberRange.new(-500,500)
8263
eff.VelocitySpread = 9000
8264
eff.RotSpeed = NumberRange.new(-50,50)
8265
local eff2 = eff:Clone()
8266
eff2.Parent = root
8267
eff2.Texture = "rbxassetid://284205403"
8268
eff2.Rate = 10000
8269
eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,30,0),NumberSequenceKeypoint.new(1,0,0)})
8270
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
8271
eff2.Drag = 5
8272
eff2.Speed = NumberRange.new(10,50)
8273
eff2.Rotation = NumberRange.new(-500,500)
8274
eff2.VelocitySpread = 9000
8275
wait(0.25)
8276
eff2.Enabled = false
8277
eff.Enabled = false
8278
wait(3)
8279
eff2:Destroy()
8280
eff:Destroy()
8281
end))
8282
for i = 0, 9 do
8283
sphere2(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))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
8284
end
8285
for i = 0, 24 do
8286
local rsiz = math.random(5,20)
8287
sphereMK(math.random(2,10),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
8288
end
8289
CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
8290
CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
8291
CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
8292
	for i = 0,2,0.1 do
8293
		swait()
8294
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
8295
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
8296
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
8297
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
8298
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(-1.5),math.rad(0),math.rad(-10)),.3)
8299
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)),.3)
8300
	end
8301
	hum.WalkSpeed = storehumanoidWS
8302
attack = false
8303
end
8304
8305
function superjump()
8306
attack = true
8307
hum.WalkSpeed = 0
8308
sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
8309
sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
8310
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
8311
for i = 0, 2, 0.1 do
8312
		swait()
8313
root.Velocity = vt(0,0,0)
8314
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.05,0.01,0.05),math.random(25,250)/250,BrickColor.new("White"))
8315
RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4)
8316
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),math.rad(40)),.4)
8317
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4)
8318
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4)
8319
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4)
8320
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4)
8321
end
8322
MagniDamage(root, 28, 25,50, 25, "Normal")
8323
CFuncs["Sound"].Create("rbxassetid://477843807", char, 17, 1.05)
8324
hum.Jump = true
8325
swait()
8326
root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250
8327
sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.3,5,0.3,BrickColor.new("Royal purple"),BrickColor.new("Royal purple").Color)
8328
sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(-45),0,0),vt(25,1,25),0.2,4,0.2,BrickColor.new("Cyan"),BrickColor.new("Cyan").Color)
8329
CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
8330
for i = 0, 3, 0.1 do
8331
		swait()
8332
RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4)
8333
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),math.rad(30)),.4)
8334
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
8335
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4)
8336
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4)
8337
LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4)
8338
end
8339
attack = false
8340
if equipped == false then
8341
hum.WalkSpeed = 16
8342
else
8343
hum.WalkSpeed = 24
8344
end
8345
end
8346
8347
8348
-------------------------------------
8349
8350
8351
8352
Humanoid.Animator.Parent = nil
8353
8354
8355
8356
-------------------------------------
8357
8358
local attacktype = 1
8359
mouse.Button1Down:connect(function()
8360
  if attack == false and attacktype == 1 then
8361
    attacktype = 2
8362
    attackone()
8363
  elseif attack == false and attacktype == 2 then
8364
    attacktype = 3
8365
    attacktwo()
8366
  elseif attack == false and attacktype == 3 then
8367
    attacktype = 1
8368
    attackthree()
8369
  elseif attack == false and attacktype == 4 then
8370
    attacktype = 1
8371
    --attackfour()
8372
  end
8373
end)
8374
mouse.KeyDown:connect(function(k)
8375
if k == "q" and attack == false and ModeOfGlitch ~= 1 then
8376
--normalmog()
8377
ModeOfGlitch = 1
8378
storehumanoidWS = 16
8379
hum.WalkSpeed = 16
8380
rainbowmode = false
8381
chaosmode = false
8382
newTheme("rbxassetid://723652641",48.6,1,0.85)
8383
RecolorTextAndRename("Hopeless Guest",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
8384
MAINRUINCOLOR = BrickColor.new("Really red")
8385
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
8386
end
8387
if k == "e" and attack == false and ModeOfGlitch ~= 2 then
8388
ModeOfGlitch = 2
8389
storehumanoidWS = 16
8390
hum.WalkSpeed = 16
8391
rainbowmode = false
8392
chaosmode = false
8393
RecolorTextAndRename("Serene Guest",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
8394
newTheme("rbxassetid://1539245059",0,1,0.85)
8395
MAINRUINCOLOR = BrickColor.new("Toothpaste")
8396
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8397
end
8398
if k == "r" and attack == false and ModeOfGlitch ~= 3 then
8399
               ModeOfGlitch = 3
8400
storehumanoidWS = 14
8401
hum.WalkSpeed = 14
8402
rainbowmode = false
8403
chaosmode = false
8404
RecolorTextAndRename("Royal Guest",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
8405
newTheme("rbxassetid://1283869370",58.15,0.98,1)
8406
MAINRUINCOLOR = BrickColor.new("Royal purple")
8407
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8408
end
8409
if k == "t" and attack == false and ModeOfGlitch ~= 4 then
8410
               ModeOfGlitch = 4
8411
storehumanoidWS = 14
8412
hum.WalkSpeed = 14
8413
rainbowmode = false
8414
chaosmode = true
8415
RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
8416
newTheme("rbxassetid://919231299",0,1.01,0.85)
8417
MAINRUINCOLOR = BrickColor.new("Black")
8418
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8419
end
8420
if k == "y" and attack == false and ModeOfGlitch ~= 5 then
8421
               ModeOfGlitch = 5
8422
storehumanoidWS = 14
8423
hum.WalkSpeed = 14
8424
rainbowmode = false
8425
chaosmode = false
8426
RecolorTextAndRename("Divine Guest",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
8427
newTheme("rbxassetid://661079869",0,1.02,0.85)
8428
MAINRUINCOLOR = BrickColor.new("Bright yellow")
8429
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8430
end
8431
if k == "u" and attack == false and ModeOfGlitch ~= 6 then
8432
               ModeOfGlitch = 6
8433
storehumanoidWS = 65
8434
hum.WalkSpeed = 65
8435
rainbowmode = false
8436
chaosmode = false
8437
RecolorTextAndRename("Justice Guest",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
8438
newTheme("rbxassetid://1347011178",0,1.01,0.85)
8439
MAINRUINCOLOR = BrickColor.new("White")
8440
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8441
end
8442
if k == "f" and attack == false and ModeOfGlitch ~= 8 then
8443
               ModeOfGlitch = 8
8444
storehumanoidWS = 100
8445
hum.WalkSpeed = 100
8446
rainbowmode = false
8447
chaosmode = false
8448
RecolorTextAndRename("Destinal Guest",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
8449
newTheme("rbxassetid://1495032271",0,1.01,0.85)
8450
MAINRUINCOLOR = BrickColor.new("Alder")
8451
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8452
end
8453
if k == "g" and attack == false and ModeOfGlitch ~= 9 then
8454
               ModeOfGlitch = 9
8455
storehumanoidWS = 85
8456
hum.WalkSpeed = 85
8457
rainbowmode = false
8458
chaosmode = false
8459
RecolorTextAndRename("Infected Guest",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
8460
newTheme("rbxassetid://919231299",0,1.01,0.85)
8461
MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
8462
RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8463
end
8464
if k == "h" and attack == false and ModeOfGlitch ~= 5555 then
8465
               ModeOfGlitch = 5555
8466
storehumanoidWS = 30
8467
hum.WalkSpeed = 30
8468
rainbowmode = false
8469
chaosmode = false
8470
RecolorTextAndRename("Love Guest",Color3.new(1,1,1),BrickColor.new("Hot pink").Color,"Arcade")
8471
newTheme("rbxassetid://736003449",0,1,1.25)
8472
MAINRUINCOLOR = BrickColor.new("Hot pink")
8473
RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8474
end
8475
if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
8476
CalamityTrans()
8477
end
8478
if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
8479
               ModeOfGlitch = 55469696922
8480
storehumanoidWS = 95
8481
hum.WalkSpeed = 95
8482
rainbowmode = false
8483
chaosmode = false
8484
RecolorTextAndRename("Nanodeath Guest",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
8485
newTheme("rbxassetid://582020393",0,1.005,0.9)
8486
MAINRUINCOLOR = BrickColor.new("Hot pink")
8487
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8488
end
8489
if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
8490
               ModeOfGlitch = 4367677813
8491
storehumanoidWS = 75
8492
hum.WalkSpeed = 75
8493
rainbowmode = false
8494
chaosmode = false
8495
RecolorTextAndRename("Mysterious Guest",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
8496
newTheme("rbxassetid://363284685",0,1.01,0.95)
8497
MAINRUINCOLOR = BrickColor.new("Baby blue")
8498
RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8499
end
8500
if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
8501
               ModeOfGlitch = 9999999921111
8502
storehumanoidWS = 145
8503
hum.WalkSpeed = 145
8504
rainbowmode = false
8505
chaosmode = false
8506
RecolorTextAndRename("Omega Guest",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
8507
newTheme("rbxassetid://643309199",0,1.01,1)
8508
MAINRUINCOLOR = BrickColor.new("Bright bluish green")
8509
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8510
end
8511
if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
8512
               ModeOfGlitch = 999999999556
8513
storehumanoidWS = 115
8514
hum.WalkSpeed = 115
8515
rainbowmode = false
8516
chaosmode = false
8517
RecolorTextAndRename("Crazy Guest",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
8518
newTheme("rbxassetid://719008519",0,1.02,0.85)
8519
MAINRUINCOLOR = BrickColor.new("Navy blue")
8520
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8521
end
8522
if k == "m" and attack == false and ModeOfGlitch == 3 and ModeOfGlitch ~= 12 then
8523
               ModeOfGlitch = 12
8524
storehumanoidWS = 19
8525
hum.WalkSpeed = 19
8526
rainbowmode = false
8527
chaosmode = false
8528
print'Mode was meant for Vengeful Program or those other fans out there'
8529
RecolorTextAndRename("Neptunia Guest",BrickColor.new("Royal purple").Color,BrickColor.new("Bright blue").Color,"SciFi")
8530
newTheme("rbxassetid://1873219898",0,1,1.7)
8531
MAINRUINCOLOR = BrickColor.new("Royal purple")
8532
RecolorThing(MAINRUINCOLOR,BrickColor.new("Bright blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8533
end
8534
8535
if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 50 then
8536
sphere(0.9,"Add",root.CFrame,vt(0,100000,0),1,BrickColor.new("Institutional white"))
8537
for i = 0, 49 do
8538
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))),8,8,8,0.16,BrickColor.new("Institutional white"),0)
8539
end
8540
CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
8541
CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
8542
CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
8543
hum.WalkSpeed = storehumanoidWS
8544
attack = false
8545
	ModeOfGlitch = 50
8546
storehumanoidWS = 18
8547
hum.WalkSpeed = 18
8548
rainbowmode = false
8549
chaosmode = false
8550
RecolorTextAndRename("Enbelieved Guest",BrickColor.new("Institutional white").Color,BrickColor.new("Institutional white").Color,"Arcade")
8551
newTheme("rbxassetid://435773595",0,1.01,1.5)
8552
MAINRUINCOLOR = BrickColor.new("Institutional white")
8553
RecolorThing(MAINRUINCOLOR,BrickColor.new("Institutional white"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8554
end
8555
8556
if k == "m" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 66 then
8557
	hum.WalkSpeed = 0
8558
	attack = true
8559
	for i = 0,1,0.1 do
8560
		swait()
8561
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
8562
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
8563
RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
8564
LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
8565
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)
8566
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)
8567
	end
8568
sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
8569
for i = 0, 148 do
8570
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))),1,1,1,0.02,MAINRUINCOLOR,0)
8571
end
8572
for i = 0,3,0.1 do
8573
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)
8574
end
8575
CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
8576
CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
8577
CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
8578
	hum.WalkSpeed = storehumanoidWS
8579
attack = false
8580
	ModeOfGlitch = 66
8581
storehumanoidWS = 16
8582
hum.WalkSpeed = 16
8583
rainbowmode = false
8584
chaosmode = false
8585
newTheme("rbxassetid://723652641"..ast[Mrandom(1,2)],0,1,1.35)
8586
MAINRUINCOLOR = BrickColor.new("Really black")
8587
RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8588
	for i = 0,2,0.1 do
8589
		swait()
8590
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
8591
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
8592
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
8593
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
8594
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)
8595
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)
8596
	end
8597
end
8598
8599
if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 13 then
8600
	hum.WalkSpeed = 0
8601
	attack = true
8602
	for i = 0,1,0.1 do
8603
		swait()
8604
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,1)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
8605
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
8606
RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
8607
LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
8608
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)
8609
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)
8610
	end
8611
sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
8612
for i = 0, 49 do
8613
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)
8614
end
8615
for i = 0,3,0.1 do
8616
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)
8617
end
8618
CFuncs["Sound"].Create("rbxassetid://239000203", root, 4, 1)
8619
CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 1)
8620
CFuncs["Sound"].Create("rbxassetid://847061203", root, 3, 1)
8621
	hum.WalkSpeed = storehumanoidWS
8622
attack = false
8623
	ModeOfGlitch = 13
8624
storehumanoidWS = 45
8625
hum.WalkSpeed = 45
8626
rainbowmode = false
8627
chaosmode = false
8628
RecolorTextAndRename("Judicial Guest",BrickColor.new("Dark stone grey").Color,BrickColor.new("Light blue").Color,"Bodoni")
8629
newTheme("rbxassetid://190845741",0,1,1.35)
8630
MAINRUINCOLOR = BrickColor.new("Dark stone grey")
8631
RecolorThing(MAINRUINCOLOR,BrickColor.new("Light blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8632
	for i = 0,2,0.1 do
8633
		swait()
8634
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,1)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
8635
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
8636
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
8637
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
8638
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)
8639
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)
8640
	end
8641
end
8642
if k == "j" and attack == false and ModeOfGlitch ~= 1002 then
8643
               ModeOfGlitch = 1002
8644
storehumanoidWS = 45
8645
hum.WalkSpeed = 45
8646
rainbowmode = false
8647
chaosmode = false
8648
RecolorTextAndRename("Pixeled Guest",BrickColor.new("Really black").Color,BrickColor.new("Dark blue").Color,"Code")
8649
newTheme("rbxassetid://2027652726",0,1,0.85)
8650
MAINRUINCOLOR = BrickColor.new("Dark blue")
8651
RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8652
end
8653
if k == "k" and attack == false and ModeOfGlitch ~= 1003 then
8654
               ModeOfGlitch = 1003
8655
storehumanoidWS = 90
8656
hum.WalkSpeed = 90
8657
rainbowmode = false
8658
chaosmode = false
8659
RecolorTextAndRename("Ascended Guest",BrickColor.new("White").Color,BrickColor.new("Bright yellow").Color,"Code")
8660
newTheme("rbxassetid://257453119",0,1,0.85)
8661
MAINRUINCOLOR = BrickColor.new("Bright yellow")
8662
RecolorThing(MAINRUINCOLOR,BrickColor.new("White"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8663
end
8664
if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
8665
               ModeOfGlitch = 1264532489
8666
storehumanoidWS = 175
8667
hum.WalkSpeed = 175
8668
rainbowmode = false
8669
chaosmode = false
8670
RecolorTextAndRename("Fallenx Guest",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
8671
newTheme("rbxassetid://1505487022",0,1.01,1.25)
8672
MAINRUINCOLOR = BrickColor.new("Pastel green")
8673
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
8674
end
8675
if k == "l" and mutedtog == false then
8676
mutedtog = true
8677
kan.Volume = 0.85
8678
elseif k == "l" and mutedtog == true then
8679
mutedtog = false
8680
kan.Volume = 0.85
8681
end
8682
if k == "p" and toggleTag == false then
8683
toggleTag = true
8684
modet.TextTransparency = 0
8685
modet.TextStrokeTransparency = 0
8686
elseif k == "p" and toggleTag == true then
8687
toggleTag = false
8688
modet.TextTransparency = 1
8689
modet.TextStrokeTransparency = 1
8690
end
8691
if k == "z" and attack == false and ModeOfGlitch == 1 then
8692
ExtinctiveHeartbreak()
8693
elseif k == "z" and attack == false and ModeOfGlitch == 2 then
8694
HeavenlyDisk()
8695
elseif k == "z" and attack == false and ModeOfGlitch == 9 then
8696
DualGleamingBeam()
8697
elseif k == "c" and attack == false and ModeOfGlitch == 9 then
8698
BanishingOrb()
8699
elseif k == "z" and attack == false and ModeOfGlitch == 5555 then
8700
hugg()
8701
elseif k == "b" and attack == false and ModeOfGlitch == 55469696922 then
8702
cutesigh()
8703
elseif k == "v" and attack == false and ModeOfGlitch == 55469696922 then
8704
Counter()
8705
elseif k == "v" and attack == false and ModeOfGlitch == 12 then
8706
superjump()
8707
elseif k == "v" and attack == false and ModeOfGlitch == 9999999921111 then
8708
dragin()
8709
elseif k == "x" and attack == false and ModeOfGlitch == 8889 then
8710
UniversalCollapse()
8711
elseif k == "c" and attack == false and ModeOfGlitch == 2 then
8712
PureBomb()
8713
elseif k == "z" and attack == false and ModeOfGlitch == 999999999556 then
8714
Beams()
8715
elseif k == "x" and attack == false and ModeOfGlitch == 55469696922 then
8716
BeamOfDeath()
8717
elseif k == "v" and attack == false and ModeOfGlitch == 8 then
8718
THE_TRUE_POWER_OF_VIOLENCE()
8719
elseif k == "z" and attack == false and ModeOfGlitch == 8 then
8720
GleamingBeam()
8721
elseif k == "x" and attack == false and ModeOfGlitch == 5 then
8722
ViolentRing()
8723
elseif k == "z" and attack == false and ModeOfGlitch == 3 then
8724
CorruptionEvent()
8725
elseif k == "v" and attack == false and ModeOfGlitch == 3 then
8726
CorruptBlink()
8727
elseif k == "c" and attack == false and ModeOfGlitch == 3 then
8728
scattercorrupt()
8729
elseif k == "b" and attack == false and ModeOfGlitch == 5555 then
8730
shytaunty()
8731
elseif k == "z" and attack == false and ModeOfGlitch == 4 then
8732
RapidBurst()
8733
elseif k == "x" and attack == false and ModeOfGlitch == 4 then
8734
ChaosEND()
8735
elseif k == "c" and attack == false and ModeOfGlitch == 9999999921111 then
8736
CyberSlash()
8737
elseif k == "z" and attack == false and ModeOfGlitch == 4367677813 then
8738
smiter()
8739
elseif k == "z" and attack == false and ModeOfGlitch == 1002 then
8740
SpeedDrop()
8741
elseif k == "v" and attack == false and ModeOfGlitch == 5 then
8742
--DivineLights()
8743
elseif k == "z" and attack == false and ModeOfGlitch == 5 then
8744
DivineBlast()
8745
elseif k == "z" and attack == false and ModeOfGlitch == 6 then
8746
EquinoxOrbs()
8747
elseif k == "v" and attack == false and ModeOfGlitch == 6 then
8748
yinyangi()
8749
elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
8750
FallenOrbs()
8751
elseif k == "z" and attack == false and ModeOfGlitch == 1003 then
8752
StarfallEX()
8753
end
8754
if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
8755
FallenDEMISE()
8756
end
8757
if k == "x" and attack == false and ModeOfGlitch == 1 then
8758
EndGROUND()
8759
end
8760
end)
8761
8762
coroutine.resume(coroutine.create(function()
8763
while true do
8764
swait()
8765
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
8766
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)
8767
end
8768
if ModeOfGlitch == 5555 then
8769
sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
8770
end
8771
end
8772
end))
8773
--[[coroutine.resume(coroutine.create(function()
8774
while true do
8775
swait(2)
8776
if chaosmode == true then
8777
tl1.Color = ColorSequence.new(BrickColor.random().Color)
8778
tl2.Color = ColorSequence.new(BrickColor.random().Color)
8779
tl3.Color = ColorSequence.new(BrickColor.random().Color)
8780
RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
8781
for i, v in pairs(mw1:GetChildren()) do
8782
if v:IsA("Part") then
8783
v.Transparency = 0.75
8784
v.BrickColor = BrickColor.random()
8785
v.Material = "Neon"
8786
end
8787
end
8788
for i, v in pairs(m2:GetChildren()) do
8789
if v:IsA("Part") then
8790
v.BrickColor = BrickColor.random()
8791
v.Material = "Neon"
8792
end
8793
end
8794
end
8795
end
8796
end))]]
8797
8798
8799
8800
ff = Instance.new("ForceField",char)
8801
ff.Visible = false
8802
hum.Name = "Base"
8803
hum.MaxHealth = 1.0E298
8804
hum.Health = 1.0E298
8805
game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
8806
  if hum.Health > 0.1 and hum.Health < 1.0E298 then
8807
    hum.MaxHealth = 1.0E298
8808
    hum.Health = 1.0E298
8809
  end
8810
end)
8811
8812
local Hair = Instance.new("Part", char)
8813
Hair.Name = "Hair"
8814
Hair.CanCollide = false
8815
Hair.BrickColor = BrickColor.new("Institutional white")
8816
Hair.Transparency = 0
8817
Hair.Material = "Plastic"
8818
Hair.Size = Vector3.new(1, 1, 2)
8819
Hair.TopSurface = Enum.SurfaceType.Smooth
8820
Hair.BottomSurface = Enum.SurfaceType.Smooth
8821
8822
8823
local bguis = Instance.new("BillboardGui",tors)
8824
bguis.Size = UDim2.new(25, 0, 25, 0)
8825
local imgca = Instance.new("ImageLabel",bguis)
8826
imgca.BackgroundTransparency = 1
8827
imgca.ImageTransparency = 1
8828
imgca.Size = UDim2.new(1,0,1,0)
8829
imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
8830
imgca.ImageColor3 = Color3.new(0,0,0)
8831
8832
8833
local bguis2 = Instance.new("BillboardGui",tors)
8834
bguis2.Size = UDim2.new(25, 0, 25, 0)
8835
local imgca2 = Instance.new("ImageLabel",bguis)
8836
imgca2.BackgroundTransparency = 1
8837
imgca2.ImageTransparency = 1
8838
imgca2.Size = UDim2.new(1,0,1,0)
8839
imgca2.Image = "rbxassetid://2406462507" --997291547,521073910,2312119891
8840
imgca2.ImageColor3 = Color3.new(0,0,0)
8841
8842
8843
8844
idleanim=.4
8845
while true do
8846
if mutedtog == false then
8847
kan.Volume = currentVol
8848
elseif mutedtog == true then
8849
kan.Volume = 0
8850
end
8851
kan.PlaybackSpeed = currentPitch
8852
kan.Pitch = currentPitch
8853
kan.SoundId = currentThemePlaying
8854
kan.Looped = true
8855
kan.Parent = char
8856
kan:Resume()
8857
if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 13 then
8858
imgca.ImageTransparency = 1
8859
imgca2.ImageTransparency = 1
8860
elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
8861
imgca.ImageColor3 = MAINRUINCOLOR.Color
8862
imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
8863
elseif ModeOfGlitch == 13 then
8864
imgca2.ImageColor3 = MAINRUINCOLOR.Color
8865
imgca2.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
8866
end
8867
imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
8868
bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
8869
imgca2.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/60
8870
bguis2.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
8871
coroutine.resume(coroutine.create(function()
8872
	if chaosmode == true then
8873
for i, v in pairs(mw1:GetChildren()) do
8874
if v:IsA("Part") then
8875
v.Transparency = 0
8876
v.BrickColor = BrickColor.random()
8877
v.Material = "Neon"
8878
end
8879
end
8880
tl1.Color = ColorSequence.new(BrickColor.random().Color)
8881
tl2.Color = ColorSequence.new(BrickColor.random().Color)
8882
tl3.Color = ColorSequence.new(BrickColor.random().Color)
8883
	RecolorTextAndRename("Fallen Guest",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
8884
	end
8885
end))
8886
coroutine.resume(coroutine.create(function()
8887
	if ModeOfGlitch == 66 then
8888
		for i, v in pairs(m:GetChildren()) do
8889
if v:IsA("Part") then
8890
v.Transparency = 1
8891
v.BrickColor = BrickColor.random()
8892
v.Material = "Neon"
8893
end
8894
end
8895
		for i, v in pairs(m2:GetChildren()) do
8896
if v:IsA("Part") then
8897
v.Transparency = 1
8898
v.BrickColor = BrickColor.random()
8899
v.Material = "Neon"
8900
end
8901
end
8902
for i, v in pairs(mw1:GetChildren()) do
8903
if v:IsA("Part") then
8904
v.Transparency = 1
8905
v.BrickColor = BrickColor.random()
8906
v.Material = "Neon"
8907
end
8908
end
8909
for i, v in pairs(extrawingmod1:GetChildren()) do
8910
if v:IsA("Part") then
8911
v.Transparency = 0
8912
v.BrickColor = BrickColor.random()
8913
v.Material = "Neon"
8914
end
8915
end
8916
tl1.Color = ColorSequence.new(BrickColor.random().Color)
8917
tl2.Color = ColorSequence.new(BrickColor.random().Color)
8918
tl3.Color = ColorSequence.new(BrickColor.random().Color)
8919
gane.Color = ColorSequence.new(BrickColor.random().Color)
8920
gan.Color = ColorSequence.new(BrickColor.random().Color)
8921
end
8922
end))
8923
8924
coroutine.resume(coroutine.create(function()
8925
	if ModeOfGlitch == 66 then
8926
RecolorTextAndRename("Snapped Guest",BrickColor.random().Color,Color3.new(0,0,0),"Garamond")
8927
	end
8928
	end))
8929
8930
if chaosmode == false then
8931
modet.Position = UDim2.new(0,0,0,0)
8932
modet.Rotation = -5 * math.cos(sine / 32)
8933
techc.Rotation = techc.Rotation + 1
8934
circl.Rotation = circl.Rotation - kan.PlaybackLoudness/200 - 1
8935
circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/175 + 1
8936
imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/175 + 1
8937
imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/150 - 1
8938
ned.Rotation = 0 - 2 * math.cos(sine / 24)
8939
ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
8940
else
8941
	techc.Rotation = techc.Rotation + 1
8942
circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
8943
circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
8944
imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
8945
imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
8946
ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
8947
ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
8948
modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
8949
modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
8950
end
8951
CameraManager()
8952
swait()
8953
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)
8954
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)
8955
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)
8956
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)
8957
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)
8958
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)
8959
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)
8960
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)
8961
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)
8962
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)
8963
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)
8964
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)
8965
 sine = sine + change
8966
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
8967
local velderp=RootPart.Velocity.y
8968
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
8969
coroutine.resume(coroutine.create(function()
8970
if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1003 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 or ModeOfGlitch == 13 then
8971
if hitfloor ~= nil then
8972
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"))
8973
if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 13 then
8974
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)
8975
end
8976
end
8977
end
8978
end))
8979
if equipped==true or equipped==false then
8980
if attack==false then
8981
idle=idle+1
8982
else
8983
idle=0
8984
end
8985
if idle>=500 then
8986
if attack==false then
8987
--Sheath()
8988
end
8989
end
8990
if RootPart.Velocity.y > 1 and hitfloor==nil then 
8991
Anim="Jump"
8992
if attack==false then
8993
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)
8994
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)
8995
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)
8996
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
8997
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)
8998
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)
8999
end
9000
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
9001
Anim="Fall"
9002
if attack==false then
9003
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)
9004
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)
9005
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)
9006
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
9007
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)
9008
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)
9009
end
9010
elseif torvel<1 and hitfloor~=nil then
9011
Anim="Idle"
9012
if attack==false then
9013
if ModeOfGlitch == 1 then
9014
local snap = math.random(1,10)
9015
if snap == 1 then
9016
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)
9017
end
9018
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)
9019
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)
9020
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)
9021
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)
9022
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)
9023
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)
9024
elseif ModeOfGlitch == 2 then
9025
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)
9026
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)
9027
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)
9028
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)
9029
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)
9030
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)
9031
elseif ModeOfGlitch == 2 then
9032
RH.C0=clerp(RH.C0,cf(1,-0.5 - 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)
9033
LH.C0=clerp(LH.C0,cf(-1,-0.5 - 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)
9034
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),-1 + 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)
9035
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)
9036
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)
9037
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)
9038
elseif ModeOfGlitch == 50 then
9039
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 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
9040
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(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
9041
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1)
9042
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
9043
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
9044
LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
9045
elseif ModeOfGlitch == 5555 then --5555
9046
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
9047
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
9048
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),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
9049
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
9050
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
9051
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
9052
elseif ModeOfGlitch == 1002 then
9053
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)
9054
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
9055
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
9056
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
9057
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
9058
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
9059
elseif ModeOfGlitch == 12 then
9060
RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 20)  - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3 + 2 * math.cos(sine / 40)),math.rad(-15),math.rad(0 + 2 * math.cos(sine / 20))),.1)
9061
LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 20) - 0.02 * math.cos(sine / 40),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 - 2 * math.cos(sine / 40)),math.rad(1),math.rad(0 - 2 * math.cos(sine / 20))),.1)
9062
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.02 * math.cos(sine / 40),0 - 0.02 * math.cos(sine / 40),-0.05 - 0.05 * math.cos(sine / 20))*angles(math.rad(0 + 2 * math.cos(sine / 20)),math.rad(0 + 2 * math.cos(sine / 40)),math.rad(30 + 3 * math.cos(sine / 40))),.1)
9063
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2),math.rad(0 - 7 * math.cos(sine / 40)),math.rad(-30 - 3 * math.cos(sine / 40))),.1)
9064
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-6 + 5 * math.cos(sine / 26)),math.rad(-10 - 6 * math.cos(sine / 24)),math.rad(13 - 5 * math.cos(sine / 34))),.1)
9065
LW.C0=clerp(LW.C0,cf(-1.4,0.5 + 0.05 * math.cos(sine / 28),0.1)*angles(math.rad(-13 - 1 * math.cos(sine / 25)),math.rad(10 + 2 * math.cos(sine / 24)),math.rad(10 + 2 * math.cos(sine / 34))),.1)
9066
elseif ModeOfGlitch == 3 then
9067
local snap = math.random(1,32)
9068
if snap == 1 then
9069
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)
9070
end
9071
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)
9072
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)
9073
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)
9074
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)
9075
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)
9076
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)
9077
elseif ModeOfGlitch == 4 then
9078
local snap = math.random(1,5)
9079
if snap == 1 then
9080
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)
9081
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)
9082
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)
9083
end
9084
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)
9085
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)
9086
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)
9087
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)
9088
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)
9089
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)
9090
elseif ModeOfGlitch == 66 then
9091
local snap = math.random(1,2)
9092
if snap == 1 then
9093
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)
9094
RW.C0=clerp(RW.C0,cf(1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(-15 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
9095
LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(15 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
9096
end
9097
RH.C0=clerp(RH.C0,cf(1,0.35 - 0.05 * math.cos(sine / 32),-0.7)*angles(math.rad(-20),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)
9098
LH.C0=clerp(LH.C0,cf(-1,-1.125 - 0.05 * math.cos(sine / 32),-0.6)*angles(math.rad(-105),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)
9099
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.3 + 0.05 * math.cos(sine / 32))*angles(math.rad(7.5 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
9100
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)
9101
RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
9102
LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
9103
elseif ModeOfGlitch == 5 then
9104
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)
9105
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)
9106
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)
9107
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)
9108
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)
9109
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)
9110
elseif ModeOfGlitch == 6 then
9111
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)
9112
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)
9113
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)
9114
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)
9115
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)
9116
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)
9117
elseif ModeOfGlitch == 13 then
9118
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)
9119
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)
9120
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)
9121
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)
9122
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 1 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
9123
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 3 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
9124
elseif ModeOfGlitch == 8 then
9125
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)
9126
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)
9127
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)
9128
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)
9129
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)
9130
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)
9131
elseif ModeOfGlitch == 9 then
9132
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)
9133
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))
9134
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)
9135
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)
9136
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)
9137
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)
9138
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)
9139
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)
9140
elseif ModeOfGlitch == 1003 then
9141
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
9142
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
9143
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),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
9144
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
9145
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)
9146
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)
9147
9148
elseif ModeOfGlitch == 8889 then
9149
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)
9150
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)
9151
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)
9152
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)
9153
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)
9154
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)
9155
elseif ModeOfGlitch == 1264532489 then
9156
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)
9157
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)
9158
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)
9159
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)
9160
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)
9161
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)
9162
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)
9163
elseif ModeOfGlitch == 9999999921111 then  --9999999921111
9164
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)
9165
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)
9166
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)
9167
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)
9168
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)
9169
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)
9170
elseif ModeOfGlitch == 4367677813 then
9171
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)
9172
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)
9173
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)
9174
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)
9175
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)
9176
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)
9177
elseif ModeOfGlitch == 55469696922 then --5555
9178
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)
9179
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)
9180
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)
9181
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)
9182
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)
9183
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)
9184
elseif ModeOfGlitch == 999999999556 then
9185
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)
9186
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)
9187
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)
9188
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)
9189
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)
9190
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)
9191
end
9192
end
9193
elseif torvel>2 and torvel<22 and hitfloor~=nil then
9194
Anim="Walk"
9195
if attack==false and ModeOfGlitch ~= 66 then
9196
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)
9197
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)
9198
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)
9199
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)
9200
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)
9201
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)
9202
elseif attack==false and ModeOfGlitch == 66 then
9203
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)
9204
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)
9205
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)
9206
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)
9207
RW.C0=clerp(RW.C0,cf(1.35,0.5 + 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(-15 + 3 * math.cos(sine / 45))),.1)
9208
LW.C0=clerp(LW.C0,cf(-1.35,0.5 + 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(15 - 3 * math.cos(sine / 45))),.1)
9209
end
9210
elseif torvel>=22 and hitfloor~=nil then
9211
Anim="Run"
9212
if attack==false then
9213
if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 13 and ModeOfGlitch ~= 5555 and ModeOfGlitch ~= 1003 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
9214
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)
9215
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)
9216
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)
9217
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)
9218
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)
9219
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)
9220
if ModeOfGlitch == 12 then
9221
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 + 45 * math.cos(sine / 8))),.1)
9222
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 + 45 * math.cos(sine / 8))),.1)
9223
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(1.5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
9224
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 5 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 8))),.1)
9225
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)
9226
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)
9227
end
9228
if ModeOfGlitch == 9 then
9229
	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)
9230
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))
9231
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)
9232
end
9233
elseif ModeOfGlitch == 6 or ModeOfGlitch == 1003 or ModeOfGlitch == 5555 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
9234
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)
9235
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)
9236
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)
9237
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)
9238
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)
9239
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)
9240
elseif ModeOfGlitch == 13 then
9241
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)
9242
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)
9243
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(40),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
9244
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)
9245
RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.35)*angles(math.rad(6 + 3 * math.cos(sine / 74)),math.rad(-14 - 1 * math.cos(sine / 53)),math.rad(-86 + 5 * math.cos(sine / 32))),.1)
9246
LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.55)*angles(math.rad(-20 - 5 * math.cos(sine / 73)),math.rad(23 - 2.25 * math.cos(sine / 55)),math.rad(86 - 6 * math.cos(sine / 33))),.1)
9247
end
9248
end
9249
end
9250
end
9251
end