client=nil Pcall=nil Routine=nil service=nil gTable=nil return function(R,b)if b then setfenv(1,b)end local y=service.PlayerGui local n=service.Players.LocalPlayer local u=service.New("\083\099\114\101\101\110\071\117\105")local k=service.New("\073\109\097\103\101\066\117\116\116\111\110",u)local H=client.UI.Register(u)local A if client.UI.Get("\072\101\108\112\066\117\116\116\111\110",u,true)then u:Destroy()H:Destroy()return nil end if client.HelpButtonImage=="\114\098\120\097\115\115\101\116\105\100\058\047\047\051\053\055\050\052\057\049\051\048"then A=false else A=true end H.Name="\072\101\108\112\066\117\116\116\111\110"H.CanKeepAlive=false k.Name="\084\111\103\103\108\101"k.BackgroundTransparency=1 k.Position=UDim2.new(1,-45,1,-45)k.Size=UDim2.new(0,40,0,40)if A then k.Image=client.HelpButtonImage else k.Image="\104\116\116\112\058\047\047\119\119\119\046\114\111\098\108\111\120\046\099\111\109\047\097\115\115\101\116\047\063\105\100\061\055\048\053\057\055\048\054\053\057\052"end k.ImageTransparency=0 k.MouseButton1Down:Connect(function()local R=client.UI.Get("\085\115\101\114\080\097\110\101\108",nil,true)if R then R.Object:Destroy()else client.UI.Make("\085\115\101\114\080\097\110\101\108",{})end end)H: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 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)
	
	local useCustomIcon

	if client.UI.Get("HelpButton", gui, true) then
		gui:Destroy()
		gTable:Destroy()
		return nil
	end
	if client.HelpButtonImage == "rbxassetid://357249130" then
		useCustomIcon = false
	else
		useCustomIcon = true
	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)
	if useCustomIcon then
		toggle.Image = client.HelpButtonImage
	else
		toggle.Image = "http://www.roblox.com/asset/?id=7059706594"
	end
	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
