local Doors = {}
-- Variables
Doors.Func = function()
local obj = nil
-- // i, v in pair loop finds the values parent
for index, descendant in pairs(game:GetDescendants()) do
if descendant:IsA("ObjectValue") and descendant.Name == "ValueEvent"then
print(descendant.Parent)
end
end
end
return Doors
I just started modules today and I have NO idea what to do.