-- Compiled with roblox-ts v3.0.0 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.DataChanged = Signal.new() self.janitor = Janitor.new() self.Instance = instance self.DataChanged = Signal.new() self.janitor:Add(self.DataChanged, "destroy") self.janitor:Add(tycoon.DataChanged:Connect(function(...) local args = { ... } return self.DataChanged:fire(unpack(args)) end), "Disconnect") end function OwnerProfile:Destroy() self.janitor:Destroy() end end return { OwnerProfile = OwnerProfile, }