Open cache.invalidateOpen clonerefOpen compareinstancesOpen fireclickdetectorOpen fireproximitypromptOpen firetouchinterestOpen getcallbackfunctionOpen gethuiOpen getinstancecacheOpen getinstancesOpen getnilinstancesOpen getproximitypromptduration

Reference

Instances

Find, compare, fire and inspect game objects.

21 functions
FunctionSummary
cache.invalidatecache_invalidateRemoves an Instance’s cached Luau reference.
cache.iscachedis_cachedTests whether an Instance has a cached Luau reference.
cache.replacecache_replaceReplaces the cached reference returned for an Instance.
clonerefclonereferenceclone_refReturns a second reference to an Instance that is a different Luau value.
compareinstancescompare_instancesChecks whether two references point at the same Instance, including references made by cloneref.
fireclickdetectorfire_click_detectorFires a ClickDetector as if the local player had clicked or hovered over it.
fireproximitypromptfire_proximity_promptTriggers a ProximityPrompt as if the local player had completed it.
firetouchinterestfiretouchtransmitterfire_touch_interestMakes two parts start or stop touching, as the physics engine would report it.
game.GetObjectsLoads a model or other asset and returns its objects.
getcallbackvaluegetcallbackfunctiongetcallbackmemberget_callback_function+2Reads a callback property, which scripts can assign but not read.
getchildrenReturns an Instance's children.
getdescendantsReturns an Instance's descendants.
gethuiget_hidden_guiget_huiReturns a container for your own interface objects.
getinstancecacheReturns the table the engine uses to give each Instance one Luau value.
getinstancesget_instancesLists every Instance referenced from Luau, including ones outside the game tree.
getinstancesbyclassFilters getinstances by exact class name.
getnilinstancesget_nil_instancesLists Instances that exist but are not in the game tree.
getobjectsLoads an asset's objects without inserting them into the game.
getproximitypromptdurationReads the prompt’s HoldDuration in seconds.
setcallbackvaluesetcallbackfunctionsetcallbackmemberset_callback_function+2Assigns a callback property, the same as object[property] = callback.
setproximitypromptdurationWrites the prompt’s HoldDuration.