Skip to main content

Contains

Checks if an object is currently being tracked by the Vault.

const part = new Instance("Part")
vault.Add(part)

print(vault.Contains(part)) // true
print(vault.Contains(new Instance("Part"))) // false

Parameters

ParameterTypeDescription
objectunknownThe object to check

Returns

boolean - true if the object is in the vault, false otherwise