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

# getrunningscripts

> live Lua threads から取得した unique script Instances の新しい array table を返します。この function は arguments を取りません。the live Luau thread list をたどり、各 thread node を読み取り、thread node、weak thread ref、LiveLuaRef、Lua state、object がない entries、または expired Script stored reference を持つ entries をスキップします。残った各 thread について scriptThread->object->Script() をロックし、script reference で重複排除し、Instance cache で Instance を push して、1 から始まる連続した array indexes に挿入します。function は DataModel をスキャンせず、ClassName を確認せず、result をソートしません。

<div className="real-function-page">
  ```lua theme={null}
  getrunningscripts(): table
  ```

  ## 戻り値

  <ResponseField name={"scripts"} type={"table"}>
    live Lua threads に関連付けられた unique script Instance object values の新しい array table。
  </ResponseField>
</div>
