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

Creating a place [Universe]?

Asked by 10 years ago

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.

?

4 answers

Log in to vote
0
Answered by
Gamenew09 180
10 years ago

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:

Ad
Log in to vote
0
Answered by
hiccup111 231 Moderation Voter
10 years ago

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.

Log in to vote
0
Answered by 10 years ago

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.

Log in to vote
-1
Answered by 10 years ago
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)
0
I understand but I'm talking about creating places within "game universes". Adumbrate 5 — 10y
0
Universes arent out yet. digitalzer3 123 — 10y
0
They are I made one. HexC3D 830 — 10y
0
They have been out for a LONG time now. ultrabug 306 — 10y
View all comments (4 more)
0
lolno. digitalzer3 123 — 10y
0
Mhm, yeah... The whole egg hunt was based "universe-based" ImageLabel 1541 — 10y
0
1 That was a teleporter. digitalzer3 123 — 10y
0
Nvm just lets stop fighting. digitalzer3 123 — 10y

Answer this question