Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified buildPlugin.rbxl
Binary file not shown.
8 changes: 6 additions & 2 deletions src/Converter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down