Hi!
Is it possible to get a player’s team externally using the API or something?
I’m currently using getGameInstances to get friends of a bot account who are in game. Is there any way I can get what team they are on?
Thanks!
Hi!
Is it possible to get a player’s team externally using the API or something?
I’m currently using getGameInstances to get friends of a bot account who are in game. Is there any way I can get what team they are on?
Thanks!
What do you mean by a player’s team?
what team they are on in the game
You cant get the players team with the api, but you could use MessagingService to get the players team.
There’s no such thing as GetGameInstances in the API you linked. You may be confusing this with the heading that describes what part of the API you’re working with (GameInstances is for game instances) and the method used to interact with that part (/servers/ is an HTTP GET).
Instances in the Games API refers to server instances, what you join when you want to play an experience. It does not fetch anything in the DataModel and cannot do so externally.
External servers cannot send requests to Roblox so you need to long poll for a valid request from your server to be able to send that data. Accept and wait for a request → Roblox server polls and receives a heads up to deliver data → external server receives and processes that data.
I was wanting to do it externally - so I assume there’s no way?
You would need to host a website and from a script transfer the team to that website. Sorry if its confusing im pretty bad at explaining.
Don’t worry, I know what you mean, with a http request from game.
That sadly wouldn’t work though, as I don’t own the game in question on this occasion nor am I a developer for it. I only needed the teams of people who are friends with the bot account ingame, like I only get a list of players ingame if they are friends with the bot using the gameInstances: Servers above
I don’t think I can achieve this afterall, if I can or you have another method do let me know but thanks all for your responses!