View difference between Paste ID: NWNted9W and pKVg4TR3
SHOW: | | - or go back to the newest paste.
1
2
3
wait(0.5)
4
5
warn([[SG AWAKEN Loaded.
6
The super switcher.
7
Velnorum is one of the first wielders.
8
9
Created, Reworked by NoobyGames12 and converted by Helkern
10
]])
11
12
13
------------- ORIGINAL WIELDER OC: Velnorum
14
print([[Icons:
15
! = New
16
? = Spoilers
17
* = Exclusivity
18
C = Changes
19
20
]])
21
warn([[V 4.1 Update Log:
22
!C? - Mostly about 7-9 main modes added.
23
! - Non-canon [N] modes are added from few modes:
24
 > Mayhem: NANO
25
 > Purity: BRIGHTNESS
26
 > Chaos: CRAZED
27
 > Divinity: FALLEN
28
 > Destiny: OMEGA
29
! - Added back CALAMITY and INFESTATION.
30
C - Two main click attacks changed.
31
!C - Moves are added back, with severe change and difference.
32
C - Some modes got renamed because fat filter
33
C - Toned down the effects to be compatible with fe without strong lag.]])
34
--- its obs smooth af do not touch 
35
---- Sources and functions might be taken from others
36
if game.PlaceId == 843468296 then
37
error("This script has been banned. You cannot use it here. Please use Place 2.")
38
end
39
plr = game:GetService('LocalPlayers').LocalPlayer
40-
plr = game:GetService('Players').LocalPlayer
40+
41
hum = char.Humanoid
42
local Mouse = Player:GetMouse()
43
local cam = game.Workspace.CurrentCamera
44
Camera = cam
45
local CamInterrupt = false
46
local TwoD = false
47
local TargetInfo = {nil, nil}
48
cam.CameraType = "Custom"
49
t = char.Torso
50
h = char.Head
51
ra = char["Right Arm"]
52
la = char["Left Arm"]
53
rl = char["Right Leg"]
54
ll = char["Left Leg"]
55
tors = char.Torso
56
lleg = char["Left Leg"]
57
root = char.HumanoidRootPart
58
hed = char.Head
59
rleg = char["Right Leg"]
60
rarm = char["Right Arm"]
61
larm = char["Left Arm"]
62
radian = math.rad
63
random = math.random
64
Vec3 = Vector3.new
65
Inst = Instance.new
66
cFrame = CFrame.new
67
Euler = CFrame.fromEulerAnglesXYZ
68
vt = Vector3.new
69
bc = BrickColor.new
70
br = BrickColor.random
71
it = Instance.new
72
cf = CFrame.new
73
74
local Booleans = {
75
  CamFollow = true,
76
  GyroUse = true
77
}
78
79
function lerp(object, newCFrame, alpha)
80
  return object:lerp(newCFrame, alpha)
81
end
82
83
local Directer = Inst("BodyGyro", root)
84
Directer.MaxTorque = Vec3(0, 0, 0)
85
Directer.P = 600000
86
local CPart = Inst("Part")
87
CPart.Anchored = true
88
CPart.CanCollide = false
89
CPart.Locked = true
90
CPart.Transparency = 1
91
92
local rainbowmode = false
93
local chaosmode = false
94
95
local kan = Instance.new("Sound",char)
96
kan.Volume = 1.25
97
kan.TimePosition = 0
98
kan.PlaybackSpeed = 1
99
kan.Pitch = 1
100
kan.SoundId = "rbxassetid://614032233"
101
kan.Name = "wrecked"
102
kan.Looped = true
103
kan:Play()
104
105
local currentThemePlaying = kan.SoundId
106
local currentPitch = kan.Pitch
107
local currentVol = kan.Volume
108
function newTheme(ID,timepos,pitch,vol)
109
local kanz = kan
110
--kanz:Stop()
111
kanz.Volume = vol
112
--kanz.TimePosition = timepos
113
kanz.PlaybackSpeed = pitch
114
kanz.Pitch = pitch
115
kanz.SoundId = ID
116
kanz.Name = "wrecked"
117
kanz.Looped = true
118
currentThemePlaying = kanz.SoundId
119
currentVol = kanz.Volume
120
currentPitch = kanz.Pitch
121
--kanz:Play()
122
--coroutine.resume(coroutine.create(function()
123
--wait(0.05)
124
--end))
125
end
126
127
128
function newThemeCust(ID,timepos,pitch,vol)
129
local kanz = kan
130
kanz:Stop()
131
kanz.Volume = vol
132
kanz.TimePosition = timepos
133
kanz.PlaybackSpeed = pitch
134
kanz.Pitch = pitch
135
kanz.SoundId = ID
136
kanz.Name = "wrecked"
137
kanz.Looped = true
138
currentThemePlaying = kanz.SoundId
139
currentVol = kanz.Volume
140
currentPitch = kanz.Pitch
141
kanz:Play()
142
coroutine.resume(coroutine.create(function()
143
wait(0.05)
144
end))
145
end
146
147
local mutedtog = false
148
149
function CameraEnshaking(Length,Intensity)
150
coroutine.resume(coroutine.create(function()
151
      local intensity = 1*Intensity
152
      local rotM = 0.01*Intensity
153
for i = 0, Length, 0.1 do
154
swait()
155
intensity = intensity - 0.05*Intensity/Length
156
rotM = rotM - 0.0005*Intensity/Length
157
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
158
      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)
159
end
160
Humanoid.CameraOffset = Vec3(0, 0, 0)
161
end))
162
end
163
CamShake=function(Part,Distan,Power,Times) 
164
local de=Part.Position
165
for i,v in pairs(workspace:children()) do
166
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
167
for _,c in pairs(v:children()) do
168
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
169
local Noob=v.Humanoid
170
if Noob~=nil then
171
coroutine.resume(coroutine.create(function()
172
FV = Instance.new("BoolValue", Noob)
173
FV.Name = "CameraShake"
174
for ShakeNum=1,Times do
175
swait()
176
local ef=Power
177
  if ef>=1 then
178
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
179
  else
180
   ef=Power*10
181
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
182
  end	
183
end
184
Humanoid.CameraOffset = Vector3.new(0,0,0)
185
FV:Destroy()
186
end))
187
CameraShake(Times, Power, Noob)
188
end
189
end
190
end
191
end
192
end
193
end
194
195
local toggleTag = true
196
local bilguit = Instance.new("BillboardGui", hed)
197
bilguit.Adornee = nil
198
bilguit.Name = "ModeName"
199
bilguit.Size = UDim2.new(4, 0, 1.2, 0)
200
bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
201
local modet = Instance.new("TextLabel", bilguit)
202
modet.Size = UDim2.new(10/2, 0, 7/2, 0)
203
modet.FontSize = "Size8"
204
modet.TextScaled = true
205
modet.TextTransparency = 0
206
modet.BackgroundTransparency = 1 
207
modet.TextTransparency = 0
208
modet.TextStrokeTransparency = 0
209
modet.Font = "Antique"
210
modet.TextStrokeColor3 = Color3.new(1,0,0)
211
modet.TextColor3 = Color3.new(0.25,0,0)
212
modet.Text = "ALONE"
213
214
215
function chatfunc(text,color,typet,font,timeex)
216
local chat = coroutine.wrap(function()
217
if Character:FindFirstChild("TalkingBillBoard")~= nil then
218
Character:FindFirstChild("TalkingBillBoard"):destroy()
219
end
220
local naeeym2 = Instance.new("BillboardGui",Character)
221
naeeym2.Size = UDim2.new(0,100,0,40)
222
naeeym2.StudsOffset = Vector3.new(0,3,0)
223
naeeym2.Adornee = Character.Head
224
naeeym2.Name = "TalkingBillBoard"
225
local tecks2 = Instance.new("TextLabel",naeeym2)
226
tecks2.BackgroundTransparency = 1
227
tecks2.BorderSizePixel = 0
228
tecks2.Text = "ALONE"
229
tecks2.Font = font
230
tecks2.TextSize = 30
231
tecks2.TextStrokeTransparency = 0
232
tecks2.TextColor3 = color
233
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
234
tecks2.Size = UDim2.new(1,0,0.5,0)
235
local tecks3 = Instance.new("TextLabel",naeeym2)
236
tecks3.BackgroundTransparency = 1
237
tecks3.BorderSizePixel = 0
238
tecks3.Text = ""
239
tecks3.Font = font
240
tecks3.TextSize = 30
241
tecks3.TextStrokeTransparency = 0
242
if typet == "Inverted" then
243
tecks3.TextColor3 = Color3.new(0,0,0)
244
tecks3.TextStrokeColor3 = color
245
elseif typet == "Normal" then
246
tecks3.TextColor3 = color
247
tecks3.TextStrokeColor3 = Color3.new(0,0,0)
248
end
249
tecks3.Size = UDim2.new(1,0,0.5,0)
250
coroutine.resume(coroutine.create(function()
251
while true do
252
swait(1)
253
if chaosmode == true then
254
tecks2.TextColor3 = BrickColor.random().Color
255
tecks3.TextStrokeColor3 = BrickColor.random().Color
256
end
257
end
258
end))
259
modet.TextTransparency = modet.TextTransparency  + 1
260
modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
261
for i = 0, 74*timeex do
262
swait()
263
modet.TextTransparency = 1
264
modet.TextStrokeTransparency = 1
265
tecks2.Text = text
266
tecks3.Text = text
267
end
268
local randomrot = math.random(1,2)
269
if randomrot == 1 then
270
for i = 1, 50 do
271
swait()
272
tecks2.Text = text
273
tecks3.Text = text
274
modet.TextTransparency = modet.TextTransparency - .02
275
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
276
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
277
tecks2.TextTransparency = tecks2.TextTransparency + .04
278
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
279
tecks3.TextTransparency = tecks2.TextTransparency + .04
280
end
281
elseif randomrot == 2 then
282
	for i = 1, 50 do
283
swait()
284
tecks2.Text = text
285
tecks3.Text = text
286
modet.TextTransparency = modet.TextTransparency - .02
287
modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
288
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
289
tecks2.TextTransparency = tecks2.TextTransparency + .04
290
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
291
tecks3.TextTransparency = tecks2.TextTransparency + .04
292
end
293
end
294
modet.TextTransparency = 0
295
modet.TextStrokeTransparency = 0
296
if toggleTag == false then
297
modet.TextTransparency = 1
298
modet.TextStrokeTransparency = 1
299
end
300
naeeym2:Destroy()
301
end)
302
chat()
303
end
304
305
function bosschatfunc(text,color,watval)
306
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
307
coroutine.resume(coroutine.create(function()
308
if v.PlayerGui:FindFirstChild("Dialog")~= nil then
309
v.PlayerGui:FindFirstChild("Dialog"):destroy()
310
end
311
local scrg = Instance.new("ScreenGui",v.PlayerGui)
312
CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
313
scrg.Name = "Dialog"
314
local txtlb = Instance.new("TextLabel",scrg)
315
txtlb.Text = ""
316
txtlb.Font = "Bodoni"
317
txtlb.TextColor3 = Color3.new(0,0,0)
318
txtlb.TextStrokeTransparency = 0
319
txtlb.BackgroundTransparency = 0.75
320
txtlb.BackgroundColor3 = Color3.new(0,0,0)
321
txtlb.TextStrokeColor3 = color
322
txtlb.TextScaled = true
323
txtlb.Size = UDim2.new(1,0,0.25,0)
324
txtlb.TextXAlignment = "Left"
325
txtlb.Position = UDim2.new(0,0,0.75 + 1,0)
326
local txtlb2 = Instance.new("TextLabel",scrg)
327
txtlb2.Text = "?:"
328
txtlb2.Font = "Arcade"
329
txtlb2.TextColor3 = Color3.new(0,0,0)
330
txtlb2.TextStrokeTransparency = 0
331
txtlb2.BackgroundTransparency = 1
332
txtlb2.TextStrokeColor3 = color
333
txtlb2.TextSize = 40
334
txtlb2.Size = UDim2.new(1,0,0.25,0)
335
txtlb2.TextXAlignment = "Left"
336
txtlb2.Position = UDim2.new(0,0,1,0)
337
local fvalen = 0.55
338
local fval = -0.49
339
coroutine.resume(coroutine.create(function()
340
while true do
341
swait()
342
if chaosmode == true then
343
txtlb.Rotation = math.random(-1,1)
344
txtlb2.Rotation = math.random(-1,1)
345
txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
346
txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
347
txtlb.TextStrokeColor3 = BrickColor.random().Color
348
txtlb2.TextStrokeColor3 = BrickColor.random().Color
349
end
350
end
351
end))
352
coroutine.resume(coroutine.create(function()
353
while true do
354
swait()
355
if scrg.Parent ~= nil then
356
	fvalen = fvalen - 0.0001
357
elseif scrg.Parent == nil then
358
break
359
end
360
end
361
end))
362
local flol = 1.75
363
local flil = 1.6
364
coroutine.resume(coroutine.create(function()
365
	for i = 0, 9 do
366
		swait()
367
		fval = fval + 0.05
368
		flol = flol - 0.1
369
		flil = flil - 0.1
370
		txtlb.Text = ""
371
		txtlb.Position = UDim2.new(0,0,flol,0)
372
		txtlb2.Position = UDim2.new(0,0,flil,0)
373
	end
374
	txtlb.Text = text
375
wait(watval)
376
local valinc = 0
377
for i = 0, 99 do
378
swait()
379
valinc = valinc + 0.0001
380
flol = flol + valinc
381
flil = flil + valinc
382
txtlb.Rotation = txtlb.Rotation + valinc*20
383
txtlb2.Rotation = txtlb2.Rotation - valinc*50
384
txtlb.Position = UDim2.new(0,0,flol,0)
385
txtlb2.Position = UDim2.new(0,0,flil,0)
386
txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
387
txtlb.TextTransparency = txtlb.TextTransparency + 0.01
388
txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
389
txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
390
txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
391
end
392
scrg:Destroy()
393
end))
394
end))
395
end
396
end
397
398
399
local Create = LoadLibrary("RbxUtility").Create
400
401
CFuncs = {	
402
	["Part"] = {
403
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
404
			local Part = Create("Part"){
405
				Parent = Parent,
406
				Reflectance = Reflectance,
407
				Transparency = Transparency,
408
				CanCollide = false,
409
				Locked = true,
410
				BrickColor = BrickColor.new(tostring(BColor)),
411
				Name = Name,
412
				Size = Size,
413
				Material = Material,
414
			}
415
			RemoveOutlines(Part)
416
			return Part
417
		end;
418
	};
419
	
420
	["Mesh"] = {
421
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
422
			local Msh = Create(Mesh){
423
				Parent = Part,
424
				Offset = OffSet,
425
				Scale = Scale,
426
			}
427
			if Mesh == "SpecialMesh" then
428
				Msh.MeshType = MeshType
429
				Msh.MeshId = MeshId
430
			end
431
			return Msh
432
		end;
433
	};
434
	
435
	["Mesh"] = {
436
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
437
			local Msh = Create(Mesh){
438
				Parent = Part,
439
				Offset = OffSet,
440
				Scale = Scale,
441
			}
442
			if Mesh == "SpecialMesh" then
443
				Msh.MeshType = MeshType
444
				Msh.MeshId = MeshId
445
			end
446
			return Msh
447
		end;
448
	};
449
	
450
	["Weld"] = {
451
		Create = function(Parent, Part0, Part1, C0, C1)
452
			local Weld = Create("Weld"){
453
				Parent = Parent,
454
				Part0 = Part0,
455
				Part1 = Part1,
456
				C0 = C0,
457
				C1 = C1,
458
			}
459
			return Weld
460
		end;
461
	};
462
463
	["Sound"] = {
464
		Create = function(id, par, vol, pit) 
465
			coroutine.resume(coroutine.create(function()
466
				local S = Create("Sound"){
467
					Volume = vol,
468
                                        Name = "EffectSoundo",
469
					Pitch = pit or 1,
470
					SoundId = id,
471
					Parent = par or workspace,
472
				}
473
				wait() 
474
				S:play() 
475
				game:GetService("Debris"):AddItem(S, 10)
476
			end))
477
		end;
478
	};
479
480
	["TimeSound"] = {
481
		Create = function(id, par, vol, pit, timepos) 
482
			coroutine.resume(coroutine.create(function()
483
				local S = Create("Sound"){
484
					Volume = vol,
485
                                        Name = "EffectSoundo",
486
					Pitch = pit or 1,
487
					SoundId = id,
488
                                        TimePosition = timepos,
489
					Parent = par or workspace,
490
				}
491
				wait() 
492
				S:play() 
493
				game:GetService("Debris"):AddItem(S, 10)
494
			end))
495
		end;
496
	};
497
		["EchoSound"] = {
498
		Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) 
499
			coroutine.resume(coroutine.create(function()
500
				local Sas = Create("Sound"){
501
					Volume = vol,
502
                    Name = "EffectSoundo",
503
					Pitch = pit or 1,
504
					SoundId = id,
505
                    TimePosition = timepos,
506
					Parent = par or workspace,
507
				}
508
				local E = Create("EchoSoundEffect"){
509
					Delay = echodelay,
510
                    Name = "Echo",
511
					Feedback = fedb,
512
                    DryLevel = dryl,
513
					Parent = Sas,
514
				}
515
				wait() 
516
				Sas:play() 
517
				game:GetService("Debris"):AddItem(Sas, delays)
518
			end))
519
		end;
520
	};
521
522
["LongSound"] = {
523
		Create = function(id, par, vol, pit) 
524
			coroutine.resume(coroutine.create(function()
525
				local S = Create("Sound"){
526
					Volume = vol,
527
					Pitch = pit or 1,
528
					SoundId = id,
529
					Parent = par or workspace,
530
				}
531
				wait() 
532
				S:play() 
533
				game:GetService("Debris"):AddItem(S, 60)
534
			end))
535
		end;
536
	};
537
	
538
	["ParticleEmitter"] = {
539
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
540
			local fp = Create("ParticleEmitter"){
541
				Parent = Parent,
542
				Color = ColorSequence.new(Color1, Color2),
543
				LightEmission = LightEmission,
544
				Size = Size,
545
				Texture = Texture,
546
				Transparency = Transparency,
547
				ZOffset = ZOffset,
548
				Acceleration = Accel,
549
				Drag = Drag,
550
				LockedToPart = LockedToPart,
551
				VelocityInheritance = VelocityInheritance,
552
				EmissionDirection = EmissionDirection,
553
				Enabled = Enabled,
554
				Lifetime = LifeTime,
555
				Rate = Rate,
556
				Rotation = Rotation,
557
				RotSpeed = RotSpeed,
558
				Speed = Speed,
559
				VelocitySpread = VelocitySpread,
560
			}
561
			return fp
562
		end;
563
	};
564
565
	CreateTemplate = {
566
	
567
	};
568
}
569
570
571
572
New = function(Object, Parent, Name, Data)
573
	local Object = Instance.new(Object)
574
	for Index, Value in pairs(Data or {}) do
575
		Object[Index] = Value
576
	end
577
	Object.Parent = Parent
578
	Object.Name = Name
579
	return Object
580
end
581
local halocolor = BrickColor.new("Pastel light blue")
582
local halocolor2 = BrickColor.new("Cool yellow")
583
local starcolor = BrickColor.new("Bright yellow")
584
local lunacolor = BrickColor.new("Navy blue")
585
local lunacolor2 = BrickColor.new("Bright blue")
586
local wepcolor = BrickColor.new("Really black")
587
local maincolor = BrickColor.new("Really black")
588
local m = Instance.new("Model",char)
589
local m2 = Instance.new("Model",char)
590
local m3 = Instance.new("Model",char)
591
local mw1 = Instance.new("Model",char)
592
local mw2 = Instance.new("Model",char)
593
594
595
gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
596
  local gui = it(GuiType)
597
  gui.Parent = parent
598
  gui.Text = text
599
  gui.BackgroundTransparency = backtrans
600
  gui.BackgroundColor3 = backcol
601
  gui.SizeConstraint = "RelativeXY"
602
  gui.TextXAlignment = "Center"
603
  gui.TextYAlignment = "Center"
604
  gui.Position = pos
605
  gui.Size = size
606
  gui.Font = "SourceSans"
607
  gui.FontSize = "Size14"
608
  gui.TextWrapped = false
609
  gui.TextStrokeTransparency = 0
610
  gui.TextColor = BrickColor.new("White")
611
  return gui
612
end
613
--------------------------- GUI STUFF
614
local basgui = it("GuiMain")
615
basgui.Parent = plr.PlayerGui
616
basgui.Name = "VISgui"
617
local fullscreenz = it("Frame")
618
fullscreenz.Parent = basgui
619
fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
620
fullscreenz.BackgroundTransparency = 1
621
fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
622
fullscreenz.Size = UDim2.new(1, 0, 1, 0)
623
fullscreenz.Position = UDim2.new(0, 0, 0, 0)
624
local imgl2 = Instance.new("ImageLabel",fullscreenz)
625
imgl2.BackgroundTransparency = 1
626
imgl2.BorderSizePixel = 0
627
imgl2.ImageTransparency = 0.5
628
imgl2.ImageColor3 = Color3.new(1,0,0)
629
imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
630
imgl2.Size = UDim2.new(0,1000,0,1000)
631
imgl2.Image = "rbxassetid://2325939897"
632
local techc = imgl2:Clone()
633
techc.Parent = fullscreenz
634
techc.ImageTransparency = 0
635
techc.Size = UDim2.new(0,900,0,900)
636
techc.Position = UDim2.new(0.75,-150,0.55,-150)
637
techc.ImageColor3 = Color3.new(1,0,0)
638
techc.Image = "rbxassetid://2273224484"
639
local circl = imgl2:Clone()
640
circl.Parent = fullscreenz
641
circl.ImageTransparency = 0
642
circl.Size = UDim2.new(0,550,0,550)
643
circl.Position = UDim2.new(0.75,25,0.55,25)
644
circl.ImageColor3 = Color3.new(0,0,0)
645
circl.Image = "rbxassetid://2312119891"
646
local circl2 = imgl2:Clone()
647
circl2.Parent = fullscreenz
648
circl2.ImageTransparency = 0
649
circl2.Size = UDim2.new(0,700,0,700)
650
circl2.Position = UDim2.new(0.75,-50,0.55,-50)
651
circl2.ImageColor3 = Color3.new(1,0,0)
652
circl2.Image = "rbxassetid://2312119891"
653
local imgl2b = imgl2:Clone()
654
imgl2b.Parent = fullscreenz
655
imgl2b.ImageTransparency = 0
656
imgl2b.Size = UDim2.new(0,800,0,800)
657
imgl2b.Position = UDim2.new(0.75,-100,0.55,-100)
658
imgl2b.ImageColor3 = Color3.new(0,0,0)
659
local ned = Instance.new("TextLabel",fullscreenz)
660
ned.ZIndex = 2
661
ned.Font = "Arcade"
662
ned.BackgroundTransparency = 1
663
ned.BorderSizePixel = 0.65
664
ned.Size = UDim2.new(0.3,0,0.2,0)
665
ned.Position = UDim2.new(0.7,0,0.8,0)
666
ned.TextColor3 = BrickColor.new("Really red").Color
667
ned.TextStrokeColor3 = BrickColor.new("Really black").Color
668
ned.TextScaled = true
669
ned.TextStrokeTransparency = 0
670
ned.Text = "ALONE"
671
ned.TextSize = 24
672
ned.Rotation = 1
673
ned.TextXAlignment = "Right"
674
ned.TextYAlignment = "Bottom"
675
676
local extrawingmod1 = Instance.new("Model",char)
677
local extrawingmod2 = Instance.new("Model",char)
678
679
function CreateParta(parent,transparency,reflectance,material,brickcolor)
680
local p = Instance.new("Part")
681
p.TopSurface = 0
682
p.BottomSurface = 0
683
p.Parent = parent
684
p.Size = Vector3.new(0.1,0.1,0.1)
685
p.Transparency = transparency
686
p.Reflectance = reflectance
687
p.CanCollide = false
688
p.Locked = true
689
p.BrickColor = brickcolor
690
p.Material = material
691
return p
692
end
693
694
function CreateMesh(parent,meshtype,x1,y1,z1)
695
local mesh = Instance.new("SpecialMesh",parent)
696
mesh.MeshType = meshtype
697
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
698
return mesh
699
end
700
701
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
702
local mesh = Instance.new("SpecialMesh",parent)
703
mesh.MeshType = "FileMesh"
704
mesh.MeshId = meshid
705
mesh.Scale = Vector3.new(x1,y1,z1)
706
return mesh
707
end
708
709
710
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
711
local mesh = Instance.new("SpecialMesh",parent)
712
mesh.MeshType = "FileMesh"
713
mesh.MeshId = meshid
714
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
715
mesh.Scale = Vector3.new(x1,y1,z1)
716
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
717
return mesh
718
end
719
720
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
721
local weld = Instance.new("Weld")
722
weld.Parent = parent
723
weld.Part0 = part0
724
weld.Part1 = part1
725
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
726
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
727
return weld
728
end
729
730
731
--------------
732
--------------
733
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
734
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))
735
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
736
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))
737
738
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
739
CreateMesh(handle,"Brick",0,0,0)
740
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))
741
local valuaring = 10
742
for i = 0, 49 do
743
	valuaring = valuaring + 10
744
rn = CreateParta(mw2,0,0,"Neon",halocolor)
745
CreateMesh(rn,"Brick",0.25,0.1,0.1)
746
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))
747
end
748
749
handlex = CreateParta(mw2,1,1,"Neon",maincolor)
750
CreateMesh(handle,"Brick",0,0,0)
751
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))
752
local valuaring = 10
753
for i = 0, 49 do
754
	valuaring = valuaring + 10
755
rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
756
CreateMesh(rn,"Brick",0.5,0.2,0.2)
757
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))
758
end
759
760
761
local handle = CreateParta(m,1,1,"Neon",maincolor)
762
CreateMesh(handle,"Brick",0.5,0.5,0.5)
763
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))
764
765
--- Left wing.
766
767
local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
768
CreateMesh(handle,"Brick",0.5,0.5,0.5)
769
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))
770
771
wed = CreateParta(mw1,0,0,"Neon",halocolor)
772
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
773
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))
774
wed = CreateParta(mw1,0,0,"Neon",halocolor)
775
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
776
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))
777
A0 = Instance.new('Attachment',wed)
778
A0.Position = vt(0,0.25,0.25)
779
wed = CreateParta(mw1,0,0,"Neon",halocolor)
780
CreateMesh(wed,"Wedge",0.05,0.5,3)
781
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))
782
A1 = Instance.new('Attachment',wed)
783
A1.Position = vt(0,-0.25,-2)
784
wed = CreateParta(mw1,0,0,"Neon",halocolor)
785
CreateMesh(wed,"Wedge",0.05,3,0.5)
786
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))
787
788
tl1 = Instance.new('Trail',wed)
789
tl1.Attachment0 = A1
790
tl1.Attachment1 = A0
791
tl1.Texture = "rbxassetid://2108945559"
792
tl1.LightEmission = 1
793
tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
794
tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
795
tl1.Lifetime = 0.6
796
797
798
local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
799
CreateMesh(handle,"Brick",0.5,0.5,0.5)
800
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))
801
802
wed = CreateParta(mw1,0,0,"Neon",halocolor)
803
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
804
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))
805
wed = CreateParta(mw1,0,0,"Neon",halocolor)
806
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
807
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))
808
A0 = Instance.new('Attachment',wed)
809
A0.Position = vt(0,0.25,0.25)
810
wed = CreateParta(mw1,0,0,"Neon",halocolor)
811
CreateMesh(wed,"Wedge",0.05,0.5,3)
812
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))
813
A1 = Instance.new('Attachment',wed)
814
A1.Position = vt(0,-0.25,-2)
815
wed = CreateParta(mw1,0,0,"Neon",halocolor)
816
CreateMesh(wed,"Wedge",0.05,3,0.5)
817
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))
818
819
tl2 = Instance.new('Trail',wed)
820
tl2.Attachment0 = A1
821
tl2.Attachment1 = A0
822
tl2.Texture = "rbxassetid://2108945559"
823
tl2.LightEmission = 1
824
tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
825
tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
826
tl2.Lifetime = 0.6
827
828
local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
829
CreateMesh(handle,"Brick",0.5,0.5,0.5)
830
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))
831
832
wed = CreateParta(mw1,0,0,"Neon",halocolor)
833
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
834
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))
835
wed = CreateParta(mw1,0,0,"Neon",halocolor)
836
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
837
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))
838
A0 = Instance.new('Attachment',wed)
839
A0.Position = vt(0,0.25,0.25)
840
wed = CreateParta(mw1,0,0,"Neon",halocolor)
841
CreateMesh(wed,"Wedge",0.05,0.5,3)
842
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))
843
A1 = Instance.new('Attachment',wed)
844
A1.Position = vt(0,-0.25,-2)
845
wed = CreateParta(mw1,0,0,"Neon",halocolor)
846
CreateMesh(wed,"Wedge",0.05,3,0.5)
847
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))
848
849
tl3 = Instance.new('Trail',wed)
850
tl3.Attachment0 = A1
851
tl3.Attachment1 = A0
852
tl3.Texture = "rbxassetid://2108945559"
853
tl3.LightEmission = 1
854
tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
855
tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
856
tl3.Lifetime = 0.6
857
858
tl1.Enabled = false
859
tl2.Enabled = false
860
tl3.Enabled = false
861
local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
862
CreateMesh(handle,"Brick",0.5,0.5,0.5)
863
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))
864
865
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
866
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
867
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))
868
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
869
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
870
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))
871
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
872
CreateMesh(wed,"Wedge",0.05,0.5,3)
873
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))
874
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
875
CreateMesh(wed,"Wedge",0.05,3,0.5)
876
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))
877
878
local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
879
CreateMesh(handle,"Brick",0.5,0.5,0.5)
880
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))
881
882
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
883
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
884
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))
885
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
886
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
887
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))
888
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
889
CreateMesh(wed,"Wedge",0.05,0.5,3)
890
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))
891
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
892
CreateMesh(wed,"Wedge",0.05,3,0.5)
893
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))
894
895
local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
896
CreateMesh(handle,"Brick",0.5,0.5,0.5)
897
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))
898
899
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
900
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
901
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))
902
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
903
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
904
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))
905
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
906
CreateMesh(wed,"Wedge",0.05,0.5,3)
907
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))
908
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
909
CreateMesh(wed,"Wedge",0.05,3,0.5)
910
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))
911
912
-- Right wing.
913
914
local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
915
CreateMesh(handle,"Brick",0.5,0.5,0.5)
916
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))
917
918
wed = CreateParta(mw2,0,0,"Neon",halocolor)
919
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
920
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))
921
A0 = Instance.new('Attachment',wed)
922
A0.Position = vt(0,0.25,0.25)
923
wed = CreateParta(mw2,0,0,"Neon",halocolor)
924
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
925
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))
926
wed = CreateParta(mw2,0,0,"Neon",halocolor)
927
CreateMesh(wed,"Wedge",0.05,0.5,3)
928
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))
929
wed = CreateParta(mw2,0,0,"Neon",halocolor)
930
CreateMesh(wed,"Wedge",0.05,3,0.5)
931
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))
932
A1 = Instance.new('Attachment',wed)
933
A1.Position = vt(0,2,0.25)
934
935
tr1 = Instance.new('Trail',wed)
936
tr1.Attachment0 = A1
937
tr1.Attachment1 = A0
938
tr1.Texture = "rbxassetid://2108945559"
939
tr1.LightEmission = 1
940
tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
941
tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
942
tr1.Lifetime = 0.6
943
944
local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
945
CreateMesh(handle,"Brick",0.5,0.5,0.5)
946
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))
947
948
wed = CreateParta(mw2,0,0,"Neon",halocolor)
949
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
950
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))
951
A0 = Instance.new('Attachment',wed)
952
A0.Position = vt(0,0.25,0.25)
953
wed = CreateParta(mw2,0,0,"Neon",halocolor)
954
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
955
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))
956
wed = CreateParta(mw2,0,0,"Neon",halocolor)
957
CreateMesh(wed,"Wedge",0.05,0.5,3)
958
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))
959
wed = CreateParta(mw2,0,0,"Neon",halocolor)
960
CreateMesh(wed,"Wedge",0.05,3,0.5)
961
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))
962
A1 = Instance.new('Attachment',wed)
963
A1.Position = vt(0,2,0.25)
964
965
tr2 = Instance.new('Trail',wed)
966
tr2.Attachment0 = A1
967
tr2.Attachment1 = A0
968
tr2.Texture = "rbxassetid://2108945559"
969
tr2.LightEmission = 1
970
tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
971
tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
972
tr2.Lifetime = 0.6
973
974
local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
975
CreateMesh(handle,"Brick",0.5,0.5,0.5)
976
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))
977
978
wed = CreateParta(mw2,0,0,"Neon",halocolor)
979
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
980
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))
981
A0 = Instance.new('Attachment',wed)
982
A0.Position = vt(0,0.25,0.25)
983
wed = CreateParta(mw2,0,0,"Neon",halocolor)
984
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
985
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))
986
wed = CreateParta(mw2,0,0,"Neon",halocolor)
987
CreateMesh(wed,"Wedge",0.05,0.5,3)
988
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))
989
wed = CreateParta(mw2,0,0,"Neon",halocolor)
990
CreateMesh(wed,"Wedge",0.05,3,0.5)
991
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))
992
A1 = Instance.new('Attachment',wed)
993
A1.Position = vt(0,2,0.25)
994
995
tr3 = Instance.new('Trail',wed)
996
tr3.Attachment0 = A1
997
tr3.Attachment1 = A0
998
tr3.Texture = "rbxassetid://2108945559"
999
tr3.LightEmission = 1
1000
tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
1001
tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
1002
tr3.Lifetime = 0.6
1003
1004
1005
local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
1006
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1007
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))
1008
1009
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1010
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1011
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))
1012
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1013
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1014
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))
1015
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1016
CreateMesh(wed,"Wedge",0.05,0.5,3)
1017
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))
1018
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1019
CreateMesh(wed,"Wedge",0.05,3,0.5)
1020
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))
1021
1022
local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
1023
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1024
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))
1025
1026
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1027
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1028
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))
1029
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1030
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1031
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))
1032
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1033
CreateMesh(wed,"Wedge",0.05,0.5,3)
1034
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))
1035
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1036
CreateMesh(wed,"Wedge",0.05,3,0.5)
1037
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))
1038
1039
local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
1040
CreateMesh(handle,"Brick",0.5,0.5,0.5)
1041
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))
1042
1043
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1044
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1045
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))
1046
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1047
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
1048
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))
1049
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1050
CreateMesh(wed,"Wedge",0.05,0.5,3)
1051
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))
1052
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
1053
CreateMesh(wed,"Wedge",0.05,3,0.5)
1054
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))
1055
1056
---- HERES THE RING
1057
1058
1059
--[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1060
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1061
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))
1062
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1063
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1064
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))
1065
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1066
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1067
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))
1068
1069
1070
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1071
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1072
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))
1073
1074
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1075
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1076
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))
1077
1078
1079
1080
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1081
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1082
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))
1083
1084
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1085
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1086
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))
1087
1088
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1089
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1090
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))
1091
1092
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1093
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1094
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))
1095
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1096
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1097
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))
1098
1099
--- second ring
1100
1101
ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
1102
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
1103
CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1104
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1105
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
1106
CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1107
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1108
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
1109
CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1110
1111
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1112
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1113
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))
1114
1115
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1116
CreateMesh(gan,"Brick",1.075,0.1,1.075)
1117
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))
1118
1119
1120
1121
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1122
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1123
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))
1124
1125
gan = CreateParta(m2,0,0,"Neon",halocolor2)
1126
CreateMesh(gan,"Brick",1.095,0.035,1.095)
1127
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))
1128
1129
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
1130
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
1131
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))
1132
1133
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1134
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
1135
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))
1136
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
1137
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
1138
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))]]--
1139
1140
1141
1142
for i, v in pairs(m:GetChildren()) do
1143
if v:IsA("Part") then
1144
v.BrickColor = BrickColor.new("Really black")
1145
v.Material = "Glass"
1146
end
1147
end
1148
for i, v in pairs(m2:GetChildren()) do
1149
if v:IsA("Part") then
1150
v.BrickColor = BrickColor.new("Crimson")
1151
v.Material = "Granite"
1152
end
1153
end
1154
for i, v in pairs(m3:GetChildren()) do
1155
if v:IsA("Part") then
1156
v.BrickColor = BrickColor.new("Really red")
1157
v.Material = "Neon"
1158
end
1159
end
1160
for i, v in pairs(mw2:GetChildren()) do
1161
if v:IsA("Part") then
1162
v.BrickColor = BrickColor.new("Really red")
1163
v.Material = "Neon"
1164
end
1165
end
1166
for i, v in pairs(mw1:GetChildren()) do
1167
if v:IsA("Part") then
1168
v.Transparency = 1
1169
v.BrickColor = BrickColor.new("Really red")
1170
v.Material = "Neon"
1171
end
1172
end
1173
for i, v in pairs(extrawingmod1:GetChildren()) do
1174
if v:IsA("Part") then
1175
v.Transparency = 1
1176
v.BrickColor = BrickColor.new("White")
1177
v.Material = "Neon"
1178
end
1179
end
1180
for i, v in pairs(extrawingmod2:GetChildren()) do
1181
if v:IsA("Part") then
1182
v.Transparency = 1
1183
v.BrickColor = BrickColor.new("White")
1184
v.Material = "Neon"
1185
end
1186
end
1187
local MAINRUINCOLOR = BrickColor.new("Really red")
1188
------
1189
1190
1191
function RemoveOutlines(part)
1192
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1193
end
1194
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1195
  local Part = Create("Part")({
1196
    Parent = Parent,
1197
    Reflectance = Reflectance,
1198
    Transparency = Transparency,
1199
    CanCollide = false,
1200
    Locked = true,
1201
    BrickColor = BrickColor.new(tostring(BColor)),
1202
    Name = Name,
1203
    Size = Size,
1204
    Material = Material
1205
  })
1206
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1207
  RemoveOutlines(Part)
1208
  return Part
1209
end
1210
function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1211
  local Msh = Create(Mesh)({
1212
    Parent = Part,
1213
    Offset = OffSet,
1214
    Scale = Scale
1215
  })
1216
  if Mesh == "SpecialMesh" then
1217
    Msh.MeshType = MeshType
1218
    Msh.MeshId = MeshId
1219
  end
1220
  return Msh
1221
end
1222
function CreateWeld(Parent, Part0, Part1, C0, C1)
1223
  local Weld = Create("Weld")({
1224
    Parent = Parent,
1225
    Part0 = Part0,
1226
    Part1 = Part1,
1227
    C0 = C0,
1228
    C1 = C1
1229
  })
1230
  return Weld
1231
end
1232
1233
Character=Player.Character 
1234
PlayerGui=Player.PlayerGui 
1235
Backpack=Player.Backpack 
1236
Torso=Character.Torso 
1237
Head=Character.Head 
1238
Humanoid=Character.Humanoid
1239
m=Instance.new('Model',Character)
1240
LeftArm=Character["Left Arm"] 
1241
LeftLeg=Character["Left Leg"] 
1242
RightArm=Character["Right Arm"] 
1243
RightLeg=Character["Right Leg"] 
1244
LS=Torso["Left Shoulder"] 
1245
LH=Torso["Left Hip"] 
1246
RS=Torso["Right Shoulder"] 
1247
RH=Torso["Right Hip"] 
1248
Face = Head.face
1249
Neck=Torso.Neck
1250
it=Instance.new
1251
attacktype=1
1252
vt=Vector3.new
1253
cf=CFrame.new
1254
euler=CFrame.fromEulerAnglesXYZ
1255
angles=CFrame.Angles
1256
cloaked=false
1257
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1258
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1259
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1260
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1261
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1262
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1263
RootPart=Character.HumanoidRootPart
1264
RootJoint=RootPart.RootJoint
1265
RootCF=euler(-1.57,0,3.14)
1266
attack = false 
1267
attackdebounce = false 
1268
deb=false
1269
equipped=true
1270
hand=false
1271
combo=0
1272
mana=0
1273
trispeed=.2
1274
attackmode='none'
1275
local idle=0
1276
local Anim="Idle"
1277
local Effects={}
1278
local gun=false
1279
local shoot=false
1280
local sine = 0
1281
local change = 1
1282
1283
function RecolorTextAndRename(name,col1,col2,font)
1284
modet.TextStrokeColor3 = col2
1285
modet.TextColor3 = col1
1286
modet.Font = font
1287
modet.Text = name
1288
techc.ImageColor3 = col2
1289
circl.ImageColor3 = col2
1290
circl2.ImageColor3 = col1
1291
imgl2.ImageColor3 = col1
1292
imgl2b.ImageColor3 = col2
1293
ned.Text = name
1294
ned.TextColor3 = col1
1295
ned.TextStrokeColor3 = col2
1296
end
1297
--save shoulders 
1298
RSH, LSH=nil, nil 
1299
--welds 
1300
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1301
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1302
LH=Torso["Left Hip"]
1303
RH=Torso["Right Hip"]
1304
TorsoColor=Torso.BrickColor
1305
function NoOutline(Part)
1306
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1307
end
1308
ch=Character
1309
RSH=ch.Torso["Right Shoulder"] 
1310
LSH=ch.Torso["Left Shoulder"] 
1311
-- 
1312
RSH.Parent=nil 
1313
LSH.Parent=nil 
1314
-- 
1315
RW.Name="Right Shoulder"
1316
RW.Part0=ch.Torso 
1317
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1318
RW.C1=cf(0, 0.5, 0) 
1319
RW.Part1=ch["Right Arm"] 
1320
RW.Parent=ch.Torso 
1321
-- 
1322
LW.Name="Left Shoulder"
1323
LW.Part0=ch.Torso 
1324
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1325
LW.C1=cf(0, 0.5, 0) 
1326
LW.Part1=ch["Left Arm"] 
1327
LW.Parent=ch.Torso 
1328
1329
local Stats=Instance.new("BoolValue")
1330
Stats.Name="Stats"
1331
Stats.Parent=Character
1332
local Atk=Instance.new("NumberValue")
1333
Atk.Name="Damage"
1334
Atk.Parent=Stats
1335
Atk.Value=1
1336
local Def=Instance.new("NumberValue")
1337
Def.Name="Defense"
1338
Def.Parent=Stats
1339
Def.Value=1
1340
local Speed=Instance.new("NumberValue")
1341
Speed.Name="Speed"
1342
Speed.Parent=Stats
1343
Speed.Value=1
1344
local Mvmt=Instance.new("NumberValue")
1345
Mvmt.Name="Movement"
1346
Mvmt.Parent=Stats
1347
Mvmt.Value=1
1348
1349
local donum=0
1350
 
1351
1352
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1353
local fp=it("Part")
1354
fp.formFactor=formfactor 
1355
fp.Parent=parent
1356
fp.Reflectance=reflectance
1357
fp.Transparency=transparency
1358
fp.CanCollide=false 
1359
fp.Locked=true
1360
fp.BrickColor=brickcolor
1361
fp.Name=name
1362
fp.Size=size
1363
fp.Position=Torso.Position 
1364
NoOutline(fp)
1365
fp.Material="SmoothPlastic"
1366
fp:BreakJoints()
1367
return fp 
1368
end 
1369
 
1370
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1371
local mesh=it(Mesh) 
1372
mesh.Parent=part
1373
if Mesh=="SpecialMesh" then
1374
mesh.MeshType=meshtype
1375
if meshid~="nil" then
1376
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1377
end
1378
end
1379
mesh.Offset=offset
1380
mesh.Scale=scale
1381
return mesh
1382
end
1383
 
1384
function weld(parent,part0,part1,c0)
1385
local weld=it("Weld") 
1386
weld.Parent=parent
1387
weld.Part0=part0 
1388
weld.Part1=part1 
1389
weld.C0=c0
1390
return weld
1391
end
1392
 
1393
local Color1=Torso.BrickColor
1394
1395
local bodvel=Instance.new("BodyVelocity")
1396
local bg=Instance.new("BodyGyro")
1397
1398
--------- SazEreno's Artificial HB --------------
1399
ArtificialHB = Instance.new("BindableEvent", script)
1400
ArtificialHB.Name = "ArtificialHB"
1401
1402
script:WaitForChild("ArtificialHB")
1403
Frame_Speed = 1 / 60
1404
frame = Frame_Speed
1405
tf = 0
1406
allowframeloss = false
1407
tossremainder = false
1408
lastframe = tick()
1409
script.ArtificialHB:Fire()
1410
1411
game:GetService("RunService").Heartbeat:connect(function(s, p)
1412
	tf = tf + s
1413
	if tf >= frame then
1414
		if allowframeloss then
1415
			script.ArtificialHB:Fire()
1416
			lastframe = tick()
1417
		else
1418
			for i = 1, math.floor(tf / frame) do
1419
				script.ArtificialHB:Fire()
1420
			end
1421
		lastframe = tick()
1422
		end
1423
		if tossremainder then
1424
			tf = 0
1425
		else
1426
			tf = tf - frame * math.floor(tf / frame)
1427
		end
1428
	end
1429
end)
1430
1431
------------------
1432
function swait(num)
1433
function swait(num)
1434
if num==0 or num==nil then
1435
game:service'RunService'.Stepped:wait(0)
1436
else
1437
for i=0,num do
1438
game:service'RunService'.Stepped:wait(0)
1439
end
1440
end
1441
end
1442
end
1443
1444
-------- RAINBOW LEAVE IT TO ME
1445
local r = 255
1446
local g = 0
1447
local b = 0
1448
coroutine.resume(coroutine.create(function()
1449
while wait() do
1450
	for i = 0, 254/5 do
1451
		swait()
1452
		g = g + 5
1453
	end
1454
	for i = 0, 254/5 do
1455
		swait()
1456
		r = r - 5
1457
	end
1458
	for i = 0, 254/5 do
1459
		swait()
1460
		b = b + 5
1461
	end
1462
	for i = 0, 254/5 do
1463
		swait()
1464
		g = g - 5
1465
	end
1466
	for i = 0, 254/5 do
1467
		swait()
1468
		r = r + 5
1469
	end
1470
	for i = 0, 254/5 do
1471
		swait()
1472
		b = b - 5
1473
	end
1474
end
1475
end))
1476
 
1477
 
1478
so = function(id,par,vol,pit) 
1479
coroutine.resume(coroutine.create(function()
1480
local sou = Instance.new("Sound",par or workspace)
1481
sou.Volume=vol
1482
sou.Pitch=pit or 1
1483
sou.SoundId=id
1484
swait() 
1485
sou:play() 
1486
game:GetService("Debris"):AddItem(sou,6)
1487
end))
1488
end
1489
 
1490
function clerp(a,b,t) 
1491
local qa = {QuaternionFromCFrame(a)}
1492
local qb = {QuaternionFromCFrame(b)} 
1493
local ax, ay, az = a.x, a.y, a.z 
1494
local bx, by, bz = b.x, b.y, b.z
1495
local _t = 1-t
1496
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1497
end 
1498
 
1499
function QuaternionFromCFrame(cf) 
1500
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1501
local trace = m00 + m11 + m22 
1502
if trace > 0 then 
1503
local s = math.sqrt(1 + trace) 
1504
local recip = 0.5/s 
1505
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1506
else 
1507
local i = 0 
1508
if m11 > m00 then
1509
i = 1
1510
end
1511
if m22 > (i == 0 and m00 or m11) then 
1512
i = 2 
1513
end 
1514
if i == 0 then 
1515
local s = math.sqrt(m00-m11-m22+1) 
1516
local recip = 0.5/s 
1517
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1518
elseif i == 1 then 
1519
local s = math.sqrt(m11-m22-m00+1) 
1520
local recip = 0.5/s 
1521
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1522
elseif i == 2 then 
1523
local s = math.sqrt(m22-m00-m11+1) 
1524
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1525
end 
1526
end 
1527
end
1528
 
1529
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1530
local xs, ys, zs = x + x, y + y, z + z 
1531
local wx, wy, wz = w*xs, w*ys, w*zs 
1532
local xx = x*xs 
1533
local xy = x*ys 
1534
local xz = x*zs 
1535
local yy = y*ys 
1536
local yz = y*zs 
1537
local zz = z*zs 
1538
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)) 
1539
end
1540
 
1541
function QuaternionSlerp(a, b, t) 
1542
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1543
local startInterp, finishInterp; 
1544
if cosTheta >= 0.0001 then 
1545
if (1 - cosTheta) > 0.0001 then 
1546
local theta = math.acos(cosTheta) 
1547
local invSinTheta = 1/math.sin(theta) 
1548
startInterp = math.sin((1-t)*theta)*invSinTheta 
1549
finishInterp = math.sin(t*theta)*invSinTheta  
1550
else 
1551
startInterp = 1-t 
1552
finishInterp = t 
1553
end 
1554
else 
1555
if (1+cosTheta) > 0.0001 then 
1556
local theta = math.acos(-cosTheta) 
1557
local invSinTheta = 1/math.sin(theta) 
1558
startInterp = math.sin((t-1)*theta)*invSinTheta 
1559
finishInterp = math.sin(t*theta)*invSinTheta 
1560
else 
1561
startInterp = t-1 
1562
finishInterp = t 
1563
end 
1564
end 
1565
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 
1566
end
1567
1568
local function CFrameFromTopBack(at, top, back)
1569
local right = top:Cross(back)
1570
return CFrame.new(at.x, at.y, at.z,
1571
right.x, top.x, back.x,
1572
right.y, top.y, back.y,
1573
right.z, top.z, back.z)
1574
end
1575
1576
function Triangle(a, b, c)
1577
local edg1 = (c-a):Dot((b-a).unit)
1578
local edg2 = (a-b):Dot((c-b).unit)
1579
local edg3 = (b-c):Dot((a-c).unit)
1580
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1581
a, b, c = a, b, c
1582
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1583
a, b, c = b, c, a
1584
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1585
a, b, c = c, a, b
1586
else
1587
assert(false, "unreachable")
1588
end
1589
 
1590
local len1 = (c-a):Dot((b-a).unit)
1591
local len2 = (b-a).magnitude - len1
1592
local width = (a + (b-a).unit*len1 - c).magnitude
1593
 
1594
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1595
 
1596
local list = {}
1597
 
1598
if len1 > 0.01 then
1599
local w1 = Instance.new('WedgePart', m)
1600
game:GetService("Debris"):AddItem(w1,5)
1601
w1.Material = "SmoothPlastic"
1602
w1.FormFactor = 'Custom'
1603
w1.BrickColor = BrickColor.new("Really red")
1604
w1.Transparency = 0
1605
w1.Reflectance = 0
1606
w1.Material = "SmoothPlastic"
1607
w1.CanCollide = false
1608
local l1 = Instance.new("PointLight",w1)
1609
l1.Color = Color3.new(170,0,0)
1610
NoOutline(w1)
1611
local sz = Vector3.new(0.2, width, len1)
1612
w1.Size = sz
1613
local sp = Instance.new("SpecialMesh",w1)
1614
sp.MeshType = "Wedge"
1615
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1616
w1:BreakJoints()
1617
w1.Anchored = true
1618
w1.Parent = workspace
1619
w1.Transparency = 0.7
1620
table.insert(Effects,{w1,"Disappear",.01})
1621
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1622
table.insert(list,w1)
1623
end
1624
 
1625
if len2 > 0.01 then
1626
local w2 = Instance.new('WedgePart', m)
1627
game:GetService("Debris"):AddItem(w2,5)
1628
w2.Material = "SmoothPlastic"
1629
w2.FormFactor = 'Custom'
1630
w2.BrickColor = BrickColor.new("Really red")
1631
w2.Transparency = 0
1632
w2.Reflectance = 0
1633
w2.Material = "SmoothPlastic"
1634
w2.CanCollide = false
1635
local l2 = Instance.new("PointLight",w2)
1636
l2.Color = Color3.new(170,0,0)
1637
NoOutline(w2)
1638
local sz = Vector3.new(0.2, width, len2)
1639
w2.Size = sz
1640
local sp = Instance.new("SpecialMesh",w2)
1641
sp.MeshType = "Wedge"
1642
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1643
w2:BreakJoints()
1644
w2.Anchored = true
1645
w2.Parent = workspace
1646
w2.Transparency = 0.7
1647
table.insert(Effects,{w2,"Disappear",.01})
1648
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1649
table.insert(list,w2)
1650
end
1651
return unpack(list)
1652
end
1653
 
1654
1655
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1656
  if hit.Parent == nil then
1657
    return
1658
  end
1659
  local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1660
  for _, v in pairs(hit.Parent:children()) do
1661
    if v:IsA("Humanoid") then
1662
      h = v
1663
    end
1664
  end
1665
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1666
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1667
      return
1668
    end
1669
    local c = Create("ObjectValue")({
1670
      Name = "creator",
1671
      Value = game:GetService("Players").LocalPlayer,
1672
      Parent = h
1673
    })
1674
    game:GetService("Debris"):AddItem(c, 0.5)
1675
    if HitSound ~= nil and HitPitch ~= nil then
1676
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1677
    end
1678
    local Damage = math.random(minim, maxim)
1679
    local blocked = false
1680
    local block = hit.Parent:findFirstChild("Block")
1681
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1682
      blocked = true
1683
      block.Value = block.Value - 1
1684
      print(block.Value)
1685
    end
1686
    if blocked == false then
1687
      HitHealth = h.Health
1688
      h.MaxHealth = 100
1689
      h.Health = h.Health - Damage
1690
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1691
        print("gained kill")
1692
        dmg(h.Parent)
1693
      end
1694
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1695
    else
1696
      h.Health = h.Health - Damage / 2
1697
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1698
    end
1699
    if Type == "Knockdown" then
1700
      local hum = hit.Parent.Humanoid
1701
      hum.PlatformStand = true
1702
      coroutine.resume(coroutine.create(function(HHumanoid)
1703
        swait(1)
1704
        HHumanoid.PlatformStand = false
1705
      end), hum)
1706
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1707
      local bodvol = Create("BodyVelocity")({
1708
        velocity = angle * knockback,
1709
        P = 5000,
1710
        maxForce = Vector3.new(8000, 8000, 8000),
1711
        Parent = hit
1712
      })
1713
      local rl = Create("BodyAngularVelocity")({
1714
        P = 3000,
1715
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1716
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1717
        Parent = hit
1718
      })
1719
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1720
      game:GetService("Debris"):AddItem(rl, 0.5)
1721
    elseif Type == "Normal" then
1722
      local vp = Create("BodyVelocity")({
1723
        P = 500,
1724
        maxForce = Vector3.new(math.huge, 0, math.huge),
1725
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1726
      })
1727
      if knockback > 0 then
1728
        vp.Parent = hit.Parent.Head
1729
      end
1730
      game:GetService("Debris"):AddItem(vp, 0.5)
1731
    elseif Type == "Up" then
1732
      local bodyVelocity = Create("BodyVelocity")({
1733
        velocity = Vector3.new(0, 20, 0),
1734
        P = 5000,
1735
        maxForce = Vector3.new(8000, 8000, 8000),
1736
        Parent = hit
1737
      })
1738
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1739
      local bodyVelocity = Create("BodyVelocity")({
1740
        velocity = Vector3.new(0, 20, 0),
1741
        P = 5000,
1742
        maxForce = Vector3.new(8000, 8000, 8000),
1743
        Parent = hit
1744
      })
1745
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1746
    elseif Type == "Leech" then
1747
      local hum = hit.Parent.Humanoid
1748
      if hum ~= nil then
1749
        for i = 0, 2 do
1750
          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)
1751
        end
1752
        Humanoid.Health = Humanoid.Health + 10
1753
      end
1754
    elseif Type == "UpKnock" then
1755
      local hum = hit.Parent.Humanoid
1756
      hum.PlatformStand = true
1757
      if hum ~= nil then
1758
        hitr = true
1759
      end
1760
      coroutine.resume(coroutine.create(function(HHumanoid)
1761
        swait(5)
1762
        HHumanoid.PlatformStand = false
1763
        hitr = false
1764
      end), hum)
1765
      local bodyVelocity = Create("BodyVelocity")({
1766
        velocity = Vector3.new(0, 20, 0),
1767
        P = 5000,
1768
        maxForce = Vector3.new(8000, 8000, 8000),
1769
        Parent = hit
1770
      })
1771
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1772
      local bodyVelocity = Create("BodyVelocity")({
1773
        velocity = Vector3.new(0, 20, 0),
1774
        P = 5000,
1775
        maxForce = Vector3.new(8000, 8000, 8000),
1776
        Parent = hit
1777
      })
1778
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1779
    elseif Type == "Snare" then
1780
      local bp = Create("BodyPosition")({
1781
        P = 2000,
1782
        D = 100,
1783
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1784
        position = hit.Parent.Torso.Position,
1785
        Parent = hit.Parent.Torso
1786
      })
1787
      game:GetService("Debris"):AddItem(bp, 1)
1788
    elseif Type == "Slashnare" then
1789
      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)
1790
      for i = 1, math.random(4, 5) do
1791
        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)
1792
      end
1793
      local bp = Create("BodyPosition")({
1794
        P = 2000,
1795
        D = 100,
1796
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1797
        position = hit.Parent.Torso.Position,
1798
        Parent = hit.Parent.Torso
1799
      })
1800
      game:GetService("Debris"):AddItem(bp, 1)
1801
    elseif Type == "Spike" then
1802
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1803
      local bp = Create("BodyPosition")({
1804
        P = 2000,
1805
        D = 100,
1806
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1807
        position = hit.Parent.Torso.Position,
1808
        Parent = hit.Parent.Torso
1809
      })
1810
      game:GetService("Debris"):AddItem(bp, 1)
1811
    elseif Type == "Freeze" then
1812
      local BodPos = Create("BodyPosition")({
1813
        P = 50000,
1814
        D = 1000,
1815
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1816
        position = hit.Parent.Torso.Position,
1817
        Parent = hit.Parent.Torso
1818
      })
1819
      local BodGy = Create("BodyGyro")({
1820
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1821
        P = 20000,
1822
        Parent = hit.Parent.Torso,
1823
        cframe = hit.Parent.Torso.CFrame
1824
      })
1825
      hit.Parent.Torso.Anchored = true
1826
      coroutine.resume(coroutine.create(function(Part)
1827
        swait(1.5)
1828
        Part.Anchored = false
1829
      end), hit.Parent.Torso)
1830
      game:GetService("Debris"):AddItem(BodPos, 3)
1831
      game:GetService("Debris"):AddItem(BodGy, 3)
1832
    end
1833
    local debounce = Create("BoolValue")({
1834
      Name = "DebounceHit",
1835
      Parent = hit.Parent,
1836
      Value = true
1837
    })
1838
    game:GetService("Debris"):AddItem(debounce, Delay)
1839
    c = Instance.new("ObjectValue")
1840
    c.Name = "creator"
1841
    c.Value = Player
1842
    c.Parent = h
1843
    game:GetService("Debris"):AddItem(c, 0.5)
1844
  end
1845
end
1846
function ShowDamage(Pos, Text, Time, Color)
1847
  local Rate = 0.03333333333333333
1848
  local Pos = Pos or Vector3.new(0, 0, 0)
1849
  local Text = Text or ""
1850
  local Time = Time or 2
1851
  local Color = Color or Color3.new(1, 0, 1)
1852
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1853
  EffectPart.Anchored = true
1854
  local BillboardGui = Create("BillboardGui")({
1855
    Size = UDim2.new(3, 0, 3, 0),
1856
    Adornee = EffectPart,
1857
    Parent = EffectPart
1858
  })
1859
  local TextLabel = Create("TextLabel")({
1860
    BackgroundTransparency = 1,
1861
    Size = UDim2.new(1, 0, 1, 0),
1862
    Text = Text,
1863
    TextColor3 = Color,
1864
    TextScaled = true,
1865
    Font = Enum.Font.ArialBold,
1866
    Parent = BillboardGui
1867
  })
1868
  game.Debris:AddItem(EffectPart, Time + 0.1)
1869
  EffectPart.Parent = game:GetService("Workspace")
1870
  delay(0, function()
1871
    local Frames = Time / Rate
1872
    for Frame = 1, Frames do
1873
      wait(Rate)
1874
      local Percent = Frame / Frames
1875
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1876
      TextLabel.TextTransparency = Percent
1877
    end
1878
    if EffectPart and EffectPart.Parent then
1879
      EffectPart:Destroy()
1880
    end
1881
  end)
1882
end
1883
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1884
  for _, c in pairs(workspace:children()) do
1885
    local hum = c:findFirstChildOfClass("Humanoid")
1886
    if hum ~= nil then
1887
      local head = c:findFirstChild("Head")
1888
      if head ~= nil then
1889
        local targ = head.Position - Part.Position
1890
        local mag = targ.magnitude
1891
        if magni >= mag and c.Name ~= Player.Name then
1892
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1893
        end
1894
      end
1895
    end
1896
  end
1897
end
1898
1899
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1900
  for _, c in pairs(workspace:children()) do
1901
    local hum = c:findFirstChild("Humanoid")
1902
    if hum ~= nil then
1903
      local head = c:findFirstChild("Torso")
1904
      if head ~= nil then
1905
        local targ = head.Position - Part.Position
1906
        local mag = targ.magnitude
1907
        if magni >= mag and c.Name ~= Player.Name then
1908
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
1909
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1910
        end
1911
      end
1912
    end
1913
  end
1914
end
1915
1916
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1917
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1918
end 
1919
1920
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1921
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1922
prt.Anchored=true
1923
prt.CFrame=cframe
1924
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1925
--http://www.roblox.com/asset/?id=4770560
1926
game:GetService("Debris"):AddItem(prt,2)
1927
CF=prt.CFrame
1928
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
1929
for i=0,1,0.2 do
1930
wait()
1931
Part.CFrame=CF*cf(0,0,-0.4)
1932
end
1933
for i=0,1,delay do
1934
wait()
1935
--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)
1936
Mesh.Scale=Mesh.Scale
1937
end
1938
for i=0,1,0.1 do
1939
wait()
1940
Part.Transparency=i
1941
end
1942
Part.Parent=nil
1943
end),prt,msh,CF)
1944
end
1945
 
1946
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1947
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1948
prt.Anchored=true
1949
prt.Material = "Neon"
1950
prt.CFrame=cframe
1951
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1952
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1953
game:GetService("Debris"):AddItem(prt,5)
1954
coroutine.resume(coroutine.create(function(Part,Mesh) 
1955
for i=0,1,delay do
1956
swait()
1957
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1958
Part.Transparency=i
1959
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1960
end
1961
Part.Parent=nil
1962
end),prt,msh)
1963
end
1964
1965
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1966
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1967
prt.Anchored=true
1968
prt.Material = "Neon"
1969
prt.CFrame=cframe
1970
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1971
game:GetService("Debris"):AddItem(prt,5)
1972
coroutine.resume(coroutine.create(function(Part,Mesh) 
1973
	local rtype = rottype
1974
for i=0,1,delay do
1975
swait()
1976
if rtype == 1 then
1977
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1978
elseif rtype == 2 then
1979
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1980
end
1981
Part.Transparency=i
1982
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1983
end
1984
Part.Parent=nil
1985
end),prt,msh)
1986
end
1987
1988
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1989
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1990
prt.Anchored=true
1991
prt.CFrame=cframe
1992
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1993
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1994
game:GetService("Debris"):AddItem(prt,5)
1995
coroutine.resume(coroutine.create(function(Part,Mesh) 
1996
for i=0,1,delay do
1997
wait()
1998
Part.Transparency=i
1999
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2000
end
2001
Part.Parent=nil
2002
end),prt,msh)
2003
end
2004
2005
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2006
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2007
prt.Anchored=true
2008
prt.Material = "Neon"
2009
prt.CFrame=cframe
2010
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2011
game:GetService("Debris"):AddItem(prt,5)
2012
coroutine.resume(coroutine.create(function(Part,Mesh) 
2013
	local rtype = rottype
2014
for i=0,1,delay do
2015
swait()
2016
if rtype == 1 then
2017
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2018
elseif rtype == 2 then
2019
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2020
end
2021
Part.Transparency=i
2022
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2023
end
2024
Part.Parent=nil
2025
end),prt,msh)
2026
end
2027
2028
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2029
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
2030
prt.Anchored=true
2031
prt.Material = "Neon"
2032
prt.CFrame=cframe
2033
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2034
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
2035
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2036
game:GetService("Debris"):AddItem(prt,5)
2037
coroutine.resume(coroutine.create(function(Part,Mesh) 
2038
	local rtype = rottype
2039
for i=0,1,delay do
2040
swait()
2041
if rtype == 1 then
2042
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2043
elseif rtype == 2 then
2044
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2045
end
2046
dec.Transparency=i
2047
dec2.Transparency=i
2048
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2049
end
2050
Part.Parent=nil
2051
end),prt,msh)
2052
end
2053
2054
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
2055
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2056
prt.Anchored=true
2057
prt.Material = "Neon"
2058
prt.CFrame=cframe
2059
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
2060
game:GetService("Debris"):AddItem(prt,5)
2061
coroutine.resume(coroutine.create(function(Part,Mesh) 
2062
	local rtype = rottype
2063
for i=0,1,delay do
2064
swait()
2065
if rtype == 1 then
2066
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2067
elseif rtype == 2 then
2068
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2069
end
2070
prt.Transparency=i
2071
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2072
end
2073
Part.Parent=nil
2074
end),prt,msh)
2075
end
2076
2077
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
2078
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2079
prt.Anchored=true
2080
prt.Material = "Neon"
2081
prt.CFrame=cframe
2082
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
2083
game:GetService("Debris"):AddItem(prt,5)
2084
coroutine.resume(coroutine.create(function(Part,Mesh) 
2085
	local rtype = rottype
2086
for i=0,1,delay do
2087
swait()
2088
if rtype == 1 then
2089
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
2090
elseif rtype == 2 then
2091
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
2092
end
2093
prt.Transparency=i
2094
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
2095
end
2096
Part.Parent=nil
2097
end),prt,msh)
2098
end
2099
2100
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
2101
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2102
prt.Anchored=true
2103
prt.Material = "Neon"
2104
prt.CFrame=cframe
2105
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2106
game:GetService("Debris"):AddItem(prt,5)
2107
coroutine.resume(coroutine.create(function(Part,Mesh) 
2108
	local rtype = rottype
2109
for i=0,1,delay do
2110
swait()
2111
if rtype == 1 then
2112
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2113
elseif rtype == 2 then
2114
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2115
end
2116
prt.Transparency=i
2117
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
2118
end
2119
Part.Parent=nil
2120
end),prt,msh)
2121
end
2122
2123
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
2124
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2125
prt.Anchored=true
2126
prt.Material = "Neon"
2127
prt.CFrame=cframe
2128
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2129
game:GetService("Debris"):AddItem(prt,5)
2130
coroutine.resume(coroutine.create(function(Part,Mesh) 
2131
	local rtype = rottype
2132
for i=0,1,delay do
2133
swait()
2134
if rtype == 1 then
2135
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
2136
elseif rtype == 2 then
2137
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
2138
end
2139
prt.Transparency=i
2140
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2141
end
2142
Part.Parent=nil
2143
end),prt,msh)
2144
end
2145
 
2146
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2147
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2148
prt.Anchored=false
2149
prt.CFrame=cframe
2150
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2151
local wld=weld(prt,prt,Parent,cframe)
2152
game:GetService("Debris"):AddItem(prt,5)
2153
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2154
for i=0,1,delay do
2155
wait()
2156
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
2157
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2158
Part.Transparency=i
2159
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2160
end
2161
Part.Parent=nil
2162
end),prt,msh,wld)
2163
end
2164
 
2165
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
2166
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2167
prt.Anchored=false
2168
prt.CFrame=cframe
2169
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2170
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
2171
game:GetService("Debris"):AddItem(prt,5)
2172
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
2173
for i=0,1,delay do
2174
wait()
2175
Weld.C0=euler(i*20,0,0)
2176
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2177
Part.Transparency=i
2178
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2179
end
2180
Part.Parent=nil
2181
end),prt,msh,wld)
2182
end
2183
 
2184
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2185
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2186
prt.Anchored=true
2187
prt.CFrame=cframe
2188
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
2189
game:GetService("Debris"):AddItem(prt,2)
2190
coroutine.resume(coroutine.create(function(Part,Mesh) 
2191
for i=0,1,delay do
2192
wait()
2193
Part.CFrame=Part.CFrame
2194
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2195
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2196
prt2.Anchored=true
2197
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2198
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
2199
game:GetService("Debris"):AddItem(prt2,2)
2200
coroutine.resume(coroutine.create(function(Part,Mesh) 
2201
for i=0,1,0.1 do
2202
wait()
2203
Part.CFrame=Part.CFrame*cf(0,0.5,0)
2204
end
2205
Part.Parent=nil
2206
end),prt2,msh2)
2207
end
2208
for i=0,1,delay*2 do
2209
wait()
2210
Part.CFrame=Part.CFrame
2211
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
2212
end
2213
Part.Parent=nil
2214
end),prt,msh)
2215
end
2216
 
2217
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2218
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2219
prt.Anchored=true
2220
prt.CFrame=cframe
2221
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2222
game:GetService("Debris"):AddItem(prt,2)
2223
coroutine.resume(coroutine.create(function(Part,Mesh) 
2224
for i=0,1,delay do
2225
wait()
2226
Part.CFrame=Part.CFrame
2227
Part.Transparency=i
2228
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2229
end
2230
Part.Parent=nil
2231
end),prt,msh)
2232
end
2233
 
2234
function BreakEffect(brickcolor,cframe,x1,y1,z1)
2235
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2236
prt.Anchored=true
2237
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2238
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
2239
game:GetService("Debris"):AddItem(prt,2)
2240
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2241
CF=Part.CFrame
2242
Numbb=0
2243
randnumb=math.random()/10
2244
rand1=math.random()/10
2245
for i=0,1,rand1 do
2246
wait()
2247
CF=CF*cf(0,math.random()/2,0)
2248
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2249
Part.CFrame=CF*euler(Numbb,0,0)
2250
Part.Transparency=i
2251
Numbb=Numbb+randnumb
2252
end
2253
Part.Parent=nil
2254
end),prt,CF,Numbb,randnumb)
2255
end
2256
 
2257
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2258
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2259
prt.Anchored=true
2260
prt.CFrame=cframe
2261
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2262
game:GetService("Debris"):AddItem(prt,5)
2263
coroutine.resume(coroutine.create(function(Part,Mesh) 
2264
for i=0,1,delay do
2265
wait()
2266
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2267
Part.Transparency=i
2268
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2269
end
2270
Part.Parent=nil
2271
end),prt,msh)
2272
end
2273
 
2274
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2275
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2276
prt.Anchored=true
2277
prt.CFrame=cframe
2278
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2279
game:GetService("Debris"):AddItem(prt,2)
2280
coroutine.resume(coroutine.create(function(Part,Mesh) 
2281
for i=0,1,delay do
2282
wait()
2283
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2284
Part.Transparency=i
2285
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2286
end
2287
Part.Parent=nil
2288
end),prt,msh)
2289
end
2290
 
2291
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2292
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2293
prt.Anchored=true
2294
prt.CFrame=cframe*cf(x,y,z)
2295
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2296
game:GetService("Debris"):AddItem(prt,5)
2297
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2298
local num=math.random()
2299
local num2=math.random(-3,2)+math.random()
2300
local numm=0
2301
for i=0,1,delay*2 do
2302
swait()
2303
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2304
Part.Transparency=i
2305
numm=numm+0.01
2306
end
2307
Part.Parent=nil
2308
Mesh.Parent=nil
2309
end),prt,msh,x,y,z)
2310
end
2311
2312
function dmgstart(dmg,what)
2313
	hitcon = what.Touched:connect(function(hit)
2314
		local hum = hit.Parent:FindFirstChild("Humanoid")
2315
		if hum and not hum:IsDescendantOf(Character) then
2316
			hum:TakeDamage(dmg)
2317
		end
2318
	end)
2319
end
2320
2321
function dmgstop()
2322
	hitcon:disconnect()
2323
end
2324
2325
function Cloak()
2326
Face.Parent=nil
2327
cloaked=true
2328
        for _,v in pairs(Torso.Parent:children()) do
2329
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2330
                coroutine.resume(coroutine.create(function() 
2331
                for i=0,1,0.2 do
2332
                wait()
2333
                v.Transparency=i
2334
                end
2335
                v.Transparency=1
2336
                end))
2337
                end
2338
                if v.className=="Hat" then
2339
                hatp=v.Handle
2340
                coroutine.resume(coroutine.create(function(derp) 
2341
                for i=0,1,0.2 do
2342
                wait()
2343
                derp.Transparency=i
2344
                end
2345
                derp.Transparency=1
2346
                end),hatp)
2347
                end
2348
        end
2349
        for _,v in pairs(m:children()) do
2350
                if v.className=="Part" then
2351
                coroutine.resume(coroutine.create(function() 
2352
                for i=0,1,0.2 do
2353
                wait()
2354
                v.Transparency=i
2355
                end
2356
                v.Transparency=1
2357
                end))
2358
                end
2359
        end
2360
end
2361
 
2362
function UnCloak()
2363
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
2364
Face.Parent=Head 
2365
cloaked=false
2366
        for _,v in pairs(Torso.Parent:children()) do
2367
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2368
                coroutine.resume(coroutine.create(function() 
2369
                for i=0,1,0.1 do
2370
                wait()
2371
                v.Transparency=v.Transparency-0.1
2372
                end
2373
                v.Transparency=0
2374
                end))
2375
                end
2376
                if v.className=="Hat" then
2377
                hatp=v.Handle
2378
                coroutine.resume(coroutine.create(function(derp) 
2379
                for i=0,1,0.1 do
2380
                wait()
2381
                derp.Transparency=derp.Transparency-0.1
2382
                end
2383
                derp.Transparency=0
2384
                end),hatp)
2385
                end
2386
        end
2387
        for _,v in pairs(m:children()) do
2388
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2389
                coroutine.resume(coroutine.create(function() 
2390
                for i=0,1,0.1 do
2391
                wait()
2392
                v.Transparency=v.Transparency-0.1
2393
                end
2394
                v.Transparency=0
2395
                end))
2396
                v.Transparency=0
2397
                end
2398
        end
2399
end
2400
2401
local origcolor = BrickColor.new("Pastel light blue")
2402
---- This section of explosions.
2403
2404
----
2405
2406
2407
function ring(type,pos,scale,value)
2408
local type = type
2409
local rng = Instance.new("Part", char)
2410
        rng.Anchored = true
2411
        rng.BrickColor = origcolor
2412
        rng.CanCollide = false
2413
        rng.FormFactor = 3
2414
        rng.Name = "Ring"
2415
        rng.Size = Vector3.new(1, 1, 1)
2416
        rng.Transparency = 0
2417
        rng.TopSurface = 0
2418
        rng.BottomSurface = 0
2419
        rng.CFrame = pos
2420
        local rngm = Instance.new("SpecialMesh", rng)
2421
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2422
rngm.Scale = scale
2423
local scaler2 = 1
2424
if type == "Add" then
2425
scaler2 = 1*value
2426
elseif type == "Divide" then
2427
scaler2 = 1/value
2428
end
2429
coroutine.resume(coroutine.create(function()
2430
for i = 0,10,0.1 do
2431
swait()
2432
if type == "Add" then
2433
scaler2 = scaler2 - 0.01*value
2434
elseif type == "Divide" then
2435
scaler2 = scaler2 - 0.01/value
2436
end
2437
rng.Transparency = rng.Transparency + 0.01
2438
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2439
end
2440
rng:Destroy()
2441
end))
2442
end
2443
2444
2445
function wave(type,pos,scale,value)
2446
local type = type
2447
local rng = Instance.new("Part", char)
2448
        rng.Anchored = true
2449
        rng.BrickColor = origcolor
2450
        rng.CanCollide = false
2451
        rng.FormFactor = 3
2452
        rng.Name = "Ring"
2453
        rng.Size = Vector3.new(1, 1, 1)
2454
        rng.Transparency = 0
2455
        rng.TopSurface = 0
2456
        rng.BottomSurface = 0
2457
        rng.CFrame = pos
2458
        local rngm = Instance.new("SpecialMesh", rng)
2459
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2460
rngm.Scale = scale
2461
local scaler2 = 1
2462
if type == "Add" then
2463
scaler2 = 1*value
2464
elseif type == "Divide" then
2465
scaler2 = 1/value
2466
end
2467
coroutine.resume(coroutine.create(function()
2468
for i = 0,10,0.1 do
2469
swait()
2470
if type == "Add" then
2471
scaler2 = scaler2 - 0.01*value
2472
elseif type == "Divide" then
2473
scaler2 = scaler2 - 0.01/value
2474
end
2475
rng.Transparency = rng.Transparency + 0.01
2476
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2477
end
2478
rng:Destroy()
2479
end))
2480
end
2481
2482
function wind(type,pos,scale,value,speed)
2483
local type = type
2484
local rng = Instance.new("Part", char)
2485
        rng.Anchored = true
2486
        rng.BrickColor = origcolor
2487
        rng.CanCollide = false
2488
        rng.FormFactor = 3
2489
        rng.Name = "Ring"
2490
        rng.Size = Vector3.new(1, 1, 1)
2491
        rng.Transparency = 0
2492
        rng.TopSurface = 0
2493
        rng.BottomSurface = 0
2494
        rng.CFrame = pos
2495
        local rngm = Instance.new("SpecialMesh", rng)
2496
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2497
rngm.Scale = scale
2498
local scaler2 = 1
2499
if type == "Add" then
2500
scaler2 = 1*value
2501
elseif type == "Divide" then
2502
scaler2 = 1/value
2503
end
2504
coroutine.resume(coroutine.create(function()
2505
for i = 0,10,0.1 do
2506
swait()
2507
if type == "Add" then
2508
scaler2 = scaler2 - 0.01*value
2509
elseif type == "Divide" then
2510
scaler2 = scaler2 - 0.01/value
2511
end
2512
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2513
rng.Transparency = rng.Transparency + 0.01
2514
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2515
end
2516
rng:Destroy()
2517
end))
2518
end
2519
2520
function groundwind(type,pos,scale,value,speed)
2521
local type = type
2522
local rng = Instance.new("Part", char)
2523
        rng.Anchored = true
2524
        rng.BrickColor = origcolor
2525
        rng.CanCollide = false
2526
        rng.FormFactor = 3
2527
        rng.Name = "Ring"
2528
        rng.Size = Vector3.new(1, 1, 1)
2529
        rng.Transparency = 0
2530
        rng.TopSurface = 0
2531
        rng.BottomSurface = 0
2532
        rng.CFrame = pos
2533
        local rngm = Instance.new("SpecialMesh", rng)
2534
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2535
rngm.Scale = scale
2536
local scaler2 = 1
2537
if type == "Add" then
2538
scaler2 = 1*value
2539
elseif type == "Divide" then
2540
scaler2 = 1/value
2541
end
2542
coroutine.resume(coroutine.create(function()
2543
for i = 0,10,0.1 do
2544
swait()
2545
if type == "Add" then
2546
scaler2 = scaler2 - 0.01*value
2547
elseif type == "Divide" then
2548
scaler2 = scaler2 - 0.01/value
2549
end
2550
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2551
rng.Transparency = rng.Transparency + 0.01
2552
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
2553
end
2554
rng:Destroy()
2555
end))
2556
end
2557
2558
function CameraManager()
2559
  if TwoD and not CamInterrupt then
2560
    if Humanoid.Health > 0 then
2561
      Camera.CameraSubject = Humanoid
2562
      Camera.CameraType = "Scriptable"
2563
      Humanoid.AutoRotate = false
2564
      if Booleans.GyroUse then
2565
        Directer.MaxTorque = Vec3(0, huge, 0)
2566
      else
2567
        Directer.MaxTorque = Vec3(0, 0, 0)
2568
      end
2569
      if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
2570
        if Booleans.CamFollow then
2571
          CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
2572
          Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
2573
        else
2574
          CPart.Position = RootPart.Position
2575
        end
2576
      else
2577
        local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
2578
        CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
2579
      end
2580
      Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
2581
    else
2582
      Camera.CameraSubject = Humanoid
2583
      Camera.CameraType = "Custom"
2584
      Controller.Disabled = false
2585
    end
2586
  end
2587
end
2588
2589
function ring(type,pos,scale,value)
2590
local type = type
2591
local rng = Instance.new("Part", char)
2592
        rng.Anchored = true
2593
        rng.BrickColor = origcolor
2594
        rng.CanCollide = false
2595
        rng.FormFactor = 3
2596
        rng.Name = "Ring"
2597
        rng.Size = Vector3.new(1, 1, 1)
2598
        rng.Transparency = 0
2599
        rng.TopSurface = 0
2600
        rng.BottomSurface = 0
2601
        rng.CFrame = pos
2602
        local rngm = Instance.new("SpecialMesh", rng)
2603
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2604
rngm.Scale = scale
2605
local scaler2 = 1
2606
if type == "Add" then
2607
scaler2 = 1*value
2608
elseif type == "Divide" then
2609
scaler2 = 1/value
2610
end
2611
coroutine.resume(coroutine.create(function()
2612
for i = 0,10,0.1 do
2613
swait()
2614
if type == "Add" then
2615
scaler2 = scaler2 - 0.01*value
2616
elseif type == "Divide" then
2617
scaler2 = scaler2 - 0.01/value
2618
end
2619
rng.Transparency = rng.Transparency + 0.01
2620
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2621
end
2622
rng:Destroy()
2623
end))
2624
end
2625
2626
2627
function wave(type,pos,scale,value)
2628
local type = type
2629
local rng = Instance.new("Part", char)
2630
        rng.Anchored = true
2631
        rng.BrickColor = origcolor
2632
        rng.CanCollide = false
2633
        rng.FormFactor = 3
2634
        rng.Name = "Ring"
2635
        rng.Size = Vector3.new(1, 1, 1)
2636
        rng.Transparency = 0
2637
        rng.TopSurface = 0
2638
        rng.BottomSurface = 0
2639
        rng.CFrame = pos
2640
        local rngm = Instance.new("SpecialMesh", rng)
2641
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2642
rngm.Scale = scale
2643
local scaler2 = 1
2644
if type == "Add" then
2645
scaler2 = 1*value
2646
elseif type == "Divide" then
2647
scaler2 = 1/value
2648
end
2649
coroutine.resume(coroutine.create(function()
2650
for i = 0,10,0.1 do
2651
swait()
2652
if type == "Add" then
2653
scaler2 = scaler2 - 0.01*value
2654
elseif type == "Divide" then
2655
scaler2 = scaler2 - 0.01/value
2656
end
2657
rng.Transparency = rng.Transparency + 0.01
2658
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2659
end
2660
rng:Destroy()
2661
end))
2662
end
2663
2664
function sphere(bonuspeed,type,pos,scale,value,color)
2665
local type = type
2666
local rng = Instance.new("Part", char)
2667
        rng.Anchored = true
2668
if ModeOfGlitch ~= 9 then
2669
        rng.BrickColor = color
2670
elseif ModeOfGlitch == 9 then
2671
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2672
end
2673
        rng.CanCollide = false
2674
        rng.FormFactor = 3
2675
        rng.Name = "Ring"
2676
        rng.Material = "Neon"
2677
        rng.Size = Vector3.new(1, 1, 1)
2678
        rng.Transparency = 0
2679
        rng.TopSurface = 0
2680
        rng.BottomSurface = 0
2681
        rng.CFrame = pos
2682
        local rngm = Instance.new("SpecialMesh", rng)
2683
        rngm.MeshType = "Sphere"
2684
rngm.Scale = scale
2685
if rainbowmode == true then
2686
rng.Color = Color3.new(r/255,g/255,b/255)
2687
end
2688
if ModeOfGlitch == 9 then
2689
coroutine.resume(coroutine.create(function()
2690
while true do
2691
swait()
2692
if rng.Parent ~= nil then
2693
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2694
else
2695
break
2696
end
2697
end
2698
end))
2699
end
2700
local scaler2 = 1
2701
if type == "Add" then
2702
scaler2 = 1*value
2703
elseif type == "Divide" then
2704
scaler2 = 1/value
2705
end
2706
coroutine.resume(coroutine.create(function()
2707
for i = 0,10/bonuspeed,0.1 do
2708
swait()
2709
if rainbowmode == true then
2710
rng.Color = Color3.new(r/255,g/255,b/255)
2711
end
2712
if type == "Add" then
2713
scaler2 = scaler2 - 0.01*value/bonuspeed
2714
elseif type == "Divide" then
2715
scaler2 = scaler2 - 0.01/value*bonuspeed
2716
end
2717
if chaosmode == true then
2718
rng.BrickColor = BrickColor.random()
2719
end
2720
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2721
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2722
end
2723
rng:Destroy()
2724
end))
2725
end
2726
2727
function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
2728
local type = type
2729
local rng = Instance.new("Part", char)
2730
        rng.Anchored = true
2731
if ModeOfGlitch ~= 9 then
2732
        rng.BrickColor = color
2733
elseif ModeOfGlitch == 9 then
2734
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2735
end
2736
        rng.CanCollide = false
2737
        rng.FormFactor = 3
2738
        rng.Name = "Ring"
2739
        rng.Material = "Neon"
2740
        rng.Size = Vector3.new(1, 1, 1)
2741
        rng.Transparency = 0
2742
        rng.TopSurface = 0
2743
        rng.BottomSurface = 0
2744
        rng.CFrame = pos
2745
        local rngm = Instance.new("SpecialMesh", rng)
2746
        rngm.MeshType = "Sphere"
2747
rngm.Scale = scale
2748
local scaler2 = 1
2749
local scaler2b = 1
2750
local scaler2c = 1
2751
if type == "Add" then
2752
scaler2 = 1*value
2753
scaler2b = 1*value2
2754
scaler2c = 1*value3
2755
elseif type == "Divide" then
2756
scaler2 = 1/value
2757
scaler2b = 1/value2
2758
scaler2c = 1/value3
2759
end
2760
if ModeOfGlitch == 9 then
2761
coroutine.resume(coroutine.create(function()
2762
while true do
2763
swait()
2764
if rng.Parent ~= nil then
2765
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
2766
else
2767
break
2768
end
2769
end
2770
end))
2771
end
2772
coroutine.resume(coroutine.create(function()
2773
for i = 0,10/bonuspeed,0.1 do
2774
swait()
2775
if type == "Add" then
2776
scaler2 = scaler2 - 0.01*value/bonuspeed
2777
scaler2b = scaler2b - 0.01*value/bonuspeed
2778
scaler2c = scaler2c - 0.01*value/bonuspeed
2779
elseif type == "Divide" then
2780
scaler2 = scaler2 - 0.01/value*bonuspeed
2781
scaler2b = scaler2b - 0.01/value*bonuspeed
2782
scaler2c = scaler2c - 0.01/value*bonuspeed
2783
end
2784
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2785
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
2786
end
2787
rng:Destroy()
2788
end))
2789
end
2790
2791
function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
2792
local type = type
2793
local rotenable = rotatingop
2794
local rng = Instance.new("Part", char)
2795
        rng.Anchored = true
2796
        rng.BrickColor = color
2797
        rng.CanCollide = false
2798
        rng.FormFactor = 3
2799
        rng.Name = "Ring"
2800
        rng.Material = "Neon"
2801
        rng.Size = Vector3.new(1, 1, 1)
2802
        rng.Transparency = 0
2803
if typeoftrans == "In" then
2804
rng.Transparency = 1
2805
end
2806
        rng.TopSurface = 0
2807
        rng.BottomSurface = 0
2808
        rng.CFrame = pos
2809
        local rngm = Instance.new("SpecialMesh", rng)
2810
        rngm.MeshType = "FileMesh"
2811
if typeofshape == "Normal" then
2812
rngm.MeshId = "rbxassetid://662586858"
2813
elseif typeofshape == "Round" then
2814
rngm.MeshId = "rbxassetid://662585058"
2815
end
2816
rngm.Scale = scale
2817
local scaler2 = 1/10
2818
if type == "Add" then
2819
scaler2 = 1*value/10
2820
elseif type == "Divide" then
2821
scaler2 = 1/value/10
2822
end
2823
local randomrot = math.random(1,2)
2824
coroutine.resume(coroutine.create(function()
2825
for i = 0,10/bonuspeed,0.1 do
2826
swait()
2827
if type == "Add" then
2828
scaler2 = scaler2 - 0.01*value/bonuspeed/10
2829
elseif type == "Divide" then
2830
scaler2 = scaler2 - 0.01/value*bonuspeed/10
2831
end
2832
if rotenable == true then
2833
if randomrot == 1 then
2834
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
2835
elseif randomrot == 2 then
2836
rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
2837
end
2838
end
2839
if typeoftrans == "Out" then
2840
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2841
elseif typeoftrans == "In" then
2842
rng.Transparency = rng.Transparency - 0.01*bonuspeed
2843
end
2844
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
2845
end
2846
rng:Destroy()
2847
end))
2848
end
2849
2850
function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2851
local type = type
2852
local rng = Instance.new("Part", char)
2853
        rng.Anchored = true
2854
        rng.BrickColor = color
2855
        rng.CanCollide = false
2856
        rng.FormFactor = 3
2857
        rng.Name = "Ring"
2858
        rng.Material = "Neon"
2859
        rng.Size = Vector3.new(1, 1, 1)
2860
        rng.Transparency = 0
2861
        rng.TopSurface = 0
2862
        rng.BottomSurface = 0
2863
        rng.CFrame = pos
2864
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2865
        local rngm = Instance.new("SpecialMesh", rng)
2866
        rngm.MeshType = "Brick"
2867
rngm.Scale = vt(x1,y1,z1)
2868
if rainbowmode == true then
2869
rng.Color = Color3.new(r/255,g/255,b/255)
2870
end
2871
local scaler2 = 1
2872
local speeder = FastSpeed/10
2873
if type == "Add" then
2874
scaler2 = 1*value
2875
elseif type == "Divide" then
2876
scaler2 = 1/value
2877
end
2878
coroutine.resume(coroutine.create(function()
2879
for i = 0,10/bonuspeed,0.1 do
2880
swait()
2881
if rainbowmode == true then
2882
rng.Color = Color3.new(r/255,g/255,b/255)
2883
end
2884
if type == "Add" then
2885
scaler2 = scaler2 - 0.01*value/bonuspeed
2886
elseif type == "Divide" then
2887
scaler2 = scaler2 - 0.01/value*bonuspeed
2888
end
2889
if chaosmode == true then
2890
rng.BrickColor = BrickColor.random()
2891
end
2892
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2893
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2894
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2895
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2896
end
2897
rng:Destroy()
2898
end))
2899
end
2900
2901
function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2902
local type = type
2903
local rng = Instance.new("Part", char)
2904
        rng.Anchored = true
2905
        rng.BrickColor = color
2906
        rng.CanCollide = false
2907
        rng.FormFactor = 3
2908
        rng.Name = "Ring"
2909
        rng.Material = "Neon"
2910
        rng.Size = Vector3.new(1, 1, 1)
2911
        rng.Transparency = 0
2912
        rng.TopSurface = 0
2913
        rng.BottomSurface = 0
2914
        rng.CFrame = pos
2915
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2916
        local rngm = Instance.new("SpecialMesh", rng)
2917
        rngm.MeshType = "Brick"
2918
rngm.Scale = vt(x1,y1,z1)
2919
if rainbowmode == true then
2920
rng.Color = Color3.new(r/255,g/255,b/255)
2921
end
2922
local scaler2 = 1
2923
local speeder = FastSpeed/10
2924
if type == "Add" then
2925
scaler2 = 1*value
2926
elseif type == "Divide" then
2927
scaler2 = 1/value
2928
end
2929
coroutine.resume(coroutine.create(function()
2930
for i = 0,10/bonuspeed,0.1 do
2931
swait()
2932
if rainbowmode == true then
2933
rng.Color = Color3.new(r/255,g/255,b/255)
2934
end
2935
if type == "Add" then
2936
scaler2 = scaler2 - 0.01*value/bonuspeed
2937
elseif type == "Divide" then
2938
scaler2 = scaler2 - 0.01/value*bonuspeed
2939
end
2940
if chaosmode == true then
2941
rng.BrickColor = BrickColor.random()
2942
end
2943
speeder = speeder - 0.01*FastSpeed*bonuspeed/10
2944
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2945
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2946
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2947
end
2948
rng:Destroy()
2949
end))
2950
end
2951
2952
function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2953
local type = type
2954
local rng = Instance.new("Part", char)
2955
        rng.Anchored = true
2956
        rng.BrickColor = color
2957
        rng.CanCollide = false
2958
        rng.FormFactor = 3
2959
        rng.Name = "Ring"
2960
        rng.Material = "Neon"
2961
        rng.Size = Vector3.new(1, 1, 1)
2962
        rng.Transparency = 0
2963
        rng.TopSurface = 0
2964
        rng.BottomSurface = 0
2965
        rng.CFrame = pos
2966
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2967
        local rngm = Instance.new("SpecialMesh", rng)
2968
        rngm.MeshType = "Brick"
2969
rngm.Scale = vt(x1,y1,z1)
2970
if rainbowmode == true then
2971
rng.Color = Color3.new(r/255,g/255,b/255)
2972
end
2973
local scaler2 = 0
2974
local speeder = FastSpeed/10
2975
if type == "Add" then
2976
scaler2 = 1*value
2977
elseif type == "Divide" then
2978
scaler2 = 1/value
2979
end
2980
coroutine.resume(coroutine.create(function()
2981
for i = 0,10/bonuspeed,0.1 do
2982
swait()
2983
if rainbowmode == true then
2984
rng.Color = Color3.new(r/255,g/255,b/255)
2985
end
2986
if type == "Add" then
2987
scaler2 = scaler2 - 0.01*value/bonuspeed
2988
elseif type == "Divide" then
2989
scaler2 = scaler2 - 0.01/value*bonuspeed
2990
end
2991
if chaosmode == true then
2992
rng.BrickColor = BrickColor.random()
2993
end
2994
speeder = speeder + 0.01*FastSpeed*bonuspeed/10
2995
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2996
--rng.Transparency = rng.Transparency + 0.01*bonuspeed
2997
rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2998
end
2999
rng:Destroy()
3000
end))
3001
end
3002
3003
function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
3004
local type = type
3005
local rng = Instance.new("Part", char)
3006
        rng.Anchored = true
3007
        rng.BrickColor = color
3008
        rng.Color = color3
3009
        rng.CanCollide = false
3010
        rng.FormFactor = 3
3011
        rng.Name = "Ring"
3012
        rng.Material = "Neon"
3013
        rng.Size = Vector3.new(1, 1, 1)
3014
        rng.Transparency = 0
3015
        rng.TopSurface = 0
3016
        rng.BottomSurface = 0
3017
        rng.CFrame = pos
3018
        local rngm = Instance.new("SpecialMesh", rng)
3019
        rngm.MeshType = "Brick"
3020
rngm.Scale = scale
3021
local scaler2 = 1
3022
local scaler2b = 1
3023
local scaler2c = 1
3024
if type == "Add" then
3025
scaler2 = 1*value
3026
scaler2b = 1*value2
3027
scaler2c = 1*value3
3028
elseif type == "Divide" then
3029
scaler2 = 1/value
3030
scaler2b = 1/value2
3031
scaler2c = 1/value3
3032
end
3033
coroutine.resume(coroutine.create(function()
3034
for i = 0,10/bonuspeed,0.1 do
3035
swait()
3036
if type == "Add" then
3037
scaler2 = scaler2 - 0.01*value/bonuspeed
3038
scaler2b = scaler2b - 0.01*value/bonuspeed
3039
scaler2c = scaler2c - 0.01*value/bonuspeed
3040
elseif type == "Divide" then
3041
scaler2 = scaler2 - 0.01/value*bonuspeed
3042
scaler2b = scaler2b - 0.01/value*bonuspeed
3043
scaler2c = scaler2c - 0.01/value*bonuspeed
3044
end
3045
rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
3046
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3047
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
3048
end
3049
rng:Destroy()
3050
end))
3051
end
3052
3053
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3054
local type = type
3055
local rng = Instance.new("Part", char)
3056
        rng.Anchored = true
3057
if ModeOfGlitch ~= 9 then
3058
        rng.BrickColor = color
3059
elseif ModeOfGlitch == 9 then
3060
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3061
end
3062
        rng.CanCollide = false
3063
        rng.FormFactor = 3
3064
        rng.Name = "Ring"
3065
        rng.Material = "Neon"
3066
        rng.Size = Vector3.new(1, 1, 1)
3067
        rng.Transparency = 0
3068
        rng.TopSurface = 0
3069
        rng.BottomSurface = 0
3070
        rng.CFrame = pos
3071
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3072
        local rngm = Instance.new("SpecialMesh", rng)
3073
        rngm.MeshType = "Sphere"
3074
rngm.Scale = vt(x1,y1,z1)
3075
if rainbowmode == true then
3076
rng.Color = Color3.new(r/255,g/255,b/255)
3077
end
3078
if ModeOfGlitch == 9 then
3079
coroutine.resume(coroutine.create(function()
3080
while true do
3081
swait()
3082
if rng.Parent ~= nil then
3083
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3084
else
3085
break
3086
end
3087
end
3088
end))
3089
end
3090
local scaler2 = 1
3091
local speeder = FastSpeed
3092
if type == "Add" then
3093
scaler2 = 1*value
3094
elseif type == "Divide" then
3095
scaler2 = 1/value
3096
end
3097
coroutine.resume(coroutine.create(function()
3098
for i = 0,10/bonuspeed,0.1 do
3099
swait()
3100
if rainbowmode == true then
3101
rng.Color = Color3.new(r/255,g/255,b/255)
3102
end
3103
if type == "Add" then
3104
scaler2 = scaler2 - 0.01*value/bonuspeed
3105
elseif type == "Divide" then
3106
scaler2 = scaler2 - 0.01/value*bonuspeed
3107
end
3108
if chaosmode == true then
3109
rng.BrickColor = BrickColor.random()
3110
end
3111
speeder = speeder - 0.01*FastSpeed*bonuspeed
3112
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3113
rng.Transparency = rng.Transparency + 0.01*bonuspeed
3114
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3115
end
3116
rng:Destroy()
3117
end))
3118
end
3119
3120
3121
function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
3122
local type = type
3123
local rng = Instance.new("Part", char)
3124
        rng.Anchored = true
3125
if ModeOfGlitch ~= 9 then
3126
        rng.BrickColor = color
3127
elseif ModeOfGlitch == 9 then
3128
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3129
end
3130
        rng.CanCollide = false
3131
        rng.FormFactor = 3
3132
        rng.Name = "Ring"
3133
        rng.Material = "Neon"
3134
        rng.Size = Vector3.new(1, 1, 1)
3135
        rng.Transparency = 1
3136
        rng.TopSurface = 0
3137
        rng.BottomSurface = 0
3138
        rng.CFrame = pos
3139
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
3140
        local rngm = Instance.new("SpecialMesh", rng)
3141
        rngm.MeshType = "Sphere"
3142
rngm.Scale = vt(x1,y1,z1)
3143
if rainbowmode == true then
3144
rng.Color = Color3.new(r/255,g/255,b/255)
3145
end
3146
if ModeOfGlitch == 9 then
3147
coroutine.resume(coroutine.create(function()
3148
while true do
3149
swait()
3150
if rng.Parent ~= nil then
3151
rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
3152
else
3153
break
3154
end
3155
end
3156
end))
3157
end
3158
local scaler2 = 1
3159
local speeder = FastSpeed
3160
if type == "Add" then
3161
scaler2 = 1*value
3162
elseif type == "Divide" then
3163
scaler2 = 1/value
3164
end
3165
coroutine.resume(coroutine.create(function()
3166
for i = 0,10/bonuspeed,0.1 do
3167
swait()
3168
if rainbowmode == true then
3169
rng.Color = Color3.new(r/255,g/255,b/255)
3170
end
3171
if type == "Add" then
3172
scaler2 = scaler2 - 0.01*value/bonuspeed
3173
elseif type == "Divide" then
3174
scaler2 = scaler2 - 0.01/value*bonuspeed
3175
end
3176
if chaosmode == true then
3177
rng.BrickColor = BrickColor.random()
3178
end
3179
speeder = speeder - 0.01*FastSpeed*bonuspeed
3180
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
3181
rng.Transparency = rng.Transparency - 0.01*bonuspeed
3182
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
3183
end
3184
rng:Destroy()
3185
end))
3186
end
3187
3188
function dmg(dude)
3189
if dude.Name ~= Character then
3190
local keptcolor = MAINRUINCOLOR
3191
local bgf = Instance.new("BodyGyro",dude.Head)
3192
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
3193
--[[local val = Instance.new("BoolValue",dude)
3194
val.Name = "IsHit"]]--
3195
local ds = coroutine.wrap(function()
3196
dude:WaitForChild("Head"):BreakJoints()
3197
for i, v in pairs(dude:GetChildren()) do
3198
if v:IsA("Part") or v:IsA("MeshPart") then
3199
v.Name = "DEMINISHED"
3200
end
3201
end
3202
wait(0.5)
3203
targetted = nil
3204
CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
3205
coroutine.resume(coroutine.create(function()
3206
for i, v in pairs(dude:GetChildren()) do
3207
if v:IsA("Accessory") then
3208
v:Destroy()
3209
end
3210
if v:IsA("Humanoid") then
3211
v:Destroy()
3212
end
3213
if v:IsA("CharacterMesh") then
3214
v:Destroy()
3215
end
3216
if v:IsA("Model") then
3217
v:Destroy()
3218
end
3219
if v:IsA("Part") or v:IsA("MeshPart") then
3220
for x, o in pairs(v:GetChildren()) do
3221
if o:IsA("Decal") then
3222
o:Destroy()
3223
end
3224
end
3225
coroutine.resume(coroutine.create(function()
3226
v.Material = "Neon"
3227
v.CanCollide = false
3228
v.Anchored = false
3229
local bld = Instance.new("ParticleEmitter",v)
3230
bld.LightEmission = 0.75
3231
bld.Texture = "rbxassetid://363275192" ---284205403
3232
bld.Color = ColorSequence.new(keptcolor.Color)
3233
bld.Rate = 500
3234
bld.Lifetime = NumberRange.new(1)
3235
bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
3236
bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
3237
bld.Speed = NumberRange.new(2,5)
3238
bld.VelocitySpread = 50000
3239
bld.Rotation = NumberRange.new(-500,500)
3240
bld.RotSpeed = NumberRange.new(-500,500)
3241
        local sbs = Instance.new("BodyPosition", v)
3242
        sbs.P = 3000
3243
        sbs.D = 1000
3244
        sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
3245
        sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
3246
v.Color = keptcolor.Color
3247
coroutine.resume(coroutine.create(function()
3248
for i = 0, 49 do
3249
swait(1)
3250
v:BreakJoints()
3251
v.Transparency = v.Transparency + 0.02
3252
end
3253
v:BreakJoints()
3254
sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
3255
CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
3256
bld.Speed = NumberRange.new(10,25)
3257
bld.Drag = 5
3258
bld.Acceleration = vt(0,2,0)
3259
wait(0.5)
3260
bld.Enabled = false
3261
wait(8)
3262
v:Destroy()
3263
dude:Destroy()
3264
end))
3265
end))
3266
end
3267
end
3268
end))
3269
end)
3270
ds()
3271
end
3272
end
3273
3274
3275
function FindNearestHead(Position, Distance, SinglePlayer)
3276
	if SinglePlayer then
3277
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
3278
	end
3279
	local List = {}
3280
	for i, v in pairs(workspace:GetChildren()) do
3281
		if v:IsA("Model") then
3282
			if v:findFirstChild("Head") then
3283
				if v ~= Character then
3284
					if (v.Head.Position - Position).magnitude <= Distance then
3285
						table.insert(List, v)
3286
					end 
3287
				end 
3288
			end 
3289
		end 
3290
	end
3291
	return List
3292
end
3293
3294
function FaceMouse()
3295
  Cam = workspace.CurrentCamera
3296
  return {
3297
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
3298
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3299
  }
3300
end
3301
3302
function FaceMouse2()
3303
  Cam = workspace.CurrentCamera
3304
  return {
3305
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
3306
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
3307
  }
3308
end
3309
3310
local ModeOfGlitch = 1
3311
-- Functions are ready.
3312
local storehumanoidWS = 16
3313
3314
function CorruptBlink()
3315
for i = 0, 14 do
3316
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)
3317
end
3318
sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3319
CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
3320
RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
3321
CameraEnshaking(2,10)
3322
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
3323
if v:FindFirstChild('Head') then
3324
dmg(v)
3325
end
3326
end
3327
for i = 0, 14 do
3328
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)
3329
end
3330
sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3331
end
3332
function PureBomb()
3333
attack = true
3334
hum.WalkSpeed = 0
3335
local orb = Instance.new("Part", char)
3336
        orb.Anchored = true
3337
        orb.BrickColor = BrickColor.new("Toothpaste")
3338
        orb.CanCollide = false
3339
        orb.FormFactor = 3
3340
        orb.Name = "Ring"
3341
        orb.Material = "Neon"
3342
        orb.Size = Vector3.new(1, 1, 1)
3343
        orb.Transparency = 0
3344
        orb.TopSurface = 0
3345
        orb.BottomSurface = 0
3346
        local orbm = Instance.new("SpecialMesh", orb)
3347
        orbm.MeshType = "Sphere"
3348
orbm.Name = "SizeMesh"
3349
orbm.Scale = vt(0,0,0)
3350
local scaled = 0.1
3351
local posid = 0
3352
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
3353
for i = 0, 5, 0.1 do
3354
swait()
3355
scaled = scaled - 0.001
3356
posid = posid - scaled
3357
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3358
local scaled = 0.1
3359
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
3360
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)
3361
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)
3362
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)
3363
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)
3364
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)
3365
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3366
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
3367
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)
3368
end
3369
for i = 0, 2, 0.1 do
3370
swait()
3371
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3372
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)
3373
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)
3374
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)
3375
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
3376
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
3377
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)
3378
end
3379
coroutine.resume(coroutine.create(function()
3380
orb.Anchored = false
3381
CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
3382
	local a = Instance.new("Part",workspace)
3383
	a.Name = "Direction"	
3384
	a.Anchored = true
3385
	a.BrickColor = bc("Bright red")
3386
a.Material = "Neon"
3387
a.Transparency = 1
3388
	a.CanCollide = false
3389
	local ray = Ray.new(
3390
	    orb.CFrame.p,                           -- origin
3391
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
3392
	) 
3393
	local ignore = orb
3394
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3395
	a.BottomSurface = 10
3396
	a.TopSurface = 10
3397
	local distance = (orb.CFrame.p - position).magnitude
3398
	a.Size = Vector3.new(0.1, 0.1, 0.1)
3399
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
3400
orb.CFrame = a.CFrame
3401
a:Destroy()
3402
local bv = Instance.new("BodyVelocity")
3403
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3404
bv.velocity = orb.CFrame.lookVector*125
3405
bv.Parent = orb
3406
local hitted = false
3407
game:GetService("Debris"):AddItem(orb, 15)
3408
wait()
3409
local hit =orb.Touched:connect(function(hit) 
3410
	if hitted == false then
3411
	hitted = true
3412
CameraEnshaking(10,2.5)
3413
CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
3414
	MagniDamage(orb, 65, 65,90, 0, "Normal")
3415
sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
3416
sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
3417
for i = 0, 49 do
3418
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)
3419
end
3420
for i = 0, 9 do
3421
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)
3422
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)
3423
end
3424
orb.Anchored = true
3425
orb.Transparency = 1
3426
wait(8)
3427
orb:Destroy()
3428
end
3429
end)
3430
end))
3431
for i = 0, 1, 0.1 do
3432
swait()
3433
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)
3434
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)
3435
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)
3436
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
3437
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
3438
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)
3439
end
3440
hum.WalkSpeed = storehumanoidWS
3441
attack = false
3442
end
3443
3444
function BanishingOrb()
3445
attack = true
3446
hum.WalkSpeed = 0
3447
local orb = Instance.new("Part", char)
3448
        orb.Anchored = true
3449
        orb.BrickColor = BrickColor.new("Black")
3450
        orb.CanCollide = false
3451
        orb.FormFactor = 3
3452
        orb.Name = "Ring"
3453
        orb.Material = "Neon"
3454
        orb.Size = Vector3.new(1, 1, 1)
3455
        orb.Transparency = 0
3456
        orb.TopSurface = 0
3457
        orb.BottomSurface = 0
3458
        local orbm = Instance.new("SpecialMesh", orb)
3459
        orbm.MeshType = "Sphere"
3460
orbm.Name = "SizeMesh"
3461
orbm.Scale = vt(0,0,0)
3462
local scaled = 0.1
3463
local posid = 0
3464
CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
3465
for i = 0, 5, 0.1 do
3466
swait()
3467
scaled = scaled - 0.001
3468
posid = posid - scaled
3469
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3470
local scaled = 0.1
3471
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
3472
sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10)
3473
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)
3474
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)
3475
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)
3476
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3477
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
3478
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)
3479
end
3480
for i = 0, 2, 0.1 do
3481
swait()
3482
orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
3483
RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
3484
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
3485
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
3486
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
3487
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
3488
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
3489
end
3490
coroutine.resume(coroutine.create(function()
3491
orb.Anchored = false
3492
CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
3493
	local a = Instance.new("Part",workspace)
3494
	a.Name = "Direction"	
3495
	a.Anchored = true
3496
	a.BrickColor = bc("Bright red")
3497
a.Material = "Neon"
3498
a.Transparency = 1
3499
	a.CanCollide = false
3500
	local ray = Ray.new(
3501
	    orb.CFrame.p,                           -- origin
3502
	    (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
3503
	) 
3504
	local ignore = orb
3505
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3506
	a.BottomSurface = 10
3507
	a.TopSurface = 10
3508
	local distance = (orb.CFrame.p - position).magnitude
3509
	a.Size = Vector3.new(0.1, 0.1, 0.1)
3510
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
3511
orb.CFrame = a.CFrame
3512
a:Destroy()
3513
local bv = Instance.new("BodyVelocity")
3514
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3515
bv.velocity = orb.CFrame.lookVector*0
3516
bv.Parent = orb
3517
local hitted = false
3518
local rate = 0
3519
coroutine.resume(coroutine.create(function()
3520
for i = 0, 24 do
3521
wait(0.1)
3522
rate = rate + 0.25
3523
bv.velocity = bv.velocity + orb.CFrame.lookVector*rate
3524
for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do
3525
if v:FindFirstChild('Head') then
3526
dmg(v)
3527
end
3528
end
3529
CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
3530
sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3531
sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
3532
end
3533
orb.Anchored = true
3534
orb.Transparency = 1
3535
for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do
3536
if v:FindFirstChild('Head') then
3537
dmg(v)
3538
end
3539
end
3540
local eff = Instance.new("ParticleEmitter",orb)
3541
eff.Texture = "rbxassetid://296874871"
3542
eff.LightEmission = 0.95
3543
eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
3544
eff.Rate = 1000000000
3545
eff.Lifetime = NumberRange.new(3)
3546
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)})
3547
eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
3548
eff.Speed = NumberRange.new(30)
3549
eff.Acceleration = vt(0,-15,0)
3550
eff.Rotation = NumberRange.new(-500,500)
3551
eff.VelocitySpread = 100000
3552
eff.RotSpeed = NumberRange.new(-500,500)
3553
coroutine.resume(coroutine.create(function()
3554
	wait(0.6)
3555
	eff.Enabled = false
3556
end))
3557
CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
3558
CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
3559
sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR)
3560
sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
3561
sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR)
3562
game:GetService("Debris"):AddItem(orb, 15)
3563
end))
3564
end))
3565
for i = 0, 1, 0.1 do
3566
swait()
3567
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)
3568
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)
3569
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)
3570
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
3571
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
3572
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)
3573
end
3574
hum.WalkSpeed = storehumanoidWS
3575
attack = false
3576
end
3577
3578
3579
function ChaosGroundStrike()
3580
attack = true
3581
for i = 0, 2, 0.1 do
3582
swait()
3583
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)
3584
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)
3585
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
3586
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
3587
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
3588
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
3589
end
3590
CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
3591
CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
3592
CameraEnshaking(4,12)
3593
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
3594
if v:FindFirstChild('Head') then
3595
dmg(v)
3596
end
3597
end
3598
sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
3599
sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
3600
sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
3601
for i = 0, 2, 0.1 do
3602
swait()
3603
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)
3604
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)
3605
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)
3606
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)
3607
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
3608
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
3609
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
3610
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
3611
end
3612
attack = false
3613
end
3614
3615
3616
3617
function Starfall()
3618
attack = true
3619
hum.WalkSpeed = 0
3620
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
3621
for i = 0, 5, 0.1 do
3622
swait()
3623
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)
3624
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)
3625
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)
3626
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)
3627
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)
3628
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3629
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)
3630
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)
3631
end
3632
local Overed = false
3633
CameraEnshaking(2,20)
3634
sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3635
sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
3636
sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
3637
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
3638
local orb = Instance.new("Part", char)
3639
        orb.Anchored = true
3640
        orb.BrickColor = BrickColor.new("Toothpaste")
3641
        orb.CanCollide = false
3642
        orb.FormFactor = 3
3643
        orb.Name = "Remenant"
3644
        orb.Material = "Neon"
3645
orb.CFrame = root.CFrame*CFrame.new(0,150,0)
3646
        orb.Size = Vector3.new(1, 1, 1)
3647
        orb.Transparency = 1
3648
        orb.TopSurface = 0
3649
        orb.BottomSurface = 0
3650
hum.WalkSpeed = storehumanoidWS
3651
coroutine.resume(coroutine.create(function()
3652
for i = 0, 9 do
3653
swait(10)
3654
				 local lb = Instance.new("Part")
3655
    lb.Color = MAINRUINCOLOR.Color
3656
     lb.CanCollide = false
3657
lb.Material = "Neon"
3658
     lb.Anchored = true
3659
lb.TopSurface = 0
3660
        lb.BottomSurface = 0
3661
     lb.Transparency = 0
3662
     lb.Size = vt(1,1,1)
3663
     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)))
3664
lb.Anchored = false
3665
  lb.Parent = char
3666
local thingery = Instance.new("SpecialMesh",lb)
3667
     thingery.MeshType = "Sphere"
3668
thingery.Scale = vt(20,20,20)
3669
game:GetService("Debris"):AddItem(lb, 10)
3670
  local bv = Instance.new("BodyVelocity")
3671
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3672
  bv.velocity = lb.CFrame.lookVector*math.random(75,250)
3673
  bv.Parent = lb
3674
sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
3675
sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
3676
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
3677
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
3678
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
3679
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
3680
local hitted = false
3681
coroutine.resume(coroutine.create(function()
3682
while true do
3683
swait(1)
3684
if lb.Parent ~= nil and hitted == false then
3685
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)
3686
elseif lb.Parent == nil then
3687
break
3688
end
3689
end
3690
end))
3691
3692
game:GetService("Debris"):AddItem(a, 0.1)
3693
3694
coroutine.resume(coroutine.create(function()
3695
swait(1)
3696
lb.Touched:connect(function(hit)
3697
if hitted == false then
3698
hitted = true
3699
lb.Transparency = 1
3700
lb.Anchored = true
3701
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
3702
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
3703
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
3704
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
3705
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
3706
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
3707
MagniDamage(lb, 45, 45,85, 0, "Normal")
3708
CameraEnshaking(1,5)
3709
sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
3710
sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
3711
for i = 0, 9 do
3712
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)
3713
end
3714
for i = 0, 49 do
3715
swait()
3716
MagniDamage(lb, 30, 2,4, 0, "Normal")
3717
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)
3718
end
3719
end
3720
end)
3721
end))
3722
end
3723
Overed = true
3724
orb:Destroy()
3725
end))
3726
3727
attack = false
3728
end
3729
3730
function StarfallEX()
3731
attack = true
3732
hum.WalkSpeed = 0
3733
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
3734
for i = 0, 10, 0.1 do
3735
swait()
3736
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)
3737
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)
3738
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)
3739
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)
3740
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)
3741
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3742
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)
3743
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)
3744
end
3745
local Overed = false
3746
CameraEnshaking(2,20)
3747
sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3748
sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
3749
sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
3750
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
3751
local orb = Instance.new("Part", char)
3752
        orb.Anchored = true
3753
        orb.BrickColor = BrickColor.new("Toothpaste")
3754
        orb.CanCollide = false
3755
        orb.FormFactor = 3
3756
        orb.Name = "Remenant"
3757
        orb.Material = "Neon"
3758
orb.CFrame = root.CFrame*CFrame.new(0,250,0)
3759
        orb.Size = Vector3.new(1, 1, 1)
3760
        orb.Transparency = 1
3761
        orb.TopSurface = 0
3762
        orb.BottomSurface = 0
3763
hum.WalkSpeed = storehumanoidWS
3764
coroutine.resume(coroutine.create(function()
3765
for i = 0, 4 do
3766
swait(15)
3767
				 local lb = Instance.new("Part")
3768
    lb.Color = MAINRUINCOLOR.Color
3769
     lb.CanCollide = false
3770
lb.Material = "Neon"
3771
     lb.Anchored = true
3772
lb.TopSurface = 0
3773
        lb.BottomSurface = 0
3774
     lb.Transparency = 0
3775
     lb.Size = vt(1,1,1)
3776
     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)))
3777
lb.Anchored = false
3778
  lb.Parent = char
3779
local thingery = Instance.new("SpecialMesh",lb)
3780
     thingery.MeshType = "Sphere"
3781
thingery.Scale = vt(50,50,50)
3782
game:GetService("Debris"):AddItem(lb, 10)
3783
  local bv = Instance.new("BodyVelocity")
3784
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3785
  bv.velocity = lb.CFrame.lookVector*math.random(50,420)
3786
  bv.Parent = lb
3787
sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
3788
sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
3789
CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
3790
CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
3791
CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
3792
CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
3793
local hitted = false
3794
coroutine.resume(coroutine.create(function()
3795
while true do
3796
swait(1)
3797
if lb.Parent ~= nil and hitted == false then
3798
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)
3799
elseif lb.Parent == nil then
3800
break
3801
end
3802
end
3803
end))
3804
3805
game:GetService("Debris"):AddItem(a, 0.1)
3806
3807
coroutine.resume(coroutine.create(function()
3808
swait(1)
3809
lb.Touched:connect(function(hit)
3810
if hitted == false then
3811
hitted = true
3812
lb.Transparency = 1
3813
lb.Anchored = true
3814
CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
3815
CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
3816
CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
3817
CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
3818
CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
3819
CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
3820
MagniDamage(lb, 50, 60,99, 0, "Normal")
3821
CameraEnshaking(1,5)
3822
sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR)
3823
sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR)
3824
for i = 0, 9 do
3825
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)
3826
end
3827
for i = 0, 99 do
3828
swait()
3829
MagniDamage(lb, 30, 6,18, 0, "Normal")
3830
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)
3831
end
3832
end
3833
end)
3834
end))
3835
end
3836
Overed = true
3837
orb:Destroy()
3838
end))
3839
3840
attack = false
3841
end
3842
3843
function DivineBlast()
3844
attack = true
3845
hum.WalkSpeed = 0
3846
local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random())
3847
elocacenter.Anchored = true
3848
elocacenter.CFrame = sorb.CFrame
3849
local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3850
eloca1.Anchored = true
3851
eloca1.CFrame = elocacenter.CFrame
3852
local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3853
eloca2.Anchored = true
3854
eloca2.CFrame = elocacenter.CFrame
3855
local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3856
eloca3.Anchored = true
3857
eloca3.CFrame = elocacenter.CFrame
3858
local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random())
3859
eloca4.Anchored = true
3860
eloca4.CFrame = elocacenter.CFrame
3861
local lookavec = 0 
3862
local speeds = 0
3863
CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
3864
for i = 0, 3, 0.1 do
3865
swait()
3866
---
3867
lookavec = lookavec + 0.1
3868
speeds = speeds + 10
3869
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3870
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3871
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)
3872
3873
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3874
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)
3875
3876
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3877
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)
3878
3879
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3880
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)
3881
---
3882
root.CFrame = FaceMouse()[1]
3883
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)
3884
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)
3885
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)
3886
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)
3887
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3888
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)
3889
end
3890
for i = 0, 3, 0.1 do
3891
swait()
3892
---
3893
speeds = speeds + 10
3894
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3895
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3896
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)
3897
3898
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3899
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)
3900
3901
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3902
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)
3903
3904
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3905
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)
3906
---
3907
root.CFrame = FaceMouse()[1]
3908
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)
3909
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)
3910
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)
3911
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)
3912
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3913
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)
3914
end
3915
CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
3916
for i = 0, 3, 0.1 do
3917
swait()
3918
---
3919
speeds = speeds + 10
3920
elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0)
3921
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
3922
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)
3923
3924
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
3925
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)
3926
3927
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
3928
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)
3929
3930
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
3931
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)
3932
---
3933
root.CFrame = FaceMouse()[1]
3934
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)
3935
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)
3936
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1)
3937
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)
3938
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1)
3939
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)
3940
end
3941
coroutine.resume(coroutine.create(function()
3942
local a = Instance.new("Part",Character)
3943
	a.Name = "Direction"	
3944
	a.Anchored = true
3945
	a.BrickColor = bc("White")
3946
a.Material = "Neon"
3947
a.Transparency = 0
3948
a.Shape = "Cylinder"
3949
	a.CanCollide = false
3950
local a2 = Instance.new("Part",Character)
3951
	a2.Name = "Direction"	
3952
	a2.Anchored = true
3953
	a2.BrickColor = bc("Bright yellow")
3954
a2.Material = "Neon"
3955
a2.Transparency = 0
3956
a2.Shape = "Cylinder"
3957
	a2.CanCollide = false
3958
local b = Instance.new("Part",Character)
3959
	b.Name = "HitDirect"	
3960
	b.Anchored = true
3961
	b.BrickColor = bc("Cool yellow")
3962
b.Material = "Neon"
3963
b.Transparency = 1
3964
	b.CanCollide = false
3965
	local ray = Ray.new(
3966
	    elocacenter.CFrame.p,                           -- origin
3967
	    (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction
3968
	) 
3969
	local ignore = Character
3970
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3971
	a.BottomSurface = 10
3972
	a.TopSurface = 10
3973
	a2.BottomSurface = 10
3974
	a2.TopSurface = 10
3975
	local distance = (elocacenter.CFrame.p - position).magnitude
3976
	a.Size = Vector3.new(distance, 1, 1)
3977
	a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3978
	a2.Size = Vector3.new(distance, 1, 1)
3979
	a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3980
b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance)
3981
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3982
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3983
game:GetService("Debris"):AddItem(a, 10)
3984
game:GetService("Debris"):AddItem(a2, 10)
3985
game:GetService("Debris"):AddItem(b, 10)
3986
local msh = Instance.new("SpecialMesh",a)
3987
msh.MeshType = "Cylinder"
3988
msh.Scale = vt(1,2,2)
3989
local msh2 = Instance.new("SpecialMesh",a2)
3990
msh2.MeshType = "Cylinder"
3991
msh2.Scale = vt(1,2.5,2.5)
3992
CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
3993
coroutine.resume(coroutine.create(function()
3994
for i = 0,10,0.1 do
3995
swait()
3996
msh.Scale = msh.Scale + vt(0,0.05,0.05)
3997
a.Transparency = a.Transparency + 0.025
3998
msh2.Scale = msh2.Scale + vt(0,0.25,0.25)
3999
a2.Transparency = a2.Transparency + 0.05
4000
end
4001
a:Destroy()
4002
a2:Destroy()
4003
end))
4004
CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
4005
CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
4006
CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
4007
CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
4008
CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
4009
CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
4010
MagniDamage(b, 25, 40,65, 0, "Normal")
4011
for i = 0, 49 do
4012
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)
4013
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)
4014
end
4015
sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
4016
sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
4017
sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4018
sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4019
sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4020
sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
4021
end))
4022
game:GetService("Debris"):AddItem(elocacenter, 5)
4023
hum.WalkSpeed = storehumanoidWS
4024
attack = false
4025
end
4026
4027
function StarDivision()
4028
attack = true
4029
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
4030
for i = 0, 2, 0.1 do
4031
swait()
4032
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)
4033
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)
4034
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)
4035
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)
4036
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
4037
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)
4038
end
4039
local orb = Instance.new("Part", char)
4040
        orb.BrickColor = MAINRUINCOLOR
4041
        orb.CanCollide = false
4042
        orb.FormFactor = 3
4043
        orb.Name = "Ring"
4044
        orb.Material = "Neon"
4045
        orb.Size = Vector3.new(1, 1, 1)
4046
        orb.Transparency = 0
4047
        orb.TopSurface = 0
4048
        orb.BottomSurface = 0
4049
        local orbm = Instance.new("SpecialMesh", orb)
4050
        orbm.MeshType = "Sphere"
4051
orbm.Name = "SizeMesh"
4052
orbm.Scale = vt(2,2,2)
4053
local a = Instance.new("Part",workspace)
4054
	a.Name = "Direction"	
4055
	a.Anchored = true
4056
	a.BrickColor = bc("Bright red")
4057
a.Material = "Neon"
4058
a.Transparency = 1
4059
	a.CanCollide = false
4060
	local ray = Ray.new(
4061
	    sorb.CFrame.p,                           -- origin
4062
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
4063
	) 
4064
	local ignore = sorb
4065
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
4066
	a.BottomSurface = 10
4067
	a.TopSurface = 10
4068
	local distance = (sorb.CFrame.p - position).magnitude
4069
	a.Size = Vector3.new(0.1, 0.1, 0.1)
4070
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
4071
orb.CFrame = a.CFrame
4072
a:Destroy()
4073
local bv = Instance.new("BodyVelocity")
4074
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4075
bv.velocity = orb.CFrame.lookVector*100
4076
bv.Parent = orb
4077
local hitted = false
4078
game:GetService("Debris"):AddItem(orb, 10)
4079
CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
4080
CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
4081
CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
4082
CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
4083
CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
4084
coroutine.resume(coroutine.create(function()
4085
while true do
4086
swait(1)
4087
if orb.Parent ~= nil and hitted == false then
4088
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)
4089
elseif orb.Parent == nil then
4090
break
4091
end
4092
end
4093
end))
4094
coroutine.resume(coroutine.create(function()
4095
swait(1)
4096
orb.Touched:connect(function(hit)
4097
if hitted == false then
4098
hitted = true
4099
game:GetService("Debris"):AddItem(orb, 5)
4100
orb.Transparency = 1
4101
orb.Anchored = true
4102
local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4103
elocacenter.Anchored = true
4104
elocacenter.CFrame = orb.CFrame
4105
elocacenter.Orientation = vt(0,0,0)
4106
local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4107
eloca1.Anchored = true
4108
eloca1.CFrame = elocacenter.CFrame
4109
local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4110
eloca2.Anchored = true
4111
eloca2.CFrame = elocacenter.CFrame
4112
local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4113
eloca3.Anchored = true
4114
eloca3.CFrame = elocacenter.CFrame
4115
local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4116
eloca4.Anchored = true
4117
eloca4.CFrame = elocacenter.CFrame
4118
local lookavec = 0 
4119
local speeds = 0
4120
CameraEnshaking(1,1)
4121
CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
4122
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4123
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4124
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4125
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4126
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4127
for i = 0, 99 do
4128
swait()
4129
lookavec = lookavec + 1
4130
speeds = speeds + 0.1
4131
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4132
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4133
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)
4134
4135
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4136
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)
4137
4138
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4139
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)
4140
4141
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4142
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)
4143
end
4144
4145
for i = 0, 149 do
4146
swait()
4147
speeds = speeds + 0.1
4148
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4149
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4150
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)
4151
4152
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4153
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)
4154
4155
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4156
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)
4157
4158
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4159
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)
4160
end
4161
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
4162
if v:FindFirstChild('Head') then
4163
dmg(v)
4164
end
4165
end
4166
CameraEnshaking(7,30)
4167
MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
4168
CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
4169
CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
4170
CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
4171
CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
4172
sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
4173
sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
4174
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4175
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4176
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4177
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4178
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4179
for i = 0, 24 do
4180
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)
4181
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)
4182
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)
4183
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)
4184
end
4185
coroutine.resume(coroutine.create(function()
4186
for i = 0, 499 do
4187
swait(1)
4188
MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
4189
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)
4190
end
4191
elocacenter:Destroy()
4192
eloca1:Destroy()
4193
eloca2:Destroy()
4194
eloca3:Destroy()
4195
eloca4:Destroy()
4196
end))
4197
end
4198
end)
4199
end))
4200
attack = false
4201
end
4202
4203
4204
function THE_TRUE_POWER_OF_VIOLENCE()
4205
attack = true
4206
hum.WalkSpeed = 0
4207
CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7)
4208
for i = 0, 10, 0.1 do
4209
swait()
4210
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)
4211
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)
4212
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.4)
4213
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4)
4214
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4)
4215
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4216
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)
4217
end
4218
local orb = Instance.new("Part", char)
4219
        orb.BrickColor = MAINRUINCOLOR
4220
        orb.CanCollide = false
4221
        orb.FormFactor = 3
4222
        orb.Name = "Ring"
4223
        orb.Material = "Neon"
4224
        orb.Size = Vector3.new(1, 1, 1)
4225
        orb.Transparency = 0
4226
        orb.TopSurface = 0
4227
        orb.BottomSurface = 0
4228
orb.CFrame = sorb.CFrame
4229
        local orbm = Instance.new("SpecialMesh", orb)
4230
        orbm.MeshType = "Sphere"
4231
orbm.Name = "SizeMesh"
4232
orbm.Scale = vt(0,0,0)
4233
        local sbs = Instance.new("BodyPosition", orb)
4234
        sbs.P = 3000
4235
        sbs.D = 1000
4236
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
4237
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0)
4238
CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
4239
sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4240
sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4241
sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4242
sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4243
sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
4244
for i = 0, 10, 0.1 do
4245
swait()
4246
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)
4247
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)
4248
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)
4249
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
4250
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6)
4251
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4)
4252
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)
4253
end
4254
orb.Anchored = true
4255
local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4256
elocacenter.Anchored = true
4257
elocacenter.CFrame = orb.CFrame
4258
elocacenter.Orientation = vt(0,0,0)
4259
local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4260
eloca1.Anchored = true
4261
eloca1.CFrame = elocacenter.CFrame
4262
local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4263
eloca2.Anchored = true
4264
eloca2.CFrame = elocacenter.CFrame
4265
local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4266
eloca3.Anchored = true
4267
eloca3.CFrame = elocacenter.CFrame
4268
local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random())
4269
eloca4.Anchored = true
4270
eloca4.CFrame = elocacenter.CFrame
4271
local lookavec = 0 
4272
local speeds = 0
4273
CameraEnshaking(1,1)
4274
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
4275
CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
4276
CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
4277
CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
4278
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4279
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4280
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4281
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4282
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4283
for i = 0, 99 do
4284
swait()
4285
lookavec = lookavec + 2.5
4286
speeds = speeds + 0.25
4287
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4288
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4289
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)
4290
4291
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4292
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)
4293
4294
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4295
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)
4296
4297
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4298
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)
4299
end
4300
4301
for i = 0, 149 do
4302
swait()
4303
speeds = speeds + 0.25
4304
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4305
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4306
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)
4307
4308
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4309
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)
4310
4311
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4312
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)
4313
4314
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4315
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)
4316
end
4317
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
4318
for i = 0, 99 do
4319
swait()
4320
lookavec = lookavec - 2.5
4321
speeds = speeds + 0.25
4322
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4323
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4324
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)
4325
4326
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4327
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)
4328
4329
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4330
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)
4331
4332
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4333
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)
4334
end
4335
local scaled = 0.1*75
4336
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
4337
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
4338
CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
4339
CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
4340
CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
4341
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
4342
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4343
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4344
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4345
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4346
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4347
for i = 0, 10, 0.1 do
4348
swait()
4349
scaled = scaled - 0.001*75
4350
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4351
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)
4352
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)
4353
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)
4354
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6)
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
for x = 0, 4 do
4360
for i = 0, 9 do
4361
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)
4362
end
4363
CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
4364
CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
4365
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4366
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4367
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4368
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4369
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4370
for i = 0, 5, 0.1 do
4371
swait()
4372
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)
4373
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)
4374
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)
4375
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
4376
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)
4377
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1)
4378
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1)
4379
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1)
4380
end
4381
end
4382
local speedearn = 0
4383
CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
4384
CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
4385
CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
4386
for i = 0, 30, 0.1 do
4387
swait()
4388
scaled = scaled - 0.001*75/10
4389
speedearn = speedearn + 0.5
4390
for i = 0, 4 do 
4391
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)
4392
end
4393
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)
4394
orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
4395
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)
4396
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)
4397
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)
4398
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)
4399
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
4400
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6)
4401
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4)
4402
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6)
4403
end
4404
orb.Transparency = 1
4405
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do
4406
if v:FindFirstChild('Head') then
4407
dmg(v)
4408
end
4409
end
4410
CameraEnshaking(7,30)
4411
MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal")
4412
CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
4413
CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
4414
CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
4415
CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
4416
CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
4417
CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
4418
CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
4419
CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
4420
CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
4421
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
4422
CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
4423
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
4424
CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
4425
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4426
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4427
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4428
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4429
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
4430
for i = 0, 99 do
4431
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)
4432
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)
4433
end
4434
for i = 0, 24 do
4435
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)
4436
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)
4437
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)
4438
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)
4439
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)
4440
end
4441
game:GetService("Debris"):AddItem(orb, 10)
4442
hum.WalkSpeed = storehumanoidWS
4443
attack = false
4444
end
4445
4446
4447
function ViolentRing()
4448
attack = true
4449
CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1)
4450
for i = 0, 2, 0.1 do
4451
swait()
4452
local snap = math.random(1,10)
4453
if snap == 1 then
4454
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)
4455
end
4456
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)
4457
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)
4458
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)
4459
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)
4460
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)
4461
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)
4462
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6)
4463
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4)
4464
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)
4465
RootPart.CFrame = FaceMouse()[1]
4466
end
4467
local orb = Instance.new("Part", char)
4468
        orb.BrickColor = MAINRUINCOLOR
4469
        orb.CanCollide = false
4470
        orb.FormFactor = 3
4471
        orb.Name = "Ring"
4472
        orb.Material = "Neon"
4473
        orb.Size = Vector3.new(1, 1, 1)
4474
        orb.Transparency = 0
4475
        orb.TopSurface = 0
4476
        orb.BottomSurface = 0
4477
        local orbm = Instance.new("SpecialMesh", orb)
4478
        orbm.MeshType = "Sphere"
4479
orbm.Name = "SizeMesh"
4480
orbm.Scale = vt(2,2,2)
4481
orb.CFrame = mouse.Hit
4482
local bv = Instance.new("BodyVelocity")
4483
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4484
bv.velocity = orb.CFrame.lookVector*100
4485
bv.Parent = orb
4486
local hitted = false
4487
coroutine.resume(coroutine.create(function()
4488
game:GetService("Debris"):AddItem(orb, 5)
4489
orb.Transparency = 1
4490
orb.Anchored = true
4491
local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4492
elocacenter.Anchored = true
4493
elocacenter.CFrame = orb.CFrame
4494
elocacenter.Orientation = vt(0,0,0)
4495
local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4496
eloca1.Anchored = true
4497
eloca1.CFrame = elocacenter.CFrame
4498
local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4499
eloca2.Anchored = true
4500
eloca2.CFrame = elocacenter.CFrame
4501
local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4502
eloca3.Anchored = true
4503
eloca3.CFrame = elocacenter.CFrame
4504
local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
4505
eloca4.Anchored = true
4506
eloca4.CFrame = elocacenter.CFrame
4507
local lookavec = 0 
4508
local speeds = 0
4509
CameraEnshaking(1,1)
4510
CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
4511
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4512
sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4513
sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4514
sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4515
sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
4516
for i = 0, 24 do
4517
swait()
4518
lookavec = lookavec + 3.5
4519
speeds = speeds + 1
4520
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4521
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4522
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)
4523
4524
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4525
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)
4526
4527
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4528
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)
4529
4530
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4531
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)
4532
end
4533
4534
local risen = 0
4535
for i = 0, 49 do
4536
swait()
4537
risen = risen + 0.05
4538
speeds = speeds + 0.1
4539
elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
4540
eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
4541
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)
4542
4543
eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
4544
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)
4545
4546
eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
4547
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)
4548
4549
eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
4550
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)
4551
end
4552
for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do
4553
if v:FindFirstChild('Head') then
4554
dmg(v)
4555
end
4556
end
4557
CameraEnshaking(4,10)
4558
MagniDamage(elocacenter, 150, 50,75, 0, "Normal")
4559
CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
4560
CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
4561
CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
4562
CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
4563
CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
4564
sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR)
4565
sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR)
4566
sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4567
sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4568
sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4569
sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4570
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4571
sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR)
4572
for i = 0, 24 do
4573
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)
4574
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)
4575
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)
4576
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)
4577
end
4578
coroutine.resume(coroutine.create(function()
4579
wait(10)
4580
elocacenter:Destroy()
4581
eloca1:Destroy()
4582
eloca2:Destroy()
4583
eloca3:Destroy()
4584
eloca4:Destroy()
4585
end))
4586
end))
4587
attack = false
4588
end
4589
4590
function UniversalCollapse()
4591
attack = true
4592
local speedearn = 0
4593
hum.WalkSpeed = 0
4594
        local sbs = Instance.new("BodyPosition", root)
4595
        sbs.P = 3000
4596
        sbs.D = 1000
4597
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
4598
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0)
4599
CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
4600
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
4601
for i = 0, 110, 0.1 do
4602
swait()
4603
speedearn = speedearn + 0.1
4604
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)
4605
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)
4606
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)
4607
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)
4608
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)
4609
sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR)
4610
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)
4611
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)
4612
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)
4613
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
4614
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)
4615
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)
4616
end
4617
CameraEnshaking(5,50)
4618
sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
4619
for i = 0, 2 do 
4620
CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
4621
CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
4622
CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
4623
CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
4624
end
4625
for i = 0, 49 do
4626
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)
4627
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)
4628
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)
4629
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)
4630
end
4631
sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4632
sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4633
sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4634
sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4635
sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4636
sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR)
4637
sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4638
sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4639
sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4640
sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4641
sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4642
sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
4643
for i = 0, 99 do
4644
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)
4645
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)
4646
end
4647
for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do
4648
if v:FindFirstChild('Head') then
4649
dmg(v)
4650
end
4651
end
4652
MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal")
4653
sbs:Destroy()
4654
hum.WalkSpeed = storehumanoidWS
4655
attack = false
4656
end
4657
4658
4659
function ChaosEND()
4660
attack = true
4661
local speedearn = 0
4662
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
4663
for i = 0, 15, 0.1 do
4664
swait()
4665
speedearn = speedearn + 0.25
4666
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)
4667
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)
4668
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)
4669
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)
4670
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)
4671
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)
4672
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)
4673
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4674
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4675
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
4676
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
4677
end
4678
CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
4679
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
4680
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
4681
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
4682
CameraEnshaking(5,25)
4683
for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
4684
if v:FindFirstChild('Head') then
4685
dmg(v)
4686
end
4687
end
4688
sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
4689
sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
4690
sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
4691
for i = 0, 3, 0.1 do
4692
swait()
4693
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)
4694
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)
4695
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)
4696
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)
4697
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)
4698
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)
4699
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4700
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
4701
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
4702
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
4703
end
4704
attack = false
4705
end
4706
4707
function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
4708
local orb = Instance.new("Part", char)
4709
        orb.Anchored = true
4710
        orb.BrickColor = color
4711
        orb.CanCollide = false
4712
        orb.FormFactor = 3
4713
        orb.Name = "Ring"
4714
        orb.Material = "Neon"
4715
        orb.Size = Vector3.new(1, 1, 1)
4716
        orb.Transparency = 0
4717
        orb.TopSurface = 0
4718
        orb.BottomSurface = 0
4719
        local orbm = Instance.new("SpecialMesh", orb)
4720
        orbm.MeshType = "Sphere"
4721
orb.CFrame = positted
4722
orbm.Name = "SizeMesh"
4723
orbm.Scale = vt(1,1,1)
4724
CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
4725
sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
4726
--[[for i = 0, 2 do
4727
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)
4728
end]]--
4729
coroutine.resume(coroutine.create(function()
4730
wait(timer)
4731
CameraEnshaking(3,ShakePower)
4732
orb.Transparency = 1
4733
MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
4734
sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
4735
--[[for i = 0, 4 do
4736
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)
4737
end]]--
4738
CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
4739
wait(3)
4740
orb:Destroy()
4741
end))
4742
end
4743
4744
function orb_spawn(positted,timer)
4745
local randomcol = math.random(1,2)
4746
local orb = Instance.new("Part", char)
4747
        orb.Anchored = true
4748
if randomcol == 1 then
4749
        orb.BrickColor = BrickColor.new("White")
4750
elseif randomcol == 2 then
4751
orb.BrickColor = BrickColor.new("Really black")
4752
end
4753
        orb.CanCollide = false
4754
        orb.FormFactor = 3
4755
        orb.Name = "Ring"
4756
        orb.Material = "Neon"
4757
        orb.Size = Vector3.new(1, 1, 1)
4758
        orb.Transparency = 0
4759
        orb.TopSurface = 0
4760
        orb.BottomSurface = 0
4761
        local orbm = Instance.new("SpecialMesh", orb)
4762
        orbm.MeshType = "Sphere"
4763
orb.CFrame = positted
4764
orbm.Name = "SizeMesh"
4765
orbm.Scale = vt(1,1,1)
4766
CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
4767
sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
4768
for i = 0, 2 do
4769
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)
4770
end
4771
coroutine.resume(coroutine.create(function()
4772
wait(timer)
4773
CameraEnshaking(3,2)
4774
orb.Transparency = 1
4775
MagniDamage(orb, 17.5, 10,50, 0, "Normal")
4776
sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
4777
for i = 0, 4 do
4778
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)
4779
end
4780
CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
4781
wait(3)
4782
orb:Destroy()
4783
end))
4784
end
4785
4786
function scattercorrupt()
4787
attack = true
4788
local rot = 0
4789
local randomrotations = math.random(1,2)
4790
local lookv = 2.5
4791
local power = 5
4792
sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
4793
sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
4794
for i = 0, 9 do
4795
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)
4796
end
4797
	CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
4798
	CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
4799
	CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
4800
CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
4801
CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
4802
local hite = Instance.new("Part", char)
4803
        hite.Anchored = true
4804
        hite.CanCollide = false
4805
        hite.FormFactor = 3
4806
        hite.Name = "Ring"
4807
        hite.Material = "Neon"
4808
        hite.Size = Vector3.new(1, 1, 1)
4809
        hite.Transparency = 1
4810
        hite.TopSurface = 0
4811
        hite.BottomSurface = 0
4812
hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
4813
local rem = Instance.new("Part", char)
4814
        rem.Anchored = true
4815
        rem.CanCollide = false
4816
        rem.FormFactor = 3
4817
        rem.Name = "Ring"
4818
        rem.Material = "Neon"
4819
        rem.Size = Vector3.new(1, 1, 1)
4820
        rem.Transparency = 1
4821
        rem.TopSurface = 0
4822
        rem.BottomSurface = 0
4823
rem.CFrame = hite.CFrame
4824
local rem2 = rem:Clone()
4825
rem2.Parent = char
4826
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
4827
local rem3 = rem:Clone()
4828
rem3.Parent = char
4829
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
4830
local rem4 = rem:Clone()
4831
rem4.Parent = char
4832
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
4833
hite:Destroy()
4834
coroutine.resume(coroutine.create(function()
4835
for i = 0, 24 do
4836
swait(1)
4837
if randomrotations == 1 then
4838
rot = rot + 1
4839
elseif randomrotations == 2 then
4840
rot = rot - 1
4841
end
4842
power = power + 0.5
4843
lookv = lookv + 7.5
4844
rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
4845
rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
4846
rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
4847
rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
4848
orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4849
orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4850
orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4851
orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
4852
end
4853
end))
4854
attack = false
4855
end
4856
function yinyangi()
4857
attack = true
4858
for i = 0, 2, 0.1 do
4859
swait()
4860
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)
4861
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)
4862
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)
4863
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
4864
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
4865
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
4866
end
4867
local bv = Instance.new("BodyVelocity")
4868
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
4869
bv.velocity = root.CFrame.lookVector*175
4870
bv.Parent = root
4871
for Rotations = 0, 9 do
4872
for i = 0, 1, 0.5 do
4873
swait()
4874
bv.velocity = root.CFrame.lookVector*175
4875
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)
4876
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)
4877
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)
4878
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4879
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4880
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4881
end
4882
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4883
for i = 0, 1, 0.5 do
4884
swait()
4885
bv.velocity = root.CFrame.lookVector*175
4886
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)
4887
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)
4888
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)
4889
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4890
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4891
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4892
end
4893
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4894
for i = 0, 1, 0.5 do
4895
swait()
4896
bv.velocity = root.CFrame.lookVector*175
4897
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)
4898
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)
4899
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)
4900
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4901
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4902
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4903
end
4904
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4905
for i = 0, 1, 0.5 do
4906
swait()
4907
bv.velocity = root.CFrame.lookVector*175
4908
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)
4909
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)
4910
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)
4911
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
4912
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
4913
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
4914
end
4915
orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
4916
end
4917
bv:Destroy()
4918
attack = false
4919
end
4920
4921
function createBGCircle(size,parent,color)
4922
local bgui = Instance.new("BillboardGui",parent)
4923
bgui.Size = UDim2.new(size, 0, size, 0)
4924
local imgc = Instance.new("ImageLabel",bgui)
4925
imgc.BackgroundTransparency = 1
4926
imgc.ImageTransparency = 0
4927
imgc.Size = UDim2.new(1,0,1,0)
4928
imgc.Image = "rbxassetid://997291547" --997291547,521073910
4929
imgc.ImageColor3 = color
4930
return bgui,imgc
4931
end
4932
4933
function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
4934
local bgui,imgc = createBGCircle(size,guipar,color)
4935
bgui.AlwaysOnTop = true
4936
imgc.Image = "rbxassetid://" ..img
4937
local rrot = math.random(1,2)
4938
CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
4939
coroutine.resume(coroutine.create(function()
4940
for i = 0, 24*delay do
4941
swait()
4942
if rotationenabled == true then
4943
if rrot == 1 then
4944
imgc.Rotation = imgc.Rotation + rotsp
4945
elseif rrot == 2 then
4946
imgc.Rotation = imgc.Rotation - rotsp
4947
end
4948
end
4949
bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
4950
imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
4951
end
4952
bgui:Destroy()
4953
end))
4954
end
4955
function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled)
4956
for i, v in pairs(mw2:GetChildren()) do
4957
if v:IsA("Part") then
4958
v.BrickColor = one
4959
v.Material = "Neon"
4960
end
4961
end
4962
CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
4963
symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1)
4964
symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1)
4965
tr1.Color = ColorSequence.new(one.Color)
4966
tr2.Color = ColorSequence.new(one.Color)
4967
tr3.Color = ColorSequence.new(one.Color)
4968
for i, v in pairs(mw1:GetChildren()) do
4969
if v:IsA("Part") then
4970
if secondaryenabled == false then
4971
v.Transparency = 1
4972
elseif secondaryenabled == true then
4973
v.Transparency = 0
4974
end
4975
v.BrickColor = two
4976
v.Material = "Neon"
4977
end
4978
end
4979
if secondaryenabled == false then
4980
tl1.Enabled = false
4981
tl2.Enabled = false
4982
tl3.Enabled = false
4983
elseif secondaryenabled == true then
4984
tl1.Enabled = true
4985
tl2.Enabled = true
4986
tl3.Enabled = true
4987
end
4988
tl1.Color = ColorSequence.new(two.Color)
4989
tl2.Color = ColorSequence.new(two.Color)
4990
tl3.Color = ColorSequence.new(two.Color)
4991
for i, v in pairs(m:GetChildren()) do
4992
if v:IsA("Part") then
4993
v.BrickColor = three
4994
v.Material = "Ice"
4995
end
4996
end
4997
for i, v in pairs(m2:GetChildren()) do
4998
if v:IsA("Part") then
4999
v.BrickColor = four
5000
v.Material = "Ice"
5001
end
5002
end
5003
for i, v in pairs(m3:GetChildren()) do
5004
if v:IsA("Part") then
5005
v.BrickColor = five
5006
v.Material = "Neon"
5007
end
5008
end
5009
for i, v in pairs(extrawingmod1:GetChildren()) do
5010
if v:IsA("Part") then
5011
v.Transparency = exonetran
5012
v.BrickColor = exone
5013
v.Material = "Neon"
5014
end
5015
end
5016
for i, v in pairs(extrawingmod2:GetChildren()) do
5017
if v:IsA("Part") then
5018
v.Transparency = extwotran
5019
v.BrickColor = extwo
5020
v.Material = "Neon"
5021
end
5022
end
5023
end
5024
5025
5026
function normalmog()
5027
attack = true
5028
hum.WalkSpeed = 0
5029
CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
5030
for i = 0,6,0.1 do
5031
swait()
5032
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)
5033
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)
5034
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)
5035
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)
5036
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2)
5037
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)
5038
RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2)
5039
LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2)
5040
end
5041
CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
5042
CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
5043
CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
5044
CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
5045
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
5046
CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
5047
CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
5048
rainbowmode = false
5049
chaosmode = false
5050
ModeOfGlitch = 1
5051
storehumanoidWS = 16
5052
newTheme("rbxassetid://536049623",48.6,1,1.25)
5053
RecolorTextAndRename("ALONE",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
5054
CameraEnshaking(5,2.5)
5055
MAINRUINCOLOR = BrickColor.new("Really red")
5056
sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
5057
for i = 0, 49 do
5058
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)
5059
end
5060
for i = 0, 24 do
5061
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)
5062
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"))
5063
end
5064
for i = 0,3,0.1 do
5065
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)
5066
end
5067
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
5068
for i = 0,2,0.1 do
5069
swait()
5070
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)
5071
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)
5072
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
5073
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)
5074
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)
5075
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)
5076
end
5077
hum.WalkSpeed = storehumanoidWS
5078
attack = false
5079
end
5080
5081
function attackone()
5082
	attack = true
5083
local keptcolor = MAINRUINCOLOR
5084
	for i = 0,1,0.1 do
5085
		swait()
5086
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
5087
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
5088
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
5089
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
5090
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)
5091
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)
5092
	end
5093
local distlook = 5
5094
coroutine.resume(coroutine.create(function()
5095
for i = 0, 4 do
5096
swait(2)
5097
CameraEnshaking(2,3)
5098
local hite = Instance.new("Part", char)
5099
        hite.Anchored = true
5100
        hite.CanCollide = false
5101
        hite.FormFactor = 3
5102
        hite.Name = "Ring"
5103
        hite.Material = "Neon"
5104
        hite.Size = Vector3.new(1, 1, 1)
5105
        hite.Transparency = 1
5106
        hite.TopSurface = 0
5107
        hite.BottomSurface = 0
5108
hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
5109
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)
5110
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)
5111
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)
5112
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)
5113
MagniDamage(hite, 9, 10,25, 0, "Normal")
5114
for i = 0, 14 do
5115
local rsiz = math.random(5,20)
5116
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)
5117
end
5118
CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
5119
CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
5120
game:GetService("Debris"):AddItem(hite, 5)
5121
distlook = distlook + 10
5122
end
5123
end))
5124
	for i = 0,1,0.1 do
5125
		swait()
5126
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
5127
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
5128
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
5129
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
5130
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)
5131
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)
5132
	end
5133
	attack = false
5134
end
5135
5136
function attacktwo()
5137
	attack = true
5138
hum.WalkSpeed = 2
5139
local keptcolor = MAINRUINCOLOR
5140
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
5141
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)
5142
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)
5143
for i = 0, 14 do
5144
end
5145
for i = 0,1,0.1 do
5146
swait()
5147
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)
5148
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)
5149
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)
5150
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
5151
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3)
5152
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
5153
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
5154
end
5155
for i = 0, 1 do
5156
CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1)
5157
for i = 0,1,0.6 do
5158
swait()
5159
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)
5160
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)
5161
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)
5162
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
5163
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5164
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5165
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5166
end
5167
for i = 0,1,0.6 do
5168
swait()
5169
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)
5170
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)
5171
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)
5172
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6)
5173
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5174
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5175
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5176
end
5177
for i = 0,1,0.6 do
5178
swait()
5179
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)
5180
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)
5181
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)
5182
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6)
5183
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5184
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5185
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5186
end
5187
for i = 0,1,0.6 do
5188
swait()
5189
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)
5190
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)
5191
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)
5192
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6)
5193
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6)
5194
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6)
5195
LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6)
5196
end
5197
local rot = 0
5198
local dis = CreateParta(char,0.5,1,"Neon",keptcolor)
5199
CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
5200
dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
5201
CreateMesh(dis,"Sphere",10,1,10)
5202
local at1 = Instance.new("Attachment",dis)
5203
at1.Position = vt(-5,0,0)
5204
local at2 = Instance.new("Attachment",dis)
5205
at2.Position = vt(5,0,0)
5206
local trl = Instance.new('Trail',wed)
5207
trl.Attachment0 = at1
5208
trl.Attachment1 = at2
5209
trl.Texture = "rbxassetid://1049219073"
5210
trl.LightEmission = 1
5211
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5212
trl.Color = ColorSequence.new(dis.Color)
5213
trl.Lifetime = 0.6
5214
local a = Instance.new("Part",workspace)
5215
	a.Name = "Direction"	
5216
	a.Anchored = true
5217
	a.BrickColor = bc("Bright red")
5218
a.Material = "Neon"
5219
a.Transparency = 1
5220
	a.CanCollide = false
5221
	local ray = Ray.new(
5222
	    dis.CFrame.p,                           -- origin
5223
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
5224
	) 
5225
	local ignore = dis
5226
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5227
	a.BottomSurface = 10
5228
	a.TopSurface = 10
5229
	local distance = (dis.CFrame.p - position).magnitude
5230
	a.Size = Vector3.new(0.1, 0.1, 0.1)
5231
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
5232
dis.CFrame = a.CFrame
5233
dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
5234
a:Destroy()
5235
local bv = Instance.new("BodyVelocity")
5236
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5237
bv.velocity = dis.CFrame.lookVector*250
5238
bv.Parent = dis
5239
game:GetService("Debris"):AddItem(dis, 5)
5240
local hitted = false
5241
coroutine.resume(coroutine.create(function()
5242
dis.Touched:connect(function(hit) 
5243
	if hitted == false and hit.Parent ~= char then
5244
	hitted = true
5245
	CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
5246
	MagniDamage(dis, 30, 33,56, 0, "Normal")
5247
	sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
5248
	sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5249
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5250
	coroutine.resume(coroutine.create(function()
5251
		for i = 0, 9 do
5252
local disr = CreateParta(char,1,1,"Neon",keptcolor)
5253
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
5254
local at1 = Instance.new("Attachment",disr)
5255
at1.Position = vt(-5,0,0)
5256
local at2 = Instance.new("Attachment",disr)
5257
at2.Position = vt(5,0,0)
5258
local trl = Instance.new('Trail',disr)
5259
trl.Attachment0 = at1
5260
trl.FaceCamera = true
5261
trl.Attachment1 = at2
5262
trl.Texture = "rbxassetid://2342682798"
5263
trl.LightEmission = 1
5264
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5265
trl.Color = ColorSequence.new(keptcolor.Color)
5266
trl.Lifetime = 0.5
5267
local bv = Instance.new("BodyVelocity")
5268
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5269
bv.velocity = disr.CFrame.lookVector*math.random(50,200)
5270
bv.Parent = disr
5271
local val = 0
5272
coroutine.resume(coroutine.create(function()
5273
	swait(30)
5274
	for i = 0, 9 do
5275
		swait()
5276
		val = val + 0.1
5277
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
5278
	end
5279
game:GetService("Debris"):AddItem(disr, 3)
5280
end))
5281
end
5282
local eff = Instance.new("ParticleEmitter",dis)
5283
eff.Texture = "rbxassetid://2273224484"
5284
eff.LightEmission = 1
5285
eff.Color = ColorSequence.new(keptcolor.Color)
5286
eff.Rate = 50
5287
eff.Lifetime = NumberRange.new(0.5,2)
5288
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)})
5289
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)})
5290
eff.Speed = NumberRange.new(20,250)
5291
eff.Drag = 5
5292
eff.Rotation = NumberRange.new(-500,500)
5293
eff.VelocitySpread = 9000
5294
eff.RotSpeed = NumberRange.new(-50,50)
5295
wait(0.25)
5296
eff.Enabled = false
5297
end))
5298
	for i = 0, 9 do
5299
			end
5300
for i = 0, 19 do
5301
end
5302
coroutine.resume(coroutine.create(function()
5303
for i = 0, 19 do
5304
swait()
5305
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
5306
end
5307
hum.CameraOffset = vt(0,0,0)
5308
end))
5309
dis.Anchored = true
5310
dis.Transparency = 1
5311
wait(8)
5312
dis:Destroy()
5313
end
5314
end)
5315
end))
5316
rot = rot - 15
5317
end
5318
for i = 0,2,0.1 do
5319
swait()
5320
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)
5321
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)
5322
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
5323
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3)
5324
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
5325
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3)
5326
end
5327
attack = false
5328
hum.WalkSpeed = storehumanoidWS
5329
end
5330
5331
function attackthree()
5332
attack = true
5333
local keptcolor = MAINRUINCOLOR
5334
CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
5335
	for i = 0,2,0.1 do
5336
		swait()
5337
		sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5338
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3)
5339
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
5340
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3)
5341
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3)
5342
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)
5343
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)
5344
	end
5345
CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1)
5346
CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9)
5347
CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5)
5348
CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1)
5349
sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
5350
sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR)
5351
for i = 0, 24 do
5352
	end
5353
for i = 0,4,0.1 do
5354
		swait()
5355
		root.CFrame = root.CFrame + root.CFrame.lookVector*5
5356
		local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
5357
CreateMesh(dis,"Sphere",1,1,1)
5358
dis.Anchored = true
5359
dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
5360
sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
5361
coroutine.resume(coroutine.create(function()
5362
	swait(30)
5363
	dis.Transparency = 1
5364
coroutine.resume(coroutine.create(function()
5365
for i = 0, 19 do
5366
swait()
5367
hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
5368
end
5369
hum.CameraOffset = vt(0,0,0)
5370
end))
5371
coroutine.resume(coroutine.create(function()
5372
local eff = Instance.new("ParticleEmitter",dis)
5373
eff.Texture = "rbxassetid://2273224484"
5374
eff.LightEmission = 1
5375
eff.Color = ColorSequence.new(dis.Color)
5376
eff.Rate = 500000
5377
eff.Lifetime = NumberRange.new(0.5,2)
5378
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)})
5379
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)})
5380
eff.Speed = NumberRange.new(50,450)
5381
eff.Drag = 5
5382
eff.Rotation = NumberRange.new(-500,500)
5383
eff.VelocitySpread = 9000
5384
eff.RotSpeed = NumberRange.new(-50,50)
5385
wait(0.125)
5386
eff.Enabled = false
5387
end))
5388
MagniDamage(dis, 30, 45,50, 0, "Normal")
5389
    for i = 0, 2 do
5390
		--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)
5391
	end
5392
	CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1)
5393
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5)
5394
	CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65)
5395
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color)
5396
end))
5397
game:GetService("Debris"):AddItem(dis, 5)
5398
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5)
5399
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5)
5400
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5)
5401
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5)
5402
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)
5403
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)
5404
	end
5405
attack = false
5406
end
5407
----------------------------------- Abilities
5408
5409
function ExtinctiveHeartbreak()
5410
local targetted = nil
5411
if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
5412
targetted = mouse.Target.Parent
5413
end
5414
if targetted ~= nil then
5415
attack = true
5416
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
5417
for i = 0, 9 do
5418
--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)
5419
end
5420
for i = 0, 24 do
5421
--
5422
end
5423
--sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5424
local originalpos = root.CFrame
5425
RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
5426
for i = 0, 9 do
5427
--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)
5428
end
5429
for i = 0, 24 do
5430
end
5431
hum.WalkSpeed = 0
5432
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5433
local radm = math.random(1,3)
5434
if radm == 1 then
5435
--bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2)
5436
elseif radm == 2 then
5437
--bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2)
5438
elseif radm == 3 then
5439
--bosschatfunc("DIE!",MAINRUINCOLOR.Color,2)
5440
end
5441
for i = 0,2,0.1 do
5442
swait()
5443
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)
5444
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)
5445
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)
5446
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
5447
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)
5448
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)
5449
end
5450
CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
5451
CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
5452
for i = 0,2,0.1 do
5453
swait()
5454
coroutine.resume(coroutine.create(function()
5455
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
5456
for i,v in pairs(targetted:GetChildren()) do
5457
if v:IsA("Part") or v:IsA("MeshPart") then
5458
v.Velocity = vt(0,0,0)
5459
end
5460
end
5461
end))
5462
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)
5463
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)
5464
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)
5465
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
5466
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)
5467
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)
5468
end
5469
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
5470
CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
5471
for i = 0, 1 do
5472
CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
5473
end
5474
CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
5475
--chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
5476
for i = 0,4,0.1 do
5477
swait()
5478
coroutine.resume(coroutine.create(function()
5479
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
5480
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)))
5481
local at1 = Instance.new("Attachment",dis)
5482
at1.Position = vt(-25000,0,0)
5483
local at2 = Instance.new("Attachment",dis)
5484
at2.Position = vt(25000,0,0)
5485
local trl = Instance.new('Trail',dis)
5486
trl.Attachment0 = at1
5487
trl.FaceCamera = true
5488
trl.Attachment1 = at2
5489
trl.Texture = "rbxassetid://1049219073"
5490
trl.LightEmission = 1
5491
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5492
trl.Color = ColorSequence.new(Color3.new(1,0,0))
5493
trl.Lifetime = 5
5494
local bv = Instance.new("BodyVelocity")
5495
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5496
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
5497
bv.Parent = dis
5498
game:GetService("Debris"):AddItem(dis, 5)
5499
targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
5500
CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
5501
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
5502
CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
5503
CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
5504
CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
5505
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)
5506
targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
5507
for i = 0, 2 do
5508
--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"))
5509
end
5510
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)
5511
for i,v in pairs(targetted:GetChildren()) do
5512
if v:IsA("Part") or v:IsA("MeshPart") then
5513
v.Velocity = vt(0,0,0)
5514
end
5515
end
5516
end))
5517
hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
5518
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)
5519
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)
5520
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)
5521
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
5522
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)
5523
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)
5524
end
5525
hum.CameraOffset = vt(0,0,0)
5526
for i = 0, 49 do
5527
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
5528
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)))
5529
local at1 = Instance.new("Attachment",dis)
5530
at1.Position = vt(-50000,0,0)
5531
local at2 = Instance.new("Attachment",dis)
5532
at2.Position = vt(50000,0,0)
5533
local trl = Instance.new('Trail',dis)
5534
trl.Attachment0 = at1
5535
trl.FaceCamera = true
5536
trl.Attachment1 = at2
5537
trl.Texture = "rbxassetid://1049219073"
5538
trl.LightEmission = 1
5539
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5540
trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
5541
trl.Lifetime = 5
5542
local bv = Instance.new("BodyVelocity")
5543
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5544
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
5545
bv.Parent = dis
5546
game:GetService("Debris"):AddItem(dis, 5)
5547
end
5548
for i = 0, 49 do
5549
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)
5550
--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"))
5551
end
5552
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
5553
for i = 0, 1 do
5554
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
5555
CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
5556
end
5557
for i = 0, 4 do
5558
CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
5559
end
5560
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
5561
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
5562
symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
5563
dmg(targetted)
5564
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
5565
for i = 0, 9 do
5566
--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)
5567
end
5568
for i = 0, 24 do
5569
end
5570
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5571
root.CFrame = originalpos
5572
for i = 0, 9 do
5573
--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)
5574
end
5575
for i = 0, 24 do
5576
end
5577
sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
5578
attack = false
5579
hum.WalkSpeed = storehumanoidWS
5580
end
5581
end
5582
5583
function EvilEvent()
5584
attack = true
5585
hum.WalkSpeed = 0
5586
CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
5587
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
5588
local keptcolor = MAINRUINCOLOR
5589
for i = 0,4,0.1 do
5590
swait()
5591
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
5592
block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5593
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)
5594
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)
5595
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
5596
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
5597
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
5598
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
5599
end
5600
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
5601
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5)
5602
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3)
5603
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
5604
CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
5605
CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
5606
CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
5607
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
5608
hum.CameraOffset = vt(0,0,0)
5609
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5610
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5611
for i = 0, 24 do
5612
--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"))
5613
end
5614
local rrot = 0
5615
coroutine.resume(coroutine.create(function()
5616
for i = 0, 4 do
5617
rrot = rrot + 45
5618
local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5619
xa.Anchored = true
5620
local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5621
xb.Anchored = true
5622
local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5623
xc.Anchored = true
5624
local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
5625
xd.Anchored = true
5626
CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
5627
CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
5628
CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
5629
CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
5630
CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
5631
CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
5632
CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
5633
CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
5634
CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
5635
CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
5636
CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
5637
CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
5638
xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75)
5639
xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75)
5640
xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0)
5641
xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0)
5642
MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5643
MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5644
MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5645
MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal")
5646
block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5647
block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5648
block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5649
block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color)
5650
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)
5651
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)
5652
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)
5653
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)
5654
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))
5655
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))
5656
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))
5657
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))
5658
game:GetService("Debris"):AddItem(xa, 5)
5659
game:GetService("Debris"):AddItem(xb, 5)
5660
game:GetService("Debris"):AddItem(xc, 5)
5661
game:GetService("Debris"):AddItem(xd, 5)
5662
coroutine.resume(coroutine.create(function()
5663
for i = 0, 19 do
5664
swait()
5665
hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
5666
end
5667
hum.CameraOffset = vt(0,0,0)
5668
end))
5669
swait(9)
5670
end
5671
end))
5672
for i = 0,2,0.1 do
5673
swait()
5674
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)
5675
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)
5676
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
5677
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
5678
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
5679
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
5680
end
5681
attack = false
5682
hum.WalkSpeed = storehumanoidWS
5683
end
5684
5685
function EndGROUND()
5686
	attack = true
5687
hum.WalkSpeed = 0
5688
bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1)
5689
--CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
5690
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
5691
CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
5692
CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
5693
local keptcolor = MAINRUINCOLOR
5694
for i = 0,4,0.1 do
5695
swait()
5696
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
5697
block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5698
--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"))
5699
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)
5700
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)
5701
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
5702
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
5703
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1)
5704
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
5705
end
5706
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1)
5707
CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
5708
CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
5709
CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
5710
CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
5711
CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
5712
coroutine.resume(coroutine.create(function()
5713
	local shval = 10
5714
	for i = 0, 99 do
5715
		swait()
5716
		shval = shval - 0.1
5717
		hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15)
5718
	end
5719
	hum.CameraOffset = vt(0,0,0)
5720
end))
5721
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5722
sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color)
5723
for i = 0, 24 do
5724
--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"))
5725
end
5726
local rrot = 0
5727
local xam = 1
5728
coroutine.resume(coroutine.create(function()
5729
for i = 0, 14 do
5730
--swait()
5731
rrot = rrot + 40*xam
5732
xam = xam + 0.25
5733
local bonus = xam
5734
local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random())
5735
xa.Anchored = true
5736
xa.Color = Color3.new(0,0,0)
5737
xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75)
5738
CreateMesh(xa,"Sphere",30*bonus,1,30*bonus)
5739
local xc = 0
5740
coroutine.resume(coroutine.create(function()
5741
for i = 0, 99 do
5742
	swait()
5743
	xc = xc + 0.01
5744
	xa.Color = Color3.new(xc,0,0)
5745
end
5746
xa.Transparency = 1
5747
CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
5748
MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal")
5749
for i = 0, 9 do
5750
--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"))
5751
end
5752
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)
5753
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)
5754
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))
5755
game:GetService("Debris"):AddItem(xa, 5)
5756
coroutine.resume(coroutine.create(function()
5757
for i = 0, 19 do
5758
swait()
5759
hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50)
5760
end
5761
hum.CameraOffset = vt(0,0,0)
5762
end))
5763
end))
5764
end
5765
end))
5766
for i = 0,2,0.1 do
5767
swait()
5768
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)
5769
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)
5770
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8)
5771
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8)
5772
RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8)
5773
LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
5774
end
5775
attack = false
5776
hum.WalkSpeed = storehumanoidWS
5777
end
5778
5779
function HeavenlyDisk()
5780
attack = true
5781
hum.WalkSpeed = 2
5782
local keptcolor = MAINRUINCOLOR
5783
local radm = math.random(1,3)
5784
if radm == 1 then
5785
--bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1)
5786
elseif radm == 2 then
5787
--bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1)
5788
elseif radm == 3 then
5789
--bosschatfunc("Take it!",MAINRUINCOLOR.Color,1)
5790
end
5791
CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
5792
CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
5793
for i = 0, 14 do
5794
--
5795
end
5796
for i = 0,2,0.1 do
5797
swait()
5798
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)
5799
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)
5800
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)
5801
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
5802
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3)
5803
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
5804
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
5805
end
5806
CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
5807
for i = 0,1,0.6 do
5808
swait()
5809
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)
5810
--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"))
5811
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)
5812
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)
5813
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6)
5814
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5815
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5816
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5817
end
5818
for i = 0,1,0.6 do
5819
swait()
5820
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)
5821
--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"))
5822
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)
5823
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)
5824
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6)
5825
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5826
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5827
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5828
end
5829
for i = 0,1,0.6 do
5830
swait()
5831
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)
5832
--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"))
5833
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)
5834
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)
5835
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6)
5836
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5837
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5838
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5839
end
5840
for i = 0,1,0.6 do
5841
swait()
5842
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)
5843
--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"))
5844
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)
5845
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)
5846
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6)
5847
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6)
5848
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6)
5849
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6)
5850
end
5851
local rot = 15
5852
for i = 0, 2 do
5853
local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
5854
CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
5855
dis.CFrame = root.CFrame*CFrame.new(0,2,-3)
5856
CreateMesh(dis,"Sphere",10,1,10)
5857
local at1 = Instance.new("Attachment",dis)
5858
at1.Position = vt(-5,0,0)
5859
local at2 = Instance.new("Attachment",dis)
5860
at2.Position = vt(5,0,0)
5861
local trl = Instance.new('Trail',wed)
5862
trl.Attachment0 = at1
5863
trl.Attachment1 = at2
5864
trl.Texture = "rbxassetid://1049219073"
5865
trl.LightEmission = 1
5866
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5867
trl.Color = ColorSequence.new(dis.Color)
5868
trl.Lifetime = 0.6
5869
local a = Instance.new("Part",workspace)
5870
	a.Name = "Direction"	
5871
	a.Anchored = true
5872
	a.BrickColor = bc("Bright red")
5873
a.Material = "Neon"
5874
a.Transparency = 1
5875
	a.CanCollide = false
5876
	local ray = Ray.new(
5877
	    dis.CFrame.p,                           -- origin
5878
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
5879
	) 
5880
	local ignore = dis
5881
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
5882
	a.BottomSurface = 10
5883
	a.TopSurface = 10
5884
	local distance = (dis.CFrame.p - position).magnitude
5885
	a.Size = Vector3.new(0.1, 0.1, 0.1)
5886
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
5887
dis.CFrame = a.CFrame
5888
dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0)
5889
a:Destroy()
5890
local bv = Instance.new("BodyVelocity")
5891
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5892
bv.velocity = dis.CFrame.lookVector*250
5893
bv.Parent = dis
5894
game:GetService("Debris"):AddItem(dis, 5)
5895
local hitted = false
5896
coroutine.resume(coroutine.create(function()
5897
dis.Touched:connect(function(hit) 
5898
	if hitted == false and hit.Parent ~= char then
5899
	hitted = true
5900
	CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
5901
	MagniDamage(dis, 30, 82,34575, 0, "Normal")
5902
	--sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color)
5903
	--sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color)
5904
	--sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
5905
	coroutine.resume(coroutine.create(function()
5906
		for i = 0, 9 do
5907
local disr = CreateParta(char,1,1,"Neon",keptcolor)
5908
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
5909
local at1 = Instance.new("Attachment",disr)
5910
at1.Position = vt(-2,0,0)
5911
local at2 = Instance.new("Attachment",disr)
5912
at2.Position = vt(2,0,0)
5913
local trl = Instance.new('Trail',disr)
5914
trl.Attachment0 = at1
5915
trl.FaceCamera = true
5916
trl.Attachment1 = at2
5917
trl.Texture = "rbxassetid://2342682798"
5918
trl.LightEmission = 1
5919
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
5920
trl.Color = ColorSequence.new(Color3.new(0.3,1,1))
5921
trl.Lifetime = 0.5
5922
local bv = Instance.new("BodyVelocity")
5923
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
5924
bv.velocity = disr.CFrame.lookVector*math.random(50,200)
5925
bv.Parent = disr
5926
local val = 0
5927
coroutine.resume(coroutine.create(function()
5928
	swait(30)
5929
	for i = 0, 9 do
5930
		swait()
5931
		val = val + 0.1
5932
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
5933
	end
5934
game:GetService("Debris"):AddItem(disr, 3)
5935
end))
5936
end
5937
local eff = Instance.new("ParticleEmitter",dis)
5938
eff.Texture = "rbxassetid://2273224484"
5939
eff.LightEmission = 1
5940
eff.Color = ColorSequence.new(Color3.new(0.3,1,1))
5941
eff.Rate = 500000
5942
eff.Lifetime = NumberRange.new(0.5,2)
5943
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)})
5944
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)})
5945
eff.Speed = NumberRange.new(20,250)
5946
eff.Drag = 5
5947
eff.Rotation = NumberRange.new(-500,500)
5948
eff.VelocitySpread = 9000
5949
eff.RotSpeed = NumberRange.new(-50,50)
5950
wait(0.25)
5951
eff.Enabled = false
5952
end))
5953
	for i = 0, 9 do
5954
		--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"))
5955
	end
5956
for i = 0, 19 do
5957
--
5958
end
5959
coroutine.resume(coroutine.create(function()
5960
for i = 0, 19 do
5961
swait()
5962
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
5963
end
5964
hum.CameraOffset = vt(0,0,0)
5965
end))
5966
dis.Anchored = true
5967
dis.Transparency = 1
5968
wait(8)
5969
dis:Destroy()
5970
end
5971
end)
5972
end))
5973
rot = rot - 15
5974
end
5975
for i = 0,2,0.1 do
5976
swait()
5977
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)
5978
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)
5979
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3)
5980
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
5981
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3)
5982
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3)
5983
end
5984
attack = false
5985
hum.WalkSpeed = storehumanoidWS
5986
end
5987
5988
function RapidBurst()
5989
attack = true
5990
hum.WalkSpeed = 0
5991
CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
5992
CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
5993
CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
5994
bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2)
5995
local keptcolor = MAINRUINCOLOR
5996
for i = 0,8,0.1 do
5997
swait()
5998
hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
5999
--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())
6000
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)
6001
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)
6002
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)
6003
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)
6004
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)
6005
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)
6006
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)
6007
end
6008
for i = 0, 99 do
6009
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6010
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)))
6011
local at1 = Instance.new("Attachment",dis)
6012
at1.Position = vt(-25000,0,0)
6013
local at2 = Instance.new("Attachment",dis)
6014
at2.Position = vt(25000,0,0)
6015
local trl = Instance.new('Trail',dis)
6016
trl.Attachment0 = at1
6017
trl.FaceCamera = true
6018
trl.Attachment1 = at2
6019
trl.Texture = "rbxassetid://1049219073"
6020
trl.LightEmission = 1
6021
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6022
trl.Color = ColorSequence.new(BrickColor.random().Color)
6023
trl.Lifetime = 5
6024
local bv = Instance.new("BodyVelocity")
6025
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6026
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
6027
bv.Parent = dis
6028
game:GetService("Debris"):AddItem(dis, 5)
6029
end
6030
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1)
6031
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5)
6032
symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3)
6033
sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
6034
sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
6035
sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color)
6036
sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color)
6037
CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
6038
CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
6039
CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
6040
hum.CameraOffset = vt(0,0,0)
6041
for i = 0, 24 do
6042
--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())
6043
end
6044
local distam = 0
6045
coroutine.resume(coroutine.create(function()
6046
for i = 0, 99 do
6047
	wait()
6048
distam = distam + 1
6049
local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random())
6050
xa.Anchored = true
6051
xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam))
6052
game:GetService("Debris"):AddItem(xa, 5)
6053
for i = 0, 4 do
6054
--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())
6055
end
6056
coroutine.resume(coroutine.create(function()
6057
local eff = Instance.new("ParticleEmitter",xa)
6058
eff.Texture = "rbxassetid://2273224484"
6059
eff.LightEmission = 1
6060
eff.Color = ColorSequence.new(BrickColor.random().Color)
6061
eff.Rate = 500000
6062
eff.Lifetime = NumberRange.new(1,3)
6063
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)})
6064
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)})
6065
eff.Speed = NumberRange.new(50,500)
6066
eff.Drag = 5
6067
eff.Rotation = NumberRange.new(-500,500)
6068
eff.VelocitySpread = 9000
6069
eff.RotSpeed = NumberRange.new(-50,50)
6070
wait(0.25)
6071
eff.Enabled = false
6072
end))
6073
coroutine.resume(coroutine.create(function()
6074
for i = 0, 19 do
6075
swait()
6076
hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)
6077
end
6078
hum.CameraOffset = vt(0,0,0)
6079
end))
6080
CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
6081
--sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color)
6082
--sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color)
6083
MagniDamage(xa, 60, 9999,99999, 0, "Normal")
6084
end
6085
end))
6086
attack = false
6087
hum.WalkSpeed = storehumanoidWS
6088
end
6089
6090
6091
function FallenOrbs()
6092
attack = true
6093
hum.WalkSpeed = 2
6094
local keptcolor = MAINRUINCOLOR
6095
CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
6096
CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
6097
local radm = math.random(1,3)
6098
if radm == 1 then
6099
bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1)
6100
elseif radm == 2 then
6101
bosschatfunc("How about this?",MAINRUINCOLOR.Color,1)
6102
elseif radm == 3 then
6103
bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1)
6104
end
6105
coroutine.resume(coroutine.create(function()
6106
for i = 0, 29 do
6107
swait(2)
6108
local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR)
6109
dis.Anchored = true
6110
CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
6111
dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35))
6112
CreateMesh(dis,"Sphere",2,2,2)
6113
--sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color)
6114
--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"))
6115
coroutine.resume(coroutine.create(function()
6116
wait(0.5)
6117
dis.Anchored = false
6118
CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1)
6119
local at1 = Instance.new("Attachment",dis)
6120
at1.Position = vt(-1,0,0)
6121
local at2 = Instance.new("Attachment",dis)
6122
at2.Position = vt(1,0,0)
6123
local trl = Instance.new('Trail',dis)
6124
trl.Attachment0 = at1
6125
trl.FaceCamera = true
6126
trl.Attachment1 = at2
6127
trl.Texture = "rbxassetid://1049219073"
6128
trl.LightEmission = 1
6129
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6130
trl.Color = ColorSequence.new(dis.Color)
6131
trl.Lifetime = 0.6
6132
local a = Instance.new("Part",workspace)
6133
	a.Name = "Direction"	
6134
	a.Anchored = true
6135
	a.BrickColor = bc("Bright red")
6136
a.Material = "Neon"
6137
a.Transparency = 1
6138
	a.CanCollide = false
6139
	local ray = Ray.new(
6140
	    dis.CFrame.p,                           -- origin
6141
	    (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction
6142
	) 
6143
	local ignore = dis
6144
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
6145
	a.BottomSurface = 10
6146
	a.TopSurface = 10
6147
	local distance = (dis.CFrame.p - position).magnitude
6148
	a.Size = Vector3.new(0.1, 0.1, 0.1)
6149
	a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0)
6150
dis.CFrame = a.CFrame
6151
a:Destroy()
6152
local bv = Instance.new("BodyVelocity")
6153
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6154
bv.velocity = dis.CFrame.lookVector*500
6155
bv.Parent = dis
6156
game:GetService("Debris"):AddItem(dis, 5)
6157
local hitted = false
6158
coroutine.resume(coroutine.create(function()
6159
dis.Touched:connect(function(hit) 
6160
	if hitted == false and hit.Parent ~= char then
6161
	hitted = true
6162
	CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
6163
	MagniDamage(dis, 60, 25456,124672, 0, "Normal")
6164
	--sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color)
6165
	--sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
6166
	coroutine.resume(coroutine.create(function()
6167
for i = 0, 4 do
6168
local disr = CreateParta(char,1,1,"Neon",keptcolor)
6169
disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
6170
local at1 = Instance.new("Attachment",disr)
6171
at1.Position = vt(-10,0,0)
6172
local at2 = Instance.new("Attachment",disr)
6173
at2.Position = vt(10,0,0)
6174
local trl = Instance.new('Trail',disr)
6175
trl.Attachment0 = at1
6176
trl.FaceCamera = true
6177
trl.Attachment1 = at2
6178
trl.Texture = "rbxassetid://2342682798"
6179
trl.LightEmission = 1
6180
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6181
trl.Color = ColorSequence.new(disr.Color)
6182
trl.Lifetime = 0.5
6183
local bv = Instance.new("BodyVelocity")
6184
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6185
bv.velocity = disr.CFrame.lookVector*math.random(125,250)
6186
bv.Parent = disr
6187
local val = 0
6188
coroutine.resume(coroutine.create(function()
6189
	swait(30)
6190
	for i = 0, 9 do
6191
		swait()
6192
		val = val + 0.1
6193
		trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)})
6194
	end
6195
game:GetService("Debris"):AddItem(disr, 3)
6196
end))
6197
end
6198
local eff = Instance.new("ParticleEmitter",dis)
6199
eff.Texture = "rbxassetid://2273224484"
6200
eff.LightEmission = 1
6201
eff.Color = ColorSequence.new(dis.Color)
6202
eff.Rate = 500000
6203
eff.Lifetime = NumberRange.new(0.5,2)
6204
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)})
6205
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)})
6206
eff.Speed = NumberRange.new(20,250)
6207
eff.Drag = 5
6208
eff.Rotation = NumberRange.new(-500,500)
6209
eff.VelocitySpread = 9000
6210
eff.RotSpeed = NumberRange.new(-50,50)
6211
wait(0.5)
6212
eff.Enabled = false
6213
end))
6214
	for i = 0, 4 do
6215
		--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"))
6216
	end
6217
coroutine.resume(coroutine.create(function()
6218
for i = 0, 19 do
6219
swait()
6220
hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70)
6221
end
6222
hum.CameraOffset = vt(0,0,0)
6223
end))
6224
dis.Anchored = true
6225
dis.Transparency = 1
6226
wait(8)
6227
dis:Destroy()
6228
end
6229
end)
6230
end))
6231
end))
6232
end
6233
end))
6234
for i = 0,9,0.1 do
6235
swait()
6236
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)
6237
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)
6238
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)
6239
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)
6240
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)
6241
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)
6242
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)
6243
end
6244
attack = false
6245
hum.WalkSpeed = storehumanoidWS
6246
end
6247
6248
function TrueMelloOrbs()
6249
hum.WalkSpeed = 0
6250
attack = true
6251
for i = 0,1,0.1 do
6252
swait()
6253
	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)
6254
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)
6255
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
6256
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
6257
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3)
6258
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3)
6259
end
6260
--sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR)
6261
--sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR)
6262
for i = 0, 24 do
6263
		--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"))
6264
end
6265
CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
6266
CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8)
6267
CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5)
6268
CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
6269
for i = 0,4,0.1 do
6270
swait()
6271
root.CFrame = root.CFrame + root.CFrame.lookVector*7.5
6272
local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR)
6273
CreateMesh(dis,"Sphere",1,1,1)
6274
dis.Anchored = true
6275
dis.CFrame = larm.CFrame*CFrame.new(0,-3,0)
6276
local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black"))
6277
CreateMesh(dis2,"Sphere",1,1,1)
6278
dis2.Anchored = true
6279
dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0)
6280
--sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color)
6281
--sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color)
6282
coroutine.resume(coroutine.create(function()
6283
	swait(60)
6284
	dis.Transparency = 1
6285
	dis2.Transparency = 1
6286
coroutine.resume(coroutine.create(function()
6287
for i = 0, 19 do
6288
swait()
6289
hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40)
6290
end
6291
hum.CameraOffset = vt(0,0,0)
6292
end))
6293
coroutine.resume(coroutine.create(function()
6294
local eff = Instance.new("ParticleEmitter",dis)
6295
eff.Texture = "rbxassetid://2273224484"
6296
eff.LightEmission = 1
6297
eff.Color = ColorSequence.new(dis.Color)
6298
eff.Rate = 500000
6299
eff.Lifetime = NumberRange.new(0.5,2)
6300
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)})
6301
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)})
6302
eff.Speed = NumberRange.new(50,450)
6303
eff.Drag = 5
6304
eff.Rotation = NumberRange.new(-500,500)
6305
eff.VelocitySpread = 9000
6306
eff.RotSpeed = NumberRange.new(-50,50)
6307
local eff2 = eff:Clone()
6308
eff2.Parent = dis2
6309
eff2.LightEmission = 0
6310
eff2.Color = ColorSequence.new(dis2.Color)
6311
wait(0.25)
6312
eff.Enabled = false
6313
eff2.Enabled = false
6314
end))
6315
MagniDamage(dis, 55, 89,219788936, 0, "Normal")
6316
MagniDamage(dis2, 55, 89,219788936, 0, "Normal")
6317
	CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75)
6318
	CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
6319
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25)
6320
	CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
6321
	CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15)
6322
	CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
6323
	sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color)
6324
	sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color)
6325
end))
6326
game:GetService("Debris"):AddItem(dis, 5)
6327
game:GetService("Debris"):AddItem(dis2, 5)
6328
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)
6329
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)
6330
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
6331
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2)
6332
RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1)
6333
LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1)
6334
end
6335
attack = false
6336
hum.WalkSpeed = storehumanoidWS
6337
end
6338
function FallenDEMISE()
6339
attack = true
6340
hum.WalkSpeed = 0
6341
local keptcolor = MAINRUINCOLOR
6342
--bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3)
6343
CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75)
6344
CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5)
6345
for i = 0, 15, 0.1 do
6346
swait()
6347
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6348
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)))
6349
local at1 = Instance.new("Attachment",dis)
6350
at1.Position = vt(-25000,0,0)
6351
local at2 = Instance.new("Attachment",dis)
6352
at2.Position = vt(25000,0,0)
6353
local trl = Instance.new('Trail',dis)
6354
trl.Attachment0 = at1
6355
trl.FaceCamera = true
6356
trl.Attachment1 = at2
6357
trl.Texture = "rbxassetid://1049219073"
6358
trl.LightEmission = 1
6359
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6360
trl.Color = ColorSequence.new(dis.Color)
6361
trl.Lifetime = 5
6362
local bv = Instance.new("BodyVelocity")
6363
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6364
bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
6365
bv.Parent = dis
6366
game:GetService("Debris"):AddItem(dis, 1)
6367
sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR)
6368
--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"))
6369
--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"))
6370
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)
6371
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)
6372
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
6373
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6374
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
6375
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
6376
end
6377
CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1)
6378
for i = 0, 30, 0.1 do
6379
swait()
6380
coroutine.resume(coroutine.create(function()
6381
for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do
6382
if v:FindFirstChild('Head') then
6383
dmg(v)
6384
end
6385
end
6386
end))
6387
local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR)
6388
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)))
6389
local at1 = Instance.new("Attachment",dis)
6390
at1.Position = vt(-50000,0,0)
6391
local at2 = Instance.new("Attachment",dis)
6392
at2.Position = vt(50000,0,0)
6393
local trl = Instance.new('Trail',dis)
6394
trl.Attachment0 = at1
6395
trl.FaceCamera = true
6396
trl.Attachment1 = at2
6397
trl.Texture = "rbxassetid://1049219073"
6398
trl.LightEmission = 1
6399
trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
6400
trl.Color = ColorSequence.new(dis.Color)
6401
trl.Lifetime = 10
6402
local bv = Instance.new("BodyVelocity")
6403
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
6404
bv.velocity = dis.CFrame.lookVector*math.random(1500,10000)
6405
bv.Parent = dis
6406
game:GetService("Debris"):AddItem(dis, math.random(1,4))
6407
--sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR)
6408
--sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR)
6409
--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"))
6410
--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"))
6411
--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"))
6412
--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"))
6413
for i = 0, 2 do
6414
--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)
6415
end
6416
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)
6417
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)
6418
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1)
6419
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
6420
RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1)
6421
LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1)
6422
end
6423
attack = false
6424
hum.WalkSpeed = storehumanoidWS
6425
end
6426
-------------------------------------
6427
6428
Humanoid.Animator.Parent = nil
6429
6430
-------------------------------------
6431
6432
local attacktype = 1
6433
mouse.Button1Down:connect(function()
6434
  if attack == false and attacktype == 1 then
6435
    attacktype = 2
6436
    attackone()
6437
  elseif attack == false and attacktype == 2 then
6438
    attacktype = 3
6439
    attacktwo()
6440
  elseif attack == false and attacktype == 3 then
6441
    attacktype = 1
6442
    attackthree()
6443
  elseif attack == false and attacktype == 4 then
6444
    attacktype = 1
6445
    --attackfour()
6446
  end
6447
end)
6448
mouse.KeyDown:connect(function(k)
6449
if k == "q" and attack == false and ModeOfGlitch ~= 1 then
6450
--normalmog() ---Disabled due to crashing... only in VSB
6451
ModeOfGlitch = 1
6452
storehumanoidWS = 16
6453
hum.WalkSpeed = 16
6454
rainbowmode = false
6455
chaosmode = false
6456
newTheme("rbxassetid://536049623",48.6,1,1.25)
6457
RecolorTextAndRename("ALONE",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
6458
MAINRUINCOLOR = BrickColor.new("Really red")
6459
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false)
6460
end
6461
if k == "e" and attack == false and ModeOfGlitch ~= 2 then
6462
ModeOfGlitch = 2
6463
storehumanoidWS = 16
6464
hum.WalkSpeed = 16
6465
rainbowmode = false
6466
chaosmode = false
6467
RecolorTextAndRename("HAPPIER",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
6468
newTheme("rbxassetid://2521392429",0,1,1.25)
6469
MAINRUINCOLOR = BrickColor.new("Toothpaste")
6470
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6471
end
6472
if k == "r" and attack == false and ModeOfGlitch ~= 3 then
6473
               ModeOfGlitch = 3
6474
storehumanoidWS = 16
6475
hum.WalkSpeed = 16
6476
rainbowmode = false
6477
chaosmode = false
6478
RecolorTextAndRename("EVIL",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
6479
newTheme("rbxassetid://1564523997",58.15,0.98,1.25)
6480
MAINRUINCOLOR = BrickColor.new("Royal purple")
6481
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6482
end
6483
if k == "t" and attack == false and ModeOfGlitch ~= 4 then
6484
               ModeOfGlitch = 4
6485
storehumanoidWS = 16
6486
hum.WalkSpeed = 16
6487
rainbowmode = false
6488
chaosmode = true
6489
RecolorTextAndRename("ANGER",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
6490
newTheme("rbxassetid://542308845",0,1.01,1.25)
6491
MAINRUINCOLOR = BrickColor.new("Black")
6492
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6493
end
6494
if k == "y" and attack == false and ModeOfGlitch ~= 5 then
6495
               ModeOfGlitch = 5
6496
storehumanoidWS = 16
6497
hum.WalkSpeed = 16
6498
rainbowmode = false
6499
chaosmode = false
6500
RecolorTextAndRename("FLY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
6501
newTheme("rbxassetid://1495226161",0,1.02,1.25)
6502
MAINRUINCOLOR = BrickColor.new("Bright yellow")
6503
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6504
end
6505
if k == "u" and attack == false and ModeOfGlitch ~= 6 then
6506
               ModeOfGlitch = 6
6507
storehumanoidWS = 100
6508
hum.WalkSpeed = 100
6509
rainbowmode = false
6510
chaosmode = false
6511
RecolorTextAndRename("...",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
6512
newTheme("rbxassetid://1567323605",0,1.01,1.25)
6513
MAINRUINCOLOR = BrickColor.new("White")
6514
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6515
end
6516
if k == "f" and attack == false and ModeOfGlitch ~= 8 then
6517
               ModeOfGlitch = 8
6518
storehumanoidWS = 140
6519
hum.WalkSpeed = 140
6520
rainbowmode = false
6521
chaosmode = false
6522
RecolorTextAndRename("NORMAL",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
6523
newTheme("rbxassetid://2976072658",0,1.01,1.25)
6524
MAINRUINCOLOR = BrickColor.new("Alder")
6525
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6526
end
6527
if k == "g" and attack == false and ModeOfGlitch ~= 9 then
6528
               ModeOfGlitch = 9
6529
storehumanoidWS = 150
6530
hum.WalkSpeed = 150
6531
rainbowmode = false
6532
chaosmode = false
6533
RecolorTextAndRename("WANDERER",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni")
6534
newTheme("rbxassetid://2814672601",0,1.01,1.25)
6535
MAINRUINCOLOR = BrickColor.new("Br. yellowish green")
6536
RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6537
end
6538
if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then
6539
               ModeOfGlitch = 8889
6540
storehumanoidWS = 180
6541
hum.WalkSpeed = 180
6542
rainbowmode = false
6543
chaosmode = false
6544
RecolorTextAndRename("LOST",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique")
6545
newTheme("rbxassetid://1940483953",0,1.01,1.25)
6546
MAINRUINCOLOR = BrickColor.new("Lilac")
6547
RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6548
end
6549
if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then
6550
               ModeOfGlitch = 55469696922
6551
storehumanoidWS = 275
6552
hum.WalkSpeed = 275
6553
rainbowmode = false
6554
chaosmode = false
6555
RecolorTextAndRename("MISSING",Color3.new(0.25,0,0.1),BrickColor.new("Black").Color,"Antique")
6556
newTheme("rbxassetid://416428377",0,1.005,1.25)
6557
MAINRUINCOLOR = BrickColor.new("Black")
6558
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6559
end
6560
if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then
6561
               ModeOfGlitch = 4367677813
6562
storehumanoidWS = 225
6563
hum.WalkSpeed = 225
6564
rainbowmode = false
6565
chaosmode = false
6566
RecolorTextAndRename("SAD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
6567
newTheme("rbxassetid://186111999",0,1.01,1.25)
6568
MAINRUINCOLOR = BrickColor.new("Baby blue")
6569
RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6570
end
6571
if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then
6572
               ModeOfGlitch = 9999999921111
6573
storehumanoidWS = 300
6574
hum.WalkSpeed = 300
6575
rainbowmode = false
6576
chaosmode = false
6577
RecolorTextAndRename("DARK",BrickColor.new("Really black").Color,BrickColor.new("Bright bluish green").Color,"SciFi")
6578
newTheme("rbxassetid://934984777",0,1.01,1.25)
6579
MAINRUINCOLOR = BrickColor.new("Bright bluish green")
6580
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6581
end
6582
if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then
6583
               ModeOfGlitch = 999999999556
6584
storehumanoidWS = 500
6585
hum.WalkSpeed = 500
6586
rainbowmode = false
6587
chaosmode = false
6588
RecolorTextAndRename("ANGRY",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code")
6589
newTheme("rbxassetid://1539232545",0,1.02,1.25)
6590
MAINRUINCOLOR = BrickColor.new("Navy blue")
6591
RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6592
end
6593
if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then
6594
               ModeOfGlitch = 1264532489
6595
storehumanoidWS = 250
6596
hum.WalkSpeed = 250
6597
rainbowmode = false
6598
chaosmode = false
6599
RecolorTextAndRename("...",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
6600
newTheme("rbxassetid://1095998276",0,1.01,1.25)
6601
MAINRUINCOLOR = BrickColor.new("Pastel green")
6602
RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
6603
end
6604
if k == "l" and mutedtog == false then
6605
mutedtog = true
6606
kan.Volume = 0
6607
elseif k == "l" and mutedtog == true then
6608
mutedtog = false
6609
kan.Volume = 1.25
6610
end
6611
if k == "p" and toggleTag == false then
6612
toggleTag = true
6613
modet.TextTransparency = 0
6614
modet.TextStrokeTransparency = 0
6615
elseif k == "p" and toggleTag == true then
6616
toggleTag = false
6617
modet.TextTransparency = 1
6618
modet.TextStrokeTransparency = 1
6619
end
6620
if k == "z" and attack == false and ModeOfGlitch == 1 then
6621
ExtinctiveHeartbreak()
6622
elseif k == "z" and attack == false and ModeOfGlitch == 2 then
6623
HeavenlyDisk()
6624
elseif k == "z" and attack == false and ModeOfGlitch == 3 then
6625
CorruptionEvent()
6626
elseif k == "z" and attack == false and ModeOfGlitch == 4 then
6627
RapidBurst()
6628
elseif k == "z" and attack == false and ModeOfGlitch == 5 then
6629
--DivineLights()
6630
elseif k == "z" and attack == false and ModeOfGlitch == 6 then
6631
EquinoxOrbs()
6632
elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then
6633
FallenOrbs()
6634
end
6635
if k == "v" and attack == false and ModeOfGlitch == 1264532489 then
6636
FallenDEMISE()
6637
end
6638
if k == "x" and attack == false and ModeOfGlitch == 1 then
6639
EndGROUND()
6640
end
6641
end)
6642
 
6643
--[[coroutine.resume(coroutine.create(function()
6644
while true do
6645
swait(2)
6646
if chaosmode == true then
6647
tl1.Color = ColorSequence.new(BrickColor.random().Color)
6648
tl2.Color = ColorSequence.new(BrickColor.random().Color)
6649
tl3.Color = ColorSequence.new(BrickColor.random().Color)
6650
RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
6651
for i, v in pairs(mw1:GetChildren()) do
6652
if v:IsA("Part") then
6653
v.Transparency = 0.75
6654
v.BrickColor = BrickColor.random()
6655
v.Material = "Neon"
6656
end
6657
end
6658
for i, v in pairs(m2:GetChildren()) do
6659
if v:IsA("Part") then
6660
v.BrickColor = BrickColor.random()
6661
v.Material = "Neon"
6662
end
6663
end
6664
end
6665
end
6666
end))]]--
6667
Humanoid.Name = "STARGLITCHER"
6668
Humanoid.MaxHealth = math.huge
6669
Humanoid.Health = math.huge
6670
Instance.new("ForceField",char).Visible = false
6671
 
6672
local bguis = Instance.new("BillboardGui",tors)
6673
bguis.Size = UDim2.new(25, 0, 25, 0)
6674
local imgca = Instance.new("ImageLabel",bguis)
6675
imgca.BackgroundTransparency = 1
6676
imgca.ImageTransparency = 1
6677
imgca.Size = UDim2.new(1,0,1,0)
6678
imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891
6679
imgca.ImageColor3 = Color3.new(0,0,0)
6680
 
6681
idleanim=.4
6682
while true do
6683
if mutedtog == false then
6684
kan.Volume = currentVol
6685
elseif mutedtog == true then
6686
kan.Volume = 0
6687
end
6688
kan.PlaybackSpeed = currentPitch
6689
kan.Pitch = currentPitch
6690
kan.SoundId = currentThemePlaying
6691
kan.Looped = true
6692
kan.Parent = char
6693
kan:Resume()
6694
if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then
6695
imgca.ImageTransparency = 1
6696
elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then
6697
imgca.ImageColor3 = MAINRUINCOLOR.Color
6698
imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30)
6699
end
6700
imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25
6701
bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0)
6702
coroutine.resume(coroutine.create(function()
6703
    if chaosmode == true then
6704
for i, v in pairs(mw1:GetChildren()) do
6705
if v:IsA("Part") then
6706
v.Transparency = 0
6707
v.BrickColor = BrickColor.random()
6708
v.Material = "Neon"
6709
end
6710
end
6711
tl1.Color = ColorSequence.new(BrickColor.random().Color)
6712
tl2.Color = ColorSequence.new(BrickColor.random().Color)
6713
tl3.Color = ColorSequence.new(BrickColor.random().Color)
6714
    RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
6715
    end
6716
end))
6717
if chaosmode == false then
6718
modet.Position = UDim2.new(0,0,0,0)
6719
modet.Rotation = -5 * math.cos(sine / 32)
6720
techc.Rotation = techc.Rotation + 1
6721
circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1
6722
circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1
6723
imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1
6724
imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1
6725
ned.Rotation = 0 - 2 * math.cos(sine / 24)
6726
ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
6727
else
6728
    techc.Rotation = techc.Rotation + 1
6729
circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5)
6730
circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5)
6731
imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5)
6732
imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5)
6733
ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
6734
ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
6735
modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
6736
modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3)
6737
end
6738
CameraManager()
6739
swait()
6740
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)
6741
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)
6742
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)
6743
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)
6744
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)
6745
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)
6746
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)
6747
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)
6748
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)
6749
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)
6750
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)
6751
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)
6752
 sine = sine + change
6753
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
6754
local velderp=RootPart.Velocity.y
6755
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
6756
if equipped==true or equipped==false then
6757
if attack==false then
6758
idle=idle+1
6759
else
6760
idle=0
6761
end
6762
if idle>=500 then
6763
if attack==false then
6764
--Sheath()
6765
end
6766
end
6767
if RootPart.Velocity.y > 1 and hitfloor==nil then
6768
Anim="Jump"
6769
if attack==false then
6770
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)
6771
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)
6772
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)
6773
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
6774
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)
6775
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)
6776
end
6777
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
6778
Anim="Fall"
6779
if attack==false then
6780
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)
6781
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)
6782
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)
6783
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
6784
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)
6785
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)
6786
end
6787
elseif torvel<1 and hitfloor~=nil then
6788
Anim="Idle"
6789
if attack==false then
6790
if ModeOfGlitch == 1 then
6791
local snap = math.random(1,10)
6792
if snap == 1 then
6793
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)
6794
end
6795
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)
6796
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)
6797
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)
6798
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)
6799
RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
6800
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)
6801
elseif ModeOfGlitch == 2 then
6802
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)
6803
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)
6804
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)
6805
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)
6806
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)
6807
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)
6808
elseif ModeOfGlitch == 3 then
6809
local snap = math.random(1,32)
6810
if snap == 1 then
6811
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)
6812
end
6813
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)
6814
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)
6815
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)
6816
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)
6817
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)
6818
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)
6819
elseif ModeOfGlitch == 4 then
6820
local snap = math.random(1,5)
6821
if snap == 1 then
6822
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)
6823
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)
6824
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)
6825
end
6826
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)
6827
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)
6828
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)
6829
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)
6830
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)
6831
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)
6832
elseif ModeOfGlitch == 5 then
6833
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)
6834
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)
6835
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)
6836
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)
6837
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)
6838
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)
6839
elseif ModeOfGlitch == 6 then
6840
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)
6841
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)
6842
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)
6843
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)
6844
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)
6845
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)
6846
elseif ModeOfGlitch == 8 then
6847
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)
6848
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)
6849
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)
6850
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)
6851
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)
6852
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)
6853
elseif ModeOfGlitch == 9 then
6854
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)
6855
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)
6856
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)
6857
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)
6858
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)
6859
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)
6860
elseif ModeOfGlitch == 8889 then
6861
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)
6862
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)
6863
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)
6864
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)
6865
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)
6866
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)
6867
elseif ModeOfGlitch == 1264532489 then
6868
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)
6869
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)
6870
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)
6871
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)
6872
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)
6873
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)
6874
elseif ModeOfGlitch == 9999999921111 then
6875
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)
6876
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)
6877
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)
6878
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)
6879
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)
6880
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)
6881
elseif ModeOfGlitch == 4367677813 then
6882
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)
6883
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)
6884
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)
6885
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)
6886
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)
6887
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)
6888
elseif ModeOfGlitch == 55469696922 then
6889
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)
6890
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)
6891
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)
6892
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)
6893
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)
6894
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)
6895
elseif ModeOfGlitch == 999999999556 then
6896
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)
6897
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)
6898
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)
6899
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)
6900
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)
6901
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)
6902
end
6903
end
6904
elseif torvel>2 and torvel<22 and hitfloor~=nil then
6905
Anim="Walk"
6906
if attack==false then
6907
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)
6908
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)
6909
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)
6910
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)
6911
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)
6912
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)
6913
end
6914
elseif torvel>=22 and hitfloor~=nil then
6915
Anim="Run"
6916
if attack==false then
6917
if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then
6918
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)
6919
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)
6920
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)
6921
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)
6922
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)
6923
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)
6924
if ModeOfGlitch == 9 then
6925
--
6926
end
6927
elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then
6928
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)
6929
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)
6930
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)
6931
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)
6932
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)
6933
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)
6934
end
6935
end
6936
end
6937
end
6938
end