What is the script line when you want to put like "if the player has a badge then"
I highly appreciate it if you answer.
What is the script line when you want to put like "if the player has a badge then"
I highly appreciate it if you answer.
The method you are looking for is UserHasBadge which is part of the BadgeService.
It has two parameters, a user-id and a badge id.
If player is a Player object, then their user id is player.userId.
It returns a boolean, true if the user owns the asset, and false if they do not.
This discussion is preserved as it was. New answers, comments, and votes are closed.