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.