Hello Developers,
You might have seen badges like these:
Verified Badge
Age Verified Option
What exactly is this tutorial?
So in this tutorial, you will learn how to find whether a player has a verified badge or is age-verified or not.
Finding if a player is verified
So there is a property you can check on a player, it is the HasVerifiedBadge
And if you can check it, you can find it.
local player = game.Players.LocalPlayer
if player.HasVerifiedBadge == true then
print("Player has badge")
else
print("You have no badge lol")
end
This can be called/checked on the server and client side, additionally, in studio, it returns false most of the time.
If you want to learn more about this: Open Roblox Documentation on this
Finding if a player is ID-verified or age-verified
Note, this is not to find the player’s age, and this is only to check if a player is verified
game.Players.PlayerAdded:Connect(function(player)
if player:IsVerified() == true then
print("damn player is verified")
else
print("bruh player is not verified")
end
end)
Note that you can only fire this on the server side and not the client side, additionally in the studio it will always return false.
If you want to learn more about this: Open Roblox Documentation on this
Thanks for reading this tutorial
You’ve finished the tutorial successfully!
Note that few people reported that these functions are not working, they are a Roblox Bug and I don’t think its possible to fix the functions directly, if it does not work for you, you should make an external API or call to any external API so you would achieve this!