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