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

# gethiddenproperty

> อ่าน Roblox property ผ่าน reflection metadata รวมถึง non-scriptable properties อาร์กิวเมนต์แรกต้องเป็น Instance object และอาร์กิวเมนต์ที่สองต้องเป็น string property name instance reference ต้องถูกต้อง หาก property descriptor หายไปจาก Roblox property metadata function จะคืนเฉพาะ nil หาก descriptor มีอยู่แต่ไม่ resolve เป็น property entry จะเกิด "Not a property" สำหรับ reflection types Bool, Int, Float, Double, String, SystemAddress, SharedString และ Vector3 function จะเรียก getter และคืน value พร้อม boolean ที่เท่ากับ !IsScriptable() SystemAddress คืน RemoteId.PeerId เป็น integer SharedString คืน Content เป็น string Vector3 อ่านจาก instance primitive Size offset และเกิด "can't get value" หาก touch data หายไป property types อื่นอ่านผ่าน normal Lua field access หลังจากตั้ง property scriptable flag เป็น true ชั่วคราว; BinaryString จะถูกปฏิบัติเป็น String ชั่วคราวสำหรับการอ่านนั้น original scriptable flag และ BinaryString type จะถูกคืนค่าก่อน return

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

  ## Arguments

  <ParamField path={"instance"} type={"Instance"} required>
    Instance object whose property should be read. Invalid Instance values raise an argument error.
  </ParamField>

  <ParamField path={"property"} type={"string"} required>
    string property name resolved with Roblox property metadata.
  </ParamField>

  ## Returns

  <ResponseField name={"propertyValue"} type={"any"}>
    Property value, or nil as the only return value when no property descriptor exists.
  </ResponseField>

  <ResponseField name={"wasHidden"} type={"boolean"}>
    Second return value equal to !IsScriptable() when a property value is read.
  </ResponseField>

  ## ตัวอย่าง

  Read a property value even when normal script access is limited.

  ```lua theme={null}
  local value, wasHidden = gethiddenproperty(workspace, "ClassName")
  print(value, wasHidden)
  ```
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.