Reserved Server JobId Teleport

I’m making a private server system using datastores where people can select a specific server

Everything works, a server is set up on the correct server name, however, nobody can join existing servers.


destinationName is the JobId

The error says “Invalid player to teleport”.
I did a bit of reading and have seen one comment saying you cannot use :TeleportToPlaceInstance for reserved servers, is this true? If so, what are some alternatives?

Thanks

2 Likes

Update:

This error now occurs. Any ideas why?
image

I don’t see anything wrong, did you double check your place id?

1 Like

Yes, I have.
character limit12345678

As I’m reading the documentation, they say teleport service is not working when you’re playtesting in Studio.

2 Likes

I’m aware, that’s why I’ve tried it in the game.

plr should be as table just use game.Players:GetPlayers() it should work

TeleportToPlaceInstance requires placeid, jobid and plr, but you are getting job id from datastore?
Try

TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, plr)

It is a table. He has remote event in ReplicatedStorage which is triggered by client, this client is packed into a tuple by {plr}

then why it says invalid player

That’s the thing we’re trying to figure out. Provided code from author is correct or has some very well hidden mistake we’re unable to see. There must be external aspect why the error appears.

it can happen only if your code is invalid

reserved server code* btw not script

Teleporting me to the same job id doesn’t achieve what I want it to achieve.

I’ve tried with and without a table.

idk for me it works fine i have my own create privateserver script

1 Like

That is fixed now the error causes is Attempted to teleport to a place that is restricted

:TeleportToPlaceInstance Only teleports player to the job id when the server actually exists, if that server is inactive (no players inside the server) then you cant join it. (Thats what i know, correct me if i am wrong.)

You can make a player joiner just like MM2.
Whenever you join your friend it teleports you to your friend server.

Read more here
https://developer.roblox.com/en-us/api-reference/function/TeleportService/TeleportToPlaceInstance

Yes, my alt is in the server where the job id is being placed into the teleport.

Also I was talking about job id of the server where your alt is

Make sure the job id of the server is correct where your alt is, or enable
image
Or make sure your place is public.
if its correct then it seemed that its roblox’s issue.

Ah. I’ll double check it.
characterssss