Warm tip: This article is reproduced from serverfault.com, please click

How to create and join a private server in-game roblox?

发布于 2020-11-27 02:34:40

So for example, In the game Piggy, there is build mode, where it creates and teleports you to the server... Can this be in a screen gui button and also in server-side script?

Questioner
Spacehold
Viewed
11
Alpha 2020-11-27 13:41:02

Use ROBLOX's TeleportService.

https://developer.roblox.com/en-us/api-reference/class/TeleportService

TeleportService:ReserveServer(OptionalGamePlaceThatYouOwn)

Creates and returns a code that can be used to teleport to a private instance of the server.

TeleportService:TeleportToPrivateServer(PlaceId, AccessCode, Player(s))

Teleports player(s) to the private server created with ReserveServer.

Remember that Google is your best friend.