Every time I use this method with a valid userId it always returns the following:
false, "HTTP 403 (Forbidden)", (some random PlaceId)
Does anyone know the reason why this is happening to me? Is it me or is it something else because I feel like its Roblox. I even tried the method in a script all by itself with a valid userId and it returned the same thing.
Here's the snippet where the method is used (this is inside a LocalScript)
local function attemptJoin() local success,errormsg,placeId,instanceId = transport:GetPlayerPlaceInstanceAsync(tonumber(userid)) if not success or placeId == placeIds.hub then global.signal.warning:fire("Player not in Building Universe"..(success and "" or ": "..errormsg)) join.Text = "Join" canRespond = true return end if placeId ~= (stype and placeIds[stype] or placeIds.public) then global.signal.warning:fire("The player was not detected in the requested server type.") join.Text = "Join" canRespond = true return end join.Text = "Working..." transport:TeleportToPlaceInstance(stype and placeIds[stype] or placeIds.public,instanceId) end
-Go to the page of your game
-Go to Configure this Game
-Check "Enable Studio Access to API Services"
Some services don't function unless the place has been uploaded and given the proper permissions (there are other permissions in Configure Place, too). This means you cannot open a new place and have these functions work, you have to edit a place that's been given permission.