Finding the GameSettings Avatar Type in studio

I have a very quick and simple question regarding API I cannot for the life of me find.

When you go into studio and adjust the game settings there’s an option to switch the game avatar type:

I’d like to be able to read this value from a plugin. I’m confident that this is possible since the game settings menu is a plugin itself (thus we should have the ability to both read and write the setting technically), but I can’t find it in the source since it’s so bloody dense!

Is there anyone who can direct me to an API page that will help me get this value?

Thanks!

3 Likes

I think you can read the StarterPlayer.GameSettingsAvatar property. Not entirely sure though, it looks a bit… restricted.

https://developer.roblox.com/en-us/api-reference/property/StarterPlayer/GameSettingsAvatar

It appears to be exactly what you’re looking for because the Enum associated with it has the exact same avatar types. GameAvatarType

Oh, and how did I find this property? Well the true ROBLOX API reference of course!!

Here is a link to it. Try the search bar, its pretty cool to look around for some random stuff if you’re bored!

1 Like

Ah, It cannot be accessed, but still thank you. This is plenty more progress than I made.

Much appreciated! :+1:

1 Like

This might help. You can send an api request to games.roblox.com/v1/games with a list of universe IDs. It will return the “universeAvatarType”.

However to send a web request to a ROBLOX API from a ROBLOX game you have to use a proxy of some sort because they don’t allow direct communication of HttpService and their own web endpoints.

https://games.roblox.com/docs#!/Games/get_v1_games
image

You probably aren’t dumb like me but there is a chance you will make the same dumb mistake!

Do note it wants universe IDs. Not Place IDs. I tried mindlessly entering Place IDs for 30 seconds until I realized I had to go get my game’s Universe ID. (Available on the site Game Page, make sure to go to the Game Page not the Place Page!!)

image
image

3 Likes