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

# isscriptable

> Kiem tra scriptable flag cua Roblox property tren Instance. Function truoc tien tra ve gia tri scriptable trong cache neu co cho cung instance reference va property name. Khi cache miss, property name duoc resolve qua Roblox property metadata va Instance class descriptor. Neu khong co descriptor, hoac field duoc resolve bi thieu hoac khong phai property entry, function tra ve nil. Khi tim thay property entry, function doc scriptable state, luu gia tri do vao scriptable override cache cho instance va property, roi tra ve boolean. Function khong thay doi scriptable flag.

<div className="real-function-page">
  ```lua theme={null}
  isscriptable(instance: Instance, property: string): boolean | nil
  ```

  ## Đối số

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object co property scriptable state can duoc kiem tra.
  </ParamField>

  <ParamField path={"property"} type={"string"} required>
    Property name duoc resolve qua Roblox property metadata va Instance class descriptor.
  </ParamField>

  ## Giá trị trả về

  <ResponseField name={"scriptable"} type={"boolean | nil"}>
    Gia tri scriptable state trong cache hoac hien tai, hoac nil khi property descriptor/field bi thieu hoac khong phai property entry.
  </ResponseField>

  ## Ví dụ

  Check whether a property is scriptable on an Instance.

  ```lua theme={null}
  local scriptable = isscriptable(workspace, "Name")
  print(scriptable)
  ```
</div>
