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

# load string

Must be on a separate line in the following format:

```java
load - "URL"
```

{% hint style="warning" %}
Loaded content will replace the entire script source code.&#x20;

Nested load strings are not supported.
{% endhint %}

***

### Example

Here is an example script hosted on [Pastebin](https://pastebin.com/93hWSJeN):

```java
void onEnable() {
    client.print("enabled script!");
}
```

You can load it using the Pastebin raw link:

```java
load - "https://pastebin.com/raw/93hWSJeN"
```

Alternatively, load from a local directory:

```java
load - "file:///C:/Users/user/Desktop/script.txt"
```
