-- Decompiled with the Synapse X Luau decompiler.

local l__HDAdminMain__1 = _G.HDAdminMain;
local l__settings__2 = l__HDAdminMain__1.settings;
local v3 = {};
local v4 = {};
function v4.Function(p1, p2)
	local v5 = l__HDAdminMain__1.signals.GetPing:InvokeServer(math.random(1, 1000));
	l__HDAdminMain__1:GetModule("Notices"):Notice("Notice", l__HDAdminMain__1.hdAdminCoreName, "Your ping is " .. math.floor((tick() - tick()) / 2 * 1000 * 1000 + 0.5) / 1000 .. "!");
end;
v3.ping = v4;
v3.blur = {
	Function = function(p3, p4)
		l__HDAdminMain__1.blur.Size = p4[2] ~= 0 and p4[2] or 20;
	end, 
	UnFunction = function(p5, p6)
		l__HDAdminMain__1.blur.Size = 0;
	end
};
local v6 = {};
local u1 = {};
function v6.Function(p7, p8)
	for v7, v8 in pairs(u1) do
		v7.Enabled = true;
	end;
	u1 = {};
end;
v3.showGuis = v6;
v3.hideGuis = {
	Function = function(p9, p10)
		for v9, v10 in pairs(l__HDAdminMain__1.playerGui:GetChildren()) do
			if v10:IsA("ScreenGui") and v10.Name ~= "Chat" and v10.Name ~= "HDAdminGUIs" then
				if v10.Enabled == true then
					u1[v10] = true;
				end;
				v10.Enabled = false;
			end;
		end;
	end
};
v3.view = {
	Function = function(p11, p12)
		local v11 = l__HDAdminMain__1:GetModule("cf"):GetHumanoid(p12[1]);
		if v11 then
			l__HDAdminMain__1:GetModule("cf"):SetCameraSubject(v11);
		end;
	end, 
	UnFunction = function(p13, p14)
		local v12 = l__HDAdminMain__1:GetModule("cf"):GetHumanoid(p13);
		if v12 then
			l__HDAdminMain__1.signals.SetCameraSubject:FireClient(p13, v12);
		end;
	end
};
v3.nightVision = {
	Function = function(p15, p16)
		for v13, v14 in pairs(l__HDAdminMain__1.players:GetChildren()) do
			local v15 = l__HDAdminMain__1:GetModule("cf"):GetHead(v14);
			if v14.Name ~= l__HDAdminMain__1.player.Name and v15 then
				for v16, v17 in pairs(v14.Character:GetChildren()) do
					if v17:IsA("BasePart") and v17:FindFirstChild("HDNightVision") == nil then
						for v18 = 1, 6 do
							local v19 = l__HDAdminMain__1.client.Assets.NightVision:Clone();
							v19.Parent = v17;
							v19.Face = v18 - 1;
							v19.Name = "HDAdminNightVision";
						end;
					end;
				end;
				local v20 = l__HDAdminMain__1.client.Assets.Nickname:Clone();
				v20.TextLabel.Text = v14.Name;
				v20.Parent = v15;
				v20.Name = "HDAdminNightVision";
			end;
		end;
	end, 
	UnFunction = function(p17, p18)
		for v21, v22 in pairs(l__HDAdminMain__1.players:GetChildren()) do
			if v22.Character then
				for v23, v24 in pairs(v22.Character:GetDescendants()) do
					if v24.Name == "HDAdminNightVision" then
						v24:Destroy();
					end;
				end;
			end;
		end;
	end
};
v3.cmdbar = {
	Function = function(p19, p20)
		l__HDAdminMain__1:GetModule("CmdBar"):OpenCmdBar();
	end
};
v3.cmdbar2 = {
	Function = function(p21, p22)
		l__HDAdminMain__1:GetModule("cf"):CreateNewCommandMenu("cmdbar2", {}, 2);
	end
};
v3.rainbowFart = {
	Function = function(p23, p24)
		local v25 = p24[1];
		local v26 = 20;
		local v27 = { 174658105, 148635119 };
		local function u2(p25, p26)
			local v28 = Instance.new("Sound", p26);
			v28.SoundId = "rbxassetid://" .. p25;
			v28.Volume = 0.5;
			v28:Play();
			if not v28.IsPlaying then
				local v29 = v28.Played:Wait();
			end;
			wait();
		end;
		local function v30(p27, p28, p29, p30, p31)
			local v31 = l__HDAdminMain__1.client.Assets.Poop:Clone();
			u2(p29, v31);
			v31.CanCollide = false;
			v31.Color = Color3.fromHSV((p30 - 1) * 0.05, 0.7, 0.7);
			v31.CFrame = p28.Seat.CFrame * CFrame.new(0, p30 * 1 - 0.5, 0);
			p27:SetPrimaryPartCFrame(v31.CFrame * CFrame.new(0, 3, 0));
			v31.Parent = p31;
		end;
		local v32 = l__HDAdminMain__1:GetModule("cf"):GetHead(v25);
		if not v32 then
			return;
		end;
		v25.Character.Parent = nil;
		local v33, v34 = l__HDAdminMain__1:GetModule("cf"):CreateClone(v25.Character);
		if v34.sit.Length <= 0 then
			while true do
				wait();
				if v34.sit.Length > 0 then
					break;
				end;			
			end;
		end;
		v33.Head.CFrame = v32.CFrame;
		if v25 == l__HDAdminMain__1.player then
			l__HDAdminMain__1:GetModule("cf"):Movement(false);
			l__HDAdminMain__1:GetModule("cf"):SetCameraSubject(v33.Humanoid);
		end;
		local v35 = Instance.new("Model", workspace);
		local v36 = l__HDAdminMain__1.client.Assets.Toilet:Clone();
		v35.Name = v25.Name .. "'s poop";
		v36.PrimaryPart = v36.Seat;
		v36:SetPrimaryPartCFrame(v33.HumanoidRootPart.CFrame * CFrame.new(0, -1, 0));
		v36.Parent = workspace;
		v36.Seat:Sit(v33.Humanoid);
		v34.sit:Play(0);
		v33.Head.face.Texture = "rbxassetid://304907108";
		wait();
		v33.PrimaryPart = v33.Head;
		v33:SetPrimaryPartCFrame(v36.PrimaryPart.CFrame * CFrame.new(0, 3, 0));
		for v37, v38 in pairs(v33:GetChildren()) do
			if v38:IsA("BasePart") and v38.Name ~= "HumanoidRootPart" then
				v38.Anchored = true;
			end;
		end;
		wait(1);
		u2(174658105, v33.HumanoidRootPart);
		wait(2);
		local v39 = 0 + 1;
		v30(v33, v36, 148635119, v39, v35, v35);
		v33.Head.face.Texture = "rbxassetid://338312149";
		wait(1.5);
		v33.Head.face.Texture = "rbxassetid://316545711";
		for v40 = 1, 20 do
			if v40 == 18 then
				for v41, v42 in pairs(v33:GetChildren()) do
					if v42:IsA("BasePart") and v42.Name ~= "HumanoidRootPart" then
						v42.Anchored = false;
					end;
				end;
				local v43 = Instance.new("Explosion");
				v43.Position = v33.Head.Position;
				v43.Parent = v33;
				v43.DestroyJointRadiusPercent = 0;
				v33:BreakJoints();
			elseif v40 > 19 then
				for v44, v45 in pairs(v35:GetChildren()) do
					v45.Anchored = false;
					v45.CanCollide = true;
				end;
			end;
			if v26 <= v40 then
				wait(1.5);
			else
				v30(v33, v36, v27[math.random(1, #v27)], v39 + 1, v35);
				wait();
			end;
		end;
		wait(3);
		v35:Destroy();
		v36:Destroy();
		v33:Destroy();
		if v25 == l__HDAdminMain__1.player then
			local v46 = l__HDAdminMain__1:GetModule("cf"):GetHumanoid(v25);
			if v46 then
				l__HDAdminMain__1:GetModule("cf"):Movement(true);
				l__HDAdminMain__1:GetModule("cf"):SetCameraSubject(v46);
			end;
		end;
		v25.Character.Parent = workspace;
	end
};
v3.icecream = {
	Function = function(p32, p33)
		local v47 = p33[1];
		v47.Character.Parent = nil;
		local v48, v49 = l__HDAdminMain__1:GetModule("cf"):CreateClone(v47.Character);
		local l__HumanoidRootPart__50 = v48:FindFirstChild("HumanoidRootPart");
		if l__HumanoidRootPart__50 == nil then
			v48:Destroy();
			return;
		end;
		l__HumanoidRootPart__50.Anchored = true;
		local v51 = l__HDAdminMain__1.client.Assets.IcecreamVan:Clone();
		v51.PrimaryPart = v51.VanDoor.Part1;
		v51:SetPrimaryPartCFrame(l__HumanoidRootPart__50.CFrame * CFrame.new(-210, 3, -4) * CFrame.Angles(0, math.rad(90), 0));
		v51.Parent = workspace;
		if v47 == l__HDAdminMain__1.player then
			l__HDAdminMain__1:GetModule("cf"):Movement(false);
			l__HDAdminMain__1:GetModule("cf"):SetCameraSubject(v48.Humanoid);
			for v52, v53 in pairs(v51:GetDescendants()) do
				if v53:IsA("BasePart") then
					v53.CanCollide = true;
				end;
			end;
		end;
		local v54 = l__HDAdminMain__1:GetModule("cf"):CreateSound({
			SoundId = 260910474, 
			Volume = 0.5, 
			Parent = v51.PrimaryPart
		});
		local v55 = l__HDAdminMain__1:GetModule("cf"):CreateSound({
			SoundId = 861942173, 
			Volume = 4, 
			Parent = v51.PrimaryPart
		});
		local v56 = l__HDAdminMain__1:GetModule("cf"):CreateSound({
			SoundId = 2628538600, 
			Volume = 0.15, 
			Parent = v51.PrimaryPart
		});
		local v57 = l__HDAdminMain__1:GetModule("cf"):CreateSound({
			SoundId = 147758746, 
			Volume = 0.8, 
			Parent = v51.PrimaryPart
		});
		v54:Play();
		l__HDAdminMain__1:GetModule("cf"):TweenModel(v51, v51.PrimaryPart.CFrame * CFrame.new(0, 0, 210), TweenInfo.new(8));
		wait(8.1);
		local v58 = l__HDAdminMain__1.tweenService:Create(v54, TweenInfo.new(0.5), {
			Volume = 0
		});
		v58:Play();
		v58.Completed:Wait();
		v54:Stop();
		v54:Destroy();
		wait(1);
		v51.VanDoor.Part1.Transparency = 1;
		v51.VanDoor.Part2.Transparency = 1;
		wait(1);
		v48.PrimaryPart = v48.Head;
		v48:SetPrimaryPartCFrame(v51.Clown.Head.CFrame * CFrame.new(0, 0, -2.5) * CFrame.Angles(0, math.rad(180), 0));
		if v47 == l__HDAdminMain__1.player then
			v47.CameraMaxZoomDistance = 0.5;
			spawn(function()
				v47.CameraMaxZoomDistance = 1;
			end);
		end;
		local l__face__59 = v48.Head:FindFirstChild("face");
		if l__face__59 then
			l__face__59.Texture = "rbxassetid://338312149";
		end;
		v55:Play();
		wait(1);
		v51.VanDoor.Part1.Transparency = 0;
		v51.VanDoor.Part2.Transparency = 0;
		v48.Parent = v51;
		for v60, v61 in pairs(v48:GetChildren()) do
			if v61:IsA("Accessory") then
				v61:remove();
			end;
		end;
		v54:Play();
		l__HDAdminMain__1:GetModule("cf"):TweenModel(v51, v51.PrimaryPart.CFrame * CFrame.new(0, 0, 400), TweenInfo.new(14, Enum.EasingStyle.Quad, Enum.EasingDirection.In));
		wait(4);
		local v62 = v51.Clown["Right Arm"];
		v62.CFrame = v62.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(45), 0, 0);
		for v63, v64 in pairs(v51.Doll:GetChildren()) do
			v64.Transparency = 0;
		end;
		v51.Doll.Head.face.Transparency = 0;
		wait(0.1);
		v56:Play();
		wait(1.5);
		v57:Play();
		if l__face__59 then
			l__face__59.Texture = "rbxassetid://288918236";
		end;
		wait(2.5);
		if v47 == l__HDAdminMain__1.player then
			local v65 = Instance.new("Explosion");
			v65.Position = v48.Head.Position;
			v65.Parent = v48;
			v48:BreakJoints();
			l__HDAdminMain__1.audio.Oof:Play();
		end;
		wait(5);
		if v47 == l__HDAdminMain__1.player then
			local v66 = l__HDAdminMain__1:GetModule("cf"):GetHumanoid(v47);
			if v66 then
				l__HDAdminMain__1:GetModule("cf"):Movement(true);
				l__HDAdminMain__1:GetModule("cf"):SetCameraSubject(v66);
			end;
			v47.CameraMaxZoomDistance = 20;
			wait();
			v47.CameraMinZoomDistance = 20;
			wait();
			v47.CameraMinZoomDistance = v47.CameraMinZoomDistance;
			v47.CameraMaxZoomDistance = v47.CameraMaxZoomDistance;
		end;
		if v47.Character then
			v47.Character.Parent = workspace;
		end;
		v51:Destroy();
	end
};
local v67 = {
	DisplayLaser = function(p34, p35, p36)
		local l__LeftBeam__68 = p35:FindFirstChild("LeftBeam");
		if l__LeftBeam__68 then
			l__LeftBeam__68.Enabled = p36;
			p35.RightBeam.Enabled = p36;
			p35.MidAttachment.GlowHit.Enabled = p36;
		end;
	end, 
	Activate = function(p37)
		local l__Name__69 = p37.Name;
		local v70 = l__HDAdminMain__1:GetModule("cf"):GetHead();
		local v71 = l__HDAdminMain__1:GetModule("cf"):GetHumanoid();
		local v72 = l__HDAdminMain__1:GetModule("cf"):GetHRP();
		if v70 and v71 and l__HDAdminMain__1.mouseDown then
			local l__HDAdminLaserHead__73 = v70:FindFirstChild("HDAdminLaserHead");
			local v74 = l__HDAdminMain__1:GetModule("cf"):GetNeck();
			local v75 = false;
			if v71.RigType == Enum.HumanoidRigType.R6 then
				v75 = true;
			end;
			v70.Parent.PrimaryPart = v72;
			if l__HDAdminLaserHead__73 and v74 then
				local v76 = tick() - 1;
				local v77 = v71.HipHeight / 2.5;
				local l__LaserTarget__78 = l__HDAdminLaserHead__73.LaserTarget;
				local l__Fire__79 = l__LaserTarget__78.MidAttachment2.Fire;
				local l__Sparks__80 = l__LaserTarget__78.MidAttachment.Sparks;
				local l__Sizzle__81 = l__HDAdminMain__1.audio.Sizzle;
				local l__Sizzle2__82 = l__HDAdminMain__1.audio.Sizzle2;
				l__Sizzle__81:Play();
				p37.DisplayLaser(l__HDAdminLaserHead__73, l__LaserTarget__78, true);
				while true do
					local v83 = nil;
					local v84, v85 = l__HDAdminMain__1:GetModule("cf"):GetMousePoint(l__HDAdminMain__1.lastHitPosition);
					local v86 = CFrame.new(v85, v70.Position);
					local v87 = l__HDAdminMain__1.player:DistanceFromCharacter(v86.p);
					local v88 = false;
					if v87 > 30 then
						v86 = v86 * CFrame.new(0, 0, 30 - v87);
						v88 = true;
					end;
					l__LaserTarget__78.CFrame = v86;
					local l__Position__89 = l__LaserTarget__78.Position;
					if v70.Parent.PrimaryPart == nil then
						v70.Parent.PrimaryPart = v70.parent.HumanoidRootPart;
					end;
					v83 = CFrame.new(Vector3.new(), v70.Parent.PrimaryPart.CFrame:VectorToObjectSpace((Vector3.new(l__Position__89.X, v70.Position.Y, l__Position__89.Z) - v70.Position).Unit));
					if v75 then
						local v90 = v83 * CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90), math.rad(180), 0);
					else
						v90 = v83 * CFrame.new(0, v77, 0);
					end;
					v74.C0 = v90;
					if v76 < tick() - 0.6 then
						v76 = tick();
						l__HDAdminMain__1:GetModule("cf"):ReplicateEffect(p37.Name, { v86, v90 });
					end;
					if v84 and not v88 and (v84.Parent:FindFirstChild("Humanoid") or v84.Name == "Handle") then
						l__Fire__79.Enabled = true;
						l__Sparks__80.Enabled = true;
						if not l__Sizzle2__82.Playing then
							l__Sizzle2__82:Play();
						end;
					else
						l__Fire__79.Enabled = false;
						l__Sparks__80.Enabled = false;
						if l__Sizzle2__82.Playing then
							l__Sizzle2__82:Stop();
						end;
					end;
					wait();
					if not l__HDAdminMain__1.mouseDown then
						break;
					end;
					if not l__HDAdminMain__1.commandsActive[l__Name__69] then
						break;
					end;
					if not v70 then
						break;
					end;
					if not v70.Parent then
						break;
					end;
					if not v74 then
						break;
					end;				
				end;
				v74.C0 = v74.C0;
				p37.DisplayLaser(l__HDAdminLaserHead__73, l__LaserTarget__78, false);
				l__Fire__79.Enabled = false;
				l__Sparks__80.Enabled = false;
				l__Sizzle__81:Stop();
				l__Sizzle2__82:Stop();
			end;
		end;
		l__HDAdminMain__1.commandsActive[l__Name__69] = nil;
	end
};
local u3 = {};
local u4 = {};
local u5 = TweenInfo.new(0.7);
function v67.ReplicationEffect(p38, p39, p40)
	local v91 = p39[1];
	local v92 = p39[2];
	local v93 = l__HDAdminMain__1:GetModule("cf"):GetHead(p38);
	if v93 then
		local l__HDAdminLaserHead__94 = v93:FindFirstChild("HDAdminLaserHead");
		local v95 = l__HDAdminMain__1:GetModule("cf"):GetNeck(p38);
		if l__HDAdminLaserHead__94 and v95 then
			local l__LaserTarget__96 = l__HDAdminLaserHead__94.LaserTarget;
			if u3[p38] then
				u3[p38] = u3[p38] + 1;
			else
				u3[p38] = 1;
				u4[p38] = v95.C0;
				l__LaserTarget__96.CFrame = v91 * CFrame.new(0, 0, math.random(10, 40) - 15);
				v95.C0 = v92;
				l__LaserTarget__96.MidAttachment.GlowHit.Rate = 50;
				p40.DisplayLaser(l__HDAdminLaserHead__94, l__LaserTarget__96, true);
			end;
			l__HDAdminMain__1.tweenService:Create(l__LaserTarget__96, u5, {
				CFrame = v91
			}):Play();
			l__HDAdminMain__1.tweenService:Create(v95, u5, {
				C0 = v92
			}):Play();
			wait(0.7);
			u3[p38] = u3[p38] - 1;
			if u3[p38] <= 0 then
				p40.DisplayLaser(l__HDAdminLaserHead__94, l__LaserTarget__96, false);
				v95.C0 = u4[p38];
				u4[p38] = nil;
				u3[p38] = nil;
			end;
		end;
	end;
end;
v3.laserEyes = v67;
v3.warp = {
	Function = function(p41, p42)
		local v97 = 0.005;
		local v98 = 0.995;
		local v99 = -0.005;
		while true do
			l__HDAdminMain__1.runService.RenderStepped:Wait();
			if v98 < v97 then
				v98 = 0.005;
				v99 = 0.005;
			elseif v98 > 1 then
				v98 = 1;
				v99 = -0.005;
			end;
			l__HDAdminMain__1.camera.CFrame = l__HDAdminMain__1.camera.CFrame * CFrame.new(0, 0, 0, v98, 0, 0, 0, v98, 0, 0, 0, 1);
			v98 = v98 + v99;
			if v98 > 1 then
				break;
			end;		
		end;
	end
};
v3.fly = {
	Activate = function(p43)
		l__HDAdminMain__1:GetModule("FlyCommand"):Fly(p43.Name);
	end
};
v3.fly2 = {
	Activate = function(p44)
		l__HDAdminMain__1:GetModule("FlyCommand"):Fly(p44.Name);
	end
};
v3.noclip = {
	Activate = function(p45)
		local l__Name__100 = p45.Name;
		local v101 = l__HDAdminMain__1:GetModule("cf"):GetHumanoid();
		local v102 = l__HDAdminMain__1:GetModule("cf"):GetHRP();
		if v101 and v102 then
			local v103 = tick();
			v102.Anchored = true;
			v101.PlatformStand = true;
			while true do
				wait();
				local l__Position__104 = v102.Position;
				v102.CFrame = CFrame.new(l__Position__104, l__Position__104 + (l__HDAdminMain__1.camera.Focus.p - l__HDAdminMain__1.camera.CFrame.p).unit) * l__HDAdminMain__1:GetModule("cf"):GetNextMovement(tick() - v103, l__HDAdminMain__1.commandSpeeds[l__Name__100]);
				v103 = tick();
				if not l__HDAdminMain__1.commandsActive[l__Name__100] then
					break;
				end;			
			end;
			if v102 and v101 then
				v102.Anchored = false;
				v102.Velocity = Vector3.new();
				v101.PlatformStand = false;
			end;
		end;
	end
};
v3.noclip2 = {
	Activate = function(p46)
		l__HDAdminMain__1:GetModule("FlyCommand"):Fly(p46.Name, true);
	end
};
v3.clip = {
	Function = function(p47, p48, p49)
		l__HDAdminMain__1:GetModule("cf"):DeactivateCommand("noclip");
	end
};
v3.boing = {
	ExpandTime = 4, 
	ExpandAmount = 3, 
	EndBoing = {}, 
	Function = function(p50, p51, p52)
		local v105 = p51[1];
		local v106 = l__HDAdminMain__1:GetModule("cf"):GetHead(v105);
		local v107 = l__HDAdminMain__1:GetModule("cf"):GetHumanoid(v105);
		if v106 and v107 and not p52.UnFunction(p50, p51, p52) then
			local l__Mesh__108 = v106:FindFirstChild("Mesh");
			if l__Mesh__108 then
				local v109 = {};
				local l__Character__110 = v105.Character;
				for v111, v112 in pairs(l__Character__110:GetChildren()) do
					if v112:IsA("Accessory") then
						table.insert(v109, v112);
						v112.Parent = nil;
					end;
				end;
				local l__Scale__113 = l__Mesh__108.Scale;
				l__HDAdminMain__1.tweenService:Create(l__Mesh__108, TweenInfo.new(p52.ExpandTime, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {
					Scale = Vector3.new(l__Scale__113.X, l__Scale__113.Y * p52.ExpandAmount, l__Scale__113.Z)
				}):Play();
				local v114 = Instance.new("BindableEvent");
				p52.EndBoing[v105] = v114;
				l__HDAdminMain__1:GetModule("cf"):WaitForEvent(v114, v107.Died, v105.CharacterAdded);
				p52.EndBoing[v105] = nil;
				v114:Destroy();
				if l__Mesh__108 then
					local v115 = l__HDAdminMain__1.tweenService:Create(l__Mesh__108, TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {
						Scale = l__Scale__113
					});
					v115:Play();
					v115.Completed:Wait();
				end;
				local v116, v117, v118 = pairs(v109);
				while true do
					local v119 = nil;
					local v120 = nil;
					v120, v119 = v116(v117, v118);
					if not v120 then
						break;
					end;
					v118 = v120;
					if l__Character__110 then
						v119.Parent = l__Character__110;
					else
						v119:Destroy();
					end;				
				end;
			end;
		end;
	end, 
	UnFunction = function(p53, p54, p55)
		local v121 = p55.EndBoing[p54[1]];
		if not v121 then
			return;
		end;
		v121:Fire();
		return true;
	end
};
for v122, v123 in pairs(v3) do
	v123.Name = v122;
end;
return v3;