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

Placing players into the same server?

Asked by 9 years ago

I don't have a script right now, but I was just wondering if there was some sort of script that would allow you to place someone into the same exact server as someone else, preferably if they touch a brick at the same semi-exact/exact time. I need this for a game that'll have sort of like an elevator that'll bring a group of players down, they will touch a brick, and they'll be placed to another part of the game, which is a dungeon that they would complete together. Anything helps, thank in advance!

2 answers

Log in to vote
0
Answered by 9 years ago

You can use "TeleportToPlaceInstance", which is a method of TeleportService. You can find the documentation of it here: http://wiki.roblox.com/index.php?title=API:Class/TeleportService/TeleportToPlaceInstance

You'll need the server's JobId (instance Id) and place Id. A final result should look something like this:

LocalScript

local Teleport = game:GetService("TeleportService")
Teleport:TeleportToPlaceInstance(game.PlaceId, "jobId")
Ad
Log in to vote
-1
Answered by 9 years ago

My advice is to avoid having to switch servers. Keep it all in the same server. You'll need to find a way to make the entire game playable on one server, which is usually feasible.

0
This is exactly the reason Universes (or sometimes Games) were created - when there are a ton of parts in a single place, stuff tends to get very laggy. Marios2 360 — 9y

Answer this question