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