local P={}local l=_G.HDAdminMain l.chatting=false l.userInputService.TextBoxFocused:connect(function()l.chatting=true end)l.userInputService.TextBoxFocusReleased:connect(function()l.chatting=false end)local r=nil local O=nil local v=Enum.UserInputType.MouseButton1 local S=Enum.UserInputType.Touch local z=nil function P.MakeFrameDraggable(P,l)l.DragBar.Drag.InputBegan:Connect(function(P)if P.UserInputType==v or P.UserInputType==S then z=l r=P.Position O=l.Position P.Changed:Connect(function()if P.UserInputState==Enum.UserInputState.End then z=nil end end)end end)end for l,r in pairs({l.gui.MainFrame})do P:MakeFrameDraggable(r)end local x={"\108\097\115\101\114\069\121\101\115"}local A=Enum.UserInputType.MouseMovement local function U(P,l)local v=P.Position-r l.Position=UDim2.new(O.X.Scale,O.X.Offset+v.X,O.Y.Scale,O.Y.Offset+v.Y)if l.AbsolutePosition.Y<0 then l.Position=l.Position+UDim2.new(0,0,0,-l.AbsolutePosition.Y)end end local function k(P)l.lastHitPosition=P for P,r in pairs(x)do(l:GetModule("\099\102")):ActivateClientCommand(r)end end l.userInputService.InputChanged:Connect(function(P,r)if(P.UserInputType==A or P.UserInputType==S)and(((not r or z)and l.mouseDown)and((l.lastHitPosition-P.Position).magnitude<150 or l.device~="\077\111\098\105\108\101"))then if z then U(P,z)end k(P.Position)end end)local B=l.gui.CmdBar l.movementKeysPressed={}local s=B.SearchFrame.TextBox local R={[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 I={[Enum.KeyCode.Left]=true,[Enum.KeyCode.Right]=true,[Enum.KeyCode.Up]=true,[Enum.KeyCode.Down]=true}l.userInputService.InputBegan:Connect(function(P,r)if(P.UserInputType==v or P.UserInputType==S)and((not r or z)and not l.mouseDown)then l.mouseDown=true k(P.Position)elseif not l.chatting or B.Visible and#s.Text<2 then local r=R[P.KeyCode]if r then table.insert(l.movementKeysPressed,r)elseif P.KeyCode==Enum.KeyCode.E then for P,r in pairs(l.commandSpeeds)do if l.commandsActive[P]then(l:GetModule("\099\102")):EndCommand(P)else(l:GetModule("\099\102")):ActivateClientCommand(P)end end elseif P.KeyCode==Enum.KeyCode.Quote or P.KeyCode==Enum.KeyCode.Semicolon then(l:GetModule("\067\109\100\066\097\114")):ToggleBar(P.KeyCode)end end if I[P.KeyCode]then(l:GetModule("\067\109\100\066\097\114")):PressedArrowKey(P.KeyCode)end end)l.userInputService.InputEnded:Connect(function(P,r)local O=R[P.KeyCode]if P.UserInputType==v or P.UserInputType==S then l.mouseDown=false return end if O then for P,r in pairs(l.movementKeysPressed)do if r==O then table.remove(l.movementKeysPressed,P)end end end end)local y=(l.player.Character or l.player.CharacterAdded:Wait()):WaitForChild("\072\117\109\097\110\111\105\100")local E=l:GetModule("\069\118\101\110\116\115")if l.device~="\067\111\109\112\117\116\101\114"then(E:New("\068\111\117\098\108\101\074\117\109\112\101\100",y)).Event:Connect(function()for P,r in pairs(l.commandSpeeds)do if l.commandsActive[P]then(l:GetModule("\099\102")):EndCommand(P)else(l:GetModule("\099\102")):ActivateClientCommand(P)end end end)end return P
-- 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
