---
title: "getrunningscripts"
description: "Finds script instances associated with live VM threads."
---

```lua
getrunningscripts(): {Instance}
```

---

## Aliases

None.

---

## Arguments

This function takes no arguments.

---

## Returns

<ResponseField name="scripts" type="{Instance}">
  Unique script Instances associated with live VM threads.
</ResponseField>

A thread existing in the VM does not prove its script is currently executing an instruction. Results are VM-local.

**Related types:** [Scripts types & behavior](/reference/scripts/types).

---

## Example

```lua
for _, script in ipairs(getrunningscripts()) do print(script.Name) end
```
