> ## Documentation Index
> Fetch the complete documentation index at: https://docsuncv2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# getrunningscripts

Returns every client-replicated script that the Roblox game has started running so far.

```luau theme={null}
getrunningscripts(): {LuaSourceContainer}
```

## Returns

`{LuaSourceContainer}` - an array of active scripts, that is randomly ordered. Changing the returned array, or any of its' values, will not affect any future calls.

## Example

Print every loaded script's path and pick out names worth taking a look at.

<CodeGroup>
  ```luau Example 1 theme={null}
  <<<<<<< HEAD
  local scripts = getrunningscripts()
  =======
  -- getrunningscripts(): {LuaSourceContainer}
  >>>>>>> 50e30f53759b0538759af25c9b271514aa2c9290
  ```

  ```luau Example 2 theme={null}
  for i, v in pairs(getrunningscripts()) do
      print(`{i}: {v:GetFullName()}`)
  end
  ```
</CodeGroup>

<Tip>
  Always check parameters and return values when working with this library function.
</Tip>
