-
What do you want to achieve? Keep it simple and clear!
Hello!, I was trying to make a system where it is necessary to teleport the players to the same game, but to a different server from this one, it is an AFk system, it works through remote events, the remote event that is used to do this is very simple is thisEV.Idle_Afk.OnServerEvent:Connect(function(Player) Player.Afk_Idle.Value = true TS:TeleportAsync(game.PlaceId, {Player}) end)
-
What is the issue? Include screenshots / videos if possible!
The problem is that every time I try to do this I get this error
"raiseTeleportInitFailedEvent: Teleport Failed because Unable to join game 212 (Unauthorized)
" -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have seen other similar topics, I have tried using Teleport, TeleportToPlaceInstance, and teleportAsync, none of these 3 methods work, and yes, the place is public and playable by everyone
I would like to know if I am doing the code wrong, or what settings I should modify in addition to
making the place public, and enabling thirty teleports
Are you testing in studio or in an actual server?
It will not work ever if you are doing it in studio.
Ill quickly test similar code in a live server. Give me a moment
edit: Using TeleportAsync does seem to work in live servers, with the same setup as yours.
Hello!, I tried it on real servers and it didn’t seem to work, what happens is that it is a testing game, that is, it is public but it only has 1 server, since the game has no players, there are only my 2 accounts I don’t know if this has anything to do with it
Here is a video for better understanding, when a player enters the afk zone and is afk for more than 40 seconds, the game triggers this remote event
EV.Idle_Afk.OnServerEvent:Connect(function(Player)
Player.Afk_Idle.Value = true
TS:TeleportAsync(game.PlaceId, {Player})
end)
With my main account (Dev Rank and permissions to edit it in roblox studio) this error does not occur, but when I try it with my alternative account (Normal Player), the error occurs
Hey, have you found a solution to this yet? I’m having the same problem.
Hello! I didn’t find a solution to this, but I decided to test it with a game with more than 1 server, to be specific the game had 120 players, and it worked.
Please make sure that the game you are trying to teleport to is public!