Builtin Library
- ..
- .metadata157 B
- README.md681 B
- init.luau792 B
- unpack.module
README.md
part.unpack (procNode)
One piece of a part part.merge made, by its name, as the value it was merged as. Use it to work further on one piece of a part another node answered.
A value that is not a part, and a name the part holds no piece under, are errors; the second names the pieces it holds.
Inputs
part(Part). The part to take a piece from.piece(String, default ""). The piece's name, aspart.mergewas given it.
Outputs
value. The piece, as it was merged.
local part = g.part.merge({ parts = { body = g.mesh.box({}), spots = g.points.grid({ countX = 2, countZ = 2 }) } })
local spots = g.part.unpack({ part = part, piece = "spots" })