For some reason this module will lock the parent of a non-existant part yet it is not made to do it EDIT: basically it won’t allow me to clone through the module anymore. Code:
local Con = require(script.Parent);
local Service = Con.Service;
local RS = Service.ReplicatedStorage;
local Assets = RS.Assets;
return setmetatable({}, {
__index = function(This, Name)
local A = Assets('FindFirstChild',Name);
if A then
local R = A:Clone();
This[Name] = R;
return R;
else
error('Invalid dependency name.', 2);
end;
end;
})
local Con = require(script.Parent)
local Service = Con.Service
local RS = Service.ReplicatedStorage
local Assets = RS.Assets
return setmetatable({}, {
__index = function(This, Name)
local A = Assets('FindFirstChild',Name)
if A then
local R = A:Clone()
This[Name] = R
return R
else
error('Invalid dependency name.', 2)
end
end
})