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?
COMMUNITY QUESTION
How do I use ROBLOX Universes?
2 answers
Use TeleportService.
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.

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