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