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