IsPlayerVerified
This function returns if the player is ID-Verified or not.
Example Usage:
-- 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 is ID verified or not, if they aren't, we kick them with the following reason
Players.PlayerAdded:Connect(function(player: Player)
if not Essentials.IsPlayerVerified(player) then
player:Kick("You do not have your ID verified")
end
end)
Parameters
player: Player
The specified player object.
debugging: bool
Sends an output log to your output window and developer console.
References
Last updated