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