First 30 badge gui

how to make a badge for the first 30 people with gui?

1 Like

You can have a datastore for the number of badges given out,
Before you give out the badge, use GetAsync() and check if the number of given badges are less than 30, if they are less than 30 then you can give out a badge, and then use UpdateAsync to update the badges given value to +1. I hope it sounds simple enough, please let me know how I can help you further with this.

1 Like

why not use BadgeService:UserHasBadgeAsync()

1 Like

Yes he would also use that too, I was answering the actual problem he has, he couldn’t figure out how to limit it to only the first 30 people. Thank you though, and yes he should use the UserHasBadgeAsync() to first check if the person has the badge or nah, only then give them the badge.

1 Like