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

How do I use ROBLOX Universes?

Asked by 10 years ago

I'm aware that it involves functions and such, but how would you script a universe to make it so when you touch a brick it'll teleport you to another game in your universe?

2 answers

Log in to vote
1
Answered by
Lacryma 548 Moderation Voter
10 years ago

Use TeleportService.

0
Wiki has a tutorial. Also, in order to save through universes use a global datastore. Lacryma 548 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

I have a script for that, let me fetch it real quick.

function onTouched(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if player then
        game:GetService("TeleportService"):Teleport(153466049, player) -- Change 153466049 to the place you want the player to be teleported to.
    end
end

script.Parent.Touched:connect(onTouched)
0
Oh, and make it a "Script", not a "LocalScript" or any of that stuff. SchonATL 15 — 10y

Answer this question