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