Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why is GetPlayerPlaceInstanceAsync erroring?

Asked by 7 years ago

So I'm trying to use GetPlayerPlaceInstanceAsync to see if a player has friends who are playing the same game. On the local script, a RemoteFunction is called to get a list of friends who are playing the game. It's passing Player:GetFriendsOnline() as the argument and in the server, GetPlayerPlaceInstanceAsync is called to check if each of the friends are playing the game.

But in Studio, I keep getting this error:

TeleportService::GetPlayerPlaceInstanceAsync can only be called from the server.

and on real servers, I'm getting this error on the line that's invoking the RemoteFunction:

HTTP 0(HTTP 400 (HTTP/1.1 400 TargetPlaceNotPartOfCurrentGame))

I do have HTTP Service enabled.

0
According to the error you need to have the places in the same universe Filipalla 504 — 7y
0
Are you saying the friends are in the same universe? FYI, that errors varies because sometimes instead of TargetPlaceNotPartOfCurrentGame, it says UserOffline even though the player is online. PhoenixSigns 15 — 7y

Answer this question