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