You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I want to make a version of my meshes to use with vertex alpha masking, without having to upload double the meshes. i use of editablemeshes for that
- What is the issue? Include screenshots / videos if possible!
I am having some issues relating to editablemeshes, so basically, i have this code:
pcall(function()
local specialmesh : SpecialMesh = child:FindFirstChildWhichIsA("SpecialMesh")
newEditMesh = game.AssetService:CreateEditableMeshAsync(Content.fromUri(specialmesh.MeshId))
for i,faceid in newEditMesh:GetFaces() do
local facecolors = {}
for i,v in newEditMesh:GetFaceVertices(faceid) do
table.insert(facecolors,newEditMesh:AddColor(Color3.new(1,1,1),0))
end
newEditMesh:SetFaceColors(facecolors)
end
newMesh = game.AssetService:CreateMeshPartAsync(newEditMesh,child.Size)
newMesh.CFrame = child.CFrame
newMesh.Color = child.Color
newMesh.Material = if useGlassCharMask then Enum.Material.Glass else child.Material
newMesh.Transparency = if useGlassCharMask then 0.99 else 0
newMesh.Parent = maskStorage
originalPart = child
maskMeshes[#maskMeshes + 1] = {newMesh, originalPart}
end)
the meshes that are being used are made by me and are part of a model i uploaded to roblox by the name of the group the game’s code is being run on.
it errors with the message:
Universe is owned by a Group while the asset <asset> is owned by a User
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried changing it from specialmesh ids to mesh ids, nothing changed currently