Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is a script line (DESP)?

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.

1 answer

✓ Accepted 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.