I'm trying to create a place within a game universe and teleport the player from my server into that "new place".
I know I need to do something with CreatePlaceAsync and teleporting but the new Wiki layout is a little confusing.
?
Universes have been out for a while. digitalzer3 already did the teleport, but he didn't put the create places script in the answer, so I'm going to put that in.
Do not copy the dots, those will cause error. This part of the code is from a wiki article on CreatePlace and SavePlace.
... newPlaceId = game:GetService(“AssetService”):CreatePlaceAsync('Building zone for ' .. playerIdentity, 92697995) -- The first argument is the name of the place, the second is the template place id. ...
If I helped please put me as an answer and vote me up. Thank you for reading! Also sorry if anything is wrong, I'm a little tired. D:
On ROBLOX, go to Deveol > Games > (Choose an Actice place) > Configure > Places > Add Place
Once a place is added to the 'Games' list, of an Active place, then you Teleport to the added place(s).
Just use the Teleport Service from there on.
There is a model/GUI I made that teleports you when you click it: http://www.roblox.com/Teleport-GUI-item?id=157321891 If that is what you are wanting.
function onTouched(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then game:GetService("TeleportService"):Teleport(8473728, player) -- Place ID. end end script.Parent.Touched:connect(onTouched)