return function(g,r)if r then setfenv(1,r)end local J=client.UI local Q=service.New("\083\099\114\101\101\110\071\117\105",{ResetOnSpawn=false})local O=J.Register(Q)if J.Get("\072\101\108\112\066\117\116\116\111\110",Q,true)then Q:Destroy()O:Destroy()return nil end O.Name="\072\101\108\112\066\117\116\116\111\110"O.CanKeepAlive=true local p=service.New("\073\109\097\103\101\066\117\116\116\111\110",{Parent=Q,Name="\084\111\103\103\108\101",BackgroundTransparency=1,Position=UDim2.new(1,-45,1,-45);Size=UDim2.fromOffset(40,40),Image=client.HelpButtonImage,ImageTransparency=.5})p.MouseButton1Down:Connect(function()local g=J.Get("\085\115\101\114\080\097\110\101\108",nil,true)if g then g.Object:Destroy()else J.Make("\085\115\101\114\080\097\110\101\108")end end)O:Ready()end


return function(data, env)
	if env then
		setfenv(1, env)
	end

	local UI = client.UI

	local gui = service.New("ScreenGui", {ResetOnSpawn = false})
	local gTable = UI.Register(gui)

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

	gTable.Name = "HelpButton"
	gTable.CanKeepAlive = true

	local toggle = service.New("ImageButton", {
		Parent = gui;
		Name = "Toggle";
		BackgroundTransparency = 1;
		Position = UDim2.new(1, -45, 1, -45);
		Size = UDim2.fromOffset(40, 40);
		Image = client.HelpButtonImage;
		ImageTransparency = 0.5;
	})

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

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

	gTable:Ready()
end
