> ## 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.

# getsignalarguments

> RBXScriptSignal の event descriptor signature から読み取った type names の array table を返します。最初の argument は、Luau type name が RBXScriptSignal の object である必要があります。この function は signal の event descriptor を読み取り、function の argument stride で signature slots を走査し、各 argument type reference を読み取り、各 slot の解決済み type name string を push します。captured runtime argument values は返しません。signature を読めない場合、または entries が 1 つも push されない場合、返される table には fallback entry として "Variant" が 1 つ含まれます。

<div className="real-function-page">
  ```lua theme={null}
  getsignalarguments(signal: RBXScriptSignal): {string}
  ```

  ## 引数

  <ParamField path={"signal"} type={"RBXScriptSignal"} required>
    event descriptor signature を調べる signal。RBXScriptSignal ではない object は type error を発生させます。
  </ParamField>

  ## 戻り値

  <ResponseField name={"arguments"} type={"{string}"}>
    argument type name strings の array table。signature data を読めない場合、または argument entries が生成されない場合、"Variant" を含む fallback table が返されます。
  </ResponseField>

  ## 例

  Inspect an RBXScriptSignal signature and print the argument type names Real can read.

  ```lua theme={null}
  local ReplicatedStorage = game:GetService("ReplicatedStorage")
  local remote = ReplicatedStorage:FindFirstChild("RemoteEvent")

  if remote then
      for _, typeName in ipairs(getsignalarguments(remote.OnClientEvent)) do
          print(typeName)
      end
  end
  ```
</div>
