-- Compiled with roblox-ts v2.3.0-dev-d7847ea local TS = _G[script] local Janitor = TS.import(script, TS.getModule(script, "@rbxts", "janitor").src).Janitor local Signal = TS.import(script, TS.getModule(script, "@rbxts", "signals-tooling").out).Signal local OwnerProfile do OwnerProfile = setmetatable({}, { __tostring = function() return "OwnerProfile" end, }) OwnerProfile.__index = OwnerProfile function OwnerProfile.new(...) local self = setmetatable({}, OwnerProfile) return self:constructor(...) or self end function OwnerProfile:constructor(instance, tycoon) self.OnMutateData = Signal.new() self.janitor = Janitor.new() self.Instance = instance self.OnMutateData = Signal.new() self.janitor:Add(self.OnMutateData, "destroy") self.janitor:Add(tycoon.OnChangedData:Connect(function(...) local args = { ... } return self.OnMutateData:fire(unpack(args)) end), "Disconnect") end function OwnerProfile:Destroy() self.janitor:Destroy() end end return { OwnerProfile = OwnerProfile, }