return function(u)local t=service.PlayerGui local P=service.Player local U=script.Parent.Parent.Toggle if client.Core.Get("\067\104\097\116")then U.Position=UDim2.new(1,-85,1,-45)end U.MouseButton1Down:Connect(function()local u=client.Core.Get("\085\115\101\114\080\097\110\101\108",nil,true)if u then u.Object:Destroy()else client.Core.Make("\085\115\101\114\080\097\110\101\108",{})end end)script.Parent.Parent.Parent=t end


return function(data)
	local playergui = service.PlayerGui
	local localplayer = service.Player
	local toggle = script.Parent.Parent.Toggle
	
	if client.Core.Get("Chat") then
		toggle.Position = UDim2.new(1, -(45+40),1, -45)
	end
	
	toggle.MouseButton1Down:Connect(function()
		local found = client.Core.Get("UserPanel",nil,true)
		if found then
			found.Object:Destroy()
		else
			client.Core.Make("UserPanel",{})
		end
	end)
	
	script.Parent.Parent.Parent = playergui
end
