-- Compiled with roblox-ts v3.0.0 local TS = _G[script] local BaseStandardAction = TS.import(script, script.Parent, "standard-action").BaseStandardAction local DynamicAction do local super = BaseStandardAction DynamicAction = setmetatable({}, { __tostring = function() return "DynamicAction" end, __index = super, }) DynamicAction.__index = DynamicAction function DynamicAction.new(...) local self = setmetatable({}, DynamicAction) return self:constructor(...) or self end function DynamicAction:constructor(action) super.constructor(self) self.connections = {} self:updateAction(action) end function DynamicAction:updateAction(action) for connection in self.connections do self.connections[connection] = nil connection:Disconnect() end local _connections = self.connections local _arg0 = action.activated:Connect(function() return self:activate() end) _connections[_arg0] = true local _connections_1 = self.connections local _arg0_1 = action.deactivated:Connect(function() return self:deactivate() end) _connections_1[_arg0_1] = true self.action = action end function DynamicAction:handleInput(input, processed) if self.action == nil then return nil end self.action:handleInput(input, processed) end end return { DynamicAction = DynamicAction, }