Atomic docs

cache.invalidate

cache.invalidate(object: Instance): ()

Drops an instance from the cache, so the next time a script reaches it the engine builds a fresh userdata that compares unequal to the old one.

Example

lua
local part = workspace.Part
cache.invalidate(part)
print(part == workspace.Part) --> false
↑