so im making a game where you can make something from a block made of small 10x10x10 (or more) blocks that you can sell but i think this would be really laggy especially with multiple players and a full map so how would i optimize this? im really new to scripting and the first thing i thought was to just have only the blocks near to the players be in the workspace.
You can use StreamingEnabled.
If the blocks are Anchored it probably will not lag.
Blocks that are the same shape use the same mesh so there is little overhead creating lots of them.