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 comment
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