client=nil Pcall=nil Routine=nil service=nil gTable=nil return function(z,y)if y then setfenv(1,y)end local C=client.UI local v=service.New("\083\099\114\101\101\110\071\117\105",{ResetOnSpawn=false})local x=C.Register(v)if C.Get("\072\101\108\112\066\117\116\116\111\110",v,true)then v:Destroy()x:Destroy()return nil end x.Name="\072\101\108\112\066\117\116\116\111\110"x.CanKeepAlive=true local W=service.New("\073\109\097\103\101\066\117\116\116\111\110",{Parent=v,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})W.MouseButton1Down:Connect(function()local z=C.Get("\085\115\101\114\080\097\110\101\108",nil,true)if z then z.Object:Destroy()else C.Make("\085\115\101\114\080\097\110\101\108")end end)x:Ready()end
client = nil
Pcall = nil
Routine = nil
service = nil
gTable = nil

--// All global vars will be wiped/replaced except script

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
