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