Hello, Im Fasola16 and I writting here to teach you what is “.HasVerifiedBadge” and how and when to use it.
What is .HasVerifiedBadge?
“.HasVerifiedBadge” its a boolean, that determine if player has a verified badge or no.
INFO
If you dont know what is verified badge, its a visual indicator, that show, the account is both notable and authentic. More info in here.
When to use .HasVerifiedBadge?
You can use this function for ex. Giving a special reward only for a verified players or count how many verifed players joined the game.
How to use .HasVerifiedBadge in scripts?
lets make a script that will check if player has verified badge or no.
using this code in scripts its simple. On first, You need to use “.Player.Added” function. The script must check the player, if has been added before checking the verified badge. And then set the parameter name.
ex.:
local player = game.Players
player.PlayerAdded:Connect(function(plr)
end)
then use “if” function, that script could able to check. then put “plr.HasVerifiedBadge == true then”
that script will know what to check and will see if its true. then use “print()” and type a your text here to know if this script work or no.
local player = game.Players
player.PlayerAdded:Connect(function(plr)
if plr.HasVerifiedBadge == true then
print("player has verified badge")
end
end)
the script is ready, but what we want is the script check if player has a VerifiedBadge or no. so only we need its to add function “else” and add another “print()” that the script will say, if player doesnt have a verified badge.
local player = game.Players
player.PlayerAdded:Connect(function(plr)
if plr.HasVerifiedBadge == true then
print("player has verified badge")
else
print("player hasn't verified badge")
end
end)
and now this script will check and tell us, if player has a verified badge or no. Unfortunately this boolean rarely get “true” result, but almost always get “false” result.
INFO
This boolean will rarely get “true” result, because the players with verified badge rarely comes to the specific experience.
Summary:
- “HasVerifiedBadge” its a boolean that checks if player has a verified badge
- It can be used for ex: giving a special reward only for a player with verified badge
- This function will rarely get “true” result, but almost always get “false” result.
That is all from now! If you have more question, ask in comments ![]()