So basically when I’m trying to teleport all players in my game to another game server with JobId and PlaceId I’m getting Error 773 “Attempted to teleport to a place that is restricted”. If this is a Roblox bug, there are any ways to fix it? And if it’s my problem what I did wrong?
(Tested this with many games, you can’t join with JobId to any game)
TeleportService = game:GetService("TeleportService")
PlaceId = <anyplaceid>
JobId = tostring(script.Parent.Parent.JobId.Text)
Button = script.Parent
Button.MouseButton1Click:Connect(function()
for _, player in pairs (game.Players:GetPlayers()) do
TeleportService:TeleportToPlaceInstance(PlaceId, JobId, player)
end
end)
JobId can’t be anything, it’s intended to be a UUID for a Roblox game server. JobId should be retrieved through methods such as GetPlayerPlaceInstanceAsync or having a means of actually obtaining the JobId of another DataModel. For places in the same game, that’s MessagingService. For other games, highly doubtful you can retrieve their JobId unless the developer exposes it to the player; and even then, you can’t teleport directly to that instance.