> For the complete documentation index, see [llms.txt](https://docs.easy.gg/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.easy.gg/scripting/bedwars-scripting/utilities/require.md).

# require

#### require(scriptName: string)

Access the returned values from the specified script. This will yield if the specified script has not yet returned.

{% hint style="warning" %}
Require will error if you try to require scripts in a cycle
{% endhint %}

Example usage:

`config`

```lua
-- Return config values for other scripts
return {
    damageOnHit = 50
}
```

`damage-on-hit`

```lua
Events.Damage(function(event)
    -- Get the damage from the "config" script
    event.damage = require("config").damageOnHit
end)
```
