replica:ArrayInsert<V>(path: Path, value: V): number
Server OnlyAppends a value to the array found at path and queues an ArrayInsert mutation for replication.
Parameters
path*Path | Path to the array. |
value*V | Value to append. |
Returns
numberThe index the value was inserted at.
local index = replica:ArrayInsert({"Inventory"}, "Sword")