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