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

2 comments
I'm not sure what it is. But it probably only works when running in a server, and it probably has to run from a server script when running in a server, not in Edit or Solo mode. I am getting the same problem. I don't think the method works yet.
^, This method does in fact work; Theres a demo that UristMcSparks own's I would try to find it and check it out!