UserInputService.InputBegan:connect(function(C,s)local p=ActionFromInputObject(C)if p then actionBegan:Fire(p,s)end end)UserInputService.InputEnded:connect(function(C,s)local p=ActionFromInputObject(C)if p then actionEnded:Fire(p,s)end end)
-- events

UserInputService.InputBegan:connect(function(inputObject, processed)
	local action = ActionFromInputObject(inputObject)

	if action then
		actionBegan:Fire(action, processed)
	end
end)

UserInputService.InputEnded:connect(function(inputObject, processed)
	local action = ActionFromInputObject(inputObject)

	if action then
		actionEnded:Fire(action, processed)
	end
end)
