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