RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"if the allowed players from a table is the local player then script.parent.parent.enable = true"
-- local script local allowedPlayers = {"Player1", "Player2", "Player3"} -- example list of allowed players local player = game.Players.LocalPlayer local function checkAccess() for _, allowedPlayer in pairs(allowedPlayers) do if player.Name == allowedPlayer then script.Parent.Parent.Enabled = true return end end script.Parent.Parent.Enabled = false end checkAccess()