Instances
Instance references, cache, callbacks, UI and interaction helpers.
These APIs work with Instance references, cache entries, UI roots, and interaction helpers.
- A cloned reference and its original may identify the same underlying Instance even when the Lua values differ.
- Interaction helpers dispatch supported local events; a local event does not automatically perform a server action.
Functions
| Function | Purpose |
|---|---|
| getinstances | Lists Instance references in the current collector/cache. |
| getnilinstances | Lists collector Instance references with no parent. |
| cloneref | Creates a distinct Lua reference to the same Instance. |
| compareinstances | Checks whether two references point to the same underlying Instance. |
| cache.iscached | Checks whether an Instance has a current cache entry. |
| cache.invalidate | Removes an Instance's cached Lua reference. |
| cache.replace | Replaces one Instance's cache mapping with another reference. |
| getcallbackvalue | Reads the callback assigned to an Instance callback member. |
| gethui | Returns the executor UI container. |
| fireclickdetector | Invokes a ClickDetector click or hover event. |
| firetouchinterest | Fires touch-begin or touch-end signals on two parts. |
| fireproximityprompt | Invokes a ProximityPrompt's trigger path. |
| getproximitypromptduration | Reads a prompt's HoldDuration through its engine accessor. |
| setproximitypromptduration | Writes a prompt's HoldDuration through its engine accessor. |
| getobjects | Loads objects using the engine GetObjects method. |
