I’m trying to make a game where you can create places but CreatePlaceAsync results in an error
The issue is I keep getting the same TemplatePlaceCannotBeCopied error.
I’ve tried:
- Looking on the DevForum for solutions
- Looking on developer.roblox.com
- Enabling create and save settings in the Configure Place page
return function(owner, name, desc)
local worldcount = #(worldDS.owned:GetAsync(owner.UserId) or {})
local newworld
local suc, res = pcall(function()
newworld = assetservice:CreatePlaceAsync('World', 6340605856, 'A new world')
end)
if not suc then
warn(res)
end
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 Place 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