PixeIPenguin / Roblox-Whitelist

This is a Roblox Whitelist that uses MySql, NodeJS, PHP, Roblox Lua (LUAU). How this works is the following: (Whitelisting Part) Discord Bot -> Website Server -> MySql (Roblox Script Part) Roblox -> Website -> Checks For UserID Inside -> Returns Value -> Then Your Script It has the following features: No logs (at least for my http logger), clear console, and discord username to roblox account. Enjoy!
4 stars 2 forks source link

feature #3

Closed A3ima closed 1 year ago

A3ima commented 1 year ago

can u make it that we can check if the user bot a product on roblox? and if so give them a role

PixeIPenguin commented 1 year ago

So sorry for the late response! I do not get notifications for issues and I haven't been active on github much...

Let's get started!

So the first thing we want is a API (which is down below).

https://inventory.roblox.com/v1/users/109176680/items/GamePass//202385

So obviously you need to replace the "109176680" with the actual user ID.

Your next question may be, how do I get their user id? There are a few answers to that! 1: Get it from their command they run. 2: Get their user id off of join but search for their user ID using famous roblox verification bot's APIs.

Now replace "202385" with your game pass.

Once you have done this, you are able to make a GET request to the link and see if the "data" array is null or not. If the "data" array has nothing in it, they do not own it. However, if it has the type, ID, name, and instanceId they own the game pass.

Hopefully this helps, good luck!