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