Run it
Copy the script and paste it into your executor.
Players = :()
ReplicatedStorage = :()
RunService = :()
TweenService = :()
UserInputService = :()
player = Players.LocalPlayer
playerGui = player:()
ICON_ASSET_ID =
()
candidates = {}
player.Character
_, child (player.Character:())
child:()
.(candidates, child)
backpack = player:()
backpack
_, child (backpack:())
child:()
.(candidates, child)
_, tool (candidates)
syncApi = tool:()
syncApi
endpoint = syncApi:()
endpoint endpoint:()
endpoint
_, container ({ , ReplicatedStorage, playerGui })
found = container:(, )
found found:()
found
SAMPLE_VOXELS = {
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
{ , , , , , , , , , , , },
}
(token, alphaCutoff)
alphaCutoff = alphaCutoff
raw = (token):(, )
alphaVal =
hexPart, alphaPart = raw:()
hexPart alphaPart
raw = hexPart
alphaVal = (alphaPart)
raw = raw:(, )
#raw ==
r1 = raw:(, )
g1 = raw:(, )
b1 = raw:(, )
raw = r1 .. r1 .. g1 .. g1 .. b1 .. b1
#raw == raw:()
alphaVal = (raw:(, ), )
raw = raw:(, )
alphaVal < alphaCutoff
#raw ~= raw:()
, , ,
r = (raw:(, ), )
g = (raw:(, ), )
b = (raw:(, ), )
r, g, b, .(raw)
(hex)
r, g, b = (hex, )
.(r , g , b )
(rgbA, rgbB)
dr = rgbA[] - rgbB[]
dg = rgbA[] - rgbB[]
db = rgbA[] - rgbB[]
.(dr * dr + dg * dg + db * db)
(text, tolerance, alphaCutoff)
tolerance = tolerance
alphaCutoff = alphaCutoff
rawGrid = {}
maxWidth =
line text:()
trimmed = line:()
trimmed ~= trimmed:()
row = {}
token trimmed:()
token == token == token:() == token:() ==
.(row, )
r, g, b, cleanHex = (token, alphaCutoff)
r
.(row, )
.(row, { r, g, b, cleanHex })
#row >
#row > maxWidth
maxWidth = #row
.(rawGrid, row)
rawGrid, maxWidth
(rawGrid, srcWidth, srcHeight, targetWidth, targetHeight, tolerance, flipX, flipY)
srcHeight == srcWidth ==
{}, , ,
outW = (targetWidth targetWidth > ) targetWidth srcWidth
outH = (targetHeight targetHeight > ) targetHeight srcHeight
palette = {}
outGrid = {}
activeCells =
y = , outH
mappedY = flipY (outH - y + ) y
srcY = .(.(((mappedY - ) / outH) * srcHeight) + , , srcHeight)
srcRow = rawGrid[srcY]
outRow = {}
x = , outW
mappedX = flipX (outW - x + ) x
srcX = .(.(((mappedX - ) / outW) * srcWidth) + , , srcWidth)
cell = srcRow srcRow[srcX]
cell cell ==
.(outRow, )
r, g, b, cleanHex = cell[], cell[], cell[], cell[]
chosenHex = cleanHex
tolerance >
matched =
_, entry (palette)
(entry, { r, g, b }) <= tolerance
matched = entry[]
matched
chosenHex = matched
.(palette, { r, g, b, cleanHex })
.(outRow, chosenHex)
activeCells +=
.(outGrid, outRow)
outGrid, activeCells, outW, outH
(grid)
lines = {}
_, row (grid)
cells = {}
_, cell (row)
.(cells, cell )
.(lines, .(cells, ))
.(lines, )
(grid, mergeRows)
segments = {}
y, row (grid)
rowSegs = {}
x =
x <= #row
hex = row[x]
hex hex ~=
startX = x
endX = x
mergeRows
endX + <= #row row[endX + ] == hex
endX +=
.(rowSegs, {
startX = startX,
endX = endX,
hex = hex,
count = endX - startX + ,
})
x = endX +
x +=
segments[y] = rowSegs
segments
THEME = {
Bg = .(, , ),
Header = .(, , ),
TabBar = .(, , ),
Card = .(, , ),
Input = .(, , ),
Stroke = .(, , ),
Text = .(, , ),
Muted = .(, , ),
Accent = .(, , ),
AccentText = .(, , ),
Purple = .(, , ),
Danger = .(, , ),
NeutralBtn = .(, , ),
Ok = .(, , ),
Warn = .(, , ),
Error = .(, , ),
}
(inst, radius)
c = .()
c.CornerRadius = .(, radius )
c.Parent = inst
c
(inst, color, thickness)
s = .()
s.Color = color THEME.Stroke
s.Thickness = thickness
s.ApplyStrokeMode = .ApplyStrokeMode.Border
s.Parent = inst
s
existingGui = playerGui:()
existingGui
existingGui:()
screenGui = .()
screenGui.Name =
screenGui.ResetOnSpawn =
screenGui.ZIndexBehavior = .ZIndexBehavior.Sibling
screenGui.Parent = playerGui
GUI_WIDTH =
EXPANDED_HEIGHT =
MINI_HEIGHT =
isMinimized =
mainFrame = .()
mainFrame.Name =
mainFrame.Size = .(GUI_WIDTH, EXPANDED_HEIGHT)
mainFrame.Position = .(, )
mainFrame.BackgroundColor3 = THEME.Bg
mainFrame.BorderSizePixel =
mainFrame.ClipsDescendants =
mainFrame.Parent = screenGui
(mainFrame, )
(mainFrame, THEME.Stroke, )
header = .()
header.Size = .(, , , )
header.BackgroundColor3 = THEME.Header
header.BorderSizePixel =
header.Active =
header.Parent = mainFrame
(header, )
dragging =
dragStart =
startPos =
header.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
dragStart = input.Position
startPos = mainFrame.Position
)
UserInputService.InputChanged:((input)
dragging (input.UserInputType == .UserInputType.MouseMovement input.UserInputType == .UserInputType.Touch)
delta = input.Position - dragStart
mainFrame.Position = .(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
)
UserInputService.InputEnded:((input)
input.UserInputType == .UserInputType.MouseButton1 input.UserInputType == .UserInputType.Touch
dragging =
)
iconLabel = .()
iconLabel.Size = .(, )
iconLabel.Position = .(, )
iconLabel.BackgroundColor3 = THEME.Card
iconLabel.Image = ICON_ASSET_ID
iconLabel.ScaleType = .ScaleType.Fit
iconLabel.Parent = header
(iconLabel, )
(iconLabel, THEME.Stroke, )
titleLabel = .()
titleLabel.Size = .(, -, , )
titleLabel.Position = .(, )
titleLabel.BackgroundTransparency =
titleLabel.Text =
titleLabel.TextColor3 = THEME.Text
titleLabel.Font = .Font.GothamBold
titleLabel.TextSize =
titleLabel.TextXAlignment = .TextXAlignment.Left
titleLabel.Parent = header
subLabel = .()
subLabel.Size = .(, -, , )
subLabel.Position = .(, )
subLabel.BackgroundTransparency =
subLabel.Text =
subLabel.TextColor3 = THEME.Muted
subLabel.Font = .Font.Gotham
subLabel.TextSize =
subLabel.TextXAlignment = .TextXAlignment.Left
subLabel.Parent = header
minimizeBtn = .()
minimizeBtn.Size = .(, )
minimizeBtn.Position = .(, -, , -)
minimizeBtn.BackgroundColor3 = THEME.NeutralBtn
minimizeBtn.Text =
minimizeBtn.TextColor3 = THEME.Text
minimizeBtn.Font = .Font.GothamBold
minimizeBtn.TextSize =
minimizeBtn.Parent = header
(minimizeBtn, )
tabBar = .()
tabBar.Size = .(, -, , )
tabBar.Position = .(, )
tabBar.BackgroundColor3 = THEME.TabBar
tabBar.BorderSizePixel =
tabBar.Parent = mainFrame
(tabBar, )
(tabBar, THEME.Stroke, )
(text, index)
btn = .()
btn.Size = .( / , -, , -)
btn.Position = .((index - ) / , + (index - ) * , , )
btn.BackgroundColor3 = THEME.NeutralBtn
btn.Text = text
btn.TextColor3 = THEME.Muted
btn.Font = .Font.GothamBold
btn.TextSize =
btn.Parent = tabBar
(btn, )
btn
tabBuildBtn = (, )
tabGridBtn = (, )
tabOptsBtn = (, )
()
page = .()
page.Size = .(, -, , )
page.Position = .(, )
page.BackgroundTransparency =
page.Visible =
page.Parent = mainFrame
page
pageBuild = ()
pageGrid = ()
pageOpts = ()
pageBuild.Visible =
(parent, labelText, defaultVal, x, y, w)
lbl = .()
lbl.Size = .(w, )
lbl.Position = .(x, y)
lbl.BackgroundTransparency =
lbl.Text = labelText
lbl.TextColor3 = THEME.Muted
lbl.Font = .Font.GothamMedium
lbl.TextSize =
lbl.TextXAlignment = .TextXAlignment.Left
lbl.Parent = parent
box = .()
box.Size = .(w, )
box.Position = .(x, y + )
box.BackgroundColor3 = THEME.Input
box.Text = (defaultVal)
box.TextColor3 = THEME.Text
box.Font = .Font.Code
box.TextSize =
box.ClearTextOnFocus =
box.Parent = parent
(box, )
(box, THEME.Stroke, )
box
previewCard = .()
previewCard.Size = .(, , , )
previewCard.BackgroundColor3 = THEME.Card
previewCard.BorderSizePixel =
previewCard.Parent = pageBuild
(previewCard, )
(previewCard, THEME.Stroke, )
previewTitle = .()
previewTitle.Size = .(, , , )
previewTitle.Position = .(, )
previewTitle.BackgroundTransparency =
previewTitle.Text =
previewTitle.TextColor3 = THEME.Muted
previewTitle.Font = .Font.GothamBold
previewTitle.TextSize =
previewTitle.TextXAlignment = .TextXAlignment.Left
previewTitle.Parent = previewCard
estimateLabel = .()
estimateLabel.Size = .(, -, , )
estimateLabel.Position = .(, , , )
estimateLabel.BackgroundTransparency =
estimateLabel.Text =
estimateLabel.TextColor3 = THEME.Accent
estimateLabel.Font = .Font.GothamBold
estimateLabel.TextSize =
estimateLabel.TextXAlignment = .TextXAlignment.Right
estimateLabel.Parent = previewCard
previewStage = .()
previewStage.Size = .(, -, , -)
previewStage.Position = .(, )
previewStage.BackgroundColor3 = THEME.Input
previewStage.BorderSizePixel =
previewStage.ClipsDescendants =
previewStage.Parent = previewCard
(previewStage, )
pixelCanvas = .()
pixelCanvas.Name =
pixelCanvas.BackgroundTransparency =
pixelCanvas.Parent = previewStage
pixelHintLabel = .()
pixelHintLabel.Size = .(, )
pixelHintLabel.BackgroundTransparency =
pixelHintLabel.Text =
pixelHintLabel.TextColor3 = THEME.Muted
pixelHintLabel.Font = .Font.Gotham
pixelHintLabel.TextSize =
pixelHintLabel.Visible =
pixelHintLabel.Parent = previewStage
quickCard = .()
quickCard.Size = .(, , , )
quickCard.Position = .(, )
quickCard.BackgroundColor3 = THEME.Card
quickCard.BorderSizePixel =
quickCard.Parent = pageBuild
(quickCard, )
(quickCard, THEME.Stroke, )
gridWidthBox = (quickCard, , , , , )
gridHeightBox = (quickCard, , , , , )
depthBox = (quickCard, , , , , )
voxelSizeBox = (quickCard, , , , , )
alphaCutoffBox = (quickCard, , , , , )
toleranceBox = (quickCard, , , , , )
ghostBtn = .()
ghostBtn.Size = .(, -, , )
ghostBtn.Position = .(, )
ghostBtn.BackgroundColor3 = THEME.Purple
ghostBtn.Text =
ghostBtn.TextColor3 = THEME.Text
ghostBtn.Font = .Font.GothamBold
ghostBtn.TextSize =
ghostBtn.Parent = pageBuild
(ghostBtn, )
clearGhostBtn = .()
clearGhostBtn.Size = .(, -, , )
clearGhostBtn.Position = .(, , , )
clearGhostBtn.BackgroundColor3 = THEME.NeutralBtn
clearGhostBtn.Text =
clearGhostBtn.TextColor3 = THEME.Muted
clearGhostBtn.Font = .Font.GothamBold
clearGhostBtn.TextSize =
clearGhostBtn.Parent = pageBuild
(clearGhostBtn, )
(clearGhostBtn, THEME.Stroke, )
gridCard = .()
gridCard.Size = .(, , , -)
gridCard.BackgroundColor3 = THEME.Card
gridCard.BorderSizePixel =
gridCard.Parent = pageGrid
(gridCard, )
(gridCard, THEME.Stroke, )
editorScroll = .()
editorScroll.Size = .(, -, , -)
editorScroll.Position = .(, )
editorScroll.BackgroundColor3 = THEME.Input
editorScroll.BorderSizePixel =
editorScroll.ScrollBarThickness =
editorScroll.ScrollBarImageColor3 = THEME.Stroke
editorScroll.CanvasSize = .(, )
editorScroll.AutomaticCanvasSize = .AutomaticSize.XY
editorScroll.Parent = gridCard
(editorScroll, )
(editorScroll, THEME.Stroke, )
editor = .()
editor.Size = .(, -, , -)
editor.Position = .(, )
editor.AutomaticSize = .AutomaticSize.XY
editor.BackgroundTransparency =
editor.Text = (SAMPLE_VOXELS)
editor.TextColor3 = .(, , )
editor.Font = .Font.Code
editor.TextSize =
editor.MultiLine =
editor.ClearTextOnFocus =
editor.TextXAlignment = .TextXAlignment.Left
editor.TextYAlignment = .TextYAlignment.Top
editor.Parent = editorScroll
sampleBtn = .()
sampleBtn.Size = .(, -, , )
sampleBtn.Position = .(, , , -)
sampleBtn.BackgroundColor3 = THEME.NeutralBtn
sampleBtn.Text =
sampleBtn.TextColor3 = THEME.Text
sampleBtn.Font = .Font.GothamBold
sampleBtn.TextSize =
sampleBtn.Parent = pageGrid
(sampleBtn, )
(sampleBtn, THEME.Stroke, )
clearBtn = .()
clearBtn.Size = .(, -, , )
clearBtn.Position = .(, , , -)
clearBtn.BackgroundColor3 = THEME.NeutralBtn
clearBtn.Text =
clearBtn.TextColor3 = THEME.Muted
clearBtn.Font = .Font.GothamBold
clearBtn.TextSize =
clearBtn.Parent = pageGrid
(clearBtn, )
(clearBtn, THEME.Stroke, )
optsCard = .()
optsCard.Size = .(, , , )
optsCard.BackgroundColor3 = THEME.Card
optsCard.BorderSizePixel =
optsCard.Parent = pageOpts
(optsCard, )
(optsCard, THEME.Stroke, )
materialBox = (optsCard, , , , , )
folderNameBox = (optsCard, , , , , )
delayBox = (optsCard, , , , , )
flipX =
flipY =
mergeRowEnabled =
(textOn, textOff, initial, x, y, w)
btn = .()
btn.Size = .(w, )
btn.Position = .(x, y)
btn.BackgroundColor3 = THEME.NeutralBtn
btn.Text = initial textOn textOff
btn.TextColor3 = initial THEME.Ok THEME.Muted
btn.Font = .Font.GothamBold
btn.TextSize =
btn.Parent = optsCard
(btn, )
(btn, THEME.Stroke, )
btn
flipXBtn = (, , , , , )
flipYBtn = (, , , , , )
mergeBtn = (, , , , , )
mirrorHint = .()
mirrorHint.Size = .(, -, , )
mirrorHint.Position = .(, )
mirrorHint.BackgroundColor3 = THEME.Input
mirrorHint.Text =
mirrorHint.TextColor3 = THEME.Muted
mirrorHint.Font = .Font.Gotham
mirrorHint.TextSize =
mirrorHint.TextWrapped =
mirrorHint.Parent = optsCard
(mirrorHint, )
buildBtn = .()
buildBtn.Size = .(, -, , )
buildBtn.Position = .(, )
buildBtn.BackgroundColor3 = THEME.Accent
buildBtn.Text =
buildBtn.TextColor3 = THEME.AccentText
buildBtn.Font = .Font.GothamBold
buildBtn.TextSize =
buildBtn.Parent = mainFrame
(buildBtn, )
stopBtn = .()
stopBtn.Size = .(, -, , )
stopBtn.Position = .(, , , )
stopBtn.BackgroundColor3 = THEME.Danger
stopBtn.Text =
stopBtn.TextColor3 = THEME.Text
stopBtn.Font = .Font.GothamBold
stopBtn.TextSize =
stopBtn.Parent = mainFrame
(stopBtn, )
statusBar = .()
statusBar.Size = .(, -, , )
statusBar.Position = .(, )
statusBar.BackgroundColor3 = THEME.Header
statusBar.BorderSizePixel =
statusBar.Parent = mainFrame
(statusBar, )
statusLabel = .()
statusLabel.Size = .(, -, , )
statusLabel.Position = .(, )
statusLabel.BackgroundTransparency =
statusLabel.Text =
statusLabel.TextColor3 = THEME.Ok
statusLabel.Font = .Font.GothamMedium
statusLabel.TextSize =
statusLabel.TextXAlignment = .TextXAlignment.Left
statusLabel.TextTruncate = .TextTruncate.AtEnd
statusLabel.Parent = statusBar
tabs = {
{ btn = tabBuildBtn, page = pageBuild },
{ btn = tabGridBtn, page = pageGrid },
{ btn = tabOptsBtn, page = pageOpts },
}
(activeIdx)
i, t (tabs)
selected = (i == activeIdx)
t.page.Visible = selected
t.btn.BackgroundColor3 = selected THEME.Accent THEME.NeutralBtn
t.btn.TextColor3 = selected THEME.AccentText THEME.Muted
i, t (tabs)
t.btn.MouseButton1Click:(()
(i)
)
()
()
tol = .((toleranceBox.Text) , , )
cutoff = .((alphaCutoffBox.Text) , , )
targetW = .(, .((gridWidthBox.Text) ))
targetH = .(, .((gridHeightBox.Text) ))
rawGrid, srcW = (editor.Text, tol, cutoff)
srcH = #rawGrid
(rawGrid, srcW, srcH, targetW, targetH, tol, flipX, flipY)
(grid, maxWidth)
_, child (pixelCanvas:())
child:()
height = #grid
maxWidth == height ==
pixelCanvas.Visible =
pixelHintLabel.Text =
pixelHintLabel.Visible =
stageW = previewStage.AbsoluteSize.X > previewStage.AbsoluteSize.X
stageH = previewStage.AbsoluteSize.Y > previewStage.AbsoluteSize.Y
cellPx = .(, .(.(stageW / maxWidth, stageH / height)))
canvasW = cellPx * maxWidth
canvasH = cellPx * height
pixelCanvas.Size = .(canvasW, canvasH)
pixelCanvas.Position = .(
.((stageW - canvasW) / ),
.((stageH - canvasH) / )
)
pixelCanvas.Visible =
pixelHintLabel.Visible =
rowSegs = (grid, )
totalFrames =
y = , height
_, seg (rowSegs[y] {})
totalFrames +=
totalFrames >
pixelHintLabel.Text = .(, maxWidth, height)
pixelHintLabel.Visible =
pixelCanvas.Visible =
px = .()
px.BorderSizePixel =
px.BackgroundColor3 = (seg.hex)
px.Position = .((seg.startX - ) * cellPx, (y - ) * cellPx)
px.Size = .(seg.count * cellPx, cellPx)
px.Parent = pixelCanvas
()
grid, _, outW, outH = ()
depth = .(, .((depthBox.Text) ))
segs = (grid, mergeRowEnabled)
segCount =
totalVoxels =
_, rowSegs (segs)
segCount += #rowSegs
_, seg (rowSegs)
totalVoxels += seg.count
estimateLabel.Text = .(, outW, outH, segCount * depth, totalVoxels * depth)
(grid, outW)
minimizeBtn.MouseButton1Click:(()
isMinimized = isMinimized
minimizeBtn.Text = isMinimized
TweenService:(
mainFrame,
TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out),
{ Size = .(GUI_WIDTH, isMinimized MINI_HEIGHT EXPANDED_HEIGHT) }
):()
)
flipXBtn.MouseButton1Click:(()
flipX = flipX
flipXBtn.Text = flipX
flipXBtn.TextColor3 = flipX THEME.Ok THEME.Muted
()
)
flipYBtn.MouseButton1Click:(()
flipY = flipY
flipYBtn.Text = flipY
flipYBtn.TextColor3 = flipY THEME.Ok THEME.Muted
()
)
mergeBtn.MouseButton1Click:(()
mergeRowEnabled = mergeRowEnabled
mergeBtn.Text = mergeRowEnabled
mergeBtn.TextColor3 = mergeRowEnabled THEME.Ok THEME.Muted
()
)
_, box ({ editor, gridWidthBox, gridHeightBox, depthBox, alphaCutoffBox, toleranceBox })
box:():(refreshAll)
.(refreshAll)
sampleBtn.MouseButton1Click:(()
editor.Text = (SAMPLE_VOXELS)
statusLabel.TextColor3 = THEME.Ok
statusLabel.Text =
)
clearBtn.MouseButton1Click:(()
editor.Text =
statusLabel.TextColor3 = THEME.Muted
statusLabel.Text =
)
()
f = :()
f
f = .()
f.Name =
f.Parent =
f
clearGhostBtn.MouseButton1Click:(()
f = :()
f
f:()
statusLabel.TextColor3 = THEME.Muted
statusLabel.Text =
)
()
char = player.Character
root = char char:()
originPos = root (root.Position + root.CFrame.LookVector * + .(, , ))
.(, , )
lookDir = root root.CFrame.LookVector .(, , -)
.(originPos, originPos + lookDir)
ghostBtn.MouseButton1Click:(()
grid, _, maxWidth, height = ()
#grid == maxWidth == height ==
statusLabel.TextColor3 = THEME.Error
statusLabel.Text =
existing = :()
existing
existing:()
folder = ()
voxelSize = .(, (voxelSizeBox.Text) )
depthLayers = .(, .((depthBox.Text) ))
segs = (grid, mergeRowEnabled)
baseCFrame = ()
spawned =
y = , height
localY = ((height / + ) - y) * voxelSize
_, seg (segs[y] {})
centerIdx = (seg.startX + seg.endX) /
localX = (centerIdx - (maxWidth / + )) * voxelSize
partLenX = seg.count * voxelSize
color3 = (seg.hex)
z = , depthLayers
localZ = (z - ) * voxelSize
ghost = .()
ghost.Name =
ghost.Anchored =
ghost.CanCollide =
ghost.Material = .Material.ForceField
ghost.Color = color3
ghost.Transparency =
ghost.Size = .(partLenX, voxelSize, voxelSize)
ghost.CFrame = baseCFrame * .(localX, localY, localZ)
ghost.Parent = folder
spawned +=
statusLabel.TextColor3 = .(, , )
statusLabel.Text = .(, spawned)
)
isBuilding =
cancelRequested =
stopBtn.MouseButton1Click:(()
isBuilding
cancelRequested =
statusLabel.TextColor3 = THEME.Warn
statusLabel.Text =
)
(endpoint, folderName)
folderName = (folderName):(, )
folderName ==
:(folderName)
[folderName]
ok, created = (()
endpoint:(, , )
)
ok created created:()
(()
endpoint:(, { created }, folderName)
)
created
buildBtn.MouseButton1Click:(()
isBuilding
endpoint = ()
endpoint
statusLabel.TextColor3 = THEME.Error
statusLabel.Text =
voxelSize = .(, (voxelSizeBox.Text) )
depthLayers = .(, .((depthBox.Text) ))
stepDelay = .(, (delayBox.Text) )
matName = (materialBox.Text):(, )
materialEnum = .Material.SmoothPlastic
_, enumItem (.Material:())
enumItem.Name:() == matName:()
materialEnum = enumItem
grid, _, maxWidth, height = ()
#grid == maxWidth == height ==
statusLabel.TextColor3 = THEME.Error
statusLabel.Text =
targetParent = (endpoint, folderNameBox.Text)
segs = (grid, mergeRowEnabled)
baseCFrame = ()
isBuilding =
cancelRequested =
buildBtn.BackgroundColor3 = THEME.Warn
statusLabel.TextColor3 = THEME.Ok
.(()
createdCount =
y = , height
cancelRequested
localY = ((height / + ) - y) * voxelSize
rowParts = {}
resizeChanges = {}
anchorChanges = {}
colorChanges = {}
materialChanges = {}
_, seg (segs[y] {})
cancelRequested
centerIdx = (seg.startX + seg.endX) /
localX = (centerIdx - (maxWidth / + )) * voxelSize
sizeVec = .(seg.count * voxelSize, voxelSize, voxelSize)
color3 = (seg.hex)
z = , depthLayers
cancelRequested
localZ = (z - ) * voxelSize
worldCF = baseCFrame * .(localX, localY, localZ)
ok, part = (()
endpoint:(, , worldCF, targetParent)
)
ok part
.(rowParts, part)
.(resizeChanges, { Part = part, = worldCF, Size = sizeVec })
.(anchorChanges, { Part = part, Anchored = })
.(colorChanges, { Part = part, Color = color3, UnionColoring = })
.(materialChanges, { Part = part, Material = materialEnum, Transparency = })
createdCount +=
stepDelay >
.(stepDelay)
#rowParts >
(() endpoint:(, resizeChanges) )
(() endpoint:(, anchorChanges) )
(() endpoint:(, colorChanges) )
(() endpoint:(, materialChanges) )
statusLabel.Text = .(, y, height, createdCount)
y % ==
RunService.Heartbeat:()
isBuilding =
buildBtn.BackgroundColor3 = THEME.Accent
statusLabel.Text = cancelRequested
.(, createdCount)
.(, createdCount)
)
)its where u can load images as voxels and if u wanna know how to convert images to into hexrows u need to find a site or me to convert the image to f3x you could ask me i dms for the site to convert the image into hex grids

Universal