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