Replacement for a line of code

Okay, so I have another question. Sorry, I guess I am full of them. After getting a script to award badges working, now I am looking to modify a script I found to my needs. I need a script that gives the player a tool when a badge is earned, and so I want to modify a script that gives a tool when a game pass is bought. So I found the line of code to change. The code is:

if mps:UserOwnsGamePassAsync(player.UserID, id) then

Is there something like “UserOwnsBadgeAsync”? Thanks!

4 Likes