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