So, I am trying to make it to where Building Tools are only able to work in a certain area and if you are on a certain team. I have looked everywhere, but I am unable to find anything on how to do this. I have modified my Security script in the btools to disallow public building, but my permission script keeps coming back with “Attempt to connect failed: Passed value is not a function.” Does anyone know what I need to do with the permission script to make this work?
My Permission Script:
local module = {
Permission = {
Type = "Team";
Team = function(plr)
if plr.Team == "Blue Team" then
print("allow")
return true
else
return false
end
end;
};
}
return module
Okay, so I did both of those things, and now when I try to use the btools in the zone, it says “Requested module experienced an error while loading.” It seems to be recognizing the zone now and the permissions, but it won’t allow me to use the btools.