replica:ListenToArrayRemove<V>(path: Path, listener: (old_index: number, old_value: V) -> ()): () -> ()
Server & ClientFires when ArrayRemove removes a value from the array at path.
Parameters
path*Path | Path to the array to observe. |
listener*ArrayRemoveListener<V> | Called with the removed index and the value that was there. |
Returns
() -> ()Disconnect function.
replica:ListenToArrayRemove({"Inventory"}, function(index, itemId)
print("Removed", itemId, "from slot", index)
end)