Skip to main content

Size

Returns the number of resources currently being tracked by the Vault.

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

print(vault.Size()) // 1

vault.Add(new Instance("Part"))
print(vault.Size()) // 2

Returns

number - The current number of tracked resources