> For the complete documentation index, see [llms.txt](https://zacbytes.gitbook.io/autoscale-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zacbytes.gitbook.io/autoscale-docs/documentation/developer-module.md).

# Developer Module

Allows you to write custom code to scale UI in your game using AutoScale's basic built-in features

### Copyright Notice

{% hint style="danger" %}
&#x20;Do not attempt to release a public plugin using this module, only use it in games or private plugins.
{% endhint %}

## Getting Started

Import the module from the link below

[Roblox Link](https://www.roblox.com/library/4493387361/AutoScale-Developer-Module)

Once you've taken the model and inserted into your game, require it from your main script.

```lua
local AutoScaleModule = require(directory)
```

## Unit Conversion Functions

```lua
AutoScaleModule.ToOffsetPos(guiobject)
or
AutoScaleModule.ToScalePos(guiobject)
```

Converts position of guiobject to offset/scale.

```lua
AutoScaleModule.ToScaleSize(guiobject)
or
AutoScaleModule.ToOffsetSize(guiobject)
```

Converts position of GUIObjects to offset/scale.

{% hint style="warning" %}
This developer module may use outdated methods of unit converting. AutoScale plugins use the latest methods.
{% endhint %}
