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

How do I use ROBLOX Universes?

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

Use TeleportService.

1 comment

0

Wiki has a tutorial. Also, in order to save through universes use a global datastore.

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)

1 comment

0

Oh, and make it a "Script", not a "LocalScript" or any of that stuff.

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