return function(a,k)if k then setfenv(1,k)end local V=service.PlayerGui local l=service.Players.LocalPlayer local n=service.New("\083\099\114\101\101\110\071\117\105")local C=service.New("\073\109\097\103\101\066\117\116\116\111\110",n)local T=service.New("\070\114\097\109\101",n)local L=Instance.new("\085\073\067\111\114\110\101\114")L.CornerRadius=UDim.new(0,6)L.Parent=T local i=Instance.new("\085\073\067\111\114\110\101\114")i.CornerRadius=UDim.new(0,6)i.Parent=C local N=client.UI.Register(n)if client.UI.Get("\072\101\108\112\066\117\116\116\111\110",n,true)then n:Destroy()N:Destroy()return nil end N.Name="\072\101\108\112\066\117\116\116\111\110"N.CanKeepAlive=false C.Name="\084\111\103\103\108\101"T.Name="\082\111\117\110\100\070\114\097\109\101"T.BackgroundColor3=Color3.fromRGB(17,17,17)C.BackgroundTransparency=1 T.Position=UDim2.new(1,-45,1,-45)C.Position=UDim2.new(1,-42,1,-38)C.Size=UDim2.new(0,33,0,33)C.ZIndex=67 T.Size=UDim2.new(0,40,0,40)C.Image="\104\116\116\112\115\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\104\101\097\100\115\104\111\116-\116\104\117\109\098\110\097\105\108\047\105\109\097\103\101\063\117\115\101\114\073\100\061"..(l.UserId.."\038\119\105\100\116\104\061\052\050\048\038\104\101\105\103\104\116\061\052\050\048\038\102\111\114\109\097\116\061\112\110\103")C.ImageTransparency=0 C.MouseButton1Down:Connect(function()local a=client.UI.Get("\085\115\101\114\080\097\110\101\108",nil,true)if a then a.Object:Destroy()else client.UI.Make("\085\115\101\114\080\097\110\101\108",{})end end)N:Ready()end
--[[ This HelpButton Theme displays by default the headshot of the LocalPlayer.
   Modes: {
          "HEADSHOT" -- LocalPlayer Headshot Thumb
          "CUSTOM" -- Loads from Settings
          }
--]]
return function(data, env)
	if env then
		setfenv(1, env)
	end
	local playergui = service.PlayerGui
	local localplayer = service.Players.LocalPlayer
	local gui = service.New("ScreenGui")

	local toggle = service.New("ImageButton", gui)
	local toggle1 = service.New("Frame", gui)

	local round = Instance.new("UICorner")
	round.CornerRadius = UDim.new(0, 6)
	round.Parent = toggle1

	local round1 = Instance.new("UICorner")
	round1.CornerRadius = UDim.new(0, 6)
	round1.Parent = toggle

	local gTable = client.UI.Register(gui)

	if client.UI.Get("HelpButton", gui, true) then
		gui:Destroy()
		gTable:Destroy()
		return nil
	end

	gTable.Name = "HelpButton"
	gTable.CanKeepAlive = false

	toggle.Name = "Toggle"
	toggle1.Name = "RoundFrame"
	toggle1.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
	toggle.BackgroundTransparency = 1
	toggle1.Position = UDim2.new(1, -45, 1, -45)
	toggle.Position = UDim2.new(1, -42, 1, -38)
	toggle.Size = UDim2.new(0, 33, 0, 33) --33
	toggle.ZIndex = 67
	toggle1.Size = UDim2.new(0, 40, 0, 40)
	toggle.Image = "https://www.roblox.com/headshot-thumbnail/image?userId="
		.. localplayer.UserId
		.. "&width=420&height=420&format=png"

	toggle.ImageTransparency = 0

	--if client.UI.Get("Chat") then
	--	toggle.Position = UDim2.new(1, -(45+40),1, -45)
	--end

	toggle.MouseButton1Down:Connect(function()
		local found = client.UI.Get("UserPanel", nil, true)
		if found then
			found.Object:Destroy()
		else
			client.UI.Make("UserPanel", {})
		end
	end)

	gTable:Ready()
end
