Setup
-- Require the module
local QACAM = require(script:WaitForChild("QACentralAccessManager"))
-- Allow QA Leads to join at any time
QACAM.configuration:AllowRoles({
QACAM.configuration.roles.defaults.QA_LEAD
})
-- Validate players when they join
game:GetService("Players").PlayerAdded:Connect(function(Player)
local AccessResult = QACAM:GetAccessForPlayer(Player)
-- value will be false if the player doesn't have access
if not AccessResult.value then
Player:Kick(AccessResult.message)
end
end)Last updated