Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why is the AssetService not creating place?

Asked by 5 years ago
Edited 5 years ago

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())
0
thanks for not showing what place it links to so we cant see whos owner it is! hiimgoodpack 2009 — 5y
0
AssetService:CreatePlaceWithNoErrorsPlease() User#19524 175 — 5y

1 answer

Log in to vote
0
Answered by
blowup999 659 Moderation Voter
5 years ago
Edited 5 years ago

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.

Ad

Answer this question