-- Decompiled with the Synapse X Luau decompiler.


local v1 = {};
local l__HDAdminMain__2 = _G.HDAdminMain;
l__HDAdminMain__2.chatting = false;
l__HDAdminMain__2.userInputService.TextBoxFocused:connect(function()
	l__HDAdminMain__2.chatting = true;
end);
l__HDAdminMain__2.userInputService.TextBoxFocusReleased:connect(function()
	l__HDAdminMain__2.chatting = false;
end);
local u1 = nil;
local u2 = nil;
local u3 = Enum.UserInputType.MouseButton1;
local l__Enum_UserInputType_Touch__4 = Enum.UserInputType.Touch;
local u5 = nil;
function v1.MakeFrameDraggable(p1, p2)
	p2.DragBar.Drag.InputBegan:Connect(function(p3)
		if p3.UserInputType == u3 or p3.UserInputType == l__Enum_UserInputType_Touch__4 then
			u5 = p2;
			u1 = p3.Position;
			u2 = p2.Position;
			p3.Changed:Connect(function()
				if p3.UserInputState == Enum.UserInputState.End then
					u5 = nil;
				end;
			end);
		end;
	end);
end;
for v3, v4 in pairs({ l__HDAdminMain__2.gui.MainFrame }) do
	v1:MakeFrameDraggable(v4);
end;
local u6 = { "laserEyes" };
local u7 = Enum.UserInputType.MouseMovement;
local function u8(p4, p5)
	local v5 = p4.Position - u1;
	p5.Position = UDim2.new(u2.X.Scale, u2.X.Offset + v5.X, u2.Y.Scale, u2.Y.Offset + v5.Y);
	if p5.AbsolutePosition.Y < 0 then
		p5.Position = p5.Position + UDim2.new(0, 0, 0, -p5.AbsolutePosition.Y);
	end;
end;
local function u9(p6)
	l__HDAdminMain__2.lastHitPosition = p6;
	for v6, v7 in pairs(u6) do
		l__HDAdminMain__2:GetModule("cf"):ActivateClientCommand(v7);
	end;
end;
l__HDAdminMain__2.userInputService.InputChanged:Connect(function(p7, p8)
	if (p7.UserInputType == u7 or p7.UserInputType == l__Enum_UserInputType_Touch__4) and ((not p8 or u5) and l__HDAdminMain__2.mouseDown) and ((l__HDAdminMain__2.lastHitPosition - p7.Position).magnitude < 150 or l__HDAdminMain__2.device ~= "Mobile") then
		if u5 then
			u8(p7, u5);
		end;
		u9(p7.Position);
	end;
end);
local l__CmdBar__8 = l__HDAdminMain__2.gui.CmdBar;
l__HDAdminMain__2.movementKeysPressed = {};
local l__TextBox__10 = l__CmdBar__8.SearchFrame.TextBox;
local u11 = {
	[Enum.KeyCode.Left] = "Left", 
	[Enum.KeyCode.Right] = "Right", 
	[Enum.KeyCode.Up] = "Forwards", 
	[Enum.KeyCode.Down] = "Backwards", 
	[Enum.KeyCode.A] = "Left", 
	[Enum.KeyCode.D] = "Right", 
	[Enum.KeyCode.W] = "Forwards", 
	[Enum.KeyCode.S] = "Backwards", 
	[Enum.KeyCode.Space] = "Up", 
	[Enum.KeyCode.R] = "Up", 
	[Enum.KeyCode.Q] = "Down", 
	[Enum.KeyCode.LeftControl] = "Down", 
	[Enum.KeyCode.F] = "Down"
};
local u12 = {
	[Enum.KeyCode.Left] = true, 
	[Enum.KeyCode.Right] = true, 
	[Enum.KeyCode.Up] = true, 
	[Enum.KeyCode.Down] = true
};
l__HDAdminMain__2.userInputService.InputBegan:Connect(function(p9, p10)
	if (p9.UserInputType == u3 or p9.UserInputType == l__Enum_UserInputType_Touch__4) and ((not p10 or u5) and not l__HDAdminMain__2.mouseDown) then
		l__HDAdminMain__2.mouseDown = true;
		u9(p9.Position);
	elseif not l__HDAdminMain__2.chatting or l__CmdBar__8.Visible and #l__TextBox__10.Text < 2 then
		local v9 = u11[p9.KeyCode];
		if v9 then
			table.insert(l__HDAdminMain__2.movementKeysPressed, v9);
		elseif p9.KeyCode == Enum.KeyCode.E then
			for v10, v11 in pairs(l__HDAdminMain__2.commandSpeeds) do
				if l__HDAdminMain__2.commandsActive[v10] then
					l__HDAdminMain__2:GetModule("cf"):EndCommand(v10);
				else
					l__HDAdminMain__2:GetModule("cf"):ActivateClientCommand(v10);
				end;
			end;
		elseif p9.KeyCode == Enum.KeyCode.Quote or p9.KeyCode == Enum.KeyCode.Semicolon then
			l__HDAdminMain__2:GetModule("CmdBar"):ToggleBar(p9.KeyCode);
		end;
	end;
	if u12[p9.KeyCode] then
		l__HDAdminMain__2:GetModule("CmdBar"):PressedArrowKey(p9.KeyCode);
	end;
end);
l__HDAdminMain__2.userInputService.InputEnded:Connect(function(p11, p12)
	local v12 = u11[p11.KeyCode];
	if p11.UserInputType == u3 or p11.UserInputType == l__Enum_UserInputType_Touch__4 then
		l__HDAdminMain__2.mouseDown = false;
		return;
	end;
	if v12 then
		for v13, v14 in pairs(l__HDAdminMain__2.movementKeysPressed) do
			if v14 == v12 then
				table.remove(l__HDAdminMain__2.movementKeysPressed, v13);
			end;
		end;
	end;
end);
local l__Humanoid__15 = (l__HDAdminMain__2.player.Character or l__HDAdminMain__2.player.CharacterAdded:Wait()):WaitForChild("Humanoid");
local v16 = l__HDAdminMain__2:GetModule("Events");
if l__HDAdminMain__2.device ~= "Computer" then
	v16:New("DoubleJumped", l__Humanoid__15).Event:Connect(function()
		for v17, v18 in pairs(l__HDAdminMain__2.commandSpeeds) do
			if l__HDAdminMain__2.commandsActive[v17] then
				l__HDAdminMain__2:GetModule("cf"):EndCommand(v17);
			else
				l__HDAdminMain__2:GetModule("cf"):ActivateClientCommand(v17);
			end;
		end;
	end);
end;
return v1;
