replica:ArrayRemove<V>(path: Path, index: number): V | nil
Server OnlyRemoves the value at a specific index of the array found at path, shifting subsequent elements down.
Parameters
path*Path | Path to the array. |
index*number | 1-based index to remove. |
Returns
V | nilThe value that was removed, if any.
local removed = replica:ArrayRemove({"Inventory"}, 1)