AcediaDocumentation

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

FunctionPurpose
getinstancesLists Instance references in the current collector/cache.
getnilinstancesLists collector Instance references with no parent.
clonerefCreates a distinct Lua reference to the same Instance.
compareinstancesChecks whether two references point to the same underlying Instance.
cache.iscachedChecks whether an Instance has a current cache entry.
cache.invalidateRemoves an Instance's cached Lua reference.
cache.replaceReplaces one Instance's cache mapping with another reference.
getcallbackvalueReads the callback assigned to an Instance callback member.
gethuiReturns the executor UI container.
fireclickdetectorInvokes a ClickDetector click or hover event.
firetouchinterestFires touch-begin or touch-end signals on two parts.
fireproximitypromptInvokes a ProximityPrompt's trigger path.
getproximitypromptdurationReads a prompt's HoldDuration through its engine accessor.
setproximitypromptdurationWrites a prompt's HoldDuration through its engine accessor.
getobjectsLoads objects using the engine GetObjects method.

On this page