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

How do I check the place ID of a place created with CreatePlaceAsync? (Short!)

I'm trying to find a way to get the ID of a place created from game:GetService("AssetService"):CreatePlaceAsync() to then teleport the player to. I don't want it to save the ID to the player, I just want it to create the place.

Is this possible? If so, how so?

Thank you for reading, and I hope to find an answer as quickly as possible.

1 answer

✓ Accepted answer

CreatePlaceAsync returns the ID of the created place:

local placeId = game:GetService("AssetService"):CreatePlaceAsync(...)

Then to teleport a player to that game, you would use TeleportService:

game:GetService('TeleportService'):Teleport(placeId, playerGoesHere)

2 comments

0

Very useful! Thank you for the solution.

0

Glad to help.

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