diff --git a/buildPlugin.rbxl b/buildPlugin.rbxl index 61be4ab..1df7a2a 100644 Binary files a/buildPlugin.rbxl and b/buildPlugin.rbxl differ diff --git a/src/Converter.lua b/src/Converter.lua index e2ad78b..4a6b096 100644 --- a/src/Converter.lua +++ b/src/Converter.lua @@ -13,8 +13,8 @@ Converter.SearchCache = false -- TODO: Try enabling cache Converter.ServiceNameMap = setmetatable({}, { __index = function(self, className) local isService = className:find("Service$") - or className:find("Provider$") - or className:find("Settings$") + or className:find("Provider$") + or className:find("Settings$") if not isService then -- Try to find the service @@ -545,6 +545,10 @@ function Converter:ChangeClass(object, ClassName) for _, Tag in pairs(CollectionService:GetTags(object)) do CollectionService:AddTag(newObject, Tag) end + -- Attribute instance + for AttributeName, AttributeValue in pairs(object:GetAttributes()) do + newObject:SetAttribute(AttributeName, AttributeValue) + end -- Go through each child and identify properties that point towards the parent that's getting replaced local oldParent = object.Parent