You are on page 1of 1

DATA = WHAT_WAS_SET_TO_YOUR_CLIPBOARD

ART_NAME = "ANYTHING"

function ParseCells(cells)
local Cells = {}
for i,v in pairs(cells) do
success, error = pcall(function()
Color3.fromHex(v)
end)
if not success then
table.insert(Cells, "ffffff")
warn(v, success, 'hex failure | replacing with ffffff')
else
table.insert(Cells, v)
end
end
return Cells
end

function SaveArt(name, cells)


local data = {}
data.Cells = ParseCells(cells)
data.FrameColor = "ffffff"
data.Name = name
game:GetService("ReplicatedStorage").Remotes.CreateArt:InvokeServer(data)
end

SaveArt(ART_NAME, DATA)

You might also like