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