how to make role giver when player buy somethings in the game and discord will be gived role???
I guess you’ll have to use a Discord bot with HttpService. I don’t know how to make Discord bots, but there’s a lot of tutorials on youtube, give them a try.
I’d recommend just having a discord bot the user interacts with to obtain the role.
You could go the route Taquito mentioned but I can only assume there isn’t anything like that exists so you’ll probably have to make your own server to receive them.
So what you’ll need is a Discord bot and a framework recommend I Discord.py.
Then you’ll need to reference roblox’s inventory api to obtain if a user owns the gamepass or not.
In terms of “verifying” if a discord account owns the roblox account, you could create a empty game where the roblox account messages their discord id in the server in which the discord id is added to a table which is saved to datastore.
Then using OpenCloud you could pull the table from the DataStore by using the UserId the discord account supplied and compare the Discord Id to the one pulled from DataStore.
Hopefully that gives you enough resources to start on it.