Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

can a teleport to another game part reserve a server?

so i am trying to make a part that teleports a player to a different game when touched but i want it also to create a private server so that nobody else can join. unless this is not possible is there another way? this what i have done and im not sure how to make it work


function onTouched(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if player then
	local PlaceId = 4548158832
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
 
local reserved = TeleportService:ReserveServer(PlaceId) -- LINE 26
local players = Players:GetPlayers()
        TeleportService:TeleportToPrivateServer(game.PlaceId,reserved,player)
    end
	end
	script.Parent.Touched:Connect(onTouched)

this is the error i get when i touch the part

21:38:57.426 - HTTP 403 (Forbidden) 21:38:57.427 - Stack Begin 21:38:57.427 - Script 'Workspace.Telepart.Teleport', Line 26 21:38:57.428 - Stack End

1 answer

I would assume that it is not possible to ReserveServer() on a game that isn't yours, or else there would be no point in VIP-servers lmao

a) If the game isn't yours you can not do ReserveServer() on it.

b) if the game is yours then...I have no idea why it wouldn't work.

1 comment

0

The game is mine and im trying to teleport the players from one game to another but in a reserved server unless its probably not possible

This discussion is preserved as it was. New answers, comments, and votes are closed.