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