So there has been this game that has recently come out which is called Camping. You are teleported to another server with a group of people who have joined you on a truck. I have been wondering how this is done because I haven't been able to figure it out so far.
I've read almost every page of information on how to do it, but nothing would work for me. Does anyone have an idea of how they do it?
I have attempted this code - (This is not the only code I have attempted. I am having trouble finding the other ones.)
local TeleportService = game:GetService("TeleportService")
local DSS = game:GetService("DataStoreService")
local DS = DSS:GetGlobalDataStore()
local code = DS:GetAsync("ReserveServer")
if type(code) ~= "string" then
code = game:GetService("TeleportService"):ReserveServer("2575716765")
DS:SetAsync("ReserveServer",code)
end
for i,v in pairs(game.Teams["Team"]:GetPlayers()) do
TeleportService :TeleportToPrivateServer(3180151090,code,v)
end

2 comments
What's your attempt code?
Similar to what noammao said, this video on YouTube (https://www.youtube.com/watch?v=KgiINhZ8xGk) is a tutorial on how to make a player teleport to a different place when touching an object. Maybe if the players get in a car like in Camping, and the car drives into a wall in which will teleport the players, that would work? I actually was experimenting and I made it so you click on a GUI.