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