Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why is the AssetService not creating place?

I'm playing around trying to figure out how CreatePlaceAsync works but it errors saying that "TemplatePlace cannot be copied"

Anyone know why this isn't working? I provided the proper template place ID which I created through the game tab in studio (I changed the place ID to 0's here since I want to keep it discrete)

Output: Game:CreatePlace received and error: HTTP 0 (HTTP 403 (HTTP/1.1 403 TemplatePlaceCannotBeCopied)). Line 4

local assetService = game:GetService('AssetService')
local teleportService = game:GetService('TeleportService')

local t = assetService:CreatePlaceAsync('TestAsset', 00000000, 'Created using a script')
teleportService:Teleport(t, game.Players:GetPlayers())

2 comments

0

thanks for not showing what place it links to so we cant see whos owner it is!

0

AssetService:CreatePlaceWithNoErrorsPlease()

1 answer

If you want to teleport a player within a universe I suggest not using CreatePlaceAsync

Instead try something like this

local ts = game:GetService("TeleportService")
local str = ts:ReserveServer(PlaceID)
ts:TeleportToPrivateServer(PlaceID, str, game.Players:GetPlayers(), "", {}, nil)

CreatePlaceAsync is used for more creating and saving a place.

What the code above does is more like one time you want a group of players to join a server and then never see the server again.

If you still want to use CreatePlaceAsync the problem is most likely you have to Configure the place so that you can create copies of it.

This discussion is preserved as it was. New answers, comments, and votes are closed.