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