As a Roblox developer, it is currently too hard to make an efficient badge giving script because it takes less time by orders of magnitude to just call the awardbadge function no matter what than it does to first check if the user already has the badge. This is too hard because I can’t afford to have a simple badge check take .1 seconds. I also don’t want to resort to making my own cache system, Roblox should stop printing warnings that someone already has a badge.
I realize I can hide warnings, but that may not be ideal because I could use warnings elsewhere in my code, but I would never find them with the badge warning spam.
My server output (on a server with only me)
Code that gave this output:
Output with a full server
My bagde system has server side sanity checks, as clients fire events when they hit certain parts. This is why there are so many duplicate warnings.
If there is something wrong with calling the award badge so many times when a user already has it, can something be done to make it not as bad. I don’t know what goes on under the hood for this code on Roblox’s end. I am looking for answers because there has got to be a better way.
If Roblox is able to address this issue, it would not clog up the Server output with warnings that do not need to be there.