local t={}local F=_G.HDAdminMain F.chatting=false F.userInputService.TextBoxFocused:connect(function()F.chatting=true end)F.userInputService.TextBoxFocusReleased:connect(function()F.chatting=false end)local A=nil local W=nil local Q=Enum.UserInputType.MouseButton1 local I=Enum.UserInputType.Touch local h=nil function t.MakeFrameDraggable(t,F)F.DragBar.Drag.InputBegan:Connect(function(t)if t.UserInputType==Q or t.UserInputType==I then h=F A=t.Position W=F.Position t.Changed:Connect(function()if t.UserInputState==Enum.UserInputState.End then h=nil end end)end end)end for F,A in pairs({F.gui.MainFrame})do t:MakeFrameDraggable(A)end local g={"\108\097\115\101\114\069\121\101\115"}local Y=Enum.UserInputType.MouseMovement local function y(t,F)local Q=t.Position-A F.Position=UDim2.new(W.X.Scale,W.X.Offset+Q.X,W.Y.Scale,W.Y.Offset+Q.Y)if F.AbsolutePosition.Y<0 then F.Position=F.Position+UDim2.new(0,0,0,-F.AbsolutePosition.Y)end end local function m(t)F.lastHitPosition=t for t,A in pairs(g)do(F:GetModule("\099\102")):ActivateClientCommand(A)end end F.userInputService.InputChanged:Connect(function(t,A)if(t.UserInputType==Y or t.UserInputType==I)and(((not A or h)and F.mouseDown)and((F.lastHitPosition-t.Position).magnitude<150 or F.device~="\077\111\098\105\108\101"))then if h then y(t,h)end m(t.Position)end end)local c=F.gui.CmdBar F.movementKeysPressed={}local R=c.SearchFrame.TextBox local H={[Enum.KeyCode.Left]="\076\101\102\116";[Enum.KeyCode.Right]="\082\105\103\104\116",[Enum.KeyCode.Up]="\070\111\114\119\097\114\100\115";[Enum.KeyCode.Down]="\066\097\099\107\119\097\114\100\115",[Enum.KeyCode.A]="\076\101\102\116",[Enum.KeyCode.D]="\082\105\103\104\116",[Enum.KeyCode.W]="\070\111\114\119\097\114\100\115";[Enum.KeyCode.S]="\066\097\099\107\119\097\114\100\115";[Enum.KeyCode.Space]="\085\112",[Enum.KeyCode.R]="\085\112";[Enum.KeyCode.Q]="\068\111\119\110",[Enum.KeyCode.LeftControl]="\068\111\119\110",[Enum.KeyCode.F]="\068\111\119\110"}local L={[Enum.KeyCode.Left]=true;[Enum.KeyCode.Right]=true,[Enum.KeyCode.Up]=true,[Enum.KeyCode.Down]=true}F.userInputService.InputBegan:Connect(function(t,A)if(t.UserInputType==Q or t.UserInputType==I)and((not A or h)and not F.mouseDown)then F.mouseDown=true m(t.Position)elseif not F.chatting or c.Visible and#R.Text<2 then local A=H[t.KeyCode]if A then table.insert(F.movementKeysPressed,A)elseif t.KeyCode==Enum.KeyCode.E then for t,A in pairs(F.commandSpeeds)do if F.commandsActive[t]then(F:GetModule("\099\102")):EndCommand(t)else(F:GetModule("\099\102")):ActivateClientCommand(t)end end elseif t.KeyCode==Enum.KeyCode.Quote or t.KeyCode==Enum.KeyCode.Semicolon then(F:GetModule("\067\109\100\066\097\114")):ToggleBar(t.KeyCode)end end if L[t.KeyCode]then(F:GetModule("\067\109\100\066\097\114")):PressedArrowKey(t.KeyCode)end end)F.userInputService.InputEnded:Connect(function(t,A)local W=H[t.KeyCode]if t.UserInputType==Q or t.UserInputType==I then F.mouseDown=false return end if W then for t,A in pairs(F.movementKeysPressed)do if A==W then table.remove(F.movementKeysPressed,t)end end end end)local d=(F.player.Character or F.player.CharacterAdded:Wait()):WaitForChild("\072\117\109\097\110\111\105\100")local v=F:GetModule("\069\118\101\110\116\115")if F.device~="\067\111\109\112\117\116\101\114"then(v:New("\068\111\117\098\108\101\074\117\109\112\101\100",d)).Event:Connect(function()for t,A in pairs(F.commandSpeeds)do if F.commandsActive[t]then(F:GetModule("\099\102")):EndCommand(t)else(F:GetModule("\099\102")):ActivateClientCommand(t)end end end)end return t


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;
