Ad
Log in to vote
0

How to lock a place after all players have been teleported?

Asked by
hokyboy 245 Moderation Voter
4 days ago

In camping u have this car wich teleportes u to a place , After everyone joined the place gets locked and no one can join anymore

can someone send me links so i can learn about this?

2 answers

Log in to vote
0
Answered by
Ziffixture 6443 Moderation Voter Community Moderator
4 days ago

You can achieve this through the :ReserveServer() method of TeleportService. This will generate a privatised Server for your game that requires the returned access code to travel to. In order to send Players to this place, you must also use the :TeleportToPrivateServer() method:

local TeleportService = game:GetService("TeleportService")


local AccessCode = TeleportService:ReserveServer(game.PlaceId)


TeleportService:TeleportToPrivateServer(game.PlaceId, AccessCode, {Player Array})
Ad
Log in to vote
0
Answered by 4 days ago

Tip: DONT USE TeleportService FOR GAMES IN ROBLOX ANYMORE, EXTREMELY UNRELIABLE NOW I learned this the REALLY hard way; use a lighting to workspace clone script with skybox & lighting & terrain changes, much more reliable & less bandwidth required by the player.

Answer this question