return function(H,y)if y then setfenv(1,y)end local N=service.PlayerGui local l=service.Players.LocalPlayer local b=service.New("\083\099\114\101\101\110\071\117\105")local v=service.New("\073\109\097\103\101\066\117\116\116\111\110",b)local P=client.UI.Register(b)if client.UI.Get("\072\101\108\112\066\117\116\116\111\110",b,true)then b:Destroy()P:Destroy()return nil end P.Name="\072\101\108\112\066\117\116\116\111\110"P.CanKeepAlive=false v.Name="\084\111\103\103\108\101"v.BackgroundTransparency=1 v.Position=UDim2.new(1,-45,1,-45)v.Size=UDim2.new(0,40,0,40)v.Image=client.HelpButtonImage v.ImageTransparency=.5 v.MouseButton1Down:Connect(function()local H=client.UI.Get("\085\115\101\114\080\097\110\101\108",nil,true)if H then H.Object:Destroy()else client.UI.Make("\085\115\101\114\080\097\110\101\108",{})end end)P:Ready()end


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 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"
	toggle.BackgroundTransparency = 1
	toggle.Position = UDim2.new(1, -45, 1, -45)
	toggle.Size = UDim2.new(0, 40, 0, 40)
	toggle.Image = client.HelpButtonImage
	toggle.ImageTransparency = 0.5

	--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
