replica:ArraySet<V>(path: Path, index: number, value: V): void

Server Only

Overwrites the value at a specific index of the array found at path.

Parameters

path*
Path
Path to the array.
index*
number
1-based index to overwrite.
value*
V
New value at that index.

Returns

voidNo return value.
replica:ArraySet({"Inventory"}, 1, "Shield")