ReferenceInstances
Find, fire and inspect game objects.
Also available as cache.iscached cache.replace cache_invalidate is_cached cache_replace
Works with that table of object references. invalidate drops an entry, iscached checks for one, and replace swaps one object's entry for another.
Also available as clonereference clone_ref
Returns a second reference to the same object. It compares unequal to the original with ==; use compareinstances to compare them.
function cloneref<T>(object: T & Instance): T
Also available as compare_instances
Returns true if two references point at the same object, including references made by cloneref.
function compareinstances(object1: Instance, object2: Instance): boolean
Also available as fire_click_detector
Triggers a ClickDetector as though a player clicked it, optionally from a given distance.
function fireclickdetector(detector: ClickDetector, distance: number?, event: string?): ()
Also available as fire_proximity_prompt
Triggers a ProximityPrompt as though the player held the key, without needing to be near it.
function fireproximityprompt(prompt: ProximityPrompt): ()
Also available as firetouchtransmitter fire_touch_interest
Makes two parts touch, or stop touching, as if one walked into the other. The third argument is 0 or true to start touching and 1 or false to end.
function firetouchinterest(part1: BasePart, part2: BasePart, toggle: boolean | number): ()
Also available as getcallbackmember getcallbackvalue get_callback_function get_callback_member get_callback_value
Returns the function set as a callback property, such as OnClientInvoke. Written in other spellings as getcallbackvalue or getcallbackmember.
function getcallbackvalue(object: Instance, property: string): any | nil
Also available as get_hidden_gui get_hui
Returns a container for your own interfaces.
function gethui(): BasePlayerGui | Folder
Returns the table of object references that were handed out earlier.
Also available as get_instances
Returns every object in the game, including ones not in the normal hierarchy.
function getinstances(): { Instance }
Also available as get_nil_instances
Returns objects that exist but have no parent.
function getnilinstances(): { Instance }
getproximitypromptduration
Also available as setproximitypromptduration
Reads, or with the set form changes, how long a ProximityPrompt must be held.