I am trying to get an editable mesh using :CreateEditableMeshAsync(),
however, “Unable to cast double to Content” pops up at line 9
i dont really know where to start to try to get around this
script
local event = game.ReplicatedStorage.Events.InsertModels
local marketplaceservice = game:GetService("MarketplaceService")
local insertservice = game:GetService("InsertService")
local assetservice = game:GetService("AssetService")
event.OnServerEvent:Connect(function(player,idx)
print("created")
local mesh = assetservice:CreateEditableMeshAsync(idx)
mesh.Parent = game.ReplicatedStorage
local ItemFrame = game.ReplicatedStorage.ItemFrame:Clone()
ItemFrame.Name = "ItemFrameClone"
ItemFrame.Parent = game.ServerStorage
local Name = ItemFrame.Name
local Model = ItemFrame.Item.Model
local assetdesc = marketplaceservice:GetProductInfo(idx)
ItemFrame:FindFirstChild("Name").Text = assetdesc.Name
ItemFrame.Parent = player.PlayerGui.EnemyEditorGUI.Editor
end)