Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Bad argument materials to 'WriteVoxels' (2x1x1 array expected) what did i do wrong?

Asked by 7 years ago

im making a pickaxe that isn't working because i keep getting the error: Bad argument materials to 'WriteVoxels' (2x1x1 array expected)

full code

01local mouse
02local debounce
03 
04script.Parent.Equipped:connect(function(m)
05    mouse = m
06end)
07 
08local function create3dTable(size)
09    local ret = {}
10    for x = 1, size.X do
11        ret[x] = {}
12        for y = 1, size.Y do
13            ret[x][y] = {}
14        end
15    end
View all 39 lines...

Answer this question