bindable funtion is called Getlist, admin script is called admin and part script is called script
admins = ("Kaleb_PIayz, Bluoed")
script.Getlist.OnInvoke = function(name)
local isadmin = false
for i, v in pairs(admins) do
if name == v then
isadmin = true
break
end
end
if isadmin == true then
return true
else
return false
end
end
and this is the part bit of it:
part = script.Parent
part.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("humanoid")
if humanoid then
local playerName = hit.Parent.Name
local check = game.Workspace.admin.Getlist:Invoke(playerName)
if check == true then
part.CanCollide = false
end
end
end)
it does nothing and idk why. its supposed to let those people through, but it does nothing, even to people who arent on that list.