I’m trying to make a world creation system using Asset Service
The issue is I keep getting this error and I don’t know what it means
If anyone knows what it means or how to fix it I would appreciate it
return function(owner, name, desc)
local worldcount = #(worldDS.owned:GetAsync(owner.UserId) or {})
local newworld = assetservice:CreatePlaceAsync('World', 6340605856, 'A new world')
worldDS.owned:UpdateAsync(owner.UserId, function(old)
old = old or {}
table.insert(old, newworld)
return old
end)
worldDS.full:SetAsync(newworld, {
id = newworld,
owner = owner,
name = name or string.format("%s's World No. %i", owner.Name, worldcount + 1),
description = desc or 'e',
thumbnail = 'rbxasset://textures/ui/GuiImagePlaceholder.png',
active_players = 0,
max_players = 12
})
return newworld
end