return function(e,l)if l then setfenv(1,l)end local Z=service.PlayerGui local j=service.Players.LocalPlayer local v=service.New("\083\099\114\101\101\110\071\117\105")local D=service.New("\073\109\097\103\101\066\117\116\116\111\110",v)local q=client.UI.Register(v)local h=service.New("\083\111\117\110\100")h.Parent=D h.Volume=.25 h.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\053\054\050\056\054\052\051\056"if client.UI.Get("\072\101\108\112\066\117\116\116\111\110",v,true)then v:Destroy()q:Destroy()return nil end q.Name="\072\101\108\112\066\117\116\116\111\110"q.CanKeepAlive=false D.Name="\084\111\103\103\108\101"D.BackgroundTransparency=1 D.Position=UDim2.new(1,-45,1,-45)D.Size=UDim2.new(0,40,0,40)D.Image=client.HelpButtonImage D.ImageTransparency=.35 D.Modal=client.Variables.ModalMode D.ClipsDescendants=true D.MouseButton1Down:Connect(function()spawn(function()local e=Instance.new("\073\109\097\103\101\076\097\098\101\108",D)e.AnchorPoint=Vector2.new(.5,.5)e.BorderSizePixel=0 e.ZIndex=D.ZIndex+1 e.BackgroundTransparency=1 e.ImageTransparency=.8 e.Image="\114\098\120\097\115\115\101\116\058\047\047\116\101\120\116\117\114\101\115\047\119\104\105\116\101\067\105\114\099\108\101\046\112\110\103"e.Position=UDim2.new(.5,0,.5,0)e:TweenSize(UDim2.new(0,D.AbsoluteSize.X*2.5,0,D.AbsoluteSize.X*2.5),Enum.EasingDirection.Out,Enum.EasingStyle.Linear,.2)wait(.2)e:Destroy()end)local e=client.UI.Get("\085\115\101\114\080\097\110\101\108",nil,true)if e then e.Object:Destroy()else h:Play()client.UI.Make("\085\115\101\114\080\097\110\101\108",{})end end)q: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)

	local clickSound = service.New("Sound")
	clickSound.Parent = toggle
	clickSound.Volume = 0.25
	clickSound.SoundId = "rbxassetid://156286438"

	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.35
	toggle.Modal = client.Variables.ModalMode
	toggle.ClipsDescendants = true

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

	toggle.MouseButton1Down:Connect(function()
		spawn(function()
			local effect = Instance.new("ImageLabel", toggle)
			effect.AnchorPoint = Vector2.new(0.5, 0.5)
			effect.BorderSizePixel = 0
			effect.ZIndex = toggle.ZIndex + 1
			effect.BackgroundTransparency = 1
			effect.ImageTransparency = 0.8
			effect.Image = "rbxasset://textures/whiteCircle.png"
			effect.Position = UDim2.new(0.5, 0, 0.5, 0)
			effect:TweenSize(UDim2.new(0, toggle.AbsoluteSize.X * 2.5, 0, toggle.AbsoluteSize.X * 2.5), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.2)
			wait(0.2)
			effect:Destroy()
		end)
		local found = client.UI.Get("UserPanel",nil,true)
		if found then
			found.Object:Destroy()
		else
			clickSound:Play()
			client.UI.Make("UserPanel",{})
		end
	end)

	gTable:Ready()
end
