-- Getting ReplicatedStorage and Players service
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
-- Referencing Essentials
local Essentials = require(ReplicatedStorage.Essentials)
-- On the player added event, we add a function that checks if the player has a verified bagde or not
Players.PlayerAdded:Connect(function(player: Player)
Essentials.IsPlayerBadgeVerified(player, true, true)
end)
Has Verified Badge:
Essentials: Femtrs has the Verified Badge
Does not have Verified Badge:
Essentials: Femtrs does not have the Verified Badge
Sets the attribute "HasVerifiedBadge" to true
Parameters
player:
The specified player object.
setAttribute:
Adds an attribute to the assigned player
debugging:
Sends an output log to your output window and developer console.