Catalog API inquiry:

How would I be able to print out items in a player’s roblox hat inventory if they have their inventory set to visible?

https://inventory.roblox.com/docs#/

This may be what you’re looking for. Just click on v1

The v1 endpoint may return accessories too and it’s deprecated so it’s better to use v2 endpoint for getting inventory items based on type.

Hey! You can achieve something like this with a little workaround. First you can’t access the Roblox API through a Roblox experience. You will need to write your own little API with JavaScript accessing the Roblox API…

The API request you will need is this: https://inventory.roblox.com/docs#!/Inventory/get_v2_users_userId_inventory

It’s not a easy task you’re trying to do, but possible. I’ve done something similar in the past with the player’s collectibles.

That task is even easier than implementing a data saving system for your game.

This is totally different for every user out there… It fully depends on your knowledge with JavaScript and Roblox’s HttpService or Roblox’s DataStoreService. I don’t get this comparison anyway…

HttpService has almost nothing to do here. It just gets data from your domain. Basically only 2 lines of code.

JavaScript has very smillar syntax to Luau. If you know one of them then you’ll can learn the 2nd one easily.

Yikes… Don’t know any JavaScript… Tough luck on my behalf haha.

And what exactly has this to do with the person’s topic?
I don’t get the point why exactly you’re pointing this out right now. I’ve simply said its not the easiest task.

However, I will mark this as the solution in case someone stumbles upon this.

This has nothing to do with this person topic. Just saying this isn’t really hars task or something.

For example you should know what function function does in Lua so you know some js because it does the same in it.

Just has kinda other syntax at defining the content of it.

Alright, thank you. Anyways to maybe add something to the answer… The code I used in my project for this looks like the following:

app.get("/collectibles", (req, res) => {
  var User = req.param("userId");
  rbx.getCollectibles(parseInt(User)).then((playerInfo) => {
    res.json(playerInfo);
  }).catch(console.error)
});

You would have to run something like this on a JavaScript server to make that work. There are cheap ones out there so this shouldn’t be the problem… Good luck with your project!

Cheers

Remember: Never use var. const is the best but if it’s needed use let. Var just looks ugly lol.

Again, this has nothing to do with the topic or anything… If you like it that way, do it. This is the way how I want to design my code and you shouldn’t care about it.

Cheers