View difference between Paste ID: uAacSNzk and 8fM3Pxm1
SHOW: | | - or go back to the newest paste.
1
warn("Star Glitcher Loaded.")
2
warn("All purpose switcher...")
3
warn("Edit By Frepix.")
4
plr = game.Players.LocalPlayer
5
char = plr.Character
6
hum = char.Humanoid
7
local cam = game.Workspace.CurrentCamera
8
local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
9
Camera = cam
10
local CamInterrupt = false
11
local TwoD = false
12
local TargetInfo = {nil, nil}
13
cam.CameraType = "Custom"
14
t = char.Torso
15
h = char.Head
16
ra = char["Right Arm"]
17
la = char["Left Arm"]
18
rl = char["Right Leg"]
19
ll = char["Left Leg"]
20
tors = char.Torso
21
lleg = char["Left Leg"]
22
root = char.HumanoidRootPart
23
hed = char.Head
24
rleg = char["Right Leg"]
25
rarm = char["Right Arm"]
26
larm = char["Left Arm"]
27
radian = math.rad
28
random = math.random
29
Vec3 = Vector3.new
30
Inst = Instance.new
31
cFrame = CFrame.new
32
Euler = CFrame.fromEulerAnglesXYZ
33
vt = Vector3.new
34
bc = BrickColor.new
35
br = BrickColor.random
36
it = Instance.new
37
cf = CFrame.new
38
local Booleans = {CamFollow = true, GyroUse = true}
39
function lerp(object, newCFrame, alpha)
40
	return object:lerp(newCFrame, alpha)
41
end
42
43
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
44
ff.Visible = false
45
46
47
local Directer = Inst("BodyGyro", root)
48
Directer.MaxTorque = Vec3(0, 0, 0)
49
Directer.P = 600000
50
local CPart = Inst("Part")
51
CPart.Anchored = true
52
CPart.CanCollide = false
53
CPart.Locked = true
54
CPart.Transparency = 1
55
local rainbowmode = false
56
local chaosmode = false
57
kan = Instance.new("Sound", char)
58
kan.Volume = 1.98
59
kan.TimePosition = 0
60
kan.PlaybackSpeed = 1
61
kan.Pitch = 1
62
kan.SoundId = "rbxassetid://415898123"
63
kan.Name = "wrecked"
64
kan.Looped = true
65
kan:Play()
66
function newTheme(ID, timepos, pitch, vol)
67
	local kanz = kan
68
	kanz.PlaybackSpeed = pitch
69
	kanz.Pitch = pitch
70
	kanz.SoundId = ID
71
	kanz.Name = "wrecked"
72
	kanz.Looped = true
73
end
74
function CameraShake(Times, Power, PlayerTarget)
75
	coroutine.resume(coroutine.create(function()
76
		FV = Instance.new("BoolValue", PlayerTarget)
77
		FV.Name = "CameraShake"
78
		for ShakeNum = 1, Times do
79
			swait()
80
			local ef = Power
81
			if ef >= 1 then
82
				Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
83
			else
84
				ef = Power * 10
85
				Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
86
			end
87
		end
88
		Humanoid.CameraOffset = Vector3.new(0, 0, 0)
89
		FV:Destroy()
90
	end))
91
end
92
function CameraEnshaking(Length, Intensity)
93
	coroutine.resume(coroutine.create(function()
94
		local intensity = 1 * Intensity
95
		local rotM = 0.01 * Intensity
96
		for i = 0, Length, 0.1 do
97
			swait()
98
			intensity = intensity - 0.05 * Intensity / Length
99
			rotM = rotM - 5.0E-4 * Intensity / Length
100
			hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
101
			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)
102
		end
103
		Humanoid.CameraOffset = Vec3(0, 0, 0)
104
	end))
105
end
106
function CamShake(Part, Distan, Power, Times)
107
	local de = Part.Position
108
	for i, v in pairs(workspace:children()) do
109
		if v:IsA("Model") and v:findFirstChild("Humanoid") then
110
			for _, c in pairs(v:children()) do
111
				if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then
112
					do
113
						local Noob = v.Humanoid
114
						if Noob ~= nil then
115
							coroutine.resume(coroutine.create(function()
116
								FV = Instance.new("BoolValue", Noob)
117
								FV.Name = "CameraShake"
118
								for ShakeNum = 1, Times do
119
									swait()
120
									local ef = Power
121
									if ef >= 1 then
122
										Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef))
123
									else
124
										ef = Power * 10
125
										Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10)
126
									end
127
								end
128
								Humanoid.CameraOffset = Vector3.new(0, 0, 0)
129
								FV:Destroy()
130
							end))
131
							CameraShake(Times, Power, Noob)
132
						end
133
					end
134
				end
135
			end
136
		end
137
	end
138
end
139
function chatfunc(text, color)
140
	local chat = coroutine.wrap(function()
141
		if Character:FindFirstChild("TalkingBillBoard") ~= nil then
142
			Character:FindFirstChild("TalkingBillBoard"):destroy()
143
		end
144
		local naeeym2 = Instance.new("BillboardGui", Character)
145
		naeeym2.Size = UDim2.new(0, 100, 0, 40)
146
		naeeym2.StudsOffset = Vector3.new(0, 3, 0)
147
		naeeym2.Adornee = Character.Head
148
		naeeym2.Name = "TalkingBillBoard"
149
		local tecks2 = Instance.new("TextLabel", naeeym2)
150
		tecks2.BackgroundTransparency = 1
151
		tecks2.BorderSizePixel = 0
152
		tecks2.Text = ""
153
		tecks2.Font = "SciFi"
154
		tecks2.TextSize = 30
155
		tecks2.TextStrokeTransparency = 0
156
		tecks2.TextColor3 = color
157
		tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
158
		tecks2.Size = UDim2.new(1, 0, 0.5, 0)
159
		local tecks3 = Instance.new("TextLabel", naeeym2)
160
		tecks3.BackgroundTransparency = 1
161
		tecks3.BorderSizePixel = 0
162
		tecks3.Text = ""
163
		tecks3.Font = "SciFi"
164
		tecks3.TextSize = 30
165
		tecks3.TextStrokeTransparency = 0
166
		tecks3.TextColor3 = Color3.new(0, 0, 0)
167
		tecks3.TextStrokeColor3 = color
168
		tecks3.Size = UDim2.new(1, 0, 0.5, 0)
169
		coroutine.resume(coroutine.create(function()
170
			while true do
171
				swait(1)
172
				if chaosmode == true then
173
					tecks2.TextColor3 = BrickColor.random().Color
174
					tecks3.TextStrokeColor3 = BrickColor.random().Color
175
				end
176
				tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
177
				tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
178
				tecks2.Rotation = math.random(-5, 5)
179
				tecks3.Rotation = math.random(-5, 5)
180
			end
181
		end))
182
		for i = 1, string.len(text) do
183
			CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
184
			tecks2.Text = string.sub(text, 1, i)
185
			tecks3.Text = string.sub(text, 1, i)
186
			swait(1)
187
		end
188
		wait(1)
189
		local randomrot = math.random(1, 2)
190
		if randomrot == 1 then
191
			for i = 1, 50 do
192
				swait()
193
				tecks2.Rotation = tecks2.Rotation - 0.75
194
				tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
195
				tecks2.TextTransparency = tecks2.TextTransparency + 0.04
196
				tecks3.Rotation = tecks2.Rotation + 0.75
197
				tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
198
				tecks3.TextTransparency = tecks2.TextTransparency + 0.04
199
			end
200
		elseif randomrot == 2 then
201
			for i = 1, 50 do
202
				swait()
203
				tecks2.Rotation = tecks2.Rotation + 0.75
204
				tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
205
				tecks2.TextTransparency = tecks2.TextTransparency + 0.04
206
				tecks3.Rotation = tecks2.Rotation - 0.75
207
				tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04
208
				tecks3.TextTransparency = tecks2.TextTransparency + 0.04
209
			end
210
		end
211
		naeeym2:Destroy()
212
	end)
213
	chat()
214
end
215
local Create = LoadLibrary("RbxUtility").Create
216
CFuncs = {
217
	Part = {
218
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
219
			local Part = Create("Part")({
220
				Parent = Parent,
221
				Reflectance = Reflectance,
222
				Transparency = Transparency,
223
				CanCollide = false,
224
				Locked = true,
225
				BrickColor = BrickColor.new(tostring(BColor)),
226
				Name = Name,
227
				Size = Size,
228
				Material = Material
229
			})
230
			RemoveOutlines(Part)
231
			return Part
232
		end
233
	},
234
	Mesh = {
235
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
236
			local Msh = Create(Mesh)({
237
				Parent = Part,
238
				Offset = OffSet,
239
				Scale = Scale
240
			})
241
			if Mesh == "SpecialMesh" then
242
				Msh.MeshType = MeshType
243
				Msh.MeshId = MeshId
244
			end
245
			return Msh
246
		end
247
	},
248
	Mesh = {
249
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
250
			local Msh = Create(Mesh)({
251
				Parent = Part,
252
				Offset = OffSet,
253
				Scale = Scale
254
			})
255
			if Mesh == "SpecialMesh" then
256
				Msh.MeshType = MeshType
257
				Msh.MeshId = MeshId
258
			end
259
			return Msh
260
		end
261
	},
262
	Weld = {
263
		Create = function(Parent, Part0, Part1, C0, C1)
264
			local Weld = Create("Weld")({
265
				Parent = Parent,
266
				Part0 = Part0,
267
				Part1 = Part1,
268
				C0 = C0,
269
				C1 = C1
270
			})
271
			return Weld
272
		end
273
	},
274
	Sound = {
275
		Create = function(id, par, vol, pit)
276
			coroutine.resume(coroutine.create(function()
277
				local S = Create("Sound")({
278
					Volume = vol,
279
					Pitch = pit or 1,
280
					SoundId = id,
281
					Parent = par or workspace
282
				})
283
				wait()
284
				S:play()
285
				game:GetService("Debris"):AddItem(S, 10)
286
			end))
287
		end
288
	},
289
	LongSound = {
290
		Create = function(id, par, vol, pit)
291
			coroutine.resume(coroutine.create(function()
292
				local S = Create("Sound")({
293
					Volume = vol,
294
					Pitch = pit or 1,
295
					SoundId = id,
296
					Parent = par or workspace
297
				})
298
				wait()
299
				S:play()
300
				game:GetService("Debris"):AddItem(S, 30)
301
			end))
302
		end
303
	},
304
	ParticleEmitter = {
305
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
306
			local fp = Create("ParticleEmitter")({
307
				Parent = Parent,
308
				Color = ColorSequence.new(Color1, Color2),
309
				LightEmission = LightEmission,
310
				Size = Size,
311
				Texture = Texture,
312
				Transparency = Transparency,
313
				ZOffset = ZOffset,
314
				Acceleration = Accel,
315
				Drag = Drag,
316
				LockedToPart = LockedToPart,
317
				VelocityInheritance = VelocityInheritance,
318
				EmissionDirection = EmissionDirection,
319
				Enabled = Enabled,
320
				Lifetime = LifeTime,
321
				Rate = Rate,
322
				Rotation = Rotation,
323
				RotSpeed = RotSpeed,
324
				Speed = Speed,
325
				VelocitySpread = VelocitySpread
326
			})
327
			return fp
328
		end
329
	},
330
	CreateTemplate = {}
331
}
332
function New(Object, Parent, Name, Data)
333
	local Object = Instance.new(Object)
334
	for Index, Value in pairs(Data or {}) do
335
		Object[Index] = Value
336
	end
337
	Object.Parent = Parent
338
	Object.Name = Name
339
	return Object
340
end
341
local halocolor = BrickColor.new("Pastel light blue")
342
local halocolor2 = BrickColor.new("Really black")
343
local starcolor = BrickColor.new("Really black")
344
local lunacolor = BrickColor.new("Navy blue")
345
local lunacolor2 = BrickColor.new("Bright blue")
346
local wepcolor = BrickColor.new("Really black")
347
local maincolor = BrickColor.new("Really black")
348
local m = Instance.new("Model", char)
349
local m2 = Instance.new("Model", char)
350
local m3 = Instance.new("Model", char)
351
local mw1 = Instance.new("Model", char)
352
local mw2 = Instance.new("Model", char)
353
local extrawingmod1 = Instance.new("Model", char)
354
local extrawingmod2 = Instance.new("Model", char)
355
function CreateParta(parent, transparency, reflectance, material, brickcolor)
356
	local p = Instance.new("Part")
357
	p.TopSurface = 0
358
	p.BottomSurface = 0
359
	p.Parent = parent
360
	p.Size = Vector3.new(0.1, 0.1, 0.1)
361
	p.Transparency = transparency
362
	p.Reflectance = reflectance
363
	p.CanCollide = false
364
	p.Locked = true
365
	p.BrickColor = brickcolor
366
	p.Material = material
367
	return p
368
end
369
function CreateMesh(parent, meshtype, x1, y1, z1)
370
	local mesh = Instance.new("SpecialMesh", parent)
371
	mesh.MeshType = meshtype
372
	mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10)
373
	return mesh
374
end
375
function CreateSpecialMesh(parent, meshid, x1, y1, z1)
376
	local mesh = Instance.new("SpecialMesh", parent)
377
	mesh.MeshType = "FileMesh"
378
	mesh.MeshId = meshid
379
	mesh.Scale = Vector3.new(x1, y1, z1)
380
	return mesh
381
end
382
function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1)
383
	local mesh = Instance.new("SpecialMesh", parent)
384
	mesh.MeshType = "FileMesh"
385
	mesh.MeshId = meshid
386
	mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
387
	mesh.Scale = Vector3.new(x1, y1, z1)
388
	mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
389
	return mesh
390
end
391
function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za)
392
	local weld = Instance.new("Weld")
393
	weld.Parent = parent
394
	weld.Part0 = part0
395
	weld.Part1 = part1
396
	weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za)
397
	weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za)
398
	return weld
399
end
400
local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor)
401
CreateMesh(handle, "Brick", 0, 0, 0)
402
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))
403
local valuaring = 10
404
for i = 0, 49 do
405
	valuaring = valuaring + 10
406
	rn = CreateParta(mw2, 0, 0, "Neon", halocolor)
407
	CreateMesh(rn, "Brick", 0.25, 0.1, 0.1)
408
	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))
409
end
410
local handle = CreateParta(m, 1, 1, "Neon", maincolor)
411
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
412
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))
413
local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
414
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
415
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))
416
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
417
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
418
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))
419
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
420
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
421
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))
422
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
423
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
424
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))
425
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
426
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
427
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))
428
local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
429
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
430
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))
431
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
432
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
433
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))
434
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
435
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
436
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))
437
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
438
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
439
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))
440
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
441
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
442
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))
443
local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
444
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
445
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))
446
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
447
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
448
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))
449
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
450
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
451
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))
452
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
453
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
454
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))
455
wed = CreateParta(mw1, 0, 0, "Neon", halocolor)
456
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
457
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))
458
local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
459
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
460
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))
461
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
462
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
463
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))
464
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
465
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
466
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))
467
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
468
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
469
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))
470
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
471
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
472
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))
473
local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
474
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
475
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))
476
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
477
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
478
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))
479
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
480
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
481
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))
482
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
483
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
484
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))
485
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
486
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
487
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))
488
local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
489
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
490
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))
491
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
492
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
493
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))
494
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
495
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
496
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))
497
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
498
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
499
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))
500
wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor)
501
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
502
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))
503
local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor)
504
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
505
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))
506
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
507
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
508
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))
509
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
510
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
511
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))
512
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
513
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
514
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))
515
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
516
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
517
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))
518
local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor)
519
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
520
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))
521
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
522
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
523
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))
524
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
525
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
526
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))
527
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
528
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
529
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))
530
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
531
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
532
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))
533
local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor)
534
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
535
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))
536
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
537
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
538
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))
539
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
540
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
541
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))
542
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
543
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
544
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))
545
wed = CreateParta(mw2, 0, 0, "Neon", halocolor)
546
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
547
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))
548
local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor)
549
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
550
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))
551
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
552
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
553
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))
554
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
555
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
556
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))
557
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
558
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
559
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))
560
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
561
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
562
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))
563
local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor)
564
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
565
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))
566
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
567
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
568
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))
569
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
570
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
571
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))
572
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
573
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
574
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))
575
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
576
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
577
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))
578
local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor)
579
CreateMesh(handle, "Brick", 0.5, 0.5, 0.5)
580
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))
581
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
582
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
583
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))
584
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
585
CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5)
586
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))
587
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
588
CreateMesh(wed, "Wedge", 0.05, 0.5, 3)
589
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))
590
wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor)
591
CreateMesh(wed, "Wedge", 0.05, 3, 0.5)
592
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))
593
ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
594
CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
595
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))
596
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
597
CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
598
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))
599
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
600
CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
601
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))
602
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
603
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
604
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))
605
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
606
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
607
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))
608
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
609
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
610
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))
611
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
612
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
613
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))
614
gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
615
CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
616
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))
617
star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
618
CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
619
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))
620
starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
621
CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
622
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))
623
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
624
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
625
CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
626
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
627
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
628
CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
629
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
630
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
631
CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
632
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
633
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
634
CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
635
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
636
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
637
CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
638
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
639
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
640
CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
641
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
642
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
643
CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
644
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
645
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
646
CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
647
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
648
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
649
CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
650
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
651
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
652
CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
653
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
654
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
655
CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
656
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
657
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
658
CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
659
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
660
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
661
CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
662
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
663
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
664
CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
665
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
666
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
667
CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
668
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
669
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
670
CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
671
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
672
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
673
CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
674
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
675
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
676
CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
677
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
678
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
679
CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
680
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
681
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
682
CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
683
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
684
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
685
CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
686
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
687
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
688
CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
689
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
690
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
691
CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
692
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
693
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
694
CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
695
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
696
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
697
CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
698
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
699
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
700
CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
701
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
702
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
703
CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
704
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
705
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
706
CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
707
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
708
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
709
CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
710
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
711
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
712
CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
713
ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor)
714
CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02)
715
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))
716
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
717
CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025)
718
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))
719
ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
720
CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9)
721
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))
722
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
723
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
724
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))
725
gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
726
CreateMesh(gan, "Brick", 1.075, 0.1, 1.075)
727
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))
728
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
729
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
730
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))
731
gan = CreateParta(m2, 0, 0, "Neon", halocolor2)
732
CreateMesh(gan, "Brick", 1.095, 0.035, 1.095)
733
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))
734
gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2)
735
CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625)
736
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))
737
star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
738
CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5)
739
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))
740
starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor)
741
CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95)
742
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))
743
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
744
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
745
CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
746
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
747
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
748
CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
749
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
750
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
751
CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
752
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
753
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
754
CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
755
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
756
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
757
CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
758
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
759
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
760
CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
761
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
762
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
763
CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
764
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
765
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
766
CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
767
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
768
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
769
CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
770
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
771
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
772
CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
773
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
774
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
775
CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
776
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
777
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
778
CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
779
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
780
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
781
CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
782
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
783
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
784
CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
785
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
786
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
787
CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
788
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
789
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
790
CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
791
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
792
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
793
CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
794
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
795
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
796
CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
797
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
798
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
799
CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
800
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
801
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
802
CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
803
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
804
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
805
CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
806
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
807
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
808
CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
809
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
810
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
811
CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
812
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
813
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
814
CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
815
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
816
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
817
CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
818
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
819
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
820
CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
821
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
822
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
823
CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
824
dotsec = CreateParta(m3, 0, 0, "Neon", halocolor)
825
CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15)
826
CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
827
dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor)
828
CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1)
829
CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
830
dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor)
831
CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125)
832
CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0))
833
for i, v in pairs(m:GetChildren()) do
834
	if v:IsA("Part") then
835
		v.BrickColor = BrickColor.new("Really black")
836
		v.Material = "Glass"
837
	end
838
end
839
for i, v in pairs(m2:GetChildren()) do
840
	if v:IsA("Part") then
841
		v.BrickColor = BrickColor.new("Crimson")
842
		v.Material = "Granite"
843
	end
844
end
845
for i, v in pairs(m3:GetChildren()) do
846
	if v:IsA("Part") then
847
		v.BrickColor = BrickColor.new("Really red")
848
		v.Material = "Neon"
849
	end
850
end
851
for i, v in pairs(mw2:GetChildren()) do
852
	if v:IsA("Part") then
853
		v.BrickColor = BrickColor.new("Really red")
854
		v.Material = "Neon"
855
	end
856
end
857
for i, v in pairs(mw1:GetChildren()) do
858
	if v:IsA("Part") then
859
		v.Transparency = 1
860
		v.BrickColor = BrickColor.new("Really red")
861
		v.Material = "Neon"
862
	end
863
end
864
for i, v in pairs(extrawingmod1:GetChildren()) do
865
	if v:IsA("Part") then
866
		v.Transparency = 1
867
		v.BrickColor = BrickColor.new("White")
868
		v.Material = "Neon"
869
	end
870
end
871
for i, v in pairs(extrawingmod2:GetChildren()) do
872
	if v:IsA("Part") then
873
		v.Transparency = 1
874
		v.BrickColor = BrickColor.new("White")
875
		v.Material = "Neon"
876
	end
877
end
878
879
FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
880
Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
881
Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
882
FHead.CanCollide = false
883
884
885
886
local MAINRUINCOLOR = BrickColor.new("Really red")
887
function RemoveOutlines(part)
888
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
889
end
890
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
891
	local Part = Create("Part")({
892
		Parent = Parent,
893
		Reflectance = Reflectance,
894
		Transparency = Transparency,
895
		CanCollide = false,
896
		Locked = true,
897
		BrickColor = BrickColor.new(tostring(BColor)),
898
		Name = Name,
899
		Size = Size,
900
		Material = Material
901
	})
902
	Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
903
	RemoveOutlines(Part)
904
	return Part
905
end
906
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
907
	local Msh = Create(Mesh)({
908
		Parent = Part,
909
		Offset = OffSet,
910
		Scale = Scale
911
	})
912
	if Mesh == "SpecialMesh" then
913
		Msh.MeshType = MeshType
914
		Msh.MeshId = MeshId
915
	end
916
	return Msh
917
end
918
function CreateWeld(Parent, Part0, Part1, C0, C1)
919
	local Weld = Create("Weld")({
920
		Parent = Parent,
921
		Part0 = Part0,
922
		Part1 = Part1,
923
		C0 = C0,
924
		C1 = C1
925
	})
926
	return Weld
927
end
928
Player = game:GetService("Players").LocalPlayer
929
Character = Player.Character
930
PlayerGui = Player.PlayerGui
931
Backpack = Player.Backpack
932
Torso = Character.Torso
933
Head = Character.Head
934
Humanoid = Character.Humanoid
935
m = Instance.new("Model", Character)
936
LeftArm = Character["Left Arm"]
937
LeftLeg = Character["Left Leg"]
938
RightArm = Character["Right Arm"]
939
RightLeg = Character["Right Leg"]
940
LS = Torso["Left Shoulder"]
941
LH = Torso["Left Hip"]
942
RS = Torso["Right Shoulder"]
943
RH = Torso["Right Hip"]
944
Face = Head.face
945
Neck = Torso.Neck
946
it = Instance.new
947
attacktype = 1
948
vt = Vector3.new
949
cf = CFrame.new
950
euler = CFrame.fromEulerAnglesXYZ
951
angles = CFrame.Angles
952
cloaked = false
953
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
954
necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
955
LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
956
LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
957
RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
958
RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
959
RootPart = Character.HumanoidRootPart
960
RootJoint = RootPart.RootJoint
961
RootCF = euler(-1.57, 0, 3.14)
962
attack = false
963
attackdebounce = false
964
deb = false
965
equipped = true
966
hand = false
967
MMouse = nil
968
combo = 0
969
mana = 0
970
trispeed = 0.2
971
attackmode = "none"
972
local idle = 0
973
local Anim = "Idle"
974
local Effects = {}
975
local gun = false
976
local shoot = false
977
local sine = 0
978
local change = 1
979
player = nil
980
local toggleTag = true
981
local txt = Instance.new("BillboardGui", Head)
982
txt.Adornee = nil
983
txt.Name = "NameDetect"
984
txt.Size = UDim2.new(4, 0, 1.2, 0)
985
txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0)
986
local text = Instance.new("TextLabel", txt)
987
text.Size = UDim2.new(5, 0, 3.5, 0)
988
text.FontSize = "Size8"
989
text.TextScaled = true
990
text.TextTransparency = 0
991
text.BackgroundTransparency = 1
992
text.TextTransparency = 0
993
text.TextStrokeTransparency = 0
994
text.Font = "Fantasy"
995
text.TextStrokeColor3 = Color3.new(1, 0, 0)
996
text.TextColor3 = Color3.new(0, 0, 0)
997
text.Text = "Sweet Dreams"
998
function RecolorTextAndRename(name, col1, col2)
999
	text.TextStrokeColor3 = col2
1000
	text.TextColor3 = col1
1001
	text.Text = name
1002
end
1003
mouse = Player:GetMouse()
1004
RSH, LSH = nil, nil
1005
RW, LW = Instance.new("Weld"), Instance.new("Weld")
1006
RW.Name = "Right Shoulder"
1007
LW.Name = "Left Shoulder"
1008
LH = Torso["Left Hip"]
1009
RH = Torso["Right Hip"]
1010
TorsoColor = Torso.BrickColor
1011
function NoOutline(Part)
1012
	Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
1013
end
1014
player = Player
1015
ch = Character
1016
RSH = ch.Torso["Right Shoulder"]
1017
LSH = ch.Torso["Left Shoulder"]
1018
RSH.Parent = nil
1019
LSH.Parent = nil
1020
RW.Name = "Right Shoulder"
1021
RW.Part0 = ch.Torso
1022
RW.C0 = cf(1.5, 0.5, 0)
1023
RW.C1 = cf(0, 0.5, 0)
1024
RW.Part1 = ch["Right Arm"]
1025
RW.Parent = ch.Torso
1026
LW.Name = "Left Shoulder"
1027
LW.Part0 = ch.Torso
1028
LW.C0 = cf(-1.5, 0.5, 0)
1029
LW.C1 = cf(0, 0.5, 0)
1030
LW.Part1 = ch["Left Arm"]
1031
LW.Parent = ch.Torso
1032
local Stats = Instance.new("BoolValue")
1033
Stats.Name = "Stats"
1034
Stats.Parent = Character
1035
local Atk = Instance.new("NumberValue")
1036
Atk.Name = "Damage"
1037
Atk.Parent = Stats
1038
Atk.Value = 1
1039
local Def = Instance.new("NumberValue")
1040
Def.Name = "Defense"
1041
Def.Parent = Stats
1042
Def.Value = 1
1043
local Speed = Instance.new("NumberValue")
1044
Speed.Name = "Speed"
1045
Speed.Parent = Stats
1046
Speed.Value = 1
1047
local Mvmt = Instance.new("NumberValue")
1048
Mvmt.Name = "Movement"
1049
Mvmt.Parent = Stats
1050
Mvmt.Value = 1
1051
local donum = 0
1052
function part(formfactor, parent, reflectance, transparency, brickcolor, name, size)
1053
	local fp = it("Part")
1054
	fp.formFactor = formfactor
1055
	fp.Parent = parent
1056
	fp.Reflectance = reflectance
1057
	fp.Transparency = transparency
1058
	fp.CanCollide = false
1059
	fp.Locked = true
1060
	fp.BrickColor = brickcolor
1061
	fp.Name = name
1062
	fp.Size = size
1063
	fp.Position = Torso.Position
1064
	NoOutline(fp)
1065
	fp.Material = "SmoothPlastic"
1066
	fp:BreakJoints()
1067
	return fp
1068
end
1069
function mesh(Mesh, part, meshtype, meshid, offset, scale)
1070
	local mesh = it(Mesh)
1071
	mesh.Parent = part
1072
	if Mesh == "SpecialMesh" then
1073
		mesh.MeshType = meshtype
1074
		if meshid ~= "nil" then
1075
			mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
1076
		end
1077
	end
1078
	mesh.Offset = offset
1079
	mesh.Scale = scale
1080
	return mesh
1081
end
1082
function weld(parent, part0, part1, c0)
1083
	local weld = it("Weld")
1084
	weld.Parent = parent
1085
	weld.Part0 = part0
1086
	weld.Part1 = part1
1087
	weld.C0 = c0
1088
	return weld
1089
end
1090
local Color1 = Torso.BrickColor
1091
local bodvel = Instance.new("BodyVelocity")
1092
local bg = Instance.new("BodyGyro")
1093
function swait(num)
1094
	if num == 0 or num == nil then
1095
		game:service("RunService").Stepped:wait(0)
1096
	else
1097
		for i = 0, num do
1098
			game:service("RunService").Stepped:wait(0)
1099
		end
1100
	end
1101
end
1102
local r = 255
1103
local g = 0
1104
local b = 0
1105
coroutine.resume(coroutine.create(function()
1106
	while wait() do
1107
		for i = 0, 50.8 do
1108
			swait()
1109
			g = g + 5
1110
		end
1111
		for i = 0, 50.8 do
1112
			swait()
1113
			r = r - 5
1114
		end
1115
		for i = 0, 50.8 do
1116
			swait()
1117
			b = b + 5
1118
		end
1119
		for i = 0, 50.8 do
1120
			swait()
1121
			g = g - 5
1122
		end
1123
		for i = 0, 50.8 do
1124
			swait()
1125
			r = r + 5
1126
		end
1127
		for i = 0, 50.8 do
1128
			swait()
1129
			b = b - 5
1130
		end
1131
	end
1132
end))
1133
function so(id, par, vol, pit)
1134
	coroutine.resume(coroutine.create(function()
1135
		local sou = Instance.new("Sound", par or workspace)
1136
		sou.Volume = vol
1137
		sou.Pitch = pit or 1
1138
		sou.SoundId = id
1139
		swait()
1140
		sou:play()
1141
		game:GetService("Debris"):AddItem(sou, 6)
1142
	end))
1143
end
1144
function clerp(a, b, t)
1145
	local qa = {
1146
		QuaternionFromCFrame(a)
1147
	}
1148
	local qb = {
1149
		QuaternionFromCFrame(b)
1150
	}
1151
	local ax, ay, az = a.x, a.y, a.z
1152
	local bx, by, bz = b.x, b.y, b.z
1153
	local _t = 1 - t
1154
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1155
end
1156
function QuaternionFromCFrame(cf)
1157
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1158
	local trace = m00 + m11 + m22
1159
	if trace > 0 then
1160
		local s = math.sqrt(1 + trace)
1161
		local recip = 0.5 / s
1162
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1163
	else
1164
		local i = 0
1165
		if m00 < m11 then
1166
			i = 1
1167
		end
1168
		if m22 > (i == 0 and m00 or m11) then
1169
			i = 2
1170
		end
1171
		if i == 0 then
1172
			local s = math.sqrt(m00 - m11 - m22 + 1)
1173
			local recip = 0.5 / s
1174
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1175
		elseif i == 1 then
1176
			local s = math.sqrt(m11 - m22 - m00 + 1)
1177
			local recip = 0.5 / s
1178
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1179
		elseif i == 2 then
1180
			local s = math.sqrt(m22 - m00 - m11 + 1)
1181
			local recip = 0.5 / s
1182
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1183
		end
1184
	end
1185
end
1186
function QuaternionToCFrame(px, py, pz, x, y, z, w)
1187
	local xs, ys, zs = x + x, y + y, z + z
1188
	local wx, wy, wz = w * xs, w * ys, w * zs
1189
	local xx = x * xs
1190
	local xy = x * ys
1191
	local xz = x * zs
1192
	local yy = y * ys
1193
	local yz = y * zs
1194
	local zz = z * zs
1195
	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))
1196
end
1197
function QuaternionSlerp(a, b, t)
1198
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1199
	local startInterp, finishInterp
1200
	if cosTheta >= 1.0E-4 then
1201
		if 1 - cosTheta > 1.0E-4 then
1202
			local theta = math.acos(cosTheta)
1203
			local invSinTheta = 1 / math.sin(theta)
1204
			startInterp = math.sin((1 - t) * theta) * invSinTheta
1205
			finishInterp = math.sin(t * theta) * invSinTheta
1206
		else
1207
			startInterp = 1 - t
1208
			finishInterp = t
1209
		end
1210
	elseif 1 + cosTheta > 1.0E-4 then
1211
		local theta = math.acos(-cosTheta)
1212
		local invSinTheta = 1 / math.sin(theta)
1213
		startInterp = math.sin((t - 1) * theta) * invSinTheta
1214
		finishInterp = math.sin(t * theta) * invSinTheta
1215
	else
1216
		startInterp = t - 1
1217
		finishInterp = t
1218
	end
1219
	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
1220
end
1221
local CFrameFromTopBack = function(at, top, back)
1222
	local right = top:Cross(back)
1223
	return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
1224
end
1225
function Triangle(a, b, c)
1226
	local edg1 = (c - a):Dot((b - a).unit)
1227
	local edg2 = (a - b):Dot((c - b).unit)
1228
	local edg3 = (b - c):Dot((a - c).unit)
1229
	if edg1 <= (b - a).magnitude and edg1 >= 0 then
1230
		a, b = a, b
1231
	elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
1232
		a, b, c = b, c, a
1233
	elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
1234
		a, b, c = c, a, b
1235
	else
1236
		assert(false, "unreachable")
1237
	end
1238
	local len1 = (c - a):Dot((b - a).unit)
1239
	local len2 = (b - a).magnitude - len1
1240
	local width = (a + (b - a).unit * len1 - c).magnitude
1241
	local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
1242
	local list = {}
1243
	if len1 > 0.01 then
1244
		local w1 = Instance.new("WedgePart", m)
1245
		game:GetService("Debris"):AddItem(w1, 5)
1246
		w1.Material = "SmoothPlastic"
1247
		w1.FormFactor = "Custom"
1248
		w1.BrickColor = BrickColor.new("Really red")
1249
		w1.Transparency = 0
1250
		w1.Reflectance = 0
1251
		w1.Material = "SmoothPlastic"
1252
		w1.CanCollide = false
1253
		local l1 = Instance.new("PointLight", w1)
1254
		l1.Color = Color3.new(170, 0, 0)
1255
		NoOutline(w1)
1256
		local sz = Vector3.new(0.2, width, len1)
1257
		w1.Size = sz
1258
		local sp = Instance.new("SpecialMesh", w1)
1259
		sp.MeshType = "Wedge"
1260
		sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
1261
		w1:BreakJoints()
1262
		w1.Anchored = true
1263
		w1.Parent = workspace
1264
		w1.Transparency = 0.7
1265
		table.insert(Effects, {
1266
			w1,
1267
			"Disappear",
1268
			0.01
1269
		})
1270
		w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
1271
		table.insert(list, w1)
1272
	end
1273
	if len2 > 0.01 then
1274
		local w2 = Instance.new("WedgePart", m)
1275
		game:GetService("Debris"):AddItem(w2, 5)
1276
		w2.Material = "SmoothPlastic"
1277
		w2.FormFactor = "Custom"
1278
		w2.BrickColor = BrickColor.new("Really red")
1279
		w2.Transparency = 0
1280
		w2.Reflectance = 0
1281
		w2.Material = "SmoothPlastic"
1282
		w2.CanCollide = false
1283
		local l2 = Instance.new("PointLight", w2)
1284
		l2.Color = Color3.new(170, 0, 0)
1285
		NoOutline(w2)
1286
		local sz = Vector3.new(0.2, width, len2)
1287
		w2.Size = sz
1288
		local sp = Instance.new("SpecialMesh", w2)
1289
		sp.MeshType = "Wedge"
1290
		sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
1291
		w2:BreakJoints()
1292
		w2.Anchored = true
1293
		w2.Parent = workspace
1294
		w2.Transparency = 0.7
1295
		table.insert(Effects, {
1296
			w2,
1297
			"Disappear",
1298
			0.01
1299
		})
1300
		w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
1301
		table.insert(list, w2)
1302
	end
1303
	return unpack(list)
1304
end
1305
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1306
	if hit.Parent == nil then
1307
		return
1308
	end
1309
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
1310
	for _, v in pairs(hit.Parent:children()) do
1311
		if v:IsA("Humanoid") then
1312
			h = v
1313
		end
1314
	end
1315
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
1316
		if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1317
			return
1318
		end
1319
		local c = Create("ObjectValue")({
1320
			Name = "creator",
1321
			Value = game:service("Players").LocalPlayer,
1322
			Parent = h
1323
		})
1324
		game:GetService("Debris"):AddItem(c, 0.5)
1325
		if HitSound ~= nil and HitPitch ~= nil then
1326
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1327
		end
1328
		local Damage = math.random(minim, maxim)
1329
		local blocked = false
1330
		local block = hit.Parent:findFirstChild("Block")
1331
		if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1332
			blocked = true
1333
			block.Value = block.Value - 1
1334
			print(block.Value)
1335
		end
1336
		if blocked == false then
1337
			HitHealth = h.Health
1338
			h.Health = h.Health - Damage
1339
			if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1340
				print("gained kill")
1341
			end
1342
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1343
		else
1344
			h.Health = h.Health - Damage / 2
1345
			ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1346
		end
1347
		if Type == "Knockdown" then
1348
			local hum = hit.Parent.Humanoid
1349
			hum.PlatformStand = true
1350
			coroutine.resume(coroutine.create(function(HHumanoid)
1351
				swait(1)
1352
				HHumanoid.PlatformStand = false
1353
			end), hum)
1354
			local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1355
			local bodvol = Create("BodyVelocity")({
1356
				velocity = angle * knockback,
1357
				P = 5000,
1358
				maxForce = Vector3.new(8000, 8000, 8000),
1359
				Parent = hit
1360
			})
1361
			local rl = Create("BodyAngularVelocity")({
1362
				P = 3000,
1363
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1364
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1365
				Parent = hit
1366
			})
1367
			game:GetService("Debris"):AddItem(bodvol, 0.5)
1368
			game:GetService("Debris"):AddItem(rl, 0.5)
1369
		elseif Type == "Normal" then
1370
			local vp = Create("BodyVelocity")({
1371
				P = 500,
1372
				maxForce = Vector3.new(math.huge, 0, math.huge),
1373
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1374
			})
1375
			if knockback > 0 then
1376
				vp.Parent = hit.Parent.Head
1377
			end
1378
			game:GetService("Debris"):AddItem(vp, 0.5)
1379
		elseif Type == "Up" then
1380
			local bodyVelocity = Create("BodyVelocity")({
1381
				velocity = Vector3.new(0, 20, 0),
1382
				P = 5000,
1383
				maxForce = Vector3.new(8000, 8000, 8000),
1384
				Parent = hit
1385
			})
1386
			game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1387
			local bodyVelocity = Create("BodyVelocity")({
1388
				velocity = Vector3.new(0, 20, 0),
1389
				P = 5000,
1390
				maxForce = Vector3.new(8000, 8000, 8000),
1391
				Parent = hit
1392
			})
1393
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
1394
		elseif Type == "Leech" then
1395
			local hum = hit.Parent.Humanoid
1396
			if hum ~= nil then
1397
				for i = 0, 2 do
1398
					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)
1399
				end
1400
				Humanoid.Health = Humanoid.Health + 10
1401
			end
1402
		elseif Type == "UpKnock" then
1403
			local hum = hit.Parent.Humanoid
1404
			hum.PlatformStand = true
1405
			if hum ~= nil then
1406
				hitr = true
1407
			end
1408
			coroutine.resume(coroutine.create(function(HHumanoid)
1409
				swait(5)
1410
				HHumanoid.PlatformStand = false
1411
				hitr = false
1412
			end), hum)
1413
			local bodyVelocity = Create("BodyVelocity")({
1414
				velocity = Vector3.new(0, 20, 0),
1415
				P = 5000,
1416
				maxForce = Vector3.new(8000, 8000, 8000),
1417
				Parent = hit
1418
			})
1419
			game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1420
			local bodyVelocity = Create("BodyVelocity")({
1421
				velocity = Vector3.new(0, 20, 0),
1422
				P = 5000,
1423
				maxForce = Vector3.new(8000, 8000, 8000),
1424
				Parent = hit
1425
			})
1426
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
1427
		elseif Type == "Snare" then
1428
			local bp = Create("BodyPosition")({
1429
				P = 2000,
1430
				D = 100,
1431
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1432
				position = hit.Parent.Torso.Position,
1433
				Parent = hit.Parent.Torso
1434
			})
1435
			game:GetService("Debris"):AddItem(bp, 1)
1436
		elseif Type == "Slashnare" then
1437
			Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
1438
			for i = 1, math.random(4, 5) do
1439
				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)
1440
			end
1441
			local bp = Create("BodyPosition")({
1442
				P = 2000,
1443
				D = 100,
1444
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1445
				position = hit.Parent.Torso.Position,
1446
				Parent = hit.Parent.Torso
1447
			})
1448
			game:GetService("Debris"):AddItem(bp, 1)
1449
		elseif Type == "Spike" then
1450
			CreateBigIceSword(hit.Parent.Torso.CFrame)
1451
			local bp = Create("BodyPosition")({
1452
				P = 2000,
1453
				D = 100,
1454
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1455
				position = hit.Parent.Torso.Position,
1456
				Parent = hit.Parent.Torso
1457
			})
1458
			game:GetService("Debris"):AddItem(bp, 1)
1459
		elseif Type == "Freeze" then
1460
			local BodPos = Create("BodyPosition")({
1461
				P = 50000,
1462
				D = 1000,
1463
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
1464
				position = hit.Parent.Torso.Position,
1465
				Parent = hit.Parent.Torso
1466
			})
1467
			local BodGy = Create("BodyGyro")({
1468
				maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1469
				P = 20000,
1470
				Parent = hit.Parent.Torso,
1471
				cframe = hit.Parent.Torso.CFrame
1472
			})
1473
			hit.Parent.Torso.Anchored = true
1474
			coroutine.resume(coroutine.create(function(Part)
1475
				swait(1.5)
1476
				Part.Anchored = false
1477
			end), hit.Parent.Torso)
1478
			game:GetService("Debris"):AddItem(BodPos, 3)
1479
			game:GetService("Debris"):AddItem(BodGy, 3)
1480
		end
1481
		local debounce = Create("BoolValue")({
1482
			Name = "DebounceHit",
1483
			Parent = hit.Parent,
1484
			Value = true
1485
		})
1486
		game:GetService("Debris"):AddItem(debounce, Delay)
1487
		c = Instance.new("ObjectValue")
1488
		c.Name = "creator"
1489
		c.Value = Player
1490
		c.Parent = h
1491
		game:GetService("Debris"):AddItem(c, 0.5)
1492
	end
1493
end
1494
function ShowDamage(Pos, Text, Time, Color)
1495
	local Rate = 0.03333333333333333
1496
	local Pos = Pos or Vector3.new(0, 0, 0)
1497
	local Text = Text or ""
1498
	local Time = Time or 2
1499
	local Color = Color or Color3.new(1, 0, 1)
1500
	local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1501
	EffectPart.Anchored = true
1502
	local BillboardGui = Create("BillboardGui")({
1503
		Size = UDim2.new(3, 0, 3, 0),
1504
		Adornee = EffectPart,
1505
		Parent = EffectPart
1506
	})
1507
	local TextLabel = Create("TextLabel")({
1508
		BackgroundTransparency = 1,
1509
		Size = UDim2.new(1, 0, 1, 0),
1510
		Text = Text,
1511
		TextColor3 = Color,
1512
		TextScaled = true,
1513
		Font = Enum.Font.ArialBold,
1514
		Parent = BillboardGui
1515
	})
1516
	game.Debris:AddItem(EffectPart, Time + 0.1)
1517
	EffectPart.Parent = game:GetService("Workspace")
1518
	delay(0, function()
1519
		local Frames = Time / Rate
1520
		for Frame = 1, Frames do
1521
			wait(Rate)
1522
			local Percent = Frame / Frames
1523
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1524
			TextLabel.TextTransparency = Percent
1525
		end
1526
		if EffectPart and EffectPart.Parent then
1527
			EffectPart:Destroy()
1528
		end
1529
	end)
1530
end
1531
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1532
	for _, c in pairs(workspace:children()) do
1533
		local hum = c:findFirstChildOfClass("Humanoid")
1534
		if hum ~= nil then
1535
			local head = c:findFirstChild("Head")
1536
			if head ~= nil then
1537
				local targ = head.Position - Part.Position
1538
				local mag = targ.magnitude
1539
				if magni >= mag and c.Name ~= Player.Name then
1540
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1541
				end
1542
			end
1543
		end
1544
	end
1545
end
1546
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1547
	for _, c in pairs(workspace:children()) do
1548
		local hum = c:findFirstChild("Humanoid")
1549
		if hum ~= nil then
1550
			local head = c:findFirstChild("Torso")
1551
			if head ~= nil then
1552
				local targ = head.Position - Part.Position
1553
				local mag = targ.magnitude
1554
				if magni >= mag and c.Name ~= Player.Name then
1555
					MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
1556
					Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1557
				end
1558
			end
1559
		end
1560
	end
1561
end
1562
function rayCast(Pos, Dir, Max, Ignore)
1563
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
1564
end
1565
function SkullEffect(brickcolor, cframe, x1, y1, z1, delay)
1566
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1567
	prt.Anchored = true
1568
	prt.CFrame = cframe
1569
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
1570
	game:GetService("Debris"):AddItem(prt, 2)
1571
	CF = prt.CFrame
1572
	coroutine.resume(coroutine.create(function(Part, Mesh, TehCF)
1573
		for i = 0, 1, 0.2 do
1574
			wait()
1575
			Part.CFrame = CF * cf(0, 0, -0.4)
1576
		end
1577
		for i = 0, 1, delay do
1578
			wait()
1579
			Mesh.Scale = Mesh.Scale
1580
		end
1581
		for i = 0, 1, 0.1 do
1582
			wait()
1583
			Part.Transparency = i
1584
		end
1585
		Part.Parent = nil
1586
	end), prt, msh, CF)
1587
end
1588
function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1589
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1590
	prt.Anchored = true
1591
	prt.Material = "Neon"
1592
	prt.CFrame = cframe
1593
	prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1594
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1595
	game:GetService("Debris"):AddItem(prt, 5)
1596
	coroutine.resume(coroutine.create(function(Part, Mesh)
1597
		for i = 0, 1, delay do
1598
			swait()
1599
			Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1600
			Part.Transparency = i
1601
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1602
		end
1603
		Part.Parent = nil
1604
	end), prt, msh)
1605
end
1606
function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
1607
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1608
	prt.Anchored = true
1609
	prt.Material = "Neon"
1610
	prt.CFrame = cframe
1611
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1612
	game:GetService("Debris"):AddItem(prt, 5)
1613
	coroutine.resume(coroutine.create(function(Part, Mesh)
1614
		local rtype = rottype
1615
		for i = 0, 1, delay do
1616
			swait()
1617
			if rtype == 1 then
1618
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1619
			elseif rtype == 2 then
1620
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1621
			end
1622
			Part.Transparency = i
1623
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1624
		end
1625
		Part.Parent = nil
1626
	end), prt, msh)
1627
end
1628
function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1629
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1630
	prt.Anchored = true
1631
	prt.CFrame = cframe
1632
	prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1633
	msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1634
	game:GetService("Debris"):AddItem(prt, 5)
1635
	coroutine.resume(coroutine.create(function(Part, Mesh)
1636
		for i = 0, 1, delay do
1637
			wait()
1638
			Part.Transparency = i
1639
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1640
		end
1641
		Part.Parent = nil
1642
	end), prt, msh)
1643
end
1644
function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
1645
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1646
	prt.Anchored = true
1647
	prt.Material = "Neon"
1648
	prt.CFrame = cframe
1649
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1650
	game:GetService("Debris"):AddItem(prt, 5)
1651
	coroutine.resume(coroutine.create(function(Part, Mesh)
1652
		local rtype = rottype
1653
		for i = 0, 1, delay do
1654
			swait()
1655
			if rtype == 1 then
1656
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1657
			elseif rtype == 2 then
1658
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1659
			end
1660
			Part.Transparency = i
1661
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1662
		end
1663
		Part.Parent = nil
1664
	end), prt, msh)
1665
end
1666
function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
1667
	local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1668
	prt.Anchored = true
1669
	prt.Material = "Neon"
1670
	prt.CFrame = cframe
1671
	local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
1672
	local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt)
1673
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
1674
	game:GetService("Debris"):AddItem(prt, 5)
1675
	coroutine.resume(coroutine.create(function(Part, Mesh)
1676
		local rtype = rottype
1677
		for i = 0, 1, delay do
1678
			swait()
1679
			if rtype == 1 then
1680
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1681
			elseif rtype == 2 then
1682
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1683
			end
1684
			dec.Transparency = i
1685
			dec2.Transparency = i
1686
			Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
1687
		end
1688
		Part.Parent = nil
1689
	end), prt, msh)
1690
end
1691
function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype)
1692
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1693
	prt.Anchored = true
1694
	prt.Material = "Neon"
1695
	prt.CFrame = cframe
1696
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
1697
	game:GetService("Debris"):AddItem(prt, 5)
1698
	coroutine.resume(coroutine.create(function(Part, Mesh)
1699
		local rtype = rottype
1700
		for i = 0, 1, delay do
1701
			swait()
1702
			if rtype == 1 then
1703
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1704
			elseif rtype == 2 then
1705
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1706
			end
1707
			prt.Transparency = i
1708
			Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
1709
		end
1710
		Part.Parent = nil
1711
	end), prt, msh)
1712
end
1713
function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype)
1714
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1715
	prt.Anchored = true
1716
	prt.Material = "Neon"
1717
	prt.CFrame = cframe
1718
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
1719
	game:GetService("Debris"):AddItem(prt, 5)
1720
	coroutine.resume(coroutine.create(function(Part, Mesh)
1721
		local rtype = rottype
1722
		for i = 0, 1, delay do
1723
			swait()
1724
			if rtype == 1 then
1725
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0)
1726
			elseif rtype == 2 then
1727
				prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0)
1728
			end
1729
			prt.Transparency = i
1730
			Mesh.Scale = Mesh.Scale + vt(x3, 0, z3)
1731
		end
1732
		Part.Parent = nil
1733
	end), prt, msh)
1734
end
1735
function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype)
1736
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1737
	prt.Anchored = true
1738
	prt.Material = "Neon"
1739
	prt.CFrame = cframe
1740
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1741
	game:GetService("Debris"):AddItem(prt, 5)
1742
	coroutine.resume(coroutine.create(function(Part, Mesh)
1743
		local rtype = rottype
1744
		for i = 0, 1, delay do
1745
			swait()
1746
			if rtype == 1 then
1747
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1748
			elseif rtype == 2 then
1749
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1750
			end
1751
			prt.Transparency = i
1752
			Mesh.Scale = Mesh.Scale + vt(x3, y3, 0)
1753
		end
1754
		Part.Parent = nil
1755
	end), prt, msh)
1756
end
1757
function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype)
1758
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1759
	prt.Anchored = true
1760
	prt.Material = "Neon"
1761
	prt.CFrame = cframe
1762
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1763
	game:GetService("Debris"):AddItem(prt, 5)
1764
	coroutine.resume(coroutine.create(function(Part, Mesh)
1765
		local rtype = rottype
1766
		for i = 0, 1, delay do
1767
			swait()
1768
			if rtype == 1 then
1769
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1)
1770
			elseif rtype == 2 then
1771
				prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1)
1772
			end
1773
			prt.Transparency = i
1774
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1775
		end
1776
		Part.Parent = nil
1777
	end), prt, msh)
1778
end
1779
function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
1780
	local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1781
	prt.Anchored = false
1782
	prt.CFrame = cframe
1783
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1784
	local wld = weld(prt, prt, Parent, cframe)
1785
	game:GetService("Debris"):AddItem(prt, 5)
1786
	coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
1787
		for i = 0, 1, delay do
1788
			wait()
1789
			Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe
1790
			Part.Transparency = i
1791
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1792
		end
1793
		Part.Parent = nil
1794
	end), prt, msh, wld)
1795
end
1796
function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay)
1797
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1798
	prt.Anchored = false
1799
	prt.CFrame = cframe
1800
	msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1801
	local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0))
1802
	game:GetService("Debris"):AddItem(prt, 5)
1803
	coroutine.resume(coroutine.create(function(Part, Mesh, Weld)
1804
		for i = 0, 1, delay do
1805
			wait()
1806
			Weld.C0 = euler(i * 20, 0, 0)
1807
			Part.Transparency = i
1808
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1809
		end
1810
		Part.Parent = nil
1811
	end), prt, msh, wld)
1812
end
1813
function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1814
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1815
	prt.Anchored = true
1816
	prt.CFrame = cframe
1817
	local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1818
	game:GetService("Debris"):AddItem(prt, 2)
1819
	coroutine.resume(coroutine.create(function(Part, Mesh)
1820
		for i = 0, 1, delay do
1821
			wait()
1822
			Part.CFrame = Part.CFrame
1823
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1824
			local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1825
			prt2.Anchored = true
1826
			prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1827
			local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
1828
			game:GetService("Debris"):AddItem(prt2, 2)
1829
			coroutine.resume(coroutine.create(function(Part, Mesh)
1830
				for i = 0, 1, 0.1 do
1831
					wait()
1832
					Part.CFrame = Part.CFrame * cf(0, 0.5, 0)
1833
				end
1834
				Part.Parent = nil
1835
			end), prt2, msh2)
1836
		end
1837
		for i = 0, 1, delay * 2 do
1838
			wait()
1839
			Part.CFrame = Part.CFrame
1840
			Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i)
1841
		end
1842
		Part.Parent = nil
1843
	end), prt, msh)
1844
end
1845
function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1846
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1847
	prt.Anchored = true
1848
	prt.CFrame = cframe
1849
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1850
	game:GetService("Debris"):AddItem(prt, 2)
1851
	coroutine.resume(coroutine.create(function(Part, Mesh)
1852
		for i = 0, 1, delay do
1853
			wait()
1854
			Part.CFrame = Part.CFrame
1855
			Part.Transparency = i
1856
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1857
		end
1858
		Part.Parent = nil
1859
	end), prt, msh)
1860
end
1861
function BreakEffect(brickcolor, cframe, x1, y1, z1)
1862
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1863
	prt.Anchored = true
1864
	prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1865
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1866
	game:GetService("Debris"):AddItem(prt, 2)
1867
	coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
1868
		CF = Part.CFrame
1869
		Numbb = 0
1870
		randnumb = math.random() / 10
1871
		rand1 = math.random() / 10
1872
		for i = 0, 1, rand1 do
1873
			wait()
1874
			CF = CF * cf(0, math.random() / 2, 0)
1875
			Part.CFrame = CF * euler(Numbb, 0, 0)
1876
			Part.Transparency = i
1877
			Numbb = Numbb + randnumb
1878
		end
1879
		Part.Parent = nil
1880
	end), prt, CF, Numbb, randnumb)
1881
end
1882
function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1883
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1884
	prt.Anchored = true
1885
	prt.CFrame = cframe
1886
	msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
1887
	game:GetService("Debris"):AddItem(prt, 5)
1888
	coroutine.resume(coroutine.create(function(Part, Mesh)
1889
		for i = 0, 1, delay do
1890
			wait()
1891
			Part.CFrame = Part.CFrame * euler(0, 0.7, 0)
1892
			Part.Transparency = i
1893
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1894
		end
1895
		Part.Parent = nil
1896
	end), prt, msh)
1897
end
1898
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1899
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1900
	prt.Anchored = true
1901
	prt.CFrame = cframe
1902
	msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
1903
	game:GetService("Debris"):AddItem(prt, 2)
1904
	coroutine.resume(coroutine.create(function(Part, Mesh)
1905
		for i = 0, 1, delay do
1906
			wait()
1907
			Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0)
1908
			Part.Transparency = i
1909
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1910
		end
1911
		Part.Parent = nil
1912
	end), prt, msh)
1913
end
1914
function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay)
1915
	local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
1916
	prt.Anchored = true
1917
	prt.CFrame = cframe * cf(x, y, z)
1918
	msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
1919
	game:GetService("Debris"):AddItem(prt, 5)
1920
	coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee)
1921
		local num = math.random()
1922
		local num2 = math.random(-3, 2) + math.random()
1923
		local numm = 0
1924
		for i = 0, 1, delay * 2 do
1925
			swait()
1926
			Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0)
1927
			Part.Transparency = i
1928
			numm = numm + 0.01
1929
		end
1930
		Part.Parent = nil
1931
		Mesh.Parent = nil
1932
	end), prt, msh, x, y, z)
1933
end
1934
function dmgstart(dmg, what)
1935
	hitcon = what.Touched:connect(function(hit)
1936
		local hum = hit.Parent:FindFirstChild("Humanoid")
1937
		if hum and not hum:IsDescendantOf(Character) then
1938
			hum:TakeDamage(dmg)
1939
		end
1940
	end)
1941
end
1942
function dmgstop()
1943
	hitcon:disconnect()
1944
end
1945
function Cloak()
1946
	Face.Parent = nil
1947
	cloaked = true
1948
	for _, v in pairs(Torso.Parent:children()) do
1949
		if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
1950
			coroutine.resume(coroutine.create(function()
1951
				for i = 0, 1, 0.2 do
1952
					wait()
1953
					v.Transparency = i
1954
				end
1955
				v.Transparency = 1
1956
			end))
1957
		end
1958
		if v.className == "Hat" then
1959
			hatp = v.Handle
1960
			coroutine.resume(coroutine.create(function(derp)
1961
				for i = 0, 1, 0.2 do
1962
					wait()
1963
					derp.Transparency = i
1964
				end
1965
				derp.Transparency = 1
1966
			end), hatp)
1967
		end
1968
	end
1969
	for _, v in pairs(m:children()) do
1970
		if v.className == "Part" then
1971
			coroutine.resume(coroutine.create(function()
1972
				for i = 0, 1, 0.2 do
1973
					wait()
1974
					v.Transparency = i
1975
				end
1976
				v.Transparency = 1
1977
			end))
1978
		end
1979
	end
1980
end
1981
function UnCloak()
1982
	so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
1983
	Face.Parent = Head
1984
	cloaked = false
1985
	for _, v in pairs(Torso.Parent:children()) do
1986
		if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
1987
			coroutine.resume(coroutine.create(function()
1988
				for i = 0, 1, 0.1 do
1989
					wait()
1990
					v.Transparency = v.Transparency - 0.1
1991
				end
1992
				v.Transparency = 0
1993
			end))
1994
		end
1995
		if v.className == "Hat" then
1996
			hatp = v.Handle
1997
			coroutine.resume(coroutine.create(function(derp)
1998
				for i = 0, 1, 0.1 do
1999
					wait()
2000
					derp.Transparency = derp.Transparency - 0.1
2001
				end
2002
				derp.Transparency = 0
2003
			end), hatp)
2004
		end
2005
	end
2006
	for _, v in pairs(m:children()) do
2007
		if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then
2008
			coroutine.resume(coroutine.create(function()
2009
				for i = 0, 1, 0.1 do
2010
					wait()
2011
					v.Transparency = v.Transparency - 0.1
2012
				end
2013
				v.Transparency = 0
2014
			end))
2015
			v.Transparency = 0
2016
		end
2017
	end
2018
end
2019
local origcolor = BrickColor.new("Pastel light blue")
2020
function Explode(rad, par, pitch, vol, mindam, maxdam)
2021
	local expart = Instance.new("Part", char)
2022
	local expart2 = Instance.new("Part", char)
2023
	local rin = Instance.new("Part", char)
2024
	local rin2 = Instance.new("Part", char)
2025
	local partMesh = Instance.new("SpecialMesh", expart)
2026
	partMesh.MeshType = "Sphere"
2027
	local partMesh2 = Instance.new("SpecialMesh", expart2)
2028
	partMesh2.MeshType = "Sphere"
2029
	local partMesh3 = Instance.new("SpecialMesh", rin)
2030
	partMesh3.MeshType = "Brick"
2031
	local partMesh4 = Instance.new("SpecialMesh", rin2)
2032
	partMesh4.MeshType = "Brick"
2033
	CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
2034
	partMesh.Scale = vt(rad, rad, rad)
2035
	expart.Size = vt(1, 1, 1)
2036
	expart.Transparency = 0
2037
	expart.Anchored = true
2038
	expart.Material = "Neon"
2039
	expart.BrickColor = bc("White")
2040
	expart.CFrame = par.CFrame
2041
	partMesh2.Scale = vt(rad, rad, rad)
2042
	expart2.Size = vt(1.15, 1.15, 1.15)
2043
	expart2.Transparency = 0.5
2044
	expart2.Anchored = true
2045
	expart2.Material = "Neon"
2046
	expart2.BrickColor = par.BrickColor
2047
	expart2.CFrame = par.CFrame
2048
	rin.Size = vt(1.15, 1.15, 1.15)
2049
	rin.Transparency = 1
2050
	rin.Anchored = true
2051
	rin.Material = "Neon"
2052
	rin.BrickColor = par.BrickColor
2053
	rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
2054
	rin2.Size = vt(1.15, 1.15, 1.15)
2055
	rin2.Transparency = 1
2056
	rin2.Anchored = true
2057
	rin2.Material = "Neon"
2058
	rin2.BrickColor = par.BrickColor
2059
	rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)))
2060
	partMesh3.Scale = vt(0, 1, 0)
2061
	partMesh4.Scale = vt(0, 1, 0)
2062
	local dec2 = Instance.new("Decal", rin)
2063
	dec2.Face = "Top"
2064
	dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
2065
	dec2.Parent = rin
2066
	local dec2b = dec2:Clone()
2067
	dec2b.Face = "Bottom"
2068
	dec2b.Parent = rin
2069
	local dec2a = Instance.new("Decal", rin2)
2070
	dec2a.Face = "Top"
2071
	dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
2072
	dec2a.Parent = rin2
2073
	local dec2ab = dec2a:Clone()
2074
	dec2ab.Face = "Bottom"
2075
	dec2ab.Parent = rin2
2076
	expart.CanCollide = false
2077
	expart2.CanCollide = false
2078
	rin.CanCollide = false
2079
	rin2.CanCollide = false
2080
	MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal")
2081
	local value = 1 * rad / 6.5
2082
	for i = 0, 199 do
2083
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2084
		expart.CFrame = expart.CFrame
2085
		partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
2086
		expart2.CFrame = expart.CFrame
2087
		value = value - 0.035 * rad / 30
2088
		if value < 7.5 then
2089
			partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5)
2090
			rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0)
2091
			partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5)
2092
			rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0)
2093
		end
2094
		if value < 0 then
2095
			dec2.Transparency = dec2.Transparency + 0.025
2096
			dec2a.Transparency = dec2a.Transparency + 0.025
2097
			dec2b.Transparency = dec2b.Transparency + 0.025
2098
			dec2ab.Transparency = dec2ab.Transparency + 0.025
2099
			expart.Transparency = expart.Transparency + 0.025
2100
			expart2.Transparency = expart2.Transparency + 0.025
2101
			rin.Transparency = rin.Transparency + 0.025
2102
			rin2.Transparency = rin2.Transparency + 0.025
2103
		end
2104
		swait()
2105
	end
2106
	game:GetService("Debris"):AddItem(expart, 1)
2107
	game:GetService("Debris"):AddItem(expart2, 1)
2108
	game:GetService("Debris"):AddItem(rin, 1)
2109
	game:GetService("Debris"):AddItem(rin2, 1)
2110
end
2111
function ExplodeShort(rad, par, pitch, vol, mindam, maxdam)
2112
	local expart = Instance.new("Part", char)
2113
	local expart2 = Instance.new("Part", char)
2114
	local partMesh = Instance.new("SpecialMesh", expart)
2115
	partMesh.MeshType = "Sphere"
2116
	local partMesh2 = Instance.new("SpecialMesh", expart2)
2117
	partMesh2.MeshType = "Sphere"
2118
	CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
2119
	partMesh.Scale = vt(rad, rad, rad)
2120
	expart.Size = vt(1, 1, 1)
2121
	expart.Transparency = 0
2122
	expart.Anchored = true
2123
	expart.Material = "Neon"
2124
	expart.BrickColor = bc("White")
2125
	expart.CFrame = par.CFrame
2126
	partMesh2.Scale = vt(rad, rad, rad)
2127
	expart2.Size = vt(1.15, 1.15, 1.15)
2128
	expart2.Transparency = 0.5
2129
	expart2.Anchored = true
2130
	expart2.Material = "Neon"
2131
	expart2.BrickColor = par.BrickColor
2132
	expart2.CFrame = par.CFrame
2133
	expart.CanCollide = false
2134
	expart2.CanCollide = false
2135
	MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal")
2136
	local value = 1 * rad / 6.5
2137
	for i = 0, 75 do
2138
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2139
		expart.CFrame = expart.CFrame
2140
		partMesh2.Scale = partMesh2.Scale + vt(value, value, value)
2141
		expart2.CFrame = expart.CFrame
2142
		value = value - 0.035 * rad / 5
2143
		if value < 0 then
2144
			value = 0
2145
			expart.Transparency = expart.Transparency + 0.05
2146
			expart2.Transparency = expart2.Transparency + 0.05
2147
		end
2148
		swait()
2149
	end
2150
	game:GetService("Debris"):AddItem(expart, 1)
2151
	game:GetService("Debris"):AddItem(expart2, 1)
2152
end
2153
function AreaDanger(rad, par, mindam, maxdam)
2154
	local expart = Instance.new("Part", char)
2155
	local partMesh = Instance.new("SpecialMesh", expart)
2156
	CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
2157
	partMesh.MeshType = "Sphere"
2158
	partMesh.Scale = vt(rad, rad, rad)
2159
	expart.Size = vt(1, 1, 1)
2160
	expart.Transparency = 0.5
2161
	expart.Anchored = true
2162
	expart.Material = "Neon"
2163
	expart.CanCollide = false
2164
	expart.BrickColor = par.BrickColor
2165
	expart.CFrame = par.CFrame
2166
	local value = 1 * rad / 5
2167
	MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1)
2168
	for i = 0, 14 do
2169
		wait()
2170
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2171
		expart.CFrame = expart.CFrame
2172
		value = value - 0.035 * rad
2173
		if value < 0 then
2174
			value = 0
2175
		end
2176
	end
2177
	wait(0.25)
2178
	CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
2179
	wait(0.5)
2180
	CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
2181
	CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
2182
	MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
2183
	MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025)
2184
	for i = 0, 14 do
2185
		wait()
2186
		partMesh.Scale = partMesh.Scale + vt(value, value, value)
2187
		expart.CFrame = expart.CFrame
2188
		value = value - 0.035 * rad / 2
2189
	end
2190
	expart.Transparency = 1
2191
	game:GetService("Debris"):AddItem(expart, 5)
2192
end
2193
function Swarmsplosions(negrad, rad, par, mindam, maxdam)
2194
	CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
2195
	CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
2196
	CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
2197
	CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
2198
	MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal")
2199
	MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025)
2200
	for i = 0, 24 do
2201
		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))
2202
	end
2203
	for i = 0, 24 do
2204
		local expart = Instance.new("Part", char)
2205
		expart.Transparency = 1
2206
		expart.Anchored = true
2207
		expart.CanCollide = false
2208
		expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad))
2209
		CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
2210
		CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
2211
		MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal")
2212
		MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025)
2213
		for i = 0, 9 do
2214
			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))
2215
		end
2216
		game:GetService("Debris"):AddItem(expart, 2)
2217
		wait(0.1)
2218
	end
2219
end
2220
function EXterPlosion(par)
2221
	CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
2222
	CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
2223
	CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
2224
	CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
2225
	MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal")
2226
	MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005)
2227
	MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1)
2228
	for i = 0, 24 do
2229
		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))
2230
	end
2231
	for i = 0, 24 do
2232
		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))
2233
	end
2234
end
2235
function ring(type, pos, scale, value)
2236
	local type = type
2237
	local rng = Instance.new("Part", char)
2238
	rng.Anchored = true
2239
	rng.BrickColor = origcolor
2240
	rng.CanCollide = false
2241
	rng.FormFactor = 3
2242
	rng.Name = "Ring"
2243
	rng.Size = Vector3.new(1, 1, 1)
2244
	rng.Transparency = 0
2245
	rng.TopSurface = 0
2246
	rng.BottomSurface = 0
2247
	rng.CFrame = pos
2248
	local rngm = Instance.new("SpecialMesh", rng)
2249
	rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2250
	rngm.Scale = scale
2251
	local scaler2 = 1
2252
	if type == "Add" then
2253
		scaler2 = 1 * value
2254
	elseif type == "Divide" then
2255
		scaler2 = 1 / value
2256
	end
2257
	coroutine.resume(coroutine.create(function()
2258
		for i = 0, 10, 0.1 do
2259
			swait()
2260
			if type == "Add" then
2261
				scaler2 = scaler2 - 0.01 * value
2262
			elseif type == "Divide" then
2263
				scaler2 = scaler2 - 0.01 / value
2264
			end
2265
			rng.Transparency = rng.Transparency + 0.01
2266
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2267
		end
2268
		rng:Destroy()
2269
	end))
2270
end
2271
function wave(type, pos, scale, value)
2272
	local type = type
2273
	local rng = Instance.new("Part", char)
2274
	rng.Anchored = true
2275
	rng.BrickColor = origcolor
2276
	rng.CanCollide = false
2277
	rng.FormFactor = 3
2278
	rng.Name = "Ring"
2279
	rng.Size = Vector3.new(1, 1, 1)
2280
	rng.Transparency = 0
2281
	rng.TopSurface = 0
2282
	rng.BottomSurface = 0
2283
	rng.CFrame = pos
2284
	local rngm = Instance.new("SpecialMesh", rng)
2285
	rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2286
	rngm.Scale = scale
2287
	local scaler2 = 1
2288
	if type == "Add" then
2289
		scaler2 = 1 * value
2290
	elseif type == "Divide" then
2291
		scaler2 = 1 / value
2292
	end
2293
	coroutine.resume(coroutine.create(function()
2294
		for i = 0, 10, 0.1 do
2295
			swait()
2296
			if type == "Add" then
2297
				scaler2 = scaler2 - 0.01 * value
2298
			elseif type == "Divide" then
2299
				scaler2 = scaler2 - 0.01 / value
2300
			end
2301
			rng.Transparency = rng.Transparency + 0.01
2302
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2303
		end
2304
		rng:Destroy()
2305
	end))
2306
end
2307
function wind(type, pos, scale, value, speed)
2308
	local type = type
2309
	local rng = Instance.new("Part", char)
2310
	rng.Anchored = true
2311
	rng.BrickColor = origcolor
2312
	rng.CanCollide = false
2313
	rng.FormFactor = 3
2314
	rng.Name = "Ring"
2315
	rng.Size = Vector3.new(1, 1, 1)
2316
	rng.Transparency = 0
2317
	rng.TopSurface = 0
2318
	rng.BottomSurface = 0
2319
	rng.CFrame = pos
2320
	local rngm = Instance.new("SpecialMesh", rng)
2321
	rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2322
	rngm.Scale = scale
2323
	local scaler2 = 1
2324
	if type == "Add" then
2325
		scaler2 = 1 * value
2326
	elseif type == "Divide" then
2327
		scaler2 = 1 / value
2328
	end
2329
	coroutine.resume(coroutine.create(function()
2330
		for i = 0, 10, 0.1 do
2331
			swait()
2332
			if type == "Add" then
2333
				scaler2 = scaler2 - 0.01 * value
2334
			elseif type == "Divide" then
2335
				scaler2 = scaler2 - 0.01 / value
2336
			end
2337
			rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
2338
			rng.Transparency = rng.Transparency + 0.01
2339
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2340
		end
2341
		rng:Destroy()
2342
	end))
2343
end
2344
function groundwind(type, pos, scale, value, speed)
2345
	local type = type
2346
	local rng = Instance.new("Part", char)
2347
	rng.Anchored = true
2348
	rng.BrickColor = origcolor
2349
	rng.CanCollide = false
2350
	rng.FormFactor = 3
2351
	rng.Name = "Ring"
2352
	rng.Size = Vector3.new(1, 1, 1)
2353
	rng.Transparency = 0
2354
	rng.TopSurface = 0
2355
	rng.BottomSurface = 0
2356
	rng.CFrame = pos
2357
	local rngm = Instance.new("SpecialMesh", rng)
2358
	rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2359
	rngm.Scale = scale
2360
	local scaler2 = 1
2361
	if type == "Add" then
2362
		scaler2 = 1 * value
2363
	elseif type == "Divide" then
2364
		scaler2 = 1 / value
2365
	end
2366
	coroutine.resume(coroutine.create(function()
2367
		for i = 0, 10, 0.1 do
2368
			swait()
2369
			if type == "Add" then
2370
				scaler2 = scaler2 - 0.01 * value
2371
			elseif type == "Divide" then
2372
				scaler2 = scaler2 - 0.01 / value
2373
			end
2374
			rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0)
2375
			rng.Transparency = rng.Transparency + 0.01
2376
			rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2)
2377
		end
2378
		rng:Destroy()
2379
	end))
2380
end
2381
function CameraManager()
2382
	if TwoD and not CamInterrupt then
2383
		if Humanoid.Health > 0 then
2384
			Camera.CameraSubject = Humanoid
2385
			Camera.CameraType = "Scriptable"
2386
			Humanoid.AutoRotate = false
2387
			if Booleans.GyroUse then
2388
				Directer.MaxTorque = Vec3(0, huge, 0)
2389
			else
2390
				Directer.MaxTorque = Vec3(0, 0, 0)
2391
			end
2392
			if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
2393
				if Booleans.CamFollow then
2394
					CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
2395
					Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
2396
				else
2397
					CPart.Position = RootPart.Position
2398
				end
2399
			else
2400
				local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
2401
				CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
2402
			end
2403
			Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
2404
		else
2405
			Camera.CameraSubject = Humanoid
2406
			Camera.CameraType = "Custom"
2407
			Controller.Disabled = false
2408
		end
2409
	end
2410
end
2411
function sphere(bonuspeed, type, pos, scale, value, color)
2412
	local type = type
2413
	local rng = Instance.new("Part", char)
2414
	rng.Anchored = true
2415
	rng.BrickColor = color
2416
	rng.CanCollide = false
2417
	rng.FormFactor = 3
2418
	rng.Name = "Ring"
2419
	rng.Material = "Neon"
2420
	rng.Size = Vector3.new(1, 1, 1)
2421
	rng.Transparency = 0
2422
	rng.TopSurface = 0
2423
	rng.BottomSurface = 0
2424
	rng.CFrame = pos
2425
	local rngm = Instance.new("SpecialMesh", rng)
2426
	rngm.MeshType = "Sphere"
2427
	rngm.Scale = scale
2428
	if rainbowmode == true then
2429
		rng.Color = Color3.new(r / 255, g / 255, b / 255)
2430
	end
2431
	local scaler2 = 1
2432
	if type == "Add" then
2433
		scaler2 = 1 * value
2434
	elseif type == "Divide" then
2435
		scaler2 = 1 / value
2436
	end
2437
	coroutine.resume(coroutine.create(function()
2438
		for i = 0, 10 / bonuspeed, 0.1 do
2439
			swait()
2440
			if rainbowmode == true then
2441
				rng.Color = Color3.new(r / 255, g / 255, b / 255)
2442
			end
2443
			if type == "Add" then
2444
				scaler2 = scaler2 - 0.01 * value / bonuspeed
2445
			elseif type == "Divide" then
2446
				scaler2 = scaler2 - 0.01 / value * bonuspeed
2447
			end
2448
			if chaosmode == true then
2449
				rng.BrickColor = BrickColor.random()
2450
			end
2451
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
2452
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
2453
		end
2454
		rng:Destroy()
2455
	end))
2456
end
2457
function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
2458
	local type = type
2459
	local rng = Instance.new("Part", char)
2460
	rng.Anchored = true
2461
	rng.BrickColor = color
2462
	rng.CanCollide = false
2463
	rng.FormFactor = 3
2464
	rng.Name = "Ring"
2465
	rng.Material = "Neon"
2466
	rng.Size = Vector3.new(1, 1, 1)
2467
	rng.Transparency = 0
2468
	rng.TopSurface = 0
2469
	rng.BottomSurface = 0
2470
	rng.CFrame = pos
2471
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
2472
	local rngm = Instance.new("SpecialMesh", rng)
2473
	rngm.MeshType = "Sphere"
2474
	rngm.Scale = vt(x1, y1, z1)
2475
	if rainbowmode == true then
2476
		rng.Color = Color3.new(r / 255, g / 255, b / 255)
2477
	end
2478
	local scaler2 = 1
2479
	local speeder = FastSpeed
2480
	if type == "Add" then
2481
		scaler2 = 1 * value
2482
	elseif type == "Divide" then
2483
		scaler2 = 1 / value
2484
	end
2485
	coroutine.resume(coroutine.create(function()
2486
		for i = 0, 10 / bonuspeed, 0.1 do
2487
			swait()
2488
			if rainbowmode == true then
2489
				rng.Color = Color3.new(r / 255, g / 255, b / 255)
2490
			end
2491
			if type == "Add" then
2492
				scaler2 = scaler2 - 0.01 * value / bonuspeed
2493
			elseif type == "Divide" then
2494
				scaler2 = scaler2 - 0.01 / value * bonuspeed
2495
			end
2496
			if chaosmode == true then
2497
				rng.BrickColor = BrickColor.random()
2498
			end
2499
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
2500
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
2501
			rng.Transparency = rng.Transparency + 0.01 * bonuspeed
2502
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
2503
		end
2504
		rng:Destroy()
2505
	end))
2506
end
2507
function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos)
2508
	local type = type
2509
	local rng = Instance.new("Part", char)
2510
	rng.Anchored = true
2511
	rng.BrickColor = color
2512
	rng.CanCollide = false
2513
	rng.FormFactor = 3
2514
	rng.Name = "Ring"
2515
	rng.Material = "Neon"
2516
	rng.Size = Vector3.new(1, 1, 1)
2517
	rng.Transparency = 1
2518
	rng.TopSurface = 0
2519
	rng.BottomSurface = 0
2520
	rng.CFrame = pos
2521
	rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
2522
	local rngm = Instance.new("SpecialMesh", rng)
2523
	rngm.MeshType = "Sphere"
2524
	rngm.Scale = vt(x1, y1, z1)
2525
	if rainbowmode == true then
2526
		rng.Color = Color3.new(r / 255, g / 255, b / 255)
2527
	end
2528
	local scaler2 = 1
2529
	local speeder = FastSpeed
2530
	if type == "Add" then
2531
		scaler2 = 1 * value
2532
	elseif type == "Divide" then
2533
		scaler2 = 1 / value
2534
	end
2535
	coroutine.resume(coroutine.create(function()
2536
		for i = 0, 10 / bonuspeed, 0.1 do
2537
			swait()
2538
			if rainbowmode == true then
2539
				rng.Color = Color3.new(r / 255, g / 255, b / 255)
2540
			end
2541
			if type == "Add" then
2542
				scaler2 = scaler2 - 0.01 * value / bonuspeed
2543
			elseif type == "Divide" then
2544
				scaler2 = scaler2 - 0.01 / value * bonuspeed
2545
			end
2546
			if chaosmode == true then
2547
				rng.BrickColor = BrickColor.random()
2548
			end
2549
			speeder = speeder - 0.01 * FastSpeed * bonuspeed
2550
			rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
2551
			rng.Transparency = rng.Transparency - 0.01 * bonuspeed
2552
			rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
2553
		end
2554
		rng:Destroy()
2555
	end))
2556
end
2557
function dmg(dude)
2558
	if dude.Name ~= Character then
2559
		local bgf = Instance.new("BodyGyro", dude.Head)
2560
		bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
2561
		local val = Instance.new("BoolValue", dude)
2562
		val.Name = "IsHit"
2563
		local ds = coroutine.wrap(function()
2564
			dude:WaitForChild("Head"):BreakJoints()
2565
			wait(0.5)
2566
			targetted = nil
2567
			CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
2568
			coroutine.resume(coroutine.create(function()
2569
				for i, v in pairs(dude:GetChildren()) do
2570
					if v:IsA("Accessory") then
2571
						v:Destroy()
2572
					end
2573
					if v:IsA("Humanoid") then
2574
						v:Destroy()
2575
					end
2576
					if v:IsA("CharacterMesh") then
2577
						v:Destroy()
2578
					end
2579
					if v:IsA("Model") then
2580
						v:Destroy()
2581
					end
2582
					if v:IsA("Part") or v:IsA("MeshPart") then
2583
						for x, o in pairs(v:GetChildren()) do
2584
							if o:IsA("Decal") then
2585
								o:Destroy()
2586
							end
2587
						end
2588
						coroutine.resume(coroutine.create(function()
2589
							v.Material = "Neon"
2590
							v.CanCollide = false
2591
							local bld = Instance.new("ParticleEmitter", v)
2592
							bld.LightEmission = 1
2593
							bld.Texture = "rbxassetid://284205403"
2594
							bld.Color = ColorSequence.new(Color3.new(1, 1, 1))
2595
							bld.Rate = 50
2596
							bld.Lifetime = NumberRange.new(1)
2597
							bld.Size = NumberSequence.new({
2598
								NumberSequenceKeypoint.new(0, 0.75, 0),
2599
								NumberSequenceKeypoint.new(1, 0, 0)
2600
							})
2601
							bld.Transparency = NumberSequence.new({
2602
								NumberSequenceKeypoint.new(0, 0, 0),
2603
								NumberSequenceKeypoint.new(1, 1, 0)
2604
							})
2605
							bld.Speed = NumberRange.new(0, 0)
2606
							bld.VelocitySpread = 50000
2607
							bld.Rotation = NumberRange.new(-500, 500)
2608
							bld.RotSpeed = NumberRange.new(-500, 500)
2609
							local sbs = Instance.new("BodyPosition", v)
2610
							sbs.P = 3000
2611
							sbs.D = 1000
2612
							sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
2613
							sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5))
2614
							v.Color = Color3.new(1, 1, 1)
2615
							coroutine.resume(coroutine.create(function()
2616
								for i = 0, 49 do
2617
									swait(1)
2618
									v.Transparency = v.Transparency + 0.02
2619
								end
2620
								CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
2621
								bld.Speed = NumberRange.new(1, 5)
2622
								bld.Acceleration = vt(0, 10, 0)
2623
								wait(0.5)
2624
								bld.Enabled = false
2625
								wait(3)
2626
								v:Destroy()
2627
								dude:Destroy()
2628
							end))
2629
						end))
2630
					end
2631
				end
2632
			end))
2633
		end)
2634
		ds()
2635
	end
2636
end
2637
function FindNearestHead(Position, Distance, SinglePlayer)
2638
	if SinglePlayer then
2639
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
2640
	end
2641
	local List = {}
2642
	for i, v in pairs(workspace:GetChildren()) do
2643
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
2644
			table.insert(List, v)
2645
		end
2646
	end
2647
	return List
2648
end
2649
function FaceMouse()
2650
	Cam = workspace.CurrentCamera
2651
	return {
2652
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
2653
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2654
	}
2655
end
2656
function FaceMouse2()
2657
	Cam = workspace.CurrentCamera
2658
	return {
2659
		CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
2660
		Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2661
	}
2662
end
2663
local ModeOfGlitch = 1
2664
local storehumanoidWS = 16
2665
function ExtinctiveHeartbreak()
2666
	local targetted
2667
	if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2668
		targetted = mouse.Target.Parent
2669
	end
2670
	if targetted ~= nil then
2671
		attack = true
2672
		CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
2673
		for i = 0, 9 do
2674
			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)
2675
		end
2676
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2677
		local originalpos = root.CFrame
2678
		RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2)
2679
		for i = 0, 9 do
2680
			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)
2681
		end
2682
		hum.WalkSpeed = 0
2683
		targetted.Head.Anchored = true
2684
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2685
		for i = 0, 2, 0.1 do
2686
			swait()
2687
			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)
2688
			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)
2689
			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)
2690
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8)
2691
			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)
2692
			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)
2693
		end
2694
		coroutine.resume(coroutine.create(function()
2695
			bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
2696
			bld.LightEmission = 0.1
2697
			bld.Texture = "rbxassetid://284205403"
2698
			bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
2699
			bld.Rate = 500
2700
			bld.Lifetime = NumberRange.new(1)
2701
			bld.Size = NumberSequence.new({
2702
				NumberSequenceKeypoint.new(0, 2, 0),
2703
				NumberSequenceKeypoint.new(1, 0, 0)
2704
			})
2705
			bld.Acceleration = vt(0, -25, 0)
2706
			bld.Transparency = NumberSequence.new({
2707
				NumberSequenceKeypoint.new(0, 0, 0),
2708
				NumberSequenceKeypoint.new(1, 0, 0)
2709
			})
2710
			bld.Speed = NumberRange.new(10, 50)
2711
			bld.EmissionDirection = "Front"
2712
			bld.VelocitySpread = 25
2713
			bld.Rotation = NumberRange.new(-500, 500)
2714
			bld.RotSpeed = NumberRange.new(-500, 500)
2715
		end))
2716
		coroutine.resume(coroutine.create(function()
2717
			bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
2718
			bld.LightEmission = 0.1
2719
			bld.Texture = "rbxassetid://284205403"
2720
			bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0))
2721
			bld.Rate = 500
2722
			bld.Lifetime = NumberRange.new(1)
2723
			bld.Size = NumberSequence.new({
2724
				NumberSequenceKeypoint.new(0, 2, 0),
2725
				NumberSequenceKeypoint.new(1, 0, 0)
2726
			})
2727
			bld.Acceleration = vt(0, -25, 0)
2728
			bld.Transparency = NumberSequence.new({
2729
				NumberSequenceKeypoint.new(0, 0, 0),
2730
				NumberSequenceKeypoint.new(1, 0, 0)
2731
			})
2732
			bld.Speed = NumberRange.new(10, 50)
2733
			bld.EmissionDirection = "Front"
2734
			bld.VelocitySpread = 25
2735
			bld.Rotation = NumberRange.new(-500, 500)
2736
			bld.RotSpeed = NumberRange.new(-500, 500)
2737
		end))
2738
		CameraEnshaking(5, 5)
2739
		game:GetService("Debris"):AddItem(bld, 3)
2740
		dmg(targetted)
2741
		CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
2742
		for i = 0, 1, 0.1 do
2743
			swait()
2744
			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)
2745
			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)
2746
			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)
2747
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8)
2748
			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)
2749
			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)
2750
		end
2751
		CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
2752
		for i = 0, 9 do
2753
			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)
2754
		end
2755
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2756
		root.CFrame = originalpos
2757
		for i = 0, 9 do
2758
			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)
2759
		end
2760
		sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
2761
		bld.Enabled = false
2762
		attack = false
2763
		hum.WalkSpeed = storehumanoidWS
2764
	end
2765
end
2766
function PureBomb()
2767
	attack = true
2768
	local orb = Instance.new("Part", char)
2769
	orb.Anchored = true
2770
	orb.BrickColor = BrickColor.new("Toothpaste")
2771
	orb.CanCollide = false
2772
	orb.FormFactor = 3
2773
	orb.Name = "Ring"
2774
	orb.Material = "Neon"
2775
	orb.Size = Vector3.new(1, 1, 1)
2776
	orb.Transparency = 0
2777
	orb.TopSurface = 0
2778
	orb.BottomSurface = 0
2779
	local orbm = Instance.new("SpecialMesh", orb)
2780
	orbm.MeshType = "Sphere"
2781
	orbm.Name = "SizeMesh"
2782
	orbm.Scale = vt(0, 0, 0)
2783
	local scaled = 0.1
2784
	local posid = 0
2785
	CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
2786
	for i = 0, 5, 0.1 do
2787
		swait()
2788
		scaled = scaled - 0.001
2789
		posid = posid - scaled
2790
		orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
2791
		orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled)
2792
		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)
2793
		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)
2794
		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)
2795
		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)
2796
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
2797
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1)
2798
		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)
2799
	end
2800
	for i = 0, 2, 0.1 do
2801
		swait()
2802
		orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0)
2803
		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)
2804
		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)
2805
		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)
2806
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4)
2807
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4)
2808
		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)
2809
	end
2810
	coroutine.resume(coroutine.create(function()
2811
		orb.Anchored = false
2812
		CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
2813
		local a = Instance.new("Part", workspace)
2814
		a.Name = "Direction"
2815
		a.Anchored = true
2816
		a.BrickColor = bc("Bright red")
2817
		a.Material = "Neon"
2818
		a.Transparency = 1
2819
		a.CanCollide = false
2820
		local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500)
2821
		local ignore = orb
2822
		local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2823
		a.BottomSurface = 10
2824
		a.TopSurface = 10
2825
		local distance = (orb.CFrame.p - position).magnitude
2826
		a.Size = Vector3.new(0.1, 0.1, 0.1)
2827
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
2828
		orb.CFrame = a.CFrame
2829
		a:Destroy()
2830
		local bv = Instance.new("BodyVelocity")
2831
		bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
2832
		bv.velocity = orb.CFrame.lookVector * 125
2833
		bv.Parent = orb
2834
		local hitted = false
2835
		game:GetService("Debris"):AddItem(orb, 15)
2836
		wait()
2837
		local hit = orb.Touched:connect(function(hit)
2838
			if hitted == false then
2839
				hitted = true
2840
				CameraEnshaking(10, 2.5)
2841
				CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
2842
				MagniDamage(orb, 65, 65, 90, 0, "Normal")
2843
				sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
2844
				sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
2845
				for i = 0, 9 do
2846
					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)
2847
					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)
2848
				end
2849
				orb.Anchored = true
2850
				orb.Transparency = 1
2851
				wait(8)
2852
				orb:Destroy()
2853
			end
2854
		end)
2855
	end))
2856
	for i = 0, 1, 0.1 do
2857
		swait()
2858
		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)
2859
		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)
2860
		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)
2861
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4)
2862
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4)
2863
		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)
2864
	end
2865
	attack = false
2866
end
2867
function ChaosGroundStrike()
2868
	attack = true
2869
	for i = 0, 2, 0.1 do
2870
		swait()
2871
		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)
2872
		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)
2873
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2874
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2875
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
2876
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
2877
	end
2878
	CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
2879
	CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
2880
	CameraEnshaking(4, 12)
2881
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
2882
		if v:FindFirstChild("Head") then
2883
			dmg(v)
2884
		end
2885
	end
2886
	sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random())
2887
	sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random())
2888
	sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random())
2889
	for i = 0, 2, 0.1 do
2890
		swait()
2891
		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)
2892
		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)
2893
		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)
2894
		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)
2895
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
2896
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
2897
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
2898
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
2899
	end
2900
	attack = false
2901
end
2902
function ChaosBegone()
2903
	attack = true
2904
	chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
2905
	for i = 0, 10, 0.1 do
2906
		swait()
2907
		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)
2908
		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)
2909
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2910
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
2911
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2)
2912
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2)
2913
	end
2914
	chatfunc("DIE!!", BrickColor.random().Color)
2915
	CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
2916
	CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
2917
	CameraEnshaking(5, 25)
2918
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
2919
		if v:FindFirstChild("Head") then
2920
			dmg(v)
2921
		end
2922
	end
2923
	sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random())
2924
	sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random())
2925
	sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random())
2926
	for i = 0, 3, 0.1 do
2927
		swait()
2928
		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)
2929
		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)
2930
		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)
2931
		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)
2932
		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)
2933
		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)
2934
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
2935
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4)
2936
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4)
2937
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4)
2938
	end
2939
	attack = false
2940
end
2941
function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
2942
	local orb = Instance.new("Part", char)
2943
	orb.Anchored = true
2944
	orb.BrickColor = color
2945
	orb.CanCollide = false
2946
	orb.FormFactor = 3
2947
	orb.Name = "Ring"
2948
	orb.Material = "Neon"
2949
	orb.Size = Vector3.new(1, 1, 1)
2950
	orb.Transparency = 0
2951
	orb.TopSurface = 0
2952
	orb.BottomSurface = 0
2953
	local orbm = Instance.new("SpecialMesh", orb)
2954
	orbm.MeshType = "Sphere"
2955
	orb.CFrame = positted
2956
	orbm.Name = "SizeMesh"
2957
	orbm.Scale = vt(1, 1, 1)
2958
	CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
2959
	sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
2960
	coroutine.resume(coroutine.create(function()
2961
		wait(timer)
2962
		CameraEnshaking(3, ShakePower)
2963
		orb.Transparency = 1
2964
		MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
2965
		sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
2966
		CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
2967
		wait(3)
2968
		orb:Destroy()
2969
	end))
2970
end
2971
function orb_spawn(positted, timer)
2972
	local randomcol = math.random(1, 2)
2973
	local orb = Instance.new("Part", char)
2974
	orb.Anchored = true
2975
	if randomcol == 1 then
2976
		orb.BrickColor = BrickColor.new("White")
2977
	elseif randomcol == 2 then
2978
		orb.BrickColor = BrickColor.new("Really black")
2979
	end
2980
	orb.CanCollide = false
2981
	orb.FormFactor = 3
2982
	orb.Name = "Ring"
2983
	orb.Material = "Neon"
2984
	orb.Size = Vector3.new(1, 1, 1)
2985
	orb.Transparency = 0
2986
	orb.TopSurface = 0
2987
	orb.BottomSurface = 0
2988
	local orbm = Instance.new("SpecialMesh", orb)
2989
	orbm.MeshType = "Sphere"
2990
	orb.CFrame = positted
2991
	orbm.Name = "SizeMesh"
2992
	orbm.Scale = vt(1, 1, 1)
2993
	CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
2994
	sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor)
2995
	for i = 0, 2 do
2996
		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)
2997
	end
2998
	coroutine.resume(coroutine.create(function()
2999
		wait(timer)
3000
		CameraEnshaking(3, 2)
3001
		orb.Transparency = 1
3002
		MagniDamage(orb, 17.5, 10, 50, 0, "Normal")
3003
		sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor)
3004
		for i = 0, 4 do
3005
			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)
3006
		end
3007
		CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
3008
		wait(3)
3009
		orb:Destroy()
3010
	end))
3011
end
3012
function scattercorrupt()
3013
	attack = true
3014
	local rot = 0
3015
	local randomrotations = math.random(1, 2)
3016
	local lookv = 2.5
3017
	local power = 5
3018
	sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
3019
	sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
3020
	for i = 0, 9 do
3021
		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)
3022
	end
3023
	CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
3024
	CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
3025
	CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
3026
	CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
3027
	CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
3028
	local hite = Instance.new("Part", char)
3029
	hite.Anchored = true
3030
	hite.CanCollide = false
3031
	hite.FormFactor = 3
3032
	hite.Name = "Ring"
3033
	hite.Material = "Neon"
3034
	hite.Size = Vector3.new(1, 1, 1)
3035
	hite.Transparency = 1
3036
	hite.TopSurface = 0
3037
	hite.BottomSurface = 0
3038
	hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0)
3039
	local rem = Instance.new("Part", char)
3040
	rem.Anchored = true
3041
	rem.CanCollide = false
3042
	rem.FormFactor = 3
3043
	rem.Name = "Ring"
3044
	rem.Material = "Neon"
3045
	rem.Size = Vector3.new(1, 1, 1)
3046
	rem.Transparency = 1
3047
	rem.TopSurface = 0
3048
	rem.BottomSurface = 0
3049
	rem.CFrame = hite.CFrame
3050
	local rem2 = rem:Clone()
3051
	rem2.Parent = char
3052
	rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
3053
	local rem3 = rem:Clone()
3054
	rem3.Parent = char
3055
	rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
3056
	local rem4 = rem:Clone()
3057
	rem4.Parent = char
3058
	rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
3059
	hite:Destroy()
3060
	coroutine.resume(coroutine.create(function()
3061
		for i = 0, 24 do
3062
			swait(1)
3063
			if randomrotations == 1 then
3064
				rot = rot + 1
3065
			elseif randomrotations == 2 then
3066
				rot = rot - 1
3067
			end
3068
			power = power + 0.5
3069
			lookv = lookv + 7.5
3070
			rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0)
3071
			rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0)
3072
			rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0)
3073
			rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0)
3074
			orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3075
			orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3076
			orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3077
			orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
3078
		end
3079
	end))
3080
	attack = false
3081
end
3082
function yinyangi()
3083
	attack = true
3084
	for i = 0, 2, 0.1 do
3085
		swait()
3086
		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)
3087
		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)
3088
		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)
3089
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
3090
		RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
3091
		LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
3092
	end
3093
	local bv = Instance.new("BodyVelocity")
3094
	bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
3095
	bv.velocity = root.CFrame.lookVector * 175
3096
	bv.Parent = root
3097
	for Rotations = 0, 9 do
3098
		for i = 0, 1, 0.5 do
3099
			swait()
3100
			bv.velocity = root.CFrame.lookVector * 175
3101
			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)
3102
			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)
3103
			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)
3104
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3105
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3106
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3107
		end
3108
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3109
		for i = 0, 1, 0.5 do
3110
			swait()
3111
			bv.velocity = root.CFrame.lookVector * 175
3112
			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)
3113
			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)
3114
			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)
3115
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3116
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3117
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3118
		end
3119
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3120
		for i = 0, 1, 0.5 do
3121
			swait()
3122
			bv.velocity = root.CFrame.lookVector * 175
3123
			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)
3124
			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)
3125
			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)
3126
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3127
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3128
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3129
		end
3130
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3131
		for i = 0, 1, 0.5 do
3132
			swait()
3133
			bv.velocity = root.CFrame.lookVector * 175
3134
			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)
3135
			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)
3136
			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)
3137
			Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5)
3138
			RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3139
			LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3140
		end
3141
		orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5)
3142
	end
3143
	bv:Destroy()
3144
	attack = false
3145
end
3146
function Wip()
3147
	attack = true
3148
	local rngb = Instance.new("Part", char)
3149
	rngb.Anchored = true
3150
	rngb.BrickColor = origcolor
3151
	rngb.CanCollide = false
3152
	rngb.FormFactor = 3
3153
	rngb.Name = "Ring"
3154
	rngb.Material = "Neon"
3155
	rngb.Size = Vector3.new(1, 0.05, 1)
3156
	rngb.Transparency = 1
3157
	rngb.TopSurface = 0
3158
	rngb.BottomSurface = 0
3159
	local rngmb = Instance.new("SpecialMesh", rngb)
3160
	rngmb.MeshType = "Brick"
3161
	rngmb.Name = "SizeMesh"
3162
	rngmb.Scale = vt(0, 1, 0)
3163
	local orb = rngb:Clone()
3164
	orb.Parent = char
3165
	orb.Transparency = 0
3166
	orb.BrickColor = BrickColor.new("White")
3167
	orb.Size = vt(1, 1, 1)
3168
	local orbmish = orb.SizeMesh
3169
	orbmish.Scale = vt(0, 0, 0)
3170
	orbmish.MeshType = "Sphere"
3171
	local orbe = rngb:Clone()
3172
	orbe.Parent = char
3173
	orbe.Transparency = 0.5
3174
	orbe.BrickColor = BrickColor.new("New Yeller")
3175
	orbe.Size = vt(1, 1, 1)
3176
	local orbmish2 = orbe.SizeMesh
3177
	orbmish2.Scale = vt(0, 0, 0)
3178
	orbmish2.MeshType = "Sphere"
3179
	orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3180
	rngb:Destroy()
3181
	for i = 0, 5, 0.1 do
3182
		swait()
3183
		if rainbowmode == true then
3184
			orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3185
		end
3186
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3187
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3188
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
3189
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
3190
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
3191
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3192
		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)
3193
		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)
3194
		RootPart.CFrame = FaceMouse()[1]
3195
	end
3196
	orbe.Transparency = 1
3197
	orb.Transparency = 1
3198
	orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
3199
	CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
3200
	local a = Instance.new("Part", Character)
3201
	a.Name = "Direction"
3202
	a.Anchored = true
3203
	a.BrickColor = bc("White")
3204
	a.Material = "Neon"
3205
	a.Transparency = 0
3206
	a.Shape = "Cylinder"
3207
	a.CanCollide = false
3208
	local a2 = Instance.new("Part", Character)
3209
	a2.Name = "Direction"
3210
	a2.Anchored = true
3211
	a2.BrickColor = bc("New Yeller")
3212
	a2.Color = Color3.new(r / 255, g / 255, b / 255)
3213
	a2.Material = "Neon"
3214
	a2.Transparency = 0.5
3215
	a2.Shape = "Cylinder"
3216
	a2.CanCollide = false
3217
	local ba = Instance.new("Part", Character)
3218
	ba.Name = "HitDirect"
3219
	ba.Anchored = true
3220
	ba.BrickColor = bc("Really black")
3221
	ba.Material = "Neon"
3222
	ba.Transparency = 1
3223
	ba.CanCollide = false
3224
	local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3225
	local ignore = Character
3226
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3227
	a.BottomSurface = 10
3228
	a.TopSurface = 10
3229
	a2.BottomSurface = 10
3230
	a2.TopSurface = 10
3231
	local distance = (orb.CFrame.p - position).magnitude
3232
	a.Size = Vector3.new(distance, 1, 1)
3233
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3234
	a2.Size = Vector3.new(distance, 1, 1)
3235
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3236
	ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3237
	a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3238
	a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3239
	game:GetService("Debris"):AddItem(a, 20)
3240
	game:GetService("Debris"):AddItem(a2, 20)
3241
	game:GetService("Debris"):AddItem(ba, 20)
3242
	local msh = Instance.new("SpecialMesh", a)
3243
	msh.MeshType = "Cylinder"
3244
	msh.Scale = vt(1, 25, 25)
3245
	local msh2 = Instance.new("SpecialMesh", a2)
3246
	msh2.MeshType = "Cylinder"
3247
	msh2.Scale = vt(1, 30, 30)
3248
	for i = 0, 10, 0.1 do
3249
		swait()
3250
		CameraEnshaking(1, 5)
3251
		a2.Color = Color3.new(r / 255, g / 255, b / 255)
3252
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3253
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3254
		ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3255
		hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3256
		distance = (orb.CFrame.p - position).magnitude
3257
		if typrot == 1 then
3258
			rotation = rotation + 2.5
3259
		elseif typrot == 2 then
3260
			rotation = rotation - 2.5
3261
		end
3262
		RootPart.CFrame = FaceMouse()[1]
3263
		a.Size = Vector3.new(distance, 1, 1)
3264
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3265
		a2.Size = Vector3.new(distance, 1, 1)
3266
		a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3267
		ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3268
		a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3269
		a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3270
		msh.Scale = msh.Scale - vt(0, 0.25, 0.25)
3271
		msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3)
3272
		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)
3273
		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)
3274
		MagniDamage(ba, 30, 500, 60000, 0, "Normal")
3275
	end
3276
	a:Destroy()
3277
	a2:Destroy()
3278
	ba:Destroy()
3279
	orb:Destroy()
3280
	orbe:Destroy()
3281
	attack = false
3282
end
3283
function UniversalSpark()
3284
	attack = true
3285
	local rngb = Instance.new("Part", char)
3286
	rngb.Anchored = true
3287
	rngb.BrickColor = origcolor
3288
	rngb.CanCollide = false
3289
	rngb.FormFactor = 3
3290
	rngb.Name = "Ring"
3291
	rngb.Material = "Neon"
3292
	rngb.Size = Vector3.new(1, 0.05, 1)
3293
	rngb.Transparency = 1
3294
	rngb.TopSurface = 0
3295
	rngb.BottomSurface = 0
3296
	local rngmb = Instance.new("SpecialMesh", rngb)
3297
	rngmb.MeshType = "Brick"
3298
	rngmb.Name = "SizeMesh"
3299
	rngmb.Scale = vt(0, 1, 0)
3300
	local orb = rngb:Clone()
3301
	orb.Parent = char
3302
	orb.Transparency = 0
3303
	orb.BrickColor = BrickColor.new("White")
3304
	orb.Size = vt(1, 1, 1)
3305
	local orbmish = orb.SizeMesh
3306
	orbmish.Scale = vt(0, 0, 0)
3307
	orbmish.MeshType = "Sphere"
3308
	local orbe = rngb:Clone()
3309
	orbe.Parent = char
3310
	orbe.Transparency = 0.5
3311
	orbe.BrickColor = BrickColor.new("New Yeller")
3312
	orbe.Size = vt(1, 1, 1)
3313
	local orbmish2 = orbe.SizeMesh
3314
	orbmish2.Scale = vt(0, 0, 0)
3315
	orbmish2.MeshType = "Sphere"
3316
	orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3317
	rngb:Destroy()
3318
	for i = 0, 5, 0.1 do
3319
		swait()
3320
		if rainbowmode == true then
3321
			orbe.Color = Color3.new(r / 255, g / 255, b / 255)
3322
		end
3323
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3324
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5
3325
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
3326
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
3327
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
3328
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3329
		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)
3330
		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)
3331
		RootPart.CFrame = FaceMouse()[1]
3332
	end
3333
	orbe.Transparency = 1
3334
	orb.Transparency = 1
3335
	orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5
3336
	CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
3337
	CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
3338
	CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
3339
	CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
3340
	CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
3341
	CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
3342
	CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
3343
	local xd = Instance.new("Sound", char)
3344
	xd.SoundId = "rbxassetid://445796828"
3345
	xd.Pitch = 0.75
3346
	xd.Looped = true
3347
	xd.Volume = 1.25
3348
	xd:Play()
3349
	local a = Instance.new("Part", Character)
3350
	a.Name = "Direction"
3351
	a.Anchored = true
3352
	a.BrickColor = bc("Alder")
3353
	a.Color = MAINRUINCOLOR.Color
3354
	a.Material = "Neon"
3355
	a.Transparency = 0.5
3356
	a.Shape = "Cylinder"
3357
	a.CanCollide = false
3358
	local a2 = Instance.new("Part", Character)
3359
	a2.Name = "Direction"
3360
	a2.Anchored = true
3361
	a2.BrickColor = bc("New Yeller")
3362
	a2.Color = MAINRUINCOLOR.Color
3363
	a2.Material = "Neon"
3364
	a2.Transparency = 0.5
3365
	a2.Shape = "Cylinder"
3366
	a2.CanCollide = false
3367
	local ba = Instance.new("Part", Character)
3368
	ba.Name = "HitDirect"
3369
	ba.Anchored = true
3370
	ba.BrickColor = bc("Really black")
3371
	ba.Material = "Neon"
3372
	ba.Transparency = 1
3373
	ba.CanCollide = false
3374
	local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3375
	local ignore = Character
3376
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3377
	a.BottomSurface = 10
3378
	a.TopSurface = 10
3379
	a2.BottomSurface = 10
3380
	a2.TopSurface = 10
3381
	local distance = (orb.CFrame.p - position).magnitude
3382
	a.Size = Vector3.new(distance, 1, 1)
3383
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3384
	a2.Size = Vector3.new(distance, 1, 1)
3385
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3386
	ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3387
	a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3388
	a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3389
	game:GetService("Debris"):AddItem(a, 60)
3390
	game:GetService("Debris"):AddItem(a2, 60)
3391
	game:GetService("Debris"):AddItem(ba, 60)
3392
	local outerscale = 0
3393
	local msh = Instance.new("SpecialMesh", a)
3394
	msh.MeshType = "Cylinder"
3395
	msh.Scale = vt(1, 0, 0)
3396
	local msh2 = Instance.new("SpecialMesh", a2)
3397
	msh2.MeshType = "Cylinder"
3398
	msh2.Scale = vt(1, 0, 0)
3399
	for i = 0, 2, 0.1 do
3400
		swait()
3401
		CameraEnshaking(1, 1)
3402
		msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20)
3403
		msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15)
3404
		outerscale = outerscale - 0.015
3405
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3406
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3407
		ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3408
		hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3409
		distance = (orb.CFrame.p - position).magnitude
3410
		if typrot == 1 then
3411
			rotation = rotation + 2.5
3412
		elseif typrot == 2 then
3413
			rotation = rotation - 2.5
3414
		end
3415
		RootPart.CFrame = FaceMouse()[1]
3416
		a.Size = Vector3.new(distance, 1, 1)
3417
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3418
		a2.Size = Vector3.new(distance, 1, 1)
3419
		a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3420
		ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3421
		a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3422
		a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3423
		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)
3424
		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)
3425
		MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3426
	end
3427
	for z = 0, 2 do
3428
		for i = 0, 4, 0.1 do
3429
			swait()
3430
			CameraEnshaking(1, 1)
3431
			msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
3432
			msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
3433
			outerscale = outerscale + 0.015
3434
			orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3435
			orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3436
			ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3437
			hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3438
			distance = (orb.CFrame.p - position).magnitude
3439
			if typrot == 1 then
3440
				rotation = rotation + 2.5
3441
			elseif typrot == 2 then
3442
				rotation = rotation - 2.5
3443
			end
3444
			RootPart.CFrame = FaceMouse()[1]
3445
			a.Size = Vector3.new(distance, 1, 1)
3446
			a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3447
			a2.Size = Vector3.new(distance, 1, 1)
3448
			a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3449
			ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3450
			a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3451
			a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3452
			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)
3453
			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)
3454
			MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3455
		end
3456
		for i = 0, 4, 0.1 do
3457
			swait()
3458
			CameraEnshaking(1, 1)
3459
			msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
3460
			msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
3461
			outerscale = outerscale - 0.015
3462
			orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3463
			orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3464
			ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3465
			hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3466
			distance = (orb.CFrame.p - position).magnitude
3467
			if typrot == 1 then
3468
				rotation = rotation + 2.5
3469
			elseif typrot == 2 then
3470
				rotation = rotation - 2.5
3471
			end
3472
			RootPart.CFrame = FaceMouse()[1]
3473
			a.Size = Vector3.new(distance, 1, 1)
3474
			a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3475
			a2.Size = Vector3.new(distance, 1, 1)
3476
			a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3477
			ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3478
			a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3479
			a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3480
			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)
3481
			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)
3482
			MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3483
		end
3484
	end
3485
	for i = 0, 4, 0.1 do
3486
		swait()
3487
		CameraEnshaking(1, 1)
3488
		msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale)
3489
		msh.Scale = msh.Scale - vt(0, outerscale, outerscale)
3490
		xd.Volume = xd.Volume - 0.025
3491
		a.Transparency = a.Transparency + 0.025
3492
		a2.Transparency = a2.Transparency + 0.025
3493
		outerscale = outerscale - 0.015
3494
		orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3495
		orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4
3496
		ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000)
3497
		hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3498
		distance = (orb.CFrame.p - position).magnitude
3499
		if typrot == 1 then
3500
			rotation = rotation + 2.5
3501
		elseif typrot == 2 then
3502
			rotation = rotation - 2.5
3503
		end
3504
		RootPart.CFrame = FaceMouse()[1]
3505
		a.Size = Vector3.new(distance, 1, 1)
3506
		a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3507
		a2.Size = Vector3.new(distance, 1, 1)
3508
		a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
3509
		ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3510
		a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0)
3511
		a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0)
3512
		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)
3513
		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)
3514
		MagniDamage(ba, 100, 500, 60000, 0, "Normal")
3515
	end
3516
	xd:Destroy()
3517
	a:Destroy()
3518
	a2:Destroy()
3519
	ba:Destroy()
3520
	orb:Destroy()
3521
	orbe:Destroy()
3522
	attack = false
3523
end
3524
function resetmode()
3525
	rainbowmode = false
3526
	chaosmode = false
3527-
	RecolorTextAndRename("Blood maker", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
3527+
	RecolorTextAndRename("Singularity", Color3.new(0, 0, 0), Color3.new(1, 0, 0))
3528
	ModeOfGlitch = 1
3529
	storehumanoidWS = 16
3530
	for i, v in pairs(mw2:GetChildren()) do
3531
		if v:IsA("Part") then
3532
			v.BrickColor = BrickColor.new("Really red")
3533
			v.Material = "Neon"
3534
		end
3535
	end
3536
	for i, v in pairs(mw1:GetChildren()) do
3537
		if v:IsA("Part") then
3538
			v.Transparency = 1
3539
			v.BrickColor = BrickColor.new("Really red")
3540
			v.Material = "Neon"
3541
		end
3542
	end
3543
	MAINRUINCOLOR = BrickColor.new("Really red")
3544
	hum.WalkSpeed = 16
3545
	newTheme("rbxassetid://415898123", 0, 1, 10)
3546
	for i, v in pairs(m:GetChildren()) do
3547
		if v:IsA("Part") then
3548
			v.BrickColor = BrickColor.new("Really black")
3549
			v.Material = "Glass"
3550
		end
3551
	end
3552
	for i, v in pairs(m2:GetChildren()) do
3553
		if v:IsA("Part") then
3554
			v.BrickColor = BrickColor.new("Crimson")
3555
			v.Material = "Granite"
3556
		end
3557
	end
3558
	for i, v in pairs(m3:GetChildren()) do
3559
		if v:IsA("Part") then
3560
			v.BrickColor = BrickColor.new("Really red")
3561
			v.Material = "Neon"
3562
		end
3563
	end
3564
	for i, v in pairs(extrawingmod1:GetChildren()) do
3565
		if v:IsA("Part") then
3566
			v.Transparency = 1
3567
			v.BrickColor = BrickColor.new("White")
3568
			v.Material = "Neon"
3569
		end
3570
	end
3571
	for i, v in pairs(extrawingmod2:GetChildren()) do
3572
		if v:IsA("Part") then
3573
			v.Transparency = 1
3574
			v.BrickColor = BrickColor.new("White")
3575
			v.Material = "Neon"
3576
		end
3577
	end
3578
end
3579
function attackone()
3580
	attack = true
3581
	for i = 0, 1, 0.1 do
3582
		swait()
3583
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2)
3584
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2)
3585
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
3586
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
3587
		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)
3588
		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)
3589
	end
3590
	CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
3591
	local hitb = Instance.new("Part", char)
3592
	hitb.Anchored = true
3593
	hitb.CanCollide = false
3594
	hitb.FormFactor = 3
3595
	hitb.Name = "Ring"
3596
	hitb.Material = "Neon"
3597
	hitb.Size = Vector3.new(1, 1, 1)
3598
	hitb.Transparency = 1
3599
	hitb.TopSurface = 0
3600
	hitb.BottomSurface = 0
3601
	hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
3602
	MagniDamage(hitb, 3, 10, 30, 0, "Normal")
3603
	hitb:Destroy()
3604
	for i = 0, 1, 0.1 do
3605
		swait()
3606
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4)
3607
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4)
3608
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
3609
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
3610
		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)
3611
		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)
3612
	end
3613
	attack = false
3614
end
3615
function attacktwo()
3616
	attack = true
3617
	for i = 0, 1, 0.1 do
3618
		swait()
3619
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2)
3620
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
3621
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
3622
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
3623
		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)
3624
		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)
3625
	end
3626
	CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
3627
	local hitb = Instance.new("Part", char)
3628
	hitb.Anchored = true
3629
	hitb.CanCollide = false
3630
	hitb.FormFactor = 3
3631
	hitb.Name = "Ring"
3632
	hitb.Material = "Neon"
3633
	hitb.Size = Vector3.new(1, 1, 1)
3634
	hitb.Transparency = 1
3635
	hitb.TopSurface = 0
3636
	hitb.BottomSurface = 0
3637
	hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2
3638
	MagniDamage(hitb, 3, 10, 30, 0, "Normal")
3639
	hitb:Destroy()
3640
	for i = 0, 1, 0.1 do
3641
		swait()
3642
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4)
3643
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4)
3644
		RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
3645
		LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
3646
		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)
3647
		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)
3648
	end
3649
	attack = false
3650
end
3651
function attackthree()
3652
	attack = true
3653
	for i = 0, 1, 0.1 do
3654
		swait()
3655
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
3656
		Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
3657
		RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
3658
		LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
3659
		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)
3660
		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)
3661
	end
3662
	local distlook = 5
3663
	for i = 0, 4 do
3664
		swait(2)
3665
		CameraEnshaking(2, 3)
3666
		local hite = Instance.new("Part", char)
3667
		hite.Anchored = true
3668
		hite.CanCollide = false
3669
		hite.FormFactor = 3
3670
		hite.Name = "Ring"
3671
		hite.Material = "Neon"
3672
		hite.Size = Vector3.new(1, 1, 1)
3673
		hite.Transparency = 1
3674
		hite.TopSurface = 0
3675
		hite.BottomSurface = 0
3676
		hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook
3677
		sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR)
3678
		sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR)
3679
		MagniDamage(hite, 10, 15, 35, 0, "Normal")
3680
		for i = 0, 2 do
3681
			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)
3682
			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)
3683
			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)
3684
		end
3685
		CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
3686
		CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
3687
		game:GetService("Debris"):AddItem(hite, 5)
3688
		distlook = distlook + 10
3689
	end
3690
	attack = false
3691
end
3692
local attacktype = 1
3693
mouse.Button1Down:connect(function()
3694
	if attack == false and attacktype == 1 then
3695
		attacktype = 2
3696
		attackone()
3697
	elseif attack == false and attacktype == 2 then
3698
		attacktype = 3
3699
		attacktwo()
3700
	elseif attack == false and attacktype == 3 then
3701
		attacktype = 1
3702
		attackthree()
3703
	elseif attack == false and attacktype == 4 then
3704
		attacktype = 1
3705
	end
3706
end)
3707
mouse.KeyDown:connect(function(k)
3708
	if k == "q" and attack == false and ModeOfGlitch ~= 2 then
3709
		ModeOfGlitch = 2
3710
		storehumanoidWS = 16
3711
		hum.WalkSpeed = 16
3712
		rainbowmode = false
3713
		chaosmode = false
3714-
		RecolorTextAndRename("Divine Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
3714+
		RecolorTextAndRename("Purity", Color3.new(1, 1, 1), Color3.new(0, 1, 1))
3715
		newTheme("rbxassetid://1119453744", 20.25, 1, 1)
3716
		MAINRUINCOLOR = BrickColor.new("Toothpaste")
3717
		for i, v in pairs(mw2:GetChildren()) do
3718
			if v:IsA("Part") then
3719
				v.BrickColor = MAINRUINCOLOR
3720
				v.Material = "Neon"
3721
			end
3722
		end
3723
		for i, v in pairs(mw1:GetChildren()) do
3724
			if v:IsA("Part") then
3725
				v.Transparency = 1
3726
				v.BrickColor = MAINRUINCOLOR
3727
				v.Material = "Neon"
3728
			end
3729
		end
3730
		for i, v in pairs(m:GetChildren()) do
3731
			if v:IsA("Part") then
3732
				v.BrickColor = BrickColor.new("White")
3733
				v.Material = "Ice"
3734
			end
3735
		end
3736
		for i, v in pairs(m2:GetChildren()) do
3737
			if v:IsA("Part") then
3738
				v.BrickColor = BrickColor.new("Pastel light blue")
3739
				v.Material = "Glass"
3740
			end
3741
		end
3742
		for i, v in pairs(m3:GetChildren()) do
3743
			if v:IsA("Part") then
3744
				v.BrickColor = BrickColor.new("Toothpaste")
3745
				v.Material = "Neon"
3746
			end
3747
		end
3748
		for i, v in pairs(extrawingmod1:GetChildren()) do
3749
			if v:IsA("Part") then
3750
				v.Transparency = 1
3751
				v.BrickColor = BrickColor.new("White")
3752
				v.Material = "Neon"
3753
			end
3754
		end
3755
		for i, v in pairs(extrawingmod2:GetChildren()) do
3756
			if v:IsA("Part") then
3757
				v.Transparency = 1
3758
				v.BrickColor = BrickColor.new("White")
3759
				v.Material = "Neon"
3760
			end
3761
		end
3762
	elseif k == "q" and attack == false and ModeOfGlitch == 2 then
3763
		resetmode()
3764
	end
3765
	if k == "e" and attack == false and ModeOfGlitch ~= 3 then
3766
		ModeOfGlitch = 3
3767
		storehumanoidWS = 16
3768
		hum.WalkSpeed = 16
3769
		rainbowmode = false
3770
		chaosmode = false
3771
		RecolorTextAndRename("Corruption", Color3.new(0, 0, 0), Color3.new(0.35, 0, 1))
3772
		newTheme("rbxassetid://1509634377", 58.15, 1,2)
3773
		MAINRUINCOLOR = BrickColor.new("Royal purple")
3774
		for i, v in pairs(mw2:GetChildren()) do
3775
			if v:IsA("Part") then
3776
				v.BrickColor = MAINRUINCOLOR
3777
				v.Material = "Neon"
3778
			end
3779
		end
3780
		for i, v in pairs(mw1:GetChildren()) do
3781
			if v:IsA("Part") then
3782
				v.Transparency = 1
3783
				v.BrickColor = MAINRUINCOLOR
3784
				v.Material = "Neon"
3785
			end
3786
		end
3787
		for i, v in pairs(m:GetChildren()) do
3788
			if v:IsA("Part") then
3789
				v.BrickColor = BrickColor.new("Black")
3790
				v.Material = "Ice"
3791
			end
3792
		end
3793
		for i, v in pairs(m2:GetChildren()) do
3794
			if v:IsA("Part") then
3795
				v.BrickColor = BrickColor.new("Dark indigo")
3796
				v.Material = "Glass"
3797
			end
3798
		end
3799
		for i, v in pairs(m3:GetChildren()) do
3800
			if v:IsA("Part") then
3801
				v.BrickColor = BrickColor.new("Royal purple")
3802
				v.Material = "Neon"
3803
			end
3804
		end
3805
		for i, v in pairs(extrawingmod1:GetChildren()) do
3806
			if v:IsA("Part") then
3807
				v.Transparency = 1
3808
				v.BrickColor = BrickColor.new("White")
3809
				v.Material = "Neon"
3810
			end
3811
		end
3812
		for i, v in pairs(extrawingmod2:GetChildren()) do
3813
			if v:IsA("Part") then
3814
				v.Transparency = 1
3815
				v.BrickColor = BrickColor.new("White")
3816
				v.Material = "Neon"
3817
			end
3818
		end
3819
	elseif k == "e" and attack == false and ModeOfGlitch == 3 then
3820
		resetmode()
3821
	end
3822
	if k == "r" and attack == false and ModeOfGlitch ~= 4 then
3823
		ModeOfGlitch = 4
3824
		storehumanoidWS = 16
3825
		hum.WalkSpeed = 16
3826
		rainbowmode = false
3827
		chaosmode = true
3828-
		RecolorTextAndRename("CHAOS", Color3.new(0, 0, 0), BrickColor.random().Color)
3828+
		RecolorTextAndRename("HATRED", Color3.new(0, 0, 0), BrickColor.random().Color)
3829
		newTheme("rbxassetid://415898123", 0, 1, 10)
3830
		MAINRUINCOLOR = BrickColor.new("Black")
3831
		for i, v in pairs(mw2:GetChildren()) do
3832
			if v:IsA("Part") then
3833
				v.BrickColor = MAINRUINCOLOR
3834
				v.Material = "Neon"
3835
			end
3836
		end
3837
		for i, v in pairs(mw1:GetChildren()) do
3838
			if v:IsA("Part") then
3839
				v.Transparency = 0.75
3840
				v.BrickColor = BrickColor.random()
3841
				v.Material = "Neon"
3842
			end
3843
		end
3844
		for i, v in pairs(m:GetChildren()) do
3845
			if v:IsA("Part") then
3846
				v.BrickColor = BrickColor.new("Black")
3847
				v.Material = "Neon"
3848
			end
3849
		end
3850
		for i, v in pairs(m2:GetChildren()) do
3851
			if v:IsA("Part") then
3852
				v.BrickColor = BrickColor.random()
3853
				v.Material = "Neon"
3854
			end
3855
		end
3856
		for i, v in pairs(m3:GetChildren()) do
3857
			if v:IsA("Part") then
3858
				v.BrickColor = BrickColor.new("Black")
3859
				v.Material = "Neon"
3860
			end
3861
		end
3862
		for i, v in pairs(extrawingmod1:GetChildren()) do
3863
			if v:IsA("Part") then
3864
				v.Transparency = 1
3865
				v.BrickColor = BrickColor.new("White")
3866
				v.Material = "Neon"
3867
			end
3868
		end
3869
		for i, v in pairs(extrawingmod2:GetChildren()) do
3870
			if v:IsA("Part") then
3871
				v.Transparency = 1
3872
				v.BrickColor = BrickColor.new("White")
3873
				v.Material = "Neon"
3874
			end
3875
		end
3876
	elseif k == "r" and attack == false and ModeOfGlitch == 4 then
3877
		resetmode()
3878
	end
3879
	if k == "t" and attack == false and ModeOfGlitch ~= 5 then
3880
		ModeOfGlitch = 5
3881
		
3882
		storehumanoidWS = 16
3883
		hum.WalkSpeed = 16
3884
		rainbowmode = false
3885
		chaosmode = false
3886-
		RecolorTextAndRename("Darkness", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
3886+
		RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(255, 255, 255))
3887
		newTheme("rbxassetid://723652641", 10, 1, 3.2)
3888
   ModeOfGlitch = 1		
3889
		MAINRUINCOLOR = BrickColor.new("Really black")
3890
		for i, v in pairs(mw2:GetChildren()) do
3891
			if v:IsA("Part") then
3892
				v.BrickColor = MAINRUINCOLOR
3893
				v.Material = "Neon"
3894
			end
3895
		end
3896
		for i, v in pairs(mw1:GetChildren()) do
3897
			if v:IsA("Part") then
3898
				v.Transparency = 0
3899
				v.BrickColor = MAINRUINCOLOR
3900
				v.Material = "Neon"
3901
			end
3902
		end
3903
		for i, v in pairs(m:GetChildren()) do
3904
			if v:IsA("Part") then
3905
				v.BrickColor = BrickColor.new("Really black")
3906
				v.Material = "Ice"
3907
			end
3908
		end
3909
		for i, v in pairs(m2:GetChildren()) do
3910
			if v:IsA("Part") then
3911
				v.BrickColor = BrickColor.new("Really black")
3912
				v.Material = "Ice"
3913
			end
3914
		end
3915
		for i, v in pairs(m3:GetChildren()) do
3916
			if v:IsA("Part") then
3917
				v.BrickColor = BrickColor.new("Really black")
3918
				v.Material = "Neon"
3919
			end
3920
		end
3921
		for i, v in pairs(extrawingmod1:GetChildren()) do
3922
			if v:IsA("Part") then
3923
				v.Transparency = 1
3924
				v.BrickColor = BrickColor.new("White")
3925
				v.Material = "Neon"
3926
			end
3927
		end
3928
		for i, v in pairs(extrawingmod2:GetChildren()) do
3929
			if v:IsA("Part") then
3930
				v.Transparency = 1
3931
				v.BrickColor = BrickColor.new("White")
3932
				v.Material = "Neon"
3933
			end
3934
		end
3935
	elseif k == "t" and attack == false and ModeOfGlitch == 5 then
3936
		resetmode()
3937
	end
3938
	if k == "y" and attack == false and ModeOfGlitch ~= 6 then
3939
		ModeOfGlitch = 6
3940
		storehumanoidWS = 75
3941
		hum.WalkSpeed = 75
3942
		rainbowmode = false
3943
		chaosmode = false
3944
		RecolorTextAndRename("Equality", Color3.new(0, 0, 0), Color3.new(1, 1, 1))
3945
		newTheme("rbxassetid://519067542", 0, 1, 1)
3946
		MAINRUINCOLOR = BrickColor.new("Really black")
3947
		for i, v in pairs(mw2:GetChildren()) do
3948
			if v:IsA("Part") then
3949
				v.BrickColor = BrickColor.new("White")
3950
				v.Material = "Neon"
3951
			end
3952
		end
3953
		for i, v in pairs(mw1:GetChildren()) do
3954
			if v:IsA("Part") then
3955
				v.Transparency = 0
3956
				v.BrickColor = BrickColor.new("Really black")
3957
				v.Material = "Neon"
3958
			end
3959
		end
3960
		for i, v in pairs(m:GetChildren()) do
3961
			if v:IsA("Part") then
3962
				v.BrickColor = BrickColor.new("White")
3963
				v.Material = "Ice"
3964
			end
3965
		end
3966
		for i, v in pairs(m2:GetChildren()) do
3967
			if v:IsA("Part") then
3968
				v.BrickColor = BrickColor.new("Really black")
3969
				v.Material = "Ice"
3970
			end
3971
		end
3972
		for i, v in pairs(m3:GetChildren()) do
3973
			if v:IsA("Part") then
3974
				v.BrickColor = BrickColor.new("White")
3975
				v.Material = "Neon"
3976
			end
3977
		end
3978
		for i, v in pairs(extrawingmod1:GetChildren()) do
3979
			if v:IsA("Part") then
3980
				v.Transparency = 1
3981
				v.BrickColor = BrickColor.new("White")
3982
				v.Material = "Neon"
3983
			end
3984
		end
3985
		for i, v in pairs(extrawingmod2:GetChildren()) do
3986
			if v:IsA("Part") then
3987
				v.Transparency = 1
3988
				v.BrickColor = BrickColor.new("White")
3989
				v.Material = "Neon"
3990
			end
3991
		end
3992
		
3993
		
3994
	elseif k == "y" and attack == false and ModeOfGlitch == 6 then
3995
		resetmode()
3996
	end
3997
	if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
3998
		ModeOfGlitch = 6127843
3999
		storehumanoidWS = 50
4000
		hum.WalkSpeed = 50
4001
		rainbowmode = true
4002
		chaosmode = false
4003-
		RecolorTextAndRename("Rainbow", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
4003+
		RecolorTextAndRename("StarGlitcher", Color3.new(1, 1, 1), Color3.new(1, 1, 1))
4004
		newTheme("rbxassetid://152539141", 0, 1, 1)
4005
		MAINRUINCOLOR = BrickColor.new("White")
4006
		for i, v in pairs(mw2:GetChildren()) do
4007
			if v:IsA("Part") then
4008
				v.BrickColor = MAINRUINCOLOR
4009
				v.Material = "Neon"
4010
			end
4011
		end
4012
		for i, v in pairs(mw1:GetChildren()) do
4013
			if v:IsA("Part") then
4014
				v.Transparency = 0
4015
				v.BrickColor = MAINRUINCOLOR
4016
				v.Material = "Neon"
4017
			end
4018
		end
4019
		for i, v in pairs(m:GetChildren()) do
4020
			if v:IsA("Part") then
4021
				v.BrickColor = BrickColor.new("White")
4022
				v.Material = "Neon"
4023
			end
4024
		end
4025
		for i, v in pairs(m2:GetChildren()) do
4026
			if v:IsA("Part") then
4027
				v.BrickColor = BrickColor.new("White")
4028
				v.Material = "Neon"
4029
			end
4030
		end
4031
		for i, v in pairs(m3:GetChildren()) do
4032
			if v:IsA("Part") then
4033
				v.BrickColor = BrickColor.new("White")
4034
				v.Material = "Neon"
4035
			end
4036
		end
4037
		for i, v in pairs(extrawingmod1:GetChildren()) do
4038
			if v:IsA("Part") then
4039
				v.Transparency = 1
4040
				v.BrickColor = BrickColor.new("White")
4041
				v.Material = "Neon"
4042
			end
4043
		end
4044
		for i, v in pairs(extrawingmod2:GetChildren()) do
4045
			if v:IsA("Part") then
4046
				v.Transparency = 1
4047
				v.BrickColor = BrickColor.new("White")
4048
				v.Material = "Neon"
4049
			end
4050
		end
4051
	elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
4052
		resetmode()
4053
	end
4054
	if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
4055
		ModeOfGlitch = 1000000
4056
		storehumanoidWS = 100
4057
		hum.WalkSpeed = 100
4058
		rainbowmode = false
4059
		chaosmode = false
4060-
		RecolorTextAndRename("Divine Universe", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
4060+
		RecolorTextAndRename("True StarLight", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1))
4061
		newTheme("rbxassetid://663850511", 0, 1, 1)
4062
		MAINRUINCOLOR = BrickColor.new("Bright violet")
4063
		for i, v in pairs(mw2:GetChildren()) do
4064
			if v:IsA("Part") then
4065
				v.BrickColor = MAINRUINCOLOR
4066
				v.Material = "Neon"
4067
			end
4068
		end
4069
		for i, v in pairs(mw1:GetChildren()) do
4070
			if v:IsA("Part") then
4071
				v.Transparency = 0
4072
				v.BrickColor = MAINRUINCOLOR
4073
				v.Material = "Neon"
4074
			end
4075
		end
4076
		for i, v in pairs(m:GetChildren()) do
4077
			if v:IsA("Part") then
4078
				v.Color = Color3.new(0.5, 0, 1)
4079
				v.Material = "Neon"
4080
			end
4081
		end
4082
		for i, v in pairs(m2:GetChildren()) do
4083
			if v:IsA("Part") then
4084
				v.Color = Color3.new(0.25, 0, 1)
4085
				v.Material = "Neon"
4086
			end
4087
		end
4088
		for i, v in pairs(m3:GetChildren()) do
4089
			if v:IsA("Part") then
4090
				v.Color = Color3.new(0.45, 0, 1)
4091
				v.Material = "Neon"
4092
			end
4093
		end
4094
		for i, v in pairs(extrawingmod1:GetChildren()) do
4095
			if v:IsA("Part") then
4096
				v.Transparency = 0
4097
				v.Color = Color3.new(0.25, 0, 1)
4098
				v.Material = "Neon"
4099
			end
4100
		end
4101
		for i, v in pairs(extrawingmod2:GetChildren()) do
4102
			if v:IsA("Part") then
4103
				v.Transparency = 0
4104
				v.Color = Color3.new(0.5, 0, 1)
4105
				v.Material = "Neon"
4106
			end
4107
		end
4108
	elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
4109
		resetmode()
4110
	end
4111
	if k == "l" and toggleTag == false then
4112
		toggleTag = true
4113
		text.TextTransparency = 0
4114
		text.TextStrokeTransparency = 0
4115
	elseif k == "l" and toggleTag == true then
4116
		toggleTag = false
4117
		text.TextTransparency = 1
4118
		text.TextStrokeTransparency = 1
4119
	end
4120
	if k == "z" and attack == false and ModeOfGlitch == 1 then
4121
		ExtinctiveHeartbreak()
4122
	elseif k == "z" and attack == false and ModeOfGlitch == 2 then
4123
		PureBomb()
4124
	elseif k == "z" and attack == false and ModeOfGlitch == 3 then
4125
		scattercorrupt()
4126
	elseif k == "z" and attack == false and ModeOfGlitch == 4 then
4127
		ChaosGroundStrike()
4128
	elseif k == "z" and attack == false and ModeOfGlitch == 5 then
4129
        UniversalSpark()
4130
        scattercorrupt()
4131
        wait(0.5)
4132
        scattercorrupt()
4133
	elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
4134
		UniversalSpark()
4135
    elseif k == "l" and attack == false and ModeOfGlitch == 1000000 then
4136
        scattercorrupt()
4137
        wait(1.5)
4138
        yinyangi()
4139
	elseif k == "z" and attack == false and ModeOfGlitch == 6 then
4140
		yinyangi()
4141
        wait(3)
4142
        ChaosGroundStrike()
4143
	elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
4144
		Wip()
4145
	end
4146
	if k == "l" and attack == false and ModeOfGlitch == 4 then
4147
		ChaosBegone()
4148
	end
4149
end)
4150
coroutine.resume(coroutine.create(function()
4151
	while true do
4152
		swait(2)
4153
		if rainbowmode == true or ModeOfGlitch == 6 then
4154
			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)
4155
		end
4156
	end
4157
end))
4158
coroutine.resume(coroutine.create(function()
4159
	while true do
4160
		swait(0.5)
4161
		if ModeOfGlitch == 1000000 then
4162
			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)
4163
		end
4164
	end
4165
end))
4166
coroutine.resume(coroutine.create(function()
4167
	while true do
4168
		swait(2)
4169
		if chaosmode == true then
4170
			RecolorTextAndRename("CHAOS", Color3.new(0, 0, 0), BrickColor.random().Color)
4171
			for i, v in pairs(mw1:GetChildren()) do
4172
				if v:IsA("Part") then
4173
					v.Transparency = 0.75
4174
					v.BrickColor = BrickColor.random()
4175
					v.Material = "Neon"
4176
				end
4177
			end
4178
			for i, v in pairs(m2:GetChildren()) do
4179
				if v:IsA("Part") then
4180
					v.BrickColor = BrickColor.random()
4181
					v.Material = "Neon"
4182
				end
4183
			end
4184
		end
4185
	end
4186
end))
4187
Humanoid.Name = "STARGLITCHER"
4188
Humanoid.MaxHealth = math.huge
4189
Humanoid.Health = math.huge
4190
Instance.new("ForceField", char).Visible = false
4191
Humanoid.Animator.Parent = nil
4192
idleanim = 0.4
4193
while true do
4194
	if rainbowmode == true then
4195
		RecolorTextAndRename("Rainbow", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
4196
		MAINRUINCOLOR = BrickColor.new("White")
4197
		for i, v in pairs(m:GetChildren()) do
4198
			if v:IsA("Part") then
4199
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4200
			end
4201
		end
4202
		for i, v in pairs(m2:GetChildren()) do
4203
			if v:IsA("Part") then
4204
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4205
			end
4206
		end
4207
		for i, v in pairs(m3:GetChildren()) do
4208
			if v:IsA("Part") then
4209
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4210
			end
4211
		end
4212
		for i, v in pairs(mw1:GetChildren()) do
4213
			if v:IsA("Part") then
4214
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4215
				v.Material = "Neon"
4216
			end
4217
		end
4218
		for i, v in pairs(mw2:GetChildren()) do
4219
			if v:IsA("Part") then
4220
				v.Color = Color3.new(r / 255, g / 255, b / 255)
4221
				v.Material = "Neon"
4222
			end
4223
		end
4224
	end
4225
	CameraManager()
4226
	swait()
4227
	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)
4228
	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)
4229
	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)
4230
	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)
4231
	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)
4232
	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)
4233
	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)
4234
	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)
4235
	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)
4236
	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)
4237
	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)
4238
	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)
4239
	sine = sine + change
4240
	local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
4241
	local velderp = RootPart.Velocity.y
4242
	hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
4243
	if equipped == true or equipped == false then
4244
		if attack == false then
4245
			idle = idle + 1
4246
		else
4247
			idle = 0
4248
		end
4249
		if not (idle >= 500) or attack == false then
4250
		end
4251
		if RootPart.Velocity.y > 1 and hitfloor == nil then
4252
			Anim = "Jump"
4253
			if attack == false then
4254
				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)
4255
				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)
4256
				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)
4257
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1)
4258
				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)
4259
				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)
4260
			end
4261
		elseif RootPart.Velocity.y < -1 and hitfloor == nil then
4262
			Anim = "Fall"
4263
			if attack == false then
4264
				RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.1)
4265
				LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.1)
4266
				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)
4267
				Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
4268
				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)
4269
				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)
4270
			end
4271
		elseif torvel < 1 and hitfloor ~= nil then
4272
			Anim = "Idle"
4273
			if attack == false then
4274
				if ModeOfGlitch == 1 then
4275
					RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-10 - 2.5 * math.cos(sine / 32)), math.rad(-20), math.rad(0)), 0.1)
4276
					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)
4277
					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.1)
4278
					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)
4279
					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)
4280
					LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
4281
				elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
4282
					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)
4283
					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)
4284
					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)
4285
					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)
4286
					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)
4287
					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)
4288
				elseif ModeOfGlitch == 3 then
4289
					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))), 0.1)
4290
					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)
4291
					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)), 0.1)
4292
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(25 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(20)), 0.1)
4293
					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)
4294
					LW.C0 = clerp(LW.C0, cf(-1.5, 0.75, 0) * angles(math.rad(170), math.rad(-20), math.rad(20)), 0.1)
4295
				elseif ModeOfGlitch == 4 then
4296
					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)
4297
					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)
4298
					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)
4299
					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)
4300
					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)
4301
					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)
4302
				elseif ModeOfGlitch == 5 then
4303
					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))), 0.1)
4304
					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)
4305
					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)
4306
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1)
4307
					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)), 0.1)
4308
					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)), 0.1)
4309
				elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
4310
					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)
4311
					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)
4312
					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)
4313
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1)
4314
					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)
4315
					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)
4316
				end
4317
			end
4318
		elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
4319
			Anim = "Walk"
4320
			if attack == false then
4321
				if ModeOfGlitch == 1 then
4322
					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)
4323
					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)
4324
					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)
4325
					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)
4326
					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)
4327
					LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1)
4328
				elseif ModeOfGlitch == 4 then
4329
					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)
4330
					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)
4331
					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)
4332
					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)
4333
					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)
4334
					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)
4335
				elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then
4336
					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)
4337
					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)
4338
					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)
4339
					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)
4340
					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)
4341
					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)
4342
				end
4343
			end
4344
		elseif torvel >= 22 and hitfloor ~= nil then
4345
			Anim = "Run"
4346
			if attack == false then
4347
				if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then
4348
					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)
4349
					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)
4350
					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)
4351
					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)
4352
					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)
4353
					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)
4354
				elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
4355
					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)
4356
					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)
4357
					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)
4358
					Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2)
4359
					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)
4360
					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)
4361
				end
4362
			end
4363
		end
4364
	end
4365
end